@trayio/cdk-cli 0.0.1 → 0.0.2-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/INTRODUCTION.md +54 -0
- package/LICENSE.txt +22 -0
- package/README.md +146 -38
- package/bin/dev +0 -0
- package/dist/commands/add-operation.d.ts +10 -0
- package/dist/commands/add-operation.d.ts.map +1 -0
- package/dist/commands/add-operation.js +98 -0
- package/dist/commands/build.d.ts +8 -0
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/build.js +34 -0
- package/dist/commands/composite-operation-template.zip +0 -0
- package/dist/commands/connector-template.zip +0 -0
- package/dist/commands/deploy.d.ts +8 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +87 -0
- package/dist/commands/deployment-status.d.ts +12 -0
- package/dist/commands/deployment-status.d.ts.map +1 -0
- package/dist/commands/deployment-status.js +78 -0
- package/dist/commands/deployment-status.test.d.ts +2 -0
- package/dist/commands/deployment-status.test.d.ts.map +1 -0
- package/dist/commands/deployment-status.test.js +82 -0
- package/dist/commands/http-operation-template.zip +0 -0
- package/dist/commands/import-openapi-spec.d.ts +10 -0
- package/dist/commands/import-openapi-spec.d.ts.map +1 -0
- package/dist/commands/import-openapi-spec.js +101 -0
- package/dist/commands/index.d.ts +2 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +5 -0
- package/dist/commands/init.d.ts +12 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +80 -0
- package/dist/commands/test.d.ts +12 -0
- package/dist/commands/test.d.ts.map +1 -0
- package/dist/commands/test.js +55 -0
- package/dist/utils/colorizeString.d.ts +5 -0
- package/dist/utils/colorizeString.d.ts.map +1 -0
- package/dist/utils/colorizeString.js +13 -0
- package/oclif.manifest.json +222 -6
- package/package.json +67 -64
package/oclif.manifest.json
CHANGED
|
@@ -1,16 +1,232 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.1",
|
|
3
2
|
"commands": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
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
|
-
"
|
|
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.2-beta"
|
|
16
232
|
}
|
package/package.json
CHANGED
|
@@ -1,66 +1,69 @@
|
|
|
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
|
-
|
|
2
|
+
"name": "@trayio/cdk-cli",
|
|
3
|
+
"version": "0.0.2-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.2-beta",
|
|
23
|
+
"@trayio/cdk-build": "0.0.2-beta",
|
|
24
|
+
"@trayio/commons": "0.0.2-beta",
|
|
25
|
+
"@trayio/generator": "0.0.2-beta",
|
|
26
|
+
"@trayio/tray-client": "0.0.2-beta",
|
|
27
|
+
"@trayio/tray-openapi": "0.0.2-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"
|
|
33
57
|
],
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"description": "Run generators for things like connectors, operations, tests, etc."
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"plugins": [
|
|
50
|
-
"@oclif/plugin-help",
|
|
51
|
-
"@oclif/plugin-autocomplete",
|
|
52
|
-
"@oclif/plugin-version"
|
|
53
|
-
],
|
|
54
|
-
"additionalHelpFlags": [
|
|
55
|
-
"-h"
|
|
56
|
-
],
|
|
57
|
-
"additionalVersionFlags": [
|
|
58
|
-
"-v"
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
"scripts": {
|
|
62
|
-
"oclif:clean": "rm -f oclif.manifest.json",
|
|
63
|
-
"postcompile": "oclif manifest && oclif readme"
|
|
64
|
-
},
|
|
65
|
-
"gitHead": "f5c9d4eaec4f9d523356b4ed96698644acfce32d"
|
|
66
|
-
}
|
|
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
|
+
}
|