@trayio/cdk-cli 0.0.2 → 0.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.
Files changed (39) hide show
  1. package/INTRODUCTION.md +54 -0
  2. package/LICENSE.txt +22 -0
  3. package/README.md +146 -38
  4. package/bin/dev +0 -0
  5. package/dist/commands/add-operation.d.ts +10 -0
  6. package/dist/commands/add-operation.d.ts.map +1 -0
  7. package/dist/commands/add-operation.js +98 -0
  8. package/dist/commands/build.d.ts +8 -0
  9. package/dist/commands/build.d.ts.map +1 -0
  10. package/dist/commands/build.js +34 -0
  11. package/dist/commands/composite-operation-template.zip +0 -0
  12. package/dist/commands/connector-template.zip +0 -0
  13. package/dist/commands/deploy.d.ts +8 -0
  14. package/dist/commands/deploy.d.ts.map +1 -0
  15. package/dist/commands/deploy.js +87 -0
  16. package/dist/commands/deployment-status.d.ts +12 -0
  17. package/dist/commands/deployment-status.d.ts.map +1 -0
  18. package/dist/commands/deployment-status.js +78 -0
  19. package/dist/commands/deployment-status.test.d.ts +2 -0
  20. package/dist/commands/deployment-status.test.d.ts.map +1 -0
  21. package/dist/commands/deployment-status.test.js +82 -0
  22. package/dist/commands/http-operation-template.zip +0 -0
  23. package/dist/commands/import-openapi-spec.d.ts +10 -0
  24. package/dist/commands/import-openapi-spec.d.ts.map +1 -0
  25. package/dist/commands/import-openapi-spec.js +101 -0
  26. package/dist/commands/index.d.ts +2 -0
  27. package/dist/commands/index.d.ts.map +1 -0
  28. package/dist/commands/index.js +5 -0
  29. package/dist/commands/init.d.ts +12 -0
  30. package/dist/commands/init.d.ts.map +1 -0
  31. package/dist/commands/init.js +80 -0
  32. package/dist/commands/test.d.ts +12 -0
  33. package/dist/commands/test.d.ts.map +1 -0
  34. package/dist/commands/test.js +55 -0
  35. package/dist/utils/colorizeString.d.ts +5 -0
  36. package/dist/utils/colorizeString.d.ts.map +1 -0
  37. package/dist/utils/colorizeString.js +13 -0
  38. package/oclif.manifest.json +222 -6
  39. package/package.json +68 -68
