@commercelayer/cli-plugin-provisioning 2.0.0-rc.5 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -15
- package/lib/base.js +1 -1
- package/lib/commands/provisioning/list.js +1 -1
- package/lib/util/resources/index.d.ts +1 -1
- package/oclif.manifest.json +5 -5
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -40,8 +40,8 @@ Create a new resource.
|
|
|
40
40
|
|
|
41
41
|
```sh-session
|
|
42
42
|
USAGE
|
|
43
|
-
$ commercelayer provisioning:create RESOURCE [-i <value
|
|
44
|
-
[--node ] [-H ] [-Y ] [-O <value
|
|
43
|
+
$ commercelayer provisioning:create RESOURCE [-i <value>...] [-f <value>...] [-u -j] [-l curl|node [--doc | -R]]
|
|
44
|
+
[--curl ] [--node ] [-H ] [-Y ] [-O <value>...] [-D <value> | -a <value>... | -r <value>... | -m <value>... | ]
|
|
45
45
|
|
|
46
46
|
ARGUMENTS
|
|
47
47
|
RESOURCE the resource type
|
|
@@ -93,8 +93,8 @@ Delete an existing resource.
|
|
|
93
93
|
|
|
94
94
|
```sh-session
|
|
95
95
|
USAGE
|
|
96
|
-
$ commercelayer provisioning:delete RESOURCE [ID] [-i <value
|
|
97
|
-
] [--node ] [-H ] [-Y ]
|
|
96
|
+
$ commercelayer provisioning:delete RESOURCE [ID] [-i <value>...] [-f <value>...] [-u -j] [-l curl|node [--doc | -R]]
|
|
97
|
+
[--curl ] [--node ] [-H ] [-Y ]
|
|
98
98
|
|
|
99
99
|
ARGUMENTS
|
|
100
100
|
RESOURCE the resource type
|
|
@@ -139,7 +139,7 @@ Execute an action on a resource.
|
|
|
139
139
|
|
|
140
140
|
```sh-session
|
|
141
141
|
USAGE
|
|
142
|
-
$ commercelayer provisioning:exec RESOURCE [ID] [ACTION] [-a <value
|
|
142
|
+
$ commercelayer provisioning:exec RESOURCE [ID] [ACTION] [-a <value>...]
|
|
143
143
|
|
|
144
144
|
ARGUMENTS
|
|
145
145
|
RESOURCE the resource type
|
|
@@ -171,8 +171,9 @@ Retrieve a resource or list a set of resources.
|
|
|
171
171
|
|
|
172
172
|
```sh-session
|
|
173
173
|
USAGE
|
|
174
|
-
$ commercelayer provisioning:fetch RESOURCE... PATH... [ID...] [-i <value
|
|
175
|
-
| -R]] [--curl ] [--node ] [-H ] [-Y ] [-e <value
|
|
174
|
+
$ commercelayer provisioning:fetch RESOURCE... PATH... [ID...] [-i <value>...] [-f <value>...] [-u -j] [-l curl|node
|
|
175
|
+
[--doc | -R]] [--curl ] [--node ] [-H ] [-Y ] [-e <value>... | ] [-w <value>...] [-p <value>] [-n <value>] [-s
|
|
176
|
+
<value>...]
|
|
176
177
|
|
|
177
178
|
ARGUMENTS
|
|
178
179
|
RESOURCE... the resource type
|
|
@@ -227,8 +228,8 @@ Retrieve a resource or list a set of resources.
|
|
|
227
228
|
|
|
228
229
|
```sh-session
|
|
229
230
|
USAGE
|
|
230
|
-
$ commercelayer provisioning:get RESOURCE... [ID...] [-i <value
|
|
231
|
-
[--curl ] [--node ] [-H ] [-Y ] [-e <value
|
|
231
|
+
$ commercelayer provisioning:get RESOURCE... [ID...] [-i <value>...] [-f <value>...] [-u -j] [-l curl|node [--doc |
|
|
232
|
+
-R]] [--curl ] [--node ] [-H ] [-Y ] [-e <value>... | ] [-w <value>...] [-p <value>] [-n <value>] [-s <value>...]
|
|
232
233
|
|
|
233
234
|
ARGUMENTS
|
|
234
235
|
RESOURCE... the resource type
|
|
@@ -281,8 +282,8 @@ Fetch a collection of resources.
|
|
|
281
282
|
|
|
282
283
|
```sh-session
|
|
283
284
|
USAGE
|
|
284
|
-
$ commercelayer provisioning:list RESOURCE [-i <value
|
|
285
|
-
[--node ] [-H ] [-Y ] [-w <value
|
|
285
|
+
$ commercelayer provisioning:list RESOURCE [-i <value>...] [-f <value>...] [-u -j] [-l curl|node [--doc | -R]]
|
|
286
|
+
[--curl ] [--node ] [-H ] [-Y ] [-w <value>...] [-p <value>] [-n <value>] [-s <value>...] [-e <value>... | ]
|
|
286
287
|
|
|
287
288
|
ARGUMENTS
|
|
288
289
|
RESOURCE the resource type
|
|
@@ -359,8 +360,8 @@ Fetch a single resource.
|
|
|
359
360
|
|
|
360
361
|
```sh-session
|
|
361
362
|
USAGE
|
|
362
|
-
$ commercelayer provisioning:retrieve RESOURCE [ID] [-i <value
|
|
363
|
-
] [--node ] [-H ] [-Y ] [-e <value
|
|
363
|
+
$ commercelayer provisioning:retrieve RESOURCE [ID] [-i <value>...] [-f <value>...] [-u -j] [-l curl|node [--doc | -R]]
|
|
364
|
+
[--curl ] [--node ] [-H ] [-Y ] [-e <value>... | ]
|
|
364
365
|
|
|
365
366
|
ARGUMENTS
|
|
366
367
|
RESOURCE the resource type
|
|
@@ -409,8 +410,9 @@ Update an existing resource.
|
|
|
409
410
|
|
|
410
411
|
```sh-session
|
|
411
412
|
USAGE
|
|
412
|
-
$ commercelayer provisioning:update RESOURCE [ID] [-i <value
|
|
413
|
-
] [--node ] [-H ] [-Y ] [-O <value
|
|
413
|
+
$ commercelayer provisioning:update RESOURCE [ID] [-i <value>...] [-f <value>...] [-u -j] [-l curl|node [--doc | -R]]
|
|
414
|
+
[--curl ] [--node ] [-H ] [-Y ] [-O <value>...] [-D <value> | -a <value>... | -r <value>... | [-m <value>... | -M
|
|
415
|
+
<value>...] | | ]
|
|
414
416
|
|
|
415
417
|
ARGUMENTS
|
|
416
418
|
RESOURCE the resource type
|
package/lib/base.js
CHANGED
|
@@ -58,7 +58,7 @@ class BaseCommand extends core_1.Command {
|
|
|
58
58
|
if (singleton)
|
|
59
59
|
this.error(`Singleton resource ${cli_core_1.clColor.api.resource(res)} does not require id`);
|
|
60
60
|
if (id.includes('/'))
|
|
61
|
-
this.error(`Invalid
|
|
61
|
+
this.error(`Invalid resource id: ${cli_core_1.clColor.msg.error(id)}`);
|
|
62
62
|
}
|
|
63
63
|
else if (required && !singleton)
|
|
64
64
|
this.error('Resource id not defined');
|
|
@@ -56,7 +56,7 @@ class ProvisioningList extends base_1.default {
|
|
|
56
56
|
}),
|
|
57
57
|
'force-include': base_1.Flags.boolean({
|
|
58
58
|
char: 'I',
|
|
59
|
-
description: 'force resources inclusion
|
|
59
|
+
description: 'force resources inclusion beyond the 3rd level',
|
|
60
60
|
dependsOn: ['include'],
|
|
61
61
|
hidden: true,
|
|
62
62
|
}),
|
|
@@ -8,5 +8,5 @@ interface Resource {
|
|
|
8
8
|
declare const findResource: (res: string, { singular }?: {
|
|
9
9
|
singular?: boolean | undefined;
|
|
10
10
|
}) => (Resource | undefined);
|
|
11
|
-
declare const resourceList: (field:
|
|
11
|
+
declare const resourceList: (field: "name" | "api" | "model") => string[];
|
|
12
12
|
export { findResource, resourceList, type Resource };
|
package/oclif.manifest.json
CHANGED
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
"dependsOn": [
|
|
723
723
|
"include"
|
|
724
724
|
],
|
|
725
|
-
"description": "force resources inclusion
|
|
725
|
+
"description": "force resources inclusion beyond the 3rd level",
|
|
726
726
|
"hidden": true,
|
|
727
727
|
"name": "force-include",
|
|
728
728
|
"allowNo": false,
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
"dependsOn": [
|
|
968
968
|
"include"
|
|
969
969
|
],
|
|
970
|
-
"description": "force resources inclusion
|
|
970
|
+
"description": "force resources inclusion beyond the 3rd level",
|
|
971
971
|
"hidden": true,
|
|
972
972
|
"name": "force-include",
|
|
973
973
|
"allowNo": false,
|
|
@@ -1207,7 +1207,7 @@
|
|
|
1207
1207
|
"dependsOn": [
|
|
1208
1208
|
"include"
|
|
1209
1209
|
],
|
|
1210
|
-
"description": "force resources inclusion
|
|
1210
|
+
"description": "force resources inclusion beyond the 3rd level",
|
|
1211
1211
|
"hidden": true,
|
|
1212
1212
|
"name": "force-include",
|
|
1213
1213
|
"allowNo": false,
|
|
@@ -1477,7 +1477,7 @@
|
|
|
1477
1477
|
"dependsOn": [
|
|
1478
1478
|
"include"
|
|
1479
1479
|
],
|
|
1480
|
-
"description": "force resources inclusion
|
|
1480
|
+
"description": "force resources inclusion beyond the 3rd level",
|
|
1481
1481
|
"hidden": true,
|
|
1482
1482
|
"name": "force-include",
|
|
1483
1483
|
"allowNo": false,
|
|
@@ -1994,5 +1994,5 @@
|
|
|
1994
1994
|
]
|
|
1995
1995
|
}
|
|
1996
1996
|
},
|
|
1997
|
-
"version": "2.0.
|
|
1997
|
+
"version": "2.0.1"
|
|
1998
1998
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/cli-plugin-provisioning",
|
|
3
3
|
"description": "Commerce Layer CLI Provisioning plugin",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",
|
|
6
6
|
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-provisioning",
|
|
7
7
|
"repository": "commercelayer/commercelayer-cli-plugin-provisioning",
|
|
@@ -55,32 +55,32 @@
|
|
|
55
55
|
},
|
|
56
56
|
"types": "lib/index.d.ts",
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@commercelayer/cli-dev": "^3.0.
|
|
58
|
+
"@commercelayer/cli-dev": "^3.0.5",
|
|
59
59
|
"@commercelayer/eslint-config-ts": "^1.4.5",
|
|
60
|
-
"@oclif/plugin-help": "^6.
|
|
61
|
-
"@oclif/test": "^3.2.
|
|
60
|
+
"@oclif/plugin-help": "^6.2.3",
|
|
61
|
+
"@oclif/test": "^3.2.15",
|
|
62
62
|
"@semantic-release/changelog": "^6.0.3",
|
|
63
63
|
"@semantic-release/git": "^10.0.1",
|
|
64
|
-
"@types/chai": "^4.3.
|
|
64
|
+
"@types/chai": "^4.3.16",
|
|
65
65
|
"@types/inquirer": "^8.2.10",
|
|
66
|
-
"@types/mocha": "^10.0.
|
|
67
|
-
"@types/node": "^20.
|
|
66
|
+
"@types/mocha": "^10.0.7",
|
|
67
|
+
"@types/node": "^20.14.8",
|
|
68
68
|
"chai": "^4.4.1",
|
|
69
69
|
"eslint": "^8.57.0",
|
|
70
|
-
"mocha": "^10.
|
|
70
|
+
"mocha": "^10.5.1",
|
|
71
71
|
"nyc": "^15.1.0",
|
|
72
|
-
"oclif": "^4.
|
|
73
|
-
"semantic-release": "^23.
|
|
74
|
-
"tsx": "^4.7
|
|
75
|
-
"typescript": "^5.
|
|
72
|
+
"oclif": "^4.13.10",
|
|
73
|
+
"semantic-release": "^23.1.1",
|
|
74
|
+
"tsx": "^4.15.7",
|
|
75
|
+
"typescript": "^5.5.2"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@commercelayer/cli-core": "^5.
|
|
79
|
-
"@commercelayer/provisioning-sdk": "^2.
|
|
80
|
-
"@oclif/core": "^3.
|
|
78
|
+
"@commercelayer/cli-core": "^5.1.0",
|
|
79
|
+
"@commercelayer/provisioning-sdk": "^2.1.0",
|
|
80
|
+
"@oclif/core": "^3.27.0",
|
|
81
81
|
"inquirer": "^8.2.6",
|
|
82
82
|
"json-2-csv": "^5.5.1",
|
|
83
|
-
"tslib": "^2.6.
|
|
83
|
+
"tslib": "^2.6.3"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|