@commercelayer/cli-plugin-provisioning 1.0.0
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/LICENSE +21 -0
- package/README.md +413 -0
- package/bin/dev +18 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +5 -0
- package/bin/run.cmd +3 -0
- package/lib/base.d.ts +59 -0
- package/lib/base.js +496 -0
- package/lib/commands/provisioning/create.d.ts +21 -0
- package/lib/commands/provisioning/create.js +137 -0
- package/lib/commands/provisioning/delete.d.ts +20 -0
- package/lib/commands/provisioning/delete.js +52 -0
- package/lib/commands/provisioning/exec.d.ts +15 -0
- package/lib/commands/provisioning/exec.js +55 -0
- package/lib/commands/provisioning/fetch.d.ts +28 -0
- package/lib/commands/provisioning/fetch.js +57 -0
- package/lib/commands/provisioning/get.d.ts +27 -0
- package/lib/commands/provisioning/get.js +31 -0
- package/lib/commands/provisioning/list.d.ts +22 -0
- package/lib/commands/provisioning/list.js +137 -0
- package/lib/commands/provisioning/noc.d.ts +6 -0
- package/lib/commands/provisioning/noc.js +13 -0
- package/lib/commands/provisioning/relationship.d.ts +30 -0
- package/lib/commands/provisioning/relationship.js +114 -0
- package/lib/commands/provisioning/resources.d.ts +11 -0
- package/lib/commands/provisioning/resources.js +36 -0
- package/lib/commands/provisioning/retrieve.d.ts +21 -0
- package/lib/commands/provisioning/retrieve.js +95 -0
- package/lib/commands/provisioning/update.d.ts +26 -0
- package/lib/commands/provisioning/update.js +157 -0
- package/lib/csv.d.ts +3 -0
- package/lib/csv.js +98 -0
- package/lib/output.d.ts +5 -0
- package/lib/output.js +15 -0
- package/lib/util/resources/available.d.ts +35 -0
- package/lib/util/resources/available.js +13 -0
- package/lib/util/resources/build.d.ts +1 -0
- package/lib/util/resources/build.js +47 -0
- package/lib/util/resources/index.d.ts +12 -0
- package/lib/util/resources/index.js +19 -0
- package/oclif.manifest.json +1502 -0
- package/package.json +86 -0
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@commercelayer/cli-plugin-provisioning",
|
|
3
|
+
"description": "Commerce Layer CLI Provisioning plugin",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",
|
|
6
|
+
"bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-provisioning/issues",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": "^16.13.0 || >=18.0.0"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"/bin",
|
|
12
|
+
"/lib",
|
|
13
|
+
"/npm-shrinkwrap.json",
|
|
14
|
+
"/oclif.manifest.json"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-provisioning",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"ecommerce",
|
|
19
|
+
"cli",
|
|
20
|
+
"commercelayer"
|
|
21
|
+
],
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"oclif": {
|
|
25
|
+
"commands": "./lib/commands",
|
|
26
|
+
"bin": "cl-provisioning",
|
|
27
|
+
"devPlugins": [
|
|
28
|
+
"@oclif/plugin-help"
|
|
29
|
+
],
|
|
30
|
+
"plugins": [],
|
|
31
|
+
"topics": {
|
|
32
|
+
"cleanups": {
|
|
33
|
+
"description": "Execute provisioning operations in Commerce Layer",
|
|
34
|
+
"hidden": false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"repositoryPrefix": "<%- repo %>/blob/main/<%- commandPath %>",
|
|
38
|
+
"additionalHelpFlags": [
|
|
39
|
+
"-h"
|
|
40
|
+
],
|
|
41
|
+
"topicSeparator": ":",
|
|
42
|
+
"hooks": {}
|
|
43
|
+
},
|
|
44
|
+
"repository": "commercelayer/commercelayer-cli-plugin-provisioning",
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "rm -rf lib && tsc -b",
|
|
47
|
+
"prepack": "pnpm build && oclif manifest && pnpm readme",
|
|
48
|
+
"postpack": "rm -f oclif.manifest.json",
|
|
49
|
+
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
|
|
50
|
+
"posttest": "eslint . --ext .ts --config .eslintrc",
|
|
51
|
+
"readme": "cl-cli-dev readme --plugin --bin=commercelayer && git add README.md",
|
|
52
|
+
"resources": "pnpm update @commercelayer/provisioning-sdk && ts-node src/util/resources/build.ts",
|
|
53
|
+
"lint": "eslint src --ext .ts --config .eslintrc",
|
|
54
|
+
"lint:fix": "eslint src --fix"
|
|
55
|
+
},
|
|
56
|
+
"types": "lib/index.d.ts",
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@commercelayer/cli-dev": "^2.1.3",
|
|
59
|
+
"@commercelayer/eslint-config-ts": "^1.3.0",
|
|
60
|
+
"@oclif/plugin-help": "^6.0.12",
|
|
61
|
+
"@oclif/test": "^3.1.13",
|
|
62
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
63
|
+
"@semantic-release/git": "^10.0.1",
|
|
64
|
+
"@types/chai": "^4.3.11",
|
|
65
|
+
"@types/mocha": "^10.0.6",
|
|
66
|
+
"@types/node": "^20.11.13",
|
|
67
|
+
"chai": "^4.4.1",
|
|
68
|
+
"eslint": "^8.56.0",
|
|
69
|
+
"mocha": "^10.2.0",
|
|
70
|
+
"nyc": "^15.1.0",
|
|
71
|
+
"oclif": "^4.4.2",
|
|
72
|
+
"semantic-release": "^22.0.12",
|
|
73
|
+
"ts-node": "^10.9.2",
|
|
74
|
+
"typescript": "^5.3.3"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@commercelayer/cli-core": "^4.11.4",
|
|
78
|
+
"@commercelayer/provisioning-sdk": "^1.0.0",
|
|
79
|
+
"@oclif/core": "^2.15.0",
|
|
80
|
+
"json-2-csv": "^5.0.1",
|
|
81
|
+
"tslib": "^2.6.2"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public"
|
|
85
|
+
}
|
|
86
|
+
}
|