@@ -1,16 +1,232 @@
1
1
  {
2
- "version": "0.0.1",
3
2
  "commands": {
4
- "hello": {
5
- "id": "hello",
6
- "description": "Hello world",
3
+ "add-operation": {
4
+ "aliases": [],
5
+ "args": {
6
+ "operationName": {
7
+ "description": "Operation name",
8
+ "name": "operationName",
9
+ "required": false
10
+ },
11
+ "operationType": {
12
+ "description": "Operation type",
13
+ "name": "operationType",
14
+ "options": [
15
+ "http",
16
+ "composite"
17
+ ],
18
+ "required": false
19
+ }
20
+ },
21
+ "description": "Add an operation to connector project",
22
+ "flags": {},
23
+ "hasDynamicHelp": false,
24
+ "hiddenAliases": [],
25
+ "id": "add-operation",
26
+ "pluginAlias": "@trayio/cdk-cli",
27
+ "pluginName": "@trayio/cdk-cli",
28
+ "pluginType": "core",
29
+ "strict": true,
30
+ "enableJsonFlag": false,
31
+ "isESM": false,
32
+ "relativePath": [
33
+ "dist",
34
+ "commands",
35
+ "add-operation.js"
36
+ ]
37
+ },
38
+ "build": {
39
+ "aliases": [],
40
+ "args": {},
41
+ "description": "Builds a connector project",
42
+ "flags": {},
43
+ "hasDynamicHelp": false,
44
+ "hiddenAliases": [],
45
+ "id": "build",
46
+ "pluginAlias": "@trayio/cdk-cli",
47
+ "pluginName": "@trayio/cdk-cli",
48
+ "pluginType": "core",
7
49
  "strict": true,
50
+ "enableJsonFlag": false,
51
+ "isESM": false,
52
+ "relativePath": [
53
+ "dist",
54
+ "commands",
55
+ "build.js"
56
+ ]
57
+ },
58
+ "deploy": {
59
+ "aliases": [],
60
+ "args": {},
61
+ "description": "Deploys a connector project",
62
+ "flags": {},
63
+ "hasDynamicHelp": false,
64
+ "hiddenAliases": [],
65
+ "id": "deploy",
66
+ "pluginAlias": "@trayio/cdk-cli",
8
67
  "pluginName": "@trayio/cdk-cli",
68
+ "pluginType": "core",
69
+ "strict": true,
70
+ "enableJsonFlag": false,
71
+ "isESM": false,
72
+ "relativePath": [
73
+ "dist",
74
+ "commands",
75
+ "deploy.js"
76
+ ]
77
+ },
78
+ "deployment-status": {
79
+ "aliases": [],
80
+ "args": {
81
+ "connectorName": {
82
+ "description": "The name of the connector",
83
+ "name": "connectorName",
84
+ "required": true
85
+ },
86
+ "connectorVersion": {
87
+ "description": "The version of the connector",
88
+ "name": "connectorVersion",
89
+ "required": true
90
+ },
91
+ "uuid": {
92
+ "description": "The UUID of the deployment, this is included in the tray-cdk deploy output",
93
+ "name": "uuid",
94
+ "required": true
95
+ }
96
+ },
97
+ "description": "Retrieves the status of a connector deployment",
98
+ "flags": {},
99
+ "hasDynamicHelp": false,
100
+ "hiddenAliases": [],
101
+ "id": "deployment-status",
9
102
  "pluginAlias": "@trayio/cdk-cli",
103
+ "pluginName": "@trayio/cdk-cli",
10
104
  "pluginType": "core",
105
+ "strict": true,
106
+ "enableJsonFlag": false,
107
+ "isESM": false,
108
+ "relativePath": [
109
+ "dist",
110
+ "commands",
111
+ "deployment-status.js"
112
+ ]
113
+ },
114
+ "import-openapi-spec": {
11
115
  "aliases": [],
116
+ "args": {
117
+ "openApiSpec": {
118
+ "description": "Location of the OpenAPI specification file",
119
+ "name": "openApiSpec",
120
+ "required": false
121
+ },
122
+ "connectorName": {
123
+ "description": "The name of the connector",
124
+ "name": "connectorName",
125
+ "required": false
126
+ }
127
+ },
128
+ "description": "Create a connector from an OpenAPI specification: Command is still in BETA",
12
129
  "flags": {},
13
- "args": {}
130
+ "hasDynamicHelp": false,
131
+ "hiddenAliases": [],
132
+ "id": "import-openapi-spec",
133
+ "pluginAlias": "@trayio/cdk-cli",
134
+ "pluginName": "@trayio/cdk-cli",
135
+ "pluginType": "core",
136
+ "strict": true,
137
+ "enableJsonFlag": false,
138
+ "isESM": false,
139
+ "relativePath": [
140
+ "dist",
141
+ "commands",
142
+ "import-openapi-spec.js"
143
+ ]
144
+ },
145
+ ".": {
146
+ "aliases": [],
147
+ "args": {},
148
+ "flags": {},
149
+ "hasDynamicHelp": false,
150
+ "hiddenAliases": [],
151
+ "id": ".",
152
+ "pluginAlias": "@trayio/cdk-cli",
153
+ "pluginName": "@trayio/cdk-cli",
154
+ "pluginType": "core",
155
+ "isESM": false,
156
+ "relativePath": [
157
+ "dist",
158
+ "commands",
159
+ "index.js"
160
+ ]
161
+ },
162
+ "init": {
163
+ "aliases": [],
164
+ "args": {
165
+ "connectorName": {
166
+ "description": "Connector directory name to generate template files",
167
+ "name": "connectorName",
168
+ "required": false
169
+ }
170
+ },
171
+ "description": "Initialize a connector project",
172
+ "flags": {
173
+ "install": {
174
+ "char": "i",
175
+ "description": "Runs `npm install` after successful generation",
176
+ "name": "install",
177
+ "allowNo": false,
178
+ "type": "boolean"
179
+ }
180
+ },
181
+ "hasDynamicHelp": false,
182
+ "hiddenAliases": [],
183
+ "id": "init",
184
+ "pluginAlias": "@trayio/cdk-cli",
185
+ "pluginName": "@trayio/cdk-cli",
186
+ "pluginType": "core",
187
+ "strict": true,
188
+ "enableJsonFlag": false,
189
+ "isESM": false,
190
+ "relativePath": [
191
+ "dist",
192
+ "commands",
193
+ "init.js"
194
+ ]
195
+ },
196
+ "test": {
197
+ "aliases": [],
198
+ "args": {
199
+ "operationName": {
200
+ "description": "Operation name to run the test against",
201
+ "name": "operationName",
202
+ "required": false
203
+ }
204
+ },
205
+ "description": "Build and test connector project or an operation",
206
+ "flags": {
207
+ "verbose": {
208
+ "char": "v",
209
+ "description": "Logs the input and output of an operation, requires operation name argument to be specified",
210
+ "name": "verbose",
211
+ "allowNo": false,
212
+ "type": "boolean"
213
+ }
214
+ },
215
+ "hasDynamicHelp": false,
216
+ "hiddenAliases": [],
217
+ "id": "test",
218
+ "pluginAlias": "@trayio/cdk-cli",
219
+ "pluginName": "@trayio/cdk-cli",
220
+ "pluginType": "core",
221
+ "strict": true,
222
+ "enableJsonFlag": false,
223
+ "isESM": false,
224
+ "relativePath": [
225
+ "dist",
226
+ "commands",
227
+ "test.js"
228
+ ]
14
229
  }
15
- }
230
+ },
231
+ "version": "0.0.3-beta"
16
232
  }
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
1
  {
2
- "name": "@trayio/cdk-cli",
3
- "version": "0.0.2",
4
- "description": "A collection of CLI commands for connector development.",
5
- "main": "./dist/index.js",
6
- "types": "index.d.ts",
7
- "exports": {
8
- "require": "./dist/index.js",
9
- "import": "./dist/index.js",
10
- "types": "./dist/index.d.ts"
11
- },
12
- "license": "MIT",
13
- "dependencies": {
14
- "@oclif/core": "*",
15
- "@oclif/plugin-autocomplete": "*",
16
- "@oclif/plugin-help": "*",
17
- "@oclif/plugin-version": "*",
18
- "@oclif/test": "*"
19
- },
20
- "typesVersions": {
21
- "*": {
22
- "*": [
23
- "*",
24
- "dist/*"
25
- ]
26
- }
27
- },
28
- "files": [
29
- "/bin",
30
- "/dist",
31
- "/npm-shrinkwrap.json",
32
- "/oclif.manifest.json"
33
- ],
34
- "bin": {
35
- "cdk": "./bin/run",
36
- "cdk-cli": "./bin/run"
37
- },
38
- "oclif": {
39
- "commands": "./dist/commands",
40
- "bin": "cdk",
41
- "topics": {
42
- "connector": {
43
- "description": "Connector related commands"
44
- },
45
- "multi": {
46
- "description": "Connector related commands targeting multiple environments/regions. (Default: US, EU1 and AP1. Staging flag: Staging and Frontend-staging)"
47
- },
48
- "generate": {
49
- "description": "Run generators for things like connectors, operations, tests, etc."
50
- }
51
- },
52
- "plugins": [
53
- "@oclif/plugin-help",
54
- "@oclif/plugin-autocomplete",
55
- "@oclif/plugin-version"
56
- ],
57
- "additionalHelpFlags": [
58
- "-h"
59
- ],
60
- "additionalVersionFlags": [
61
- "-v"
62
- ]
63
- },
64
- "scripts": {
65
- "oclif:clean": "rm -f oclif.manifest.json",
66
- "postcompile": "oclif manifest && oclif readme"
67
- },
68
- "gitHead": "36f881ee050298119269b4f2ad889865def3e8e1"
69
- }
2
+ "name": "@trayio/cdk-cli",
3
+ "version": "0.0.3-beta",
4
+ "description": "A CLI for connector development",
5
+ "exports": {
6
+ "./*": "./dist/*.js"
7
+ },
8
+ "author": "Tray.io",
9
+ "license": "MIT",
10
+ "engines": {
11
+ "node": ">=18.x"
12
+ },
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "dependencies": {
17
+ "@oclif/core": "3.18.1",
18
+ "@oclif/plugin-autocomplete": "3.0.5",
19
+ "@oclif/plugin-help": "6.0.12",
20
+ "@oclif/plugin-version": "2.0.11",
21
+ "@oclif/test": "3.1.12",
22
+ "@trayio/axios": "0.0.3-beta",
23
+ "@trayio/cdk-build": "0.0.3-beta",
24
+ "@trayio/commons": "0.0.3-beta",
25
+ "@trayio/generator": "0.0.3-beta",
26
+ "@trayio/tray-client": "0.0.3-beta",
27
+ "@trayio/tray-openapi": "0.0.3-beta",
28
+ "@types/inquirer": "8.2.6",
29
+ "chalk": "4.1.2",
30
+ "inquirer": "8.2.5"
31
+ },
32
+ "typesVersions": {
33
+ "*": {
34
+ "*": [
35
+ "*",
36
+ "dist/*"
37
+ ]
38
+ }
39
+ },
40
+ "files": [
41
+ "/bin",
42
+ "/dist",
43
+ "/oclif.manifest.json",
44
+ "/INTRODUCTION.md"
45
+ ],
46
+ "bin": {
47
+ "tray-cdk": "./bin/run"
48
+ },
49
+ "oclif": {
50
+ "commands": "./dist/commands",
51
+ "bin": "tray-cdk",
52
+ "topicSeparator": " ",
53
+ "plugins": [
54
+ "@oclif/plugin-help",
55
+ "@oclif/plugin-autocomplete",
56
+ "@oclif/plugin-version"
57
+ ],
58
+ "additionalHelpFlags": [
59
+ "-h"
60
+ ],
61
+ "additionalVersionFlags": [
62
+ "-v"
63
+ ]
64
+ },
65
+ "scripts": {
66
+ "oclif:clean": "rm -f oclif.manifest.json",
67
+ "postcompile": "oclif manifest && oclif readme"
68
+ }
69
+ }