Skip to content

Commit 878e28d

Browse files
committed
chore(release): 1.2.0 [skip ci]
1 parent 04adffe commit 878e28d

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# 1.1.0 (2024-08-20)
1+
# [1.2.0](https://github.com/salesforcecli/plugin-api/compare/1.1.0...1.2.0) (2024-08-22)
2+
3+
### Features
4+
5+
- add api request graphql command, UTs, NUTs ([04adffe](https://github.com/salesforcecli/plugin-api/commit/04adffea2543c2a018becacb7b4f22db7313b4b9))
6+
7+
# [1.1.0](https://github.com/salesforcecli/plugin-api/compare/e39c5610c36670bd59d86af4b9f0b23b0a0f6dfe...1.1.0) (2024-08-20)
28

39
### Bug Fixes
410

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ Execute GraphQL statements
6868

6969
````
7070
USAGE
71-
$ sf api request graphql -o <value> --body file [--json] [--flags-dir <value>] [-S Example: report.xlsx | -i]
71+
$ sf api request graphql -o <value> --body file [--json] [--flags-dir <value>] [--api-version <value>] [-S Example:
72+
report.xlsx | -i]
7273
7374
FLAGS
7475
-S, --stream-to-file=Example: report.xlsx Stream responses to a file.
7576
-i, --include Include the HTTP response status and headers in the output.
7677
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the
7778
`target-org` configuration variable is already set.
79+
--api-version=<value> Override the api version used for api requests made by this command
7880
--body=file (required) File or content with GraphQL statement. Specify "-" to read from
7981
standard input.
8082
@@ -90,7 +92,7 @@ DESCRIPTION
9092
9193
EXAMPLES
9294
- Runs the graphql query directly via the command line
93-
sf api request graphql --body '{ "query": "query accounts { uiapi { query { Account { edges { node { Id \n Name { value } } } } } } }" }'
95+
sf api request graphql --body "query accounts { uiapi { query { Account { edges { node { Id \n Name { value } } } } } } }"
9496
- Runs a mutation to create an Account, with an `example.txt` file, containing
9597
```text
9698
mutation AccountExample{
@@ -116,7 +118,7 @@ will create a new account returning specified fields (Id, Name)
116118

117119
```
118120
119-
_See code: [src/commands/api/request/graphql.ts](https://github.com/salesforcecli/plugin-api/blob/v1.1.0/src/commands/api/request/graphql.ts)_
121+
_See code: [src/commands/api/request/graphql.ts](https://github.com/salesforcecli/plugin-api/blob/1.2.0/src/commands/api/request/graphql.ts)_
120122
121123
## `sf api request rest ENDPOINT`
122124
@@ -172,6 +174,6 @@ $ sf api request rest 'sobjects/account' --body info.json --method POST
172174

173175
```
174176
175-
_See code: [src/commands/api/request/rest.ts](https://github.com/salesforcecli/plugin-api/blob/v1.1.0/src/commands/api/request/rest.ts)_
177+
_See code: [src/commands/api/request/rest.ts](https://github.com/salesforcecli/plugin-api/blob/1.2.0/src/commands/api/request/rest.ts)_
176178
<!-- commandsstop -->
177179
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-api",
33
"description": "A plugin to call API endpoints via CLI commands",
4-
"version": "1.1.0",
4+
"version": "1.2.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)