@unito/integration-cli 0.55.1
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 +3 -0
- package/README.md +32 -0
- package/bin/run +11 -0
- package/bin/run.cmd +3 -0
- package/dist/.eslintrc.d.ts +10 -0
- package/dist/.eslintrc.js +20 -0
- package/dist/integrationGenerator/errors.d.ts +2 -0
- package/dist/integrationGenerator/errors.js +6 -0
- package/dist/integrationGenerator/index.d.ts +2 -0
- package/dist/integrationGenerator/index.js +5 -0
- package/dist/integrationGenerator/integrationBoilerplate/.dockerignore +3 -0
- package/dist/integrationGenerator/integrationBoilerplate/.eslintrc.js +74 -0
- package/dist/integrationGenerator/integrationBoilerplate/.nvmrc +1 -0
- package/dist/integrationGenerator/integrationBoilerplate/.prettierignore +1 -0
- package/dist/integrationGenerator/integrationBoilerplate/.prettierrc +7 -0
- package/dist/integrationGenerator/integrationBoilerplate/.unito.json +1 -0
- package/dist/integrationGenerator/integrationBoilerplate/Dockerfile +38 -0
- package/dist/integrationGenerator/integrationBoilerplate/README.md +21 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/.dockerignore +3 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/.eslintrc.js +74 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/.nvmrc +1 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/.prettierignore +1 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/.prettierrc +7 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/.unito.json +1 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/Dockerfile +38 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/README.md +21 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/package.json +43 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/index.ts +94 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/logger.ts +55 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/middlewares/additionalLoggingContext.ts +22 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/middlewares/correlationId.ts +13 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/middlewares/credentials.ts +38 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/request.ts +59 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/routes/index.ts +11 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/routes/me.ts +15 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/src/routes/root.ts +12 -0
- package/dist/integrationGenerator/integrationBoilerplate/integrationBoilerplate/tsconfig.json +37 -0
- package/dist/integrationGenerator/integrationBoilerplate/package.json +43 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/index.ts +90 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/logger.ts +37 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/middlewares/correlationId.ts +18 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/middlewares/credentials.ts +38 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/request.ts +59 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/routes/index.ts +11 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/routes/me.ts +15 -0
- package/dist/integrationGenerator/integrationBoilerplate/src/routes/root.ts +12 -0
- package/dist/integrationGenerator/integrationBoilerplate/tsconfig.json +37 -0
- package/dist/integrationGenerator/src/index.d.ts +1 -0
- package/dist/integrationGenerator/src/index.js +5 -0
- package/dist/integrationGenerator/src/resources/index.d.ts +1 -0
- package/dist/integrationGenerator/src/resources/index.js +5 -0
- package/dist/integrationGenerator/src/resources/integration.d.ts +9 -0
- package/dist/integrationGenerator/src/resources/integration.js +60 -0
- package/dist/integrationGenerator/test/resources/integration.test.d.ts +1 -0
- package/dist/integrationGenerator/test/resources/integration.test.js +51 -0
- package/dist/schemas/authorization.json +204 -0
- package/dist/schemas/automation.json +81 -0
- package/dist/schemas/configuration.json +89 -0
- package/dist/scripts/generateTypes.d.ts +8 -0
- package/dist/scripts/generateTypes.js +44 -0
- package/dist/src/baseCommand.d.ts +14 -0
- package/dist/src/baseCommand.js +39 -0
- package/dist/src/commands/activity.d.ts +12 -0
- package/dist/src/commands/activity.js +75 -0
- package/dist/src/commands/dev.d.ts +15 -0
- package/dist/src/commands/dev.js +123 -0
- package/dist/src/commands/encrypt.d.ts +11 -0
- package/dist/src/commands/encrypt.js +50 -0
- package/dist/src/commands/init.d.ts +10 -0
- package/dist/src/commands/init.js +51 -0
- package/dist/src/commands/invite.d.ts +11 -0
- package/dist/src/commands/invite.js +71 -0
- package/dist/src/commands/login.d.ts +11 -0
- package/dist/src/commands/login.js +76 -0
- package/dist/src/commands/oauth2.d.ts +10 -0
- package/dist/src/commands/oauth2.js +99 -0
- package/dist/src/commands/publish.d.ts +28 -0
- package/dist/src/commands/publish.js +302 -0
- package/dist/src/commands/test.d.ts +9 -0
- package/dist/src/commands/test.js +165 -0
- package/dist/src/commands/upgrade.d.ts +7 -0
- package/dist/src/commands/upgrade.js +88 -0
- package/dist/src/configurationTypes.d.ts +209 -0
- package/dist/src/configurationTypes.js +49 -0
- package/dist/src/errors.d.ts +38 -0
- package/dist/src/errors.js +159 -0
- package/dist/src/hooks/init/displayLogo.d.ts +3 -0
- package/dist/src/hooks/init/displayLogo.js +37 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +5 -0
- package/dist/src/oauth2Helper/oauth2Helper.d.ts +63 -0
- package/dist/src/oauth2Helper/oauth2Helper.js +235 -0
- package/dist/src/oauth2Helper/types.d.ts +22 -0
- package/dist/src/oauth2Helper/types.js +2 -0
- package/dist/src/resources/configuration.d.ts +30 -0
- package/dist/src/resources/configuration.js +191 -0
- package/dist/src/resources/decryption.d.ts +5 -0
- package/dist/src/resources/decryption.js +62 -0
- package/dist/src/resources/fileSystem.d.ts +2 -0
- package/dist/src/resources/fileSystem.js +22 -0
- package/dist/src/resources/globalConfiguration.d.ts +13 -0
- package/dist/src/resources/globalConfiguration.js +44 -0
- package/dist/src/resources/integrations.d.ts +2 -0
- package/dist/src/resources/integrations.js +17 -0
- package/dist/src/resources/integrationsPlatform.d.ts +2 -0
- package/dist/src/resources/integrationsPlatform.js +33 -0
- package/dist/src/services/integrationsPlatform.d.ts +36 -0
- package/dist/src/services/integrationsPlatform.js +162 -0
- package/dist/src/services/oauth2Helper.d.ts +3 -0
- package/dist/src/services/oauth2Helper.js +34 -0
- package/dist/test/commands/activity.test.d.ts +1 -0
- package/dist/test/commands/activity.test.js +62 -0
- package/dist/test/commands/dev.test.d.ts +1 -0
- package/dist/test/commands/dev.test.js +139 -0
- package/dist/test/commands/encrypt.test.d.ts +1 -0
- package/dist/test/commands/encrypt.test.js +73 -0
- package/dist/test/commands/init.test.d.ts +1 -0
- package/dist/test/commands/init.test.js +45 -0
- package/dist/test/commands/invite.test.d.ts +1 -0
- package/dist/test/commands/invite.test.js +56 -0
- package/dist/test/commands/login.test.d.ts +1 -0
- package/dist/test/commands/login.test.js +90 -0
- package/dist/test/commands/oauth2.test.d.ts +1 -0
- package/dist/test/commands/oauth2.test.js +104 -0
- package/dist/test/commands/publish.test.d.ts +1 -0
- package/dist/test/commands/publish.test.js +429 -0
- package/dist/test/commands/test.test.d.ts +1 -0
- package/dist/test/commands/test.test.js +171 -0
- package/dist/test/commands/upgrade.test.d.ts +1 -0
- package/dist/test/commands/upgrade.test.js +47 -0
- package/dist/test/errors.test.d.ts +1 -0
- package/dist/test/errors.test.js +96 -0
- package/dist/test/helpers/init.d.ts +1 -0
- package/dist/test/helpers/init.js +6 -0
- package/dist/test/mocha.hooks.d.ts +2 -0
- package/dist/test/mocha.hooks.js +37 -0
- package/dist/test/oauth2Helper/oauth2Helper.test.d.ts +1 -0
- package/dist/test/oauth2Helper/oauth2Helper.test.js +150 -0
- package/dist/test/resources/configuration.test.d.ts +1 -0
- package/dist/test/resources/configuration.test.js +586 -0
- package/dist/test/resources/decryption.test.d.ts +1 -0
- package/dist/test/resources/decryption.test.js +68 -0
- package/dist/test/resources/globalConfiguration.test.d.ts +1 -0
- package/dist/test/resources/globalConfiguration.test.js +32 -0
- package/dist/test/services/integrationsPlatform.test.d.ts +1 -0
- package/dist/test/services/integrationsPlatform.test.js +168 -0
- package/dist/test/services/oauth2Helper.test.d.ts +1 -0
- package/dist/test/services/oauth2Helper.test.js +85 -0
- package/oclif.manifest.json +423 -0
- package/package.json +98 -0
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.55.1",
|
|
3
|
+
"commands": {
|
|
4
|
+
"activity": {
|
|
5
|
+
"id": "activity",
|
|
6
|
+
"description": "Show the activity associated with your integration",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@unito/integration-cli",
|
|
9
|
+
"pluginAlias": "@unito/integration-cli",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"examples": [
|
|
13
|
+
"<%= config.bin %> <%= command.id %>"
|
|
14
|
+
],
|
|
15
|
+
"flags": {
|
|
16
|
+
"number": {
|
|
17
|
+
"name": "number",
|
|
18
|
+
"type": "option",
|
|
19
|
+
"char": "n",
|
|
20
|
+
"summary": "number of events to show",
|
|
21
|
+
"description": "Limit the number of events to show. Must be less than or equal to 1000. Default is 1000.\n\n Usage: <%= config.bin %> <%= command.id %> --number=10",
|
|
22
|
+
"multiple": false
|
|
23
|
+
},
|
|
24
|
+
"environment": {
|
|
25
|
+
"name": "environment",
|
|
26
|
+
"type": "option",
|
|
27
|
+
"description": "the environment of the platform",
|
|
28
|
+
"multiple": false,
|
|
29
|
+
"options": [
|
|
30
|
+
"local",
|
|
31
|
+
"staging",
|
|
32
|
+
"production"
|
|
33
|
+
],
|
|
34
|
+
"default": "production"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"args": {}
|
|
38
|
+
},
|
|
39
|
+
"dev": {
|
|
40
|
+
"id": "dev",
|
|
41
|
+
"description": "Develop your integration",
|
|
42
|
+
"strict": true,
|
|
43
|
+
"pluginName": "@unito/integration-cli",
|
|
44
|
+
"pluginAlias": "@unito/integration-cli",
|
|
45
|
+
"pluginType": "core",
|
|
46
|
+
"aliases": [],
|
|
47
|
+
"examples": [
|
|
48
|
+
"<%= config.bin %> <%= command.id %>"
|
|
49
|
+
],
|
|
50
|
+
"flags": {
|
|
51
|
+
"environment": {
|
|
52
|
+
"name": "environment",
|
|
53
|
+
"type": "option",
|
|
54
|
+
"description": "the environment of the platform",
|
|
55
|
+
"multiple": false,
|
|
56
|
+
"options": [
|
|
57
|
+
"local",
|
|
58
|
+
"staging",
|
|
59
|
+
"production"
|
|
60
|
+
],
|
|
61
|
+
"default": "production"
|
|
62
|
+
},
|
|
63
|
+
"verbose": {
|
|
64
|
+
"name": "verbose",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "output more (debug) information",
|
|
67
|
+
"allowNo": false
|
|
68
|
+
},
|
|
69
|
+
"crawlMode": {
|
|
70
|
+
"name": "crawlMode",
|
|
71
|
+
"type": "option",
|
|
72
|
+
"description": "mode to use while crawling the integration graph",
|
|
73
|
+
"multiple": false,
|
|
74
|
+
"options": [
|
|
75
|
+
"full",
|
|
76
|
+
"sample",
|
|
77
|
+
"single"
|
|
78
|
+
],
|
|
79
|
+
"default": "full"
|
|
80
|
+
},
|
|
81
|
+
"checks": {
|
|
82
|
+
"name": "checks",
|
|
83
|
+
"type": "option",
|
|
84
|
+
"description": "checks to perform while crawling the integration graph",
|
|
85
|
+
"multiple": true,
|
|
86
|
+
"default": []
|
|
87
|
+
},
|
|
88
|
+
"config-path": {
|
|
89
|
+
"name": "config-path",
|
|
90
|
+
"type": "option",
|
|
91
|
+
"summary": "relative path to a custom \".unito.json\" file",
|
|
92
|
+
"description": "Use a custom configuration file instead of the default '.unito.json' or other environment specific\n ones.\n\n If you want to force the CLI to use a specific configuration file, you can use this flag to specify the relative\n path from your integration's root folder (with a leading '/').\n\n Usage: <%= config.bin %> <%= command.id %> --config-path=/myCustomConfig.json",
|
|
93
|
+
"multiple": false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"args": {}
|
|
97
|
+
},
|
|
98
|
+
"encrypt": {
|
|
99
|
+
"id": "encrypt",
|
|
100
|
+
"description": "Encrypt data",
|
|
101
|
+
"strict": true,
|
|
102
|
+
"pluginName": "@unito/integration-cli",
|
|
103
|
+
"pluginAlias": "@unito/integration-cli",
|
|
104
|
+
"pluginType": "core",
|
|
105
|
+
"aliases": [],
|
|
106
|
+
"examples": [
|
|
107
|
+
"<%= config.bin %> <%= command.id %>"
|
|
108
|
+
],
|
|
109
|
+
"flags": {
|
|
110
|
+
"environment": {
|
|
111
|
+
"name": "environment",
|
|
112
|
+
"type": "option",
|
|
113
|
+
"description": "the environment of the platform",
|
|
114
|
+
"multiple": false,
|
|
115
|
+
"options": [
|
|
116
|
+
"local",
|
|
117
|
+
"staging",
|
|
118
|
+
"production"
|
|
119
|
+
],
|
|
120
|
+
"default": "production"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"args": {}
|
|
124
|
+
},
|
|
125
|
+
"init": {
|
|
126
|
+
"id": "init",
|
|
127
|
+
"description": "Initialize a new integration",
|
|
128
|
+
"strict": true,
|
|
129
|
+
"pluginName": "@unito/integration-cli",
|
|
130
|
+
"pluginAlias": "@unito/integration-cli",
|
|
131
|
+
"pluginType": "core",
|
|
132
|
+
"aliases": [],
|
|
133
|
+
"examples": [
|
|
134
|
+
"<%= config.bin %> <%= command.id %>",
|
|
135
|
+
"<%= config.bin %> <%= command.id %> --name pokemon"
|
|
136
|
+
],
|
|
137
|
+
"flags": {
|
|
138
|
+
"name": {
|
|
139
|
+
"name": "name",
|
|
140
|
+
"type": "option",
|
|
141
|
+
"char": "n",
|
|
142
|
+
"description": "Name of the integration",
|
|
143
|
+
"multiple": false
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"args": {}
|
|
147
|
+
},
|
|
148
|
+
"invite": {
|
|
149
|
+
"id": "invite",
|
|
150
|
+
"description": "Invite a user to become a developer of your integration",
|
|
151
|
+
"strict": true,
|
|
152
|
+
"pluginName": "@unito/integration-cli",
|
|
153
|
+
"pluginAlias": "@unito/integration-cli",
|
|
154
|
+
"pluginType": "core",
|
|
155
|
+
"aliases": [],
|
|
156
|
+
"examples": [
|
|
157
|
+
"<%= config.bin %> <%= command.id %>"
|
|
158
|
+
],
|
|
159
|
+
"flags": {
|
|
160
|
+
"environment": {
|
|
161
|
+
"name": "environment",
|
|
162
|
+
"type": "option",
|
|
163
|
+
"description": "the environment of the platform",
|
|
164
|
+
"multiple": false,
|
|
165
|
+
"options": [
|
|
166
|
+
"local",
|
|
167
|
+
"staging",
|
|
168
|
+
"production"
|
|
169
|
+
],
|
|
170
|
+
"default": "production"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"args": {}
|
|
174
|
+
},
|
|
175
|
+
"login": {
|
|
176
|
+
"id": "login",
|
|
177
|
+
"description": "Login to the Integrations Platform",
|
|
178
|
+
"strict": true,
|
|
179
|
+
"pluginName": "@unito/integration-cli",
|
|
180
|
+
"pluginAlias": "@unito/integration-cli",
|
|
181
|
+
"pluginType": "core",
|
|
182
|
+
"aliases": [],
|
|
183
|
+
"examples": [
|
|
184
|
+
"<%= config.bin %> <%= command.id %>"
|
|
185
|
+
],
|
|
186
|
+
"flags": {
|
|
187
|
+
"environment": {
|
|
188
|
+
"name": "environment",
|
|
189
|
+
"type": "option",
|
|
190
|
+
"description": "the environment of the platform",
|
|
191
|
+
"multiple": false,
|
|
192
|
+
"options": [
|
|
193
|
+
"local",
|
|
194
|
+
"staging",
|
|
195
|
+
"production"
|
|
196
|
+
],
|
|
197
|
+
"default": "production"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"args": {}
|
|
201
|
+
},
|
|
202
|
+
"oauth2": {
|
|
203
|
+
"id": "oauth2",
|
|
204
|
+
"description": "Perform an OAuth2 workflow locally",
|
|
205
|
+
"strict": true,
|
|
206
|
+
"pluginName": "@unito/integration-cli",
|
|
207
|
+
"pluginAlias": "@unito/integration-cli",
|
|
208
|
+
"pluginType": "core",
|
|
209
|
+
"aliases": [],
|
|
210
|
+
"examples": [
|
|
211
|
+
"<%= config.bin %> <%= command.id %>"
|
|
212
|
+
],
|
|
213
|
+
"flags": {
|
|
214
|
+
"accountName": {
|
|
215
|
+
"name": "accountName",
|
|
216
|
+
"type": "option",
|
|
217
|
+
"description": "Name of the account used to perfom oauth2 actions",
|
|
218
|
+
"multiple": false
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"args": {}
|
|
222
|
+
},
|
|
223
|
+
"publish": {
|
|
224
|
+
"id": "publish",
|
|
225
|
+
"description": "Publish your integration",
|
|
226
|
+
"strict": true,
|
|
227
|
+
"pluginName": "@unito/integration-cli",
|
|
228
|
+
"pluginAlias": "@unito/integration-cli",
|
|
229
|
+
"pluginType": "core",
|
|
230
|
+
"aliases": [],
|
|
231
|
+
"examples": [
|
|
232
|
+
"<%= config.bin %> <%= command.id %>"
|
|
233
|
+
],
|
|
234
|
+
"flags": {
|
|
235
|
+
"environment": {
|
|
236
|
+
"name": "environment",
|
|
237
|
+
"type": "option",
|
|
238
|
+
"description": "the environment of the platform",
|
|
239
|
+
"multiple": false,
|
|
240
|
+
"options": [
|
|
241
|
+
"local",
|
|
242
|
+
"staging",
|
|
243
|
+
"production"
|
|
244
|
+
],
|
|
245
|
+
"default": "production"
|
|
246
|
+
},
|
|
247
|
+
"registry-only": {
|
|
248
|
+
"name": "registry-only",
|
|
249
|
+
"type": "boolean",
|
|
250
|
+
"description": "(advanced) only update the registry",
|
|
251
|
+
"hidden": true,
|
|
252
|
+
"allowNo": false,
|
|
253
|
+
"exclusive": [
|
|
254
|
+
"preview",
|
|
255
|
+
"live-preview"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"preview": {
|
|
259
|
+
"name": "preview",
|
|
260
|
+
"type": "boolean",
|
|
261
|
+
"description": "preview the integration - your integration will run and be privately accessible on the target environment",
|
|
262
|
+
"allowNo": false,
|
|
263
|
+
"exclusive": [
|
|
264
|
+
"registry-only",
|
|
265
|
+
"live-preview"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"live-preview": {
|
|
269
|
+
"name": "live-preview",
|
|
270
|
+
"type": "boolean",
|
|
271
|
+
"description": "live-preview the integration - Useful to iterate quickly during development, your integration runs locally and is privately accessible on the target environment",
|
|
272
|
+
"allowNo": false,
|
|
273
|
+
"exclusive": [
|
|
274
|
+
"registry-only",
|
|
275
|
+
"preview"
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
"config-path": {
|
|
279
|
+
"name": "config-path",
|
|
280
|
+
"type": "option",
|
|
281
|
+
"summary": "relative path to a custom \".unito.json\" file",
|
|
282
|
+
"description": "Use a custom configuration file instead of the default '.unito.json' or other environment specific\n ones.\n\n If you want to force the CLI to use a specific configuration file, you can use this flag to specify the relative\n path from your integration's root folder (with a leading '/').\n\n Usage: <%= config.bin %> <%= command.id %> --config-path=/myCustomConfig.json",
|
|
283
|
+
"multiple": false
|
|
284
|
+
},
|
|
285
|
+
"force": {
|
|
286
|
+
"name": "force",
|
|
287
|
+
"type": "boolean",
|
|
288
|
+
"description": "bypass the confirmation prompt and force the command to run - this is useful for CI/CD pipelines",
|
|
289
|
+
"hidden": true,
|
|
290
|
+
"allowNo": false
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"args": {}
|
|
294
|
+
},
|
|
295
|
+
"test": {
|
|
296
|
+
"id": "test",
|
|
297
|
+
"description": "Test your integration",
|
|
298
|
+
"strict": true,
|
|
299
|
+
"pluginName": "@unito/integration-cli",
|
|
300
|
+
"pluginAlias": "@unito/integration-cli",
|
|
301
|
+
"pluginType": "core",
|
|
302
|
+
"aliases": [],
|
|
303
|
+
"examples": [
|
|
304
|
+
"<%= config.bin %> <%= command.id %>"
|
|
305
|
+
],
|
|
306
|
+
"flags": {
|
|
307
|
+
"environment": {
|
|
308
|
+
"name": "environment",
|
|
309
|
+
"type": "option",
|
|
310
|
+
"description": "the environment of the platform",
|
|
311
|
+
"multiple": false,
|
|
312
|
+
"options": [
|
|
313
|
+
"local",
|
|
314
|
+
"staging",
|
|
315
|
+
"production"
|
|
316
|
+
],
|
|
317
|
+
"default": "production"
|
|
318
|
+
},
|
|
319
|
+
"verbose": {
|
|
320
|
+
"name": "verbose",
|
|
321
|
+
"type": "boolean",
|
|
322
|
+
"description": "output more (debug) information",
|
|
323
|
+
"allowNo": false
|
|
324
|
+
},
|
|
325
|
+
"starting-path": {
|
|
326
|
+
"name": "starting-path",
|
|
327
|
+
"type": "option",
|
|
328
|
+
"description": "starting path of the crawler",
|
|
329
|
+
"multiple": false,
|
|
330
|
+
"default": "/"
|
|
331
|
+
},
|
|
332
|
+
"starting-operation": {
|
|
333
|
+
"name": "starting-operation",
|
|
334
|
+
"type": "option",
|
|
335
|
+
"description": "starting operation of the crawler",
|
|
336
|
+
"multiple": false,
|
|
337
|
+
"options": [
|
|
338
|
+
"getCollection",
|
|
339
|
+
"getItem",
|
|
340
|
+
"createItem",
|
|
341
|
+
"updateItem",
|
|
342
|
+
"deleteItem",
|
|
343
|
+
"subscribeWebhook",
|
|
344
|
+
"unsubscribeWebhook",
|
|
345
|
+
"getCredentialAccount"
|
|
346
|
+
],
|
|
347
|
+
"default": "getItem"
|
|
348
|
+
},
|
|
349
|
+
"output-path": {
|
|
350
|
+
"name": "output-path",
|
|
351
|
+
"type": "option",
|
|
352
|
+
"description": "output report in JSON format at the specified path",
|
|
353
|
+
"multiple": false
|
|
354
|
+
},
|
|
355
|
+
"credential-payload": {
|
|
356
|
+
"name": "credential-payload",
|
|
357
|
+
"type": "option",
|
|
358
|
+
"description": "(advanced) credential to use.",
|
|
359
|
+
"multiple": false
|
|
360
|
+
},
|
|
361
|
+
"test-account": {
|
|
362
|
+
"name": "test-account",
|
|
363
|
+
"type": "option",
|
|
364
|
+
"description": "Test account to use.",
|
|
365
|
+
"multiple": false,
|
|
366
|
+
"options": [
|
|
367
|
+
"development",
|
|
368
|
+
"compliance"
|
|
369
|
+
],
|
|
370
|
+
"default": "development"
|
|
371
|
+
},
|
|
372
|
+
"crawlMode": {
|
|
373
|
+
"name": "crawlMode",
|
|
374
|
+
"type": "option",
|
|
375
|
+
"description": "mode to use while crawling the integration graph",
|
|
376
|
+
"multiple": false,
|
|
377
|
+
"options": [
|
|
378
|
+
"full",
|
|
379
|
+
"sample",
|
|
380
|
+
"single"
|
|
381
|
+
],
|
|
382
|
+
"default": "full"
|
|
383
|
+
},
|
|
384
|
+
"checks": {
|
|
385
|
+
"name": "checks",
|
|
386
|
+
"type": "option",
|
|
387
|
+
"description": "checks to perform while crawling the integration graph",
|
|
388
|
+
"multiple": true,
|
|
389
|
+
"default": []
|
|
390
|
+
},
|
|
391
|
+
"debug": {
|
|
392
|
+
"name": "debug",
|
|
393
|
+
"type": "boolean",
|
|
394
|
+
"description": "Log launch command to console before running it - including decrypted values - for debugging only",
|
|
395
|
+
"hidden": true,
|
|
396
|
+
"allowNo": false
|
|
397
|
+
},
|
|
398
|
+
"config-path": {
|
|
399
|
+
"name": "config-path",
|
|
400
|
+
"type": "option",
|
|
401
|
+
"summary": "relative path to a custom \".unito.json\" file",
|
|
402
|
+
"description": "Use a custom configuration file instead of the default '.unito.json' or other environment specific\n ones.\n\n If you want to force the CLI to use a specific configuration file, you can use this flag to specify the relative\n path from your integration's root folder (with a leading '/').\n\n Usage: <%= config.bin %> <%= command.id %> --config-path=/myCustomConfig.json",
|
|
403
|
+
"multiple": false
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"args": {}
|
|
407
|
+
},
|
|
408
|
+
"upgrade": {
|
|
409
|
+
"id": "upgrade",
|
|
410
|
+
"description": "Upgrade the CLI",
|
|
411
|
+
"strict": true,
|
|
412
|
+
"pluginName": "@unito/integration-cli",
|
|
413
|
+
"pluginAlias": "@unito/integration-cli",
|
|
414
|
+
"pluginType": "core",
|
|
415
|
+
"aliases": [],
|
|
416
|
+
"examples": [
|
|
417
|
+
"<%= config.bin %> <%= command.id %>"
|
|
418
|
+
],
|
|
419
|
+
"flags": {},
|
|
420
|
+
"args": {}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unito/integration-cli",
|
|
3
|
+
"version": "0.55.1",
|
|
4
|
+
"description": "Integration CLI",
|
|
5
|
+
"bin": {
|
|
6
|
+
"integration-cli": "./bin/run"
|
|
7
|
+
},
|
|
8
|
+
"license": "LicenseRef-LICENSE",
|
|
9
|
+
"main": "dist/src/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Unito",
|
|
13
|
+
"email": "hello@unito.io"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=18.0.0"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepublishOnly": "npm run lint && npm run test",
|
|
20
|
+
"prepack": "oclif manifest",
|
|
21
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
22
|
+
"prepare": "npm run compile",
|
|
23
|
+
"lint": "eslint --fix src test scripts integrationGenerator/src integrationGenerator/test --ext .ts && prettier --write src test scripts integrationGenerator/src integrationGenerator/test",
|
|
24
|
+
"compile": "ts-node scripts/generateTypes.ts > src/configurationTypes.ts && tsc -b && mkdir -p dist/schemas && cp schemas/*.json dist/schemas/ && cp -r integrationGenerator/integrationBoilerplate ./dist/integrationGenerator/integrationBoilerplate",
|
|
25
|
+
"compile:watch": "tsc --build -w",
|
|
26
|
+
"test": "mocha $(find test -name '*.test.ts') $(find integrationGenerator/test -name '*.test.ts')",
|
|
27
|
+
"test:debug": "mocha test/**/*.test.ts integrationGenerator/test/**/*.test.ts --inspect-brk",
|
|
28
|
+
"ci:test": "nyc npm run test"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"/bin",
|
|
32
|
+
"/dist",
|
|
33
|
+
"/npm-shrinkwrap.json",
|
|
34
|
+
"/oclif.manifest.json",
|
|
35
|
+
"!/bin/dev*"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@oclif/core": "2.x",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "6.x",
|
|
40
|
+
"@typescript-eslint/parser": "6.13.x",
|
|
41
|
+
"@unito/integration-debugger": "0.22.7",
|
|
42
|
+
"@unito/integrations-platform-client": "0.44.4",
|
|
43
|
+
"ajv": "8.x",
|
|
44
|
+
"ajv-formats": "2.x",
|
|
45
|
+
"better-ajv-errors": "1.x",
|
|
46
|
+
"chalk": "4.x",
|
|
47
|
+
"cors": "2.x",
|
|
48
|
+
"eslint": "8.x",
|
|
49
|
+
"express": "5.0.0-beta.1",
|
|
50
|
+
"gradient-string": "2.x",
|
|
51
|
+
"inquirer": "8.x",
|
|
52
|
+
"json-colorizer": "2.x",
|
|
53
|
+
"ngrok": "5.0.0-beta.2",
|
|
54
|
+
"openurl": "1.x",
|
|
55
|
+
"prettier": "3.x",
|
|
56
|
+
"tmp": "0.x"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@oclif/test": "2.x",
|
|
60
|
+
"@types/chai": "4.x",
|
|
61
|
+
"@types/chai-as-promised": "7.x",
|
|
62
|
+
"@types/cors": "2.x",
|
|
63
|
+
"@types/express": "4.x",
|
|
64
|
+
"@types/gradient-string": "1.x",
|
|
65
|
+
"@types/inquirer": "9.x",
|
|
66
|
+
"@types/mocha": "10.x",
|
|
67
|
+
"@types/node": "18.x",
|
|
68
|
+
"@types/openurl": "1.x",
|
|
69
|
+
"@types/tmp": "0.x",
|
|
70
|
+
"chai": "4.x",
|
|
71
|
+
"chai-as-promised": "7.x",
|
|
72
|
+
"json-schema-to-typescript": "13.x",
|
|
73
|
+
"mocha": "10.x",
|
|
74
|
+
"nyc": "15.x",
|
|
75
|
+
"oclif": "3.x",
|
|
76
|
+
"shx": "0.x",
|
|
77
|
+
"sinon": "16.x",
|
|
78
|
+
"tslib": "2.x",
|
|
79
|
+
"typescript": "5.x"
|
|
80
|
+
},
|
|
81
|
+
"oclif": {
|
|
82
|
+
"bin": "integration-cli",
|
|
83
|
+
"dirname": "integrationcli",
|
|
84
|
+
"commands": "./dist/src/commands",
|
|
85
|
+
"hooks": {
|
|
86
|
+
"init": "./dist/src/hooks/init/displayLogo"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"keywords": [
|
|
90
|
+
"typescript",
|
|
91
|
+
"unito",
|
|
92
|
+
"unitoio",
|
|
93
|
+
"unitoinc",
|
|
94
|
+
"sync",
|
|
95
|
+
"integrations",
|
|
96
|
+
"connectors"
|
|
97
|
+
]
|
|
98
|
+
}
|