@adobe/aio-cli-plugin-api-mesh 1.0.0-beta → 1.0.1-beta
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 +8 -6
- package/oclif.manifest.json +1 -1
- package/package.json +92 -98
- package/src/classes/SchemaServiceClient.js +345 -74
- package/src/classes/UUID.js +20 -0
- package/src/classes/logger.js +19 -0
- package/src/commands/PLUGINNAME/__tests__/index.test.js +30 -0
- package/src/commands/PLUGINNAME/index.js +11 -13
- package/src/commands/__fixtures__/sample_mesh.json +14 -0
- package/src/commands/api-mesh/__tests__/create.test.js +76 -0
- package/src/commands/api-mesh/__tests__/delete.test.js +82 -0
- package/src/commands/api-mesh/__tests__/get.test.js +76 -0
- package/src/commands/api-mesh/__tests__/update.test.js +77 -0
- package/src/commands/api-mesh/create.js +67 -0
- package/src/commands/api-mesh/delete.js +53 -0
- package/src/commands/api-mesh/get.js +69 -0
- package/src/commands/api-mesh/update.js +65 -0
- package/src/helpers.js +164 -63
- package/src/utils.js +39 -0
- package/src/commands/commerce-gateway/tenant/create.js +0 -42
- package/src/commands/commerce-gateway/tenant/get.js +0 -33
- package/src/commands/commerce-gateway/tenant/update.js +0 -42
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@ Prerequisites: [node.js](https://nodejs.org/en/), [aio-cli](https://github.com/a
|
|
|
4
4
|
To install a revision from this repository:
|
|
5
5
|
|
|
6
6
|
```
|
|
7
|
-
$ aio plugins:install @adobe/aio-cli-plugin-
|
|
7
|
+
$ aio plugins:install @adobe/aio-cli-plugin-api-mesh
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
To install globally from a released npm package:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
$ aio plugins:install -g @adobe/aio-cli-plugin-
|
|
13
|
+
$ aio plugins:install -g @adobe/aio-cli-plugin-api-mesh
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
To discover available aio packages:
|
|
@@ -41,13 +41,15 @@ create a config.json file with the following parameters
|
|
|
41
41
|
Perform the following command to update the configuration
|
|
42
42
|
|
|
43
43
|
```
|
|
44
|
-
aio config:set
|
|
44
|
+
aio config:set api-mesh.configPath <path_to_json_file>
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
# Commands
|
|
48
48
|
|
|
49
49
|
```
|
|
50
|
-
aio
|
|
51
|
-
aio
|
|
52
|
-
aio
|
|
50
|
+
aio api-mesh:get meshId
|
|
51
|
+
aio api-mesh:get meshId PATH_OF_FILE_TO_DOWNLOAD_INTO
|
|
52
|
+
aio api-mesh:create PATH_OF_MESH_CONFIG_JSON_FILE
|
|
53
|
+
aio api-mesh:update meshId PATH_OF_MESH_CONFIG_JSON_FILE
|
|
54
|
+
aio api-mesh:delete meshId
|
|
53
55
|
```
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.1-beta","commands":{"PLUGINNAME":{"id":"PLUGINNAME","description":"Your description here","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"examples":["$ aio PLUGINNAME:some_command"],"flags":{"someflag":{"name":"someflag","type":"option","char":"f","description":"this is some flag"}},"args":[]},"api-mesh:create":{"id":"api-mesh:create","description":"Create a mesh with the given config.","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"file"}]},"api-mesh:delete":{"id":"api-mesh:delete","description":"Delete the config of a given mesh","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"meshId"}]},"api-mesh:get":{"id":"api-mesh:get","description":"Get the config of a given mesh","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"meshId"},{"name":"file"}]},"api-mesh:update":{"id":"api-mesh:update","description":"Update a mesh with the given config.","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"meshId"},{"name":"file"}]}}}
|
package/package.json
CHANGED
|
@@ -1,100 +1,94 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
"author": "Adobe Inc.",
|
|
96
|
-
"bugs": {
|
|
97
|
-
"url": "https://github.com/adobe/aio-cli-plugin-api-mesh/issues"
|
|
98
|
-
},
|
|
99
|
-
"homepage": "https://www.npmjs.com/package/@adobe/aio-cli-plugin-api-mesh"
|
|
2
|
+
"name": "@adobe/aio-cli-plugin-api-mesh",
|
|
3
|
+
"version": "1.0.1-beta",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@adobe/aio-cli-lib-console": "^3.0.0",
|
|
9
|
+
"@adobe/aio-lib-core-config": "^2.0.0",
|
|
10
|
+
"@adobe/aio-lib-core-logging": "^1.1.0",
|
|
11
|
+
"@adobe/aio-lib-env": "^1.1.0",
|
|
12
|
+
"@adobe/aio-lib-ims": "^5.0.1",
|
|
13
|
+
"@oclif/command": "^1.6.1",
|
|
14
|
+
"@oclif/config": "^1.15.1",
|
|
15
|
+
"@oclif/errors": "^1.1.2",
|
|
16
|
+
"axios": "^0.23.0",
|
|
17
|
+
"dotenv": "^16.0.1",
|
|
18
|
+
"pino": "^7.9.2",
|
|
19
|
+
"pino-pretty": "^7.6.0",
|
|
20
|
+
"uuid": "^8.3.2"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@adobe/eslint-config-aio-lib-config": "^1.4.0",
|
|
24
|
+
"@babel/eslint-parser": "^7.15.8",
|
|
25
|
+
"@oclif/dev-cli": "1.26.10",
|
|
26
|
+
"@oclif/plugin-help": "2.2.3",
|
|
27
|
+
"@trivago/prettier-plugin-sort-imports": "^3.1.1",
|
|
28
|
+
"acorn": "7.4.1",
|
|
29
|
+
"chalk": "4.1.2",
|
|
30
|
+
"eslint": "7.28.0",
|
|
31
|
+
"eslint-config-oclif": "^3.1.0",
|
|
32
|
+
"eslint-config-prettier": "^8.3.0",
|
|
33
|
+
"eslint-config-standard": "^16.0.0",
|
|
34
|
+
"eslint-plugin-import": "^2.21.2",
|
|
35
|
+
"eslint-plugin-jest": "^23.13.2",
|
|
36
|
+
"eslint-plugin-jsdoc": "^37.0.0",
|
|
37
|
+
"eslint-plugin-node": "^11.0.0",
|
|
38
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
39
|
+
"eslint-plugin-promise": "^5.0.0",
|
|
40
|
+
"eslint-plugin-standard": "^4.0.1",
|
|
41
|
+
"execa": "4.1.0",
|
|
42
|
+
"husky": "7.0.4",
|
|
43
|
+
"jest": "26.6.3",
|
|
44
|
+
"jest-junit": "^6.0.0",
|
|
45
|
+
"prettier": "2.2.1",
|
|
46
|
+
"stdout-stderr": "^0.1.9"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=8.0.0"
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"/oclif.manifest.json",
|
|
53
|
+
"/src"
|
|
54
|
+
],
|
|
55
|
+
"keywords": [
|
|
56
|
+
"oclif-plugin"
|
|
57
|
+
],
|
|
58
|
+
"license": "Apache-2.0",
|
|
59
|
+
"oclif": {
|
|
60
|
+
"commands": "./src/commands",
|
|
61
|
+
"bin": "aio",
|
|
62
|
+
"devPlugins": [
|
|
63
|
+
"@oclif/plugin-help"
|
|
64
|
+
],
|
|
65
|
+
"repositoryPrefix": "<%- repo %>/blob/<%- version %>/<%- commandPath %>"
|
|
66
|
+
},
|
|
67
|
+
"main": "src/index.js",
|
|
68
|
+
"scripts": {
|
|
69
|
+
"test": "jest",
|
|
70
|
+
"test:ci": "jest --ci",
|
|
71
|
+
"unit-tests": "jest --ci",
|
|
72
|
+
"prepack": "oclif-dev manifest && oclif-dev readme",
|
|
73
|
+
"postpack": "rm -f oclif.manifest.json",
|
|
74
|
+
"version": "oclif-dev readme && git add README.md",
|
|
75
|
+
"e2e": "jest --collectCoverage=false --testRegex './e2e/e2e.js'",
|
|
76
|
+
"lint": "eslint .",
|
|
77
|
+
"lint:fix": "eslint --fix .",
|
|
78
|
+
"format": "prettier --check \"./**/*.{ts,tsx,js,css,json,md}\"",
|
|
79
|
+
"format:fix": "prettier --write \"./**/*.{ts,tsx,js,css,json,md}\""
|
|
80
|
+
},
|
|
81
|
+
"description": "Basic working repo structure for Adobe teams to use as a starting point for their own plugins, and available as a github template to the @adobe github org.",
|
|
82
|
+
"directories": {
|
|
83
|
+
"test": "test"
|
|
84
|
+
},
|
|
85
|
+
"repository": {
|
|
86
|
+
"type": "git",
|
|
87
|
+
"url": "https://github.com/adobe/aio-cli-plugin-api-mesh"
|
|
88
|
+
},
|
|
89
|
+
"author": "Adobe Inc.",
|
|
90
|
+
"bugs": {
|
|
91
|
+
"url": "https://github.com/adobe/aio-cli-plugin-api-mesh/issues"
|
|
92
|
+
},
|
|
93
|
+
"homepage": "https://www.npmjs.com/package/@adobe/aio-cli-plugin-api-mesh"
|
|
100
94
|
}
|