@adobe/aio-cli-plugin-api-mesh 1.0.0-beta → 1.0.3-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 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-commerce-admin
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-commerce-admin
13
+ $ aio plugins:install -g @adobe/aio-cli-plugin-api-mesh
14
14
  ```
15
15
 
16
16
  To discover available aio packages:
@@ -24,7 +24,7 @@ $ aio discover -i
24
24
  Install project dependencies. `npm install`
25
25
 
26
26
  ```
27
- aio plugins:link commerce-gateway/tenant
27
+ aio plugins:link api-mesh
28
28
  ```
29
29
 
30
30
  ### Configuration
@@ -41,13 +41,16 @@ 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 aio-cli-plugin-commerce-admin <path_to_json_file>
44
+ aio config:set api-mesh.configPath <path_to_json_file>
45
45
  ```
46
46
 
47
47
  # Commands
48
48
 
49
49
  ```
50
- aio commerce-gateway:tenant:create BODYJSONFILE
51
- aio commerce-gateway:tenant:update tenantid BODYJSONFILE
52
- aio commerce-gateway:tenant:get tenantid
50
+ aio api-mesh:describe
51
+ aio api-mesh:get meshId
52
+ aio api-mesh:get meshId PATH_OF_FILE_TO_DOWNLOAD_INTO
53
+ aio api-mesh:create PATH_OF_MESH_CONFIG_JSON_FILE
54
+ aio api-mesh:update meshId PATH_OF_MESH_CONFIG_JSON_FILE
55
+ aio api-mesh:delete meshId
53
56
  ```
@@ -1 +1 @@
1
- {"version":"1.0.0-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":[]},"commerce-gateway:tenant:create":{"id":"commerce-gateway:tenant:create","description":"Create a tenant with the given config.","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"file"}]},"commerce-gateway:tenant:get":{"id":"commerce-gateway:tenant:get","description":"Get the config of a given tenant","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"tenantId"}]},"commerce-gateway:tenant:update":{"id":"commerce-gateway:tenant:update","description":"Update a tenant with the given config.","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"tenantId"},{"name":"file"}]}}}
1
+ {"version":"1.0.3-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:describe":{"id":"api-mesh:describe","description":"Get details of a mesh","pluginName":"@adobe/aio-cli-plugin-api-mesh","pluginType":"core","aliases":[],"flags":{},"args":[]},"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,95 @@
1
1
  {
2
- "name": "@adobe/aio-cli-plugin-api-mesh",
3
- "version": "1.0.0-beta",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "dependencies": {
8
- "@adobe/aio-lib-core-config": "^2.0.0",
9
- "@adobe/aio-lib-core-logging": "^1.1.0",
10
- "@adobe/aio-lib-env": "^1.1.0",
11
- "@adobe/aio-lib-ims": "^5.0.1",
12
- "@adobe/aio-cli-lib-console": "^3.0.0",
13
- "@oclif/command": "^1.6.1",
14
- "@oclif/config": "^1.15.1",
15
- "@oclif/errors": "^1.1.2",
16
- "axios": "^0.23.0"
17
- },
18
- "devDependencies": {
19
- "@adobe/eslint-config-aio-lib-config": "^1.4.0",
20
- "@babel/eslint-parser": "^7.15.8",
21
- "@oclif/dev-cli": "^1",
22
- "@oclif/plugin-help": "^2",
23
- "acorn": "^7",
24
- "chalk": "^4",
25
- "eslint": "^7",
26
- "eslint-config-oclif": "^3.1.0",
27
- "eslint-config-standard": "^16.0.0",
28
- "eslint-plugin-import": "^2.21.2",
29
- "eslint-plugin-jest": "^23.13.2",
30
- "eslint-plugin-jsdoc": "^37.0.0",
31
- "eslint-plugin-node": "^11.0.0",
32
- "eslint-plugin-promise": "^5.0.0",
33
- "eslint-plugin-standard": "^4.0.1",
34
- "execa": "^4",
35
- "jest": "^24.9.0",
36
- "jest-haste-map": "^24.5.0",
37
- "jest-junit": "^6.0.0",
38
- "jest-resolve": "^24.5.0",
39
- "stdout-stderr": "^0.1.9"
40
- },
41
- "engines": {
42
- "node": ">=8.0.0"
43
- },
44
- "files": [
45
- "/oclif.manifest.json",
46
- "/src"
47
- ],
48
- "keywords": [
49
- "oclif-plugin"
50
- ],
51
- "license": "Apache-2.0",
52
- "oclif": {
53
- "commands": "./src/commands",
54
- "bin": "aio",
55
- "devPlugins": [
56
- "@oclif/plugin-help"
57
- ],
58
- "repositoryPrefix": "<%- repo %>/blob/<%- version %>/<%- commandPath %>"
59
- },
60
- "main": "src/index.js",
61
- "scripts": {
62
- "pretest": "eslint src test e2e",
63
- "test": "npm run unit-tests",
64
- "unit-tests": "jest --ci",
65
- "prepack": "oclif-dev manifest && oclif-dev readme",
66
- "postpack": "rm -f oclif.manifest.json",
67
- "version": "oclif-dev readme && git add README.md",
68
- "e2e": "jest --collectCoverage=false --testRegex './e2e/e2e.js'"
69
- },
70
- "jest": {
71
- "collectCoverage": true,
72
- "testPathIgnorePatterns": [
73
- "<rootDir>/tests/fixtures/"
74
- ],
75
- "coveragePathIgnorePatterns": [
76
- "<rootDir>/tests/fixtures/"
77
- ],
78
- "reporters": [
79
- "default",
80
- "jest-junit"
81
- ],
82
- "testEnvironment": "node",
83
- "setupFilesAfterEnv": [
84
- "./jest.setup.js"
85
- ]
86
- },
87
- "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.",
88
- "directories": {
89
- "test": "test"
90
- },
91
- "repository": {
92
- "type": "git",
93
- "url": "https://github.com/adobe/aio-cli-plugin-api-mesh"
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.3-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
+ "inquirer": "^8.2.4",
19
+ "pino": "^7.9.2",
20
+ "pino-pretty": "^7.6.0",
21
+ "uuid": "^8.3.2"
22
+ },
23
+ "devDependencies": {
24
+ "@adobe/eslint-config-aio-lib-config": "^1.4.0",
25
+ "@babel/eslint-parser": "^7.15.8",
26
+ "@oclif/dev-cli": "1.26.10",
27
+ "@oclif/plugin-help": "2.2.3",
28
+ "@trivago/prettier-plugin-sort-imports": "^3.1.1",
29
+ "acorn": "7.4.1",
30
+ "chalk": "4.1.2",
31
+ "eslint": "7.28.0",
32
+ "eslint-config-oclif": "^3.1.0",
33
+ "eslint-config-prettier": "^8.3.0",
34
+ "eslint-config-standard": "^16.0.0",
35
+ "eslint-plugin-import": "^2.21.2",
36
+ "eslint-plugin-jest": "^23.13.2",
37
+ "eslint-plugin-jsdoc": "^37.0.0",
38
+ "eslint-plugin-node": "^11.0.0",
39
+ "eslint-plugin-prettier": "^4.0.0",
40
+ "eslint-plugin-promise": "^5.0.0",
41
+ "eslint-plugin-standard": "^4.0.1",
42
+ "execa": "4.1.0",
43
+ "husky": "7.0.4",
44
+ "jest": "26.6.3",
45
+ "jest-junit": "^6.0.0",
46
+ "prettier": "2.2.1",
47
+ "stdout-stderr": "^0.1.9"
48
+ },
49
+ "engines": {
50
+ "node": ">=8.0.0"
51
+ },
52
+ "files": [
53
+ "/oclif.manifest.json",
54
+ "/src"
55
+ ],
56
+ "keywords": [
57
+ "oclif-plugin"
58
+ ],
59
+ "license": "Apache-2.0",
60
+ "oclif": {
61
+ "commands": "./src/commands",
62
+ "bin": "aio",
63
+ "devPlugins": [
64
+ "@oclif/plugin-help"
65
+ ],
66
+ "repositoryPrefix": "<%- repo %>/blob/<%- version %>/<%- commandPath %>"
67
+ },
68
+ "main": "src/index.js",
69
+ "scripts": {
70
+ "test": "jest",
71
+ "test:ci": "jest --ci",
72
+ "unit-tests": "jest --ci",
73
+ "prepack": "oclif-dev manifest && oclif-dev readme",
74
+ "postpack": "rm -f oclif.manifest.json",
75
+ "version": "oclif-dev readme && git add README.md",
76
+ "e2e": "jest --collectCoverage=false --testRegex './e2e/e2e.js'",
77
+ "lint": "eslint .",
78
+ "lint:fix": "eslint --fix .",
79
+ "format": "prettier --check \"./**/*.{ts,tsx,js,css,json,md}\"",
80
+ "format:fix": "prettier --write \"./**/*.{ts,tsx,js,css,json,md}\""
81
+ },
82
+ "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.",
83
+ "directories": {
84
+ "test": "test"
85
+ },
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "https://github.com/adobe/aio-cli-plugin-api-mesh"
89
+ },
90
+ "author": "Adobe Inc.",
91
+ "bugs": {
92
+ "url": "https://github.com/adobe/aio-cli-plugin-api-mesh/issues"
93
+ },
94
+ "homepage": "https://www.npmjs.com/package/@adobe/aio-cli-plugin-api-mesh"
100
95
  }