@unito/integration-cli 0.63.3 → 0.64.3
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/dist/boilerplate/package-lock.json +458 -458
- package/dist/src/commands/dev.d.ts +2 -1
- package/dist/src/commands/dev.js +7 -3
- package/dist/src/commands/init.js +4 -4
- package/dist/src/commands/login.js +1 -0
- package/dist/src/commands/oauth2.js +1 -1
- package/dist/src/commands/test.js +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/resources/credentials.d.ts +1 -1
- package/dist/src/resources/oauth2.d.ts +1 -1
- package/dist/src/resources/oauth2.js +2 -2
- package/dist/src/services/integrationsPlatform.d.ts +1 -1
- package/dist/src/services/integrationsPlatformClient.d.ts +26 -10
- package/dist/src/services/integrationsPlatformClient.js +27 -4
- package/dist/src/services/oauth2.js +1 -1
- package/dist/test/commands/oauth2.test.js +66 -0
- package/dist/test/resources/oauth2.test.js +28 -0
- package/dist/test/services/oauth2.test.js +37 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/oclif.manifest.json +418 -226
- package/package.json +5 -8
package/oclif.manifest.json
CHANGED
|
@@ -1,442 +1,594 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.63.3",
|
|
3
2
|
"commands": {
|
|
4
3
|
"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
4
|
"aliases": [],
|
|
12
|
-
"
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Show the activity associated with your integration",
|
|
13
7
|
"examples": [
|
|
14
8
|
"<%= config.bin %> <%= command.id %>"
|
|
15
9
|
],
|
|
16
10
|
"flags": {
|
|
11
|
+
"json": {
|
|
12
|
+
"description": "Format output as json.",
|
|
13
|
+
"helpGroup": "GLOBAL",
|
|
14
|
+
"name": "json",
|
|
15
|
+
"allowNo": false,
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
},
|
|
17
18
|
"number": {
|
|
18
|
-
"name": "number",
|
|
19
|
-
"type": "option",
|
|
20
19
|
"char": "n",
|
|
21
|
-
"summary": "number of events to show",
|
|
22
20
|
"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",
|
|
23
|
-
"
|
|
21
|
+
"name": "number",
|
|
22
|
+
"summary": "number of events to show",
|
|
23
|
+
"hasDynamicHelp": false,
|
|
24
|
+
"multiple": false,
|
|
25
|
+
"type": "option"
|
|
24
26
|
},
|
|
25
27
|
"environment": {
|
|
26
|
-
"name": "environment",
|
|
27
|
-
"type": "option",
|
|
28
28
|
"description": "the environment of the platform",
|
|
29
|
+
"name": "environment",
|
|
30
|
+
"default": "production",
|
|
31
|
+
"hasDynamicHelp": false,
|
|
29
32
|
"multiple": false,
|
|
30
33
|
"options": [
|
|
31
34
|
"local",
|
|
32
35
|
"staging",
|
|
33
36
|
"production"
|
|
34
37
|
],
|
|
35
|
-
"
|
|
38
|
+
"type": "option"
|
|
36
39
|
},
|
|
37
40
|
"follow": {
|
|
38
|
-
"name": "follow",
|
|
39
|
-
"type": "boolean",
|
|
40
41
|
"char": "f",
|
|
41
|
-
"summary": "follow the activity",
|
|
42
42
|
"description": "Follow the activity of your integration. This will keep the command running and will show new events as they are created.\n\n Usage: <%= config.bin %> <%= command.id %> --follow",
|
|
43
|
-
"
|
|
43
|
+
"name": "follow",
|
|
44
|
+
"summary": "follow the activity",
|
|
45
|
+
"allowNo": false,
|
|
46
|
+
"type": "boolean"
|
|
44
47
|
}
|
|
45
48
|
},
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"id": "dev",
|
|
50
|
-
"description": "Develop your integration",
|
|
51
|
-
"strict": true,
|
|
52
|
-
"pluginName": "@unito/integration-cli",
|
|
49
|
+
"hasDynamicHelp": false,
|
|
50
|
+
"hiddenAliases": [],
|
|
51
|
+
"id": "activity",
|
|
53
52
|
"pluginAlias": "@unito/integration-cli",
|
|
53
|
+
"pluginName": "@unito/integration-cli",
|
|
54
54
|
"pluginType": "core",
|
|
55
|
+
"strict": true,
|
|
56
|
+
"enableJsonFlag": true,
|
|
57
|
+
"isESM": false,
|
|
58
|
+
"relativePath": [
|
|
59
|
+
"dist",
|
|
60
|
+
"src",
|
|
61
|
+
"commands",
|
|
62
|
+
"activity.js"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"dev": {
|
|
55
66
|
"aliases": [],
|
|
56
|
-
"
|
|
67
|
+
"args": {},
|
|
68
|
+
"description": "Develop your integration",
|
|
57
69
|
"examples": [
|
|
58
70
|
"<%= config.bin %> <%= command.id %>"
|
|
59
71
|
],
|
|
60
72
|
"flags": {
|
|
73
|
+
"json": {
|
|
74
|
+
"description": "Format output as json.",
|
|
75
|
+
"helpGroup": "GLOBAL",
|
|
76
|
+
"name": "json",
|
|
77
|
+
"allowNo": false,
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
61
80
|
"environment": {
|
|
62
|
-
"name": "environment",
|
|
63
|
-
"type": "option",
|
|
64
81
|
"description": "the environment of the platform",
|
|
82
|
+
"name": "environment",
|
|
83
|
+
"default": "production",
|
|
84
|
+
"hasDynamicHelp": false,
|
|
65
85
|
"multiple": false,
|
|
66
86
|
"options": [
|
|
67
87
|
"local",
|
|
68
88
|
"staging",
|
|
69
89
|
"production"
|
|
70
90
|
],
|
|
71
|
-
"
|
|
91
|
+
"type": "option"
|
|
72
92
|
},
|
|
73
93
|
"verbose": {
|
|
74
|
-
"name": "verbose",
|
|
75
|
-
"type": "boolean",
|
|
76
94
|
"description": "output more (debug) information",
|
|
77
|
-
"
|
|
95
|
+
"name": "verbose",
|
|
96
|
+
"allowNo": false,
|
|
97
|
+
"type": "boolean"
|
|
78
98
|
},
|
|
79
99
|
"credential-payload": {
|
|
80
|
-
"name": "credential-payload",
|
|
81
|
-
"type": "option",
|
|
82
100
|
"description": "(advanced) credential payload to use.",
|
|
83
|
-
"multiple": false,
|
|
84
101
|
"exclusive": [
|
|
85
102
|
"credential-id"
|
|
86
|
-
]
|
|
103
|
+
],
|
|
104
|
+
"name": "credential-payload",
|
|
105
|
+
"hasDynamicHelp": false,
|
|
106
|
+
"multiple": false,
|
|
107
|
+
"type": "option"
|
|
87
108
|
},
|
|
88
109
|
"credential-id": {
|
|
89
|
-
"name": "credential-id",
|
|
90
|
-
"type": "option",
|
|
91
110
|
"description": "(advanced) credential to use.",
|
|
92
|
-
"multiple": false,
|
|
93
111
|
"exclusive": [
|
|
94
112
|
"credential-payload"
|
|
95
|
-
]
|
|
113
|
+
],
|
|
114
|
+
"name": "credential-id",
|
|
115
|
+
"hasDynamicHelp": false,
|
|
116
|
+
"multiple": false,
|
|
117
|
+
"type": "option"
|
|
96
118
|
},
|
|
97
119
|
"test-account": {
|
|
98
|
-
"name": "test-account",
|
|
99
|
-
"type": "option",
|
|
100
120
|
"description": "test account to use.",
|
|
121
|
+
"name": "test-account",
|
|
122
|
+
"default": "development",
|
|
123
|
+
"hasDynamicHelp": false,
|
|
101
124
|
"multiple": false,
|
|
102
125
|
"options": [
|
|
103
126
|
"development",
|
|
104
127
|
"compliance"
|
|
105
128
|
],
|
|
106
|
-
"
|
|
129
|
+
"type": "option"
|
|
107
130
|
},
|
|
108
131
|
"read-only": {
|
|
109
|
-
"name": "read-only",
|
|
110
|
-
"type": "boolean",
|
|
111
132
|
"description": "whether or not to only perform read operations",
|
|
112
|
-
"
|
|
133
|
+
"name": "read-only",
|
|
134
|
+
"allowNo": true,
|
|
135
|
+
"type": "boolean"
|
|
113
136
|
},
|
|
114
137
|
"timeout": {
|
|
115
|
-
"name": "timeout",
|
|
116
|
-
"type": "option",
|
|
117
138
|
"description": "timeout in seconds passed as 'X-Unito-Operation-Deadline' header to the integration. Set to 0 for no timeout.",
|
|
139
|
+
"name": "timeout",
|
|
140
|
+
"default": 0,
|
|
141
|
+
"hasDynamicHelp": false,
|
|
118
142
|
"multiple": false,
|
|
119
|
-
"
|
|
143
|
+
"type": "option"
|
|
120
144
|
},
|
|
121
145
|
"crawlMode": {
|
|
122
|
-
"name": "crawlMode",
|
|
123
|
-
"type": "option",
|
|
124
146
|
"description": "mode to use while crawling the integration graph",
|
|
147
|
+
"name": "crawlMode",
|
|
148
|
+
"default": "full",
|
|
149
|
+
"hasDynamicHelp": false,
|
|
125
150
|
"multiple": false,
|
|
126
151
|
"options": [
|
|
127
152
|
"full",
|
|
128
153
|
"sample",
|
|
129
154
|
"single"
|
|
130
155
|
],
|
|
131
|
-
"
|
|
156
|
+
"type": "option"
|
|
132
157
|
},
|
|
133
158
|
"checks": {
|
|
134
|
-
"name": "checks",
|
|
135
|
-
"type": "option",
|
|
136
159
|
"description": "checks to perform while crawling the integration graph",
|
|
160
|
+
"name": "checks",
|
|
161
|
+
"default": [],
|
|
162
|
+
"hasDynamicHelp": false,
|
|
137
163
|
"multiple": true,
|
|
138
|
-
"
|
|
164
|
+
"type": "option"
|
|
139
165
|
},
|
|
140
166
|
"config-path": {
|
|
167
|
+
"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",
|
|
141
168
|
"name": "config-path",
|
|
142
|
-
"type": "option",
|
|
143
169
|
"summary": "relative path to a custom \".unito.json\" file",
|
|
144
|
-
"
|
|
145
|
-
"multiple": false
|
|
170
|
+
"hasDynamicHelp": false,
|
|
171
|
+
"multiple": false,
|
|
172
|
+
"type": "option"
|
|
146
173
|
},
|
|
147
174
|
"skip-install": {
|
|
148
|
-
"name": "skip-install",
|
|
149
|
-
"type": "boolean",
|
|
150
175
|
"description": "whether or not to run npm install before starting the integration",
|
|
151
|
-
"
|
|
176
|
+
"name": "skip-install",
|
|
177
|
+
"allowNo": true,
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
},
|
|
180
|
+
"port": {
|
|
181
|
+
"description": "port to run the integration on",
|
|
182
|
+
"name": "port",
|
|
183
|
+
"default": 9200,
|
|
184
|
+
"hasDynamicHelp": false,
|
|
185
|
+
"multiple": false,
|
|
186
|
+
"type": "option"
|
|
152
187
|
}
|
|
153
188
|
},
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"id": "encrypt",
|
|
158
|
-
"description": "Encrypt data",
|
|
159
|
-
"strict": true,
|
|
160
|
-
"pluginName": "@unito/integration-cli",
|
|
189
|
+
"hasDynamicHelp": false,
|
|
190
|
+
"hiddenAliases": [],
|
|
191
|
+
"id": "dev",
|
|
161
192
|
"pluginAlias": "@unito/integration-cli",
|
|
193
|
+
"pluginName": "@unito/integration-cli",
|
|
162
194
|
"pluginType": "core",
|
|
195
|
+
"strict": true,
|
|
196
|
+
"enableJsonFlag": true,
|
|
197
|
+
"isESM": false,
|
|
198
|
+
"relativePath": [
|
|
199
|
+
"dist",
|
|
200
|
+
"src",
|
|
201
|
+
"commands",
|
|
202
|
+
"dev.js"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"encrypt": {
|
|
163
206
|
"aliases": [],
|
|
164
|
-
"
|
|
207
|
+
"args": {},
|
|
208
|
+
"description": "Encrypt data",
|
|
165
209
|
"examples": [
|
|
166
210
|
"<%= config.bin %> <%= command.id %>"
|
|
167
211
|
],
|
|
168
212
|
"flags": {
|
|
213
|
+
"json": {
|
|
214
|
+
"description": "Format output as json.",
|
|
215
|
+
"helpGroup": "GLOBAL",
|
|
216
|
+
"name": "json",
|
|
217
|
+
"allowNo": false,
|
|
218
|
+
"type": "boolean"
|
|
219
|
+
},
|
|
169
220
|
"environment": {
|
|
170
|
-
"name": "environment",
|
|
171
|
-
"type": "option",
|
|
172
221
|
"description": "the environment of the platform",
|
|
222
|
+
"name": "environment",
|
|
223
|
+
"default": "production",
|
|
224
|
+
"hasDynamicHelp": false,
|
|
173
225
|
"multiple": false,
|
|
174
226
|
"options": [
|
|
175
227
|
"local",
|
|
176
228
|
"staging",
|
|
177
229
|
"production"
|
|
178
230
|
],
|
|
179
|
-
"
|
|
231
|
+
"type": "option"
|
|
180
232
|
},
|
|
181
233
|
"sensitive": {
|
|
182
|
-
"name": "sensitive",
|
|
183
|
-
"type": "boolean",
|
|
184
234
|
"description": "once encrypted, sensitive data cannot be decrypted",
|
|
185
|
-
"
|
|
235
|
+
"name": "sensitive",
|
|
236
|
+
"allowNo": false,
|
|
237
|
+
"type": "boolean"
|
|
186
238
|
}
|
|
187
239
|
},
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"id": "init",
|
|
192
|
-
"description": "Initialize a new integration",
|
|
193
|
-
"strict": true,
|
|
194
|
-
"pluginName": "@unito/integration-cli",
|
|
240
|
+
"hasDynamicHelp": false,
|
|
241
|
+
"hiddenAliases": [],
|
|
242
|
+
"id": "encrypt",
|
|
195
243
|
"pluginAlias": "@unito/integration-cli",
|
|
244
|
+
"pluginName": "@unito/integration-cli",
|
|
196
245
|
"pluginType": "core",
|
|
246
|
+
"strict": true,
|
|
247
|
+
"enableJsonFlag": true,
|
|
248
|
+
"isESM": false,
|
|
249
|
+
"relativePath": [
|
|
250
|
+
"dist",
|
|
251
|
+
"src",
|
|
252
|
+
"commands",
|
|
253
|
+
"encrypt.js"
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"init": {
|
|
197
257
|
"aliases": [],
|
|
198
|
-
"
|
|
258
|
+
"args": {},
|
|
259
|
+
"description": "Initialize a new integration",
|
|
199
260
|
"examples": [
|
|
200
261
|
"<%= config.bin %> <%= command.id %>",
|
|
201
262
|
"<%= config.bin %> <%= command.id %> --name pokemon"
|
|
202
263
|
],
|
|
203
264
|
"flags": {
|
|
265
|
+
"json": {
|
|
266
|
+
"description": "Format output as json.",
|
|
267
|
+
"helpGroup": "GLOBAL",
|
|
268
|
+
"name": "json",
|
|
269
|
+
"allowNo": false,
|
|
270
|
+
"type": "boolean"
|
|
271
|
+
},
|
|
204
272
|
"name": {
|
|
205
|
-
"name": "name",
|
|
206
|
-
"type": "option",
|
|
207
273
|
"char": "n",
|
|
208
274
|
"description": "Name of the integration",
|
|
209
|
-
"
|
|
275
|
+
"name": "name",
|
|
276
|
+
"hasDynamicHelp": false,
|
|
277
|
+
"multiple": false,
|
|
278
|
+
"type": "option"
|
|
210
279
|
}
|
|
211
280
|
},
|
|
212
|
-
"
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"id": "invite",
|
|
216
|
-
"description": "Invite a user to become a developer of your integration",
|
|
217
|
-
"strict": true,
|
|
218
|
-
"pluginName": "@unito/integration-cli",
|
|
281
|
+
"hasDynamicHelp": false,
|
|
282
|
+
"hiddenAliases": [],
|
|
283
|
+
"id": "init",
|
|
219
284
|
"pluginAlias": "@unito/integration-cli",
|
|
285
|
+
"pluginName": "@unito/integration-cli",
|
|
220
286
|
"pluginType": "core",
|
|
287
|
+
"strict": true,
|
|
288
|
+
"enableJsonFlag": true,
|
|
289
|
+
"isESM": false,
|
|
290
|
+
"relativePath": [
|
|
291
|
+
"dist",
|
|
292
|
+
"src",
|
|
293
|
+
"commands",
|
|
294
|
+
"init.js"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
"invite": {
|
|
221
298
|
"aliases": [],
|
|
222
|
-
"
|
|
299
|
+
"args": {},
|
|
300
|
+
"description": "Invite a user to become a developer of your integration",
|
|
223
301
|
"examples": [
|
|
224
302
|
"<%= config.bin %> <%= command.id %>"
|
|
225
303
|
],
|
|
226
304
|
"flags": {
|
|
305
|
+
"json": {
|
|
306
|
+
"description": "Format output as json.",
|
|
307
|
+
"helpGroup": "GLOBAL",
|
|
308
|
+
"name": "json",
|
|
309
|
+
"allowNo": false,
|
|
310
|
+
"type": "boolean"
|
|
311
|
+
},
|
|
227
312
|
"environment": {
|
|
228
|
-
"name": "environment",
|
|
229
|
-
"type": "option",
|
|
230
313
|
"description": "the environment of the platform",
|
|
314
|
+
"name": "environment",
|
|
315
|
+
"default": "production",
|
|
316
|
+
"hasDynamicHelp": false,
|
|
231
317
|
"multiple": false,
|
|
232
318
|
"options": [
|
|
233
319
|
"local",
|
|
234
320
|
"staging",
|
|
235
321
|
"production"
|
|
236
322
|
],
|
|
237
|
-
"
|
|
323
|
+
"type": "option"
|
|
238
324
|
}
|
|
239
325
|
},
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
"id": "login",
|
|
244
|
-
"description": "Login to the Integrations Platform",
|
|
245
|
-
"strict": true,
|
|
246
|
-
"pluginName": "@unito/integration-cli",
|
|
326
|
+
"hasDynamicHelp": false,
|
|
327
|
+
"hiddenAliases": [],
|
|
328
|
+
"id": "invite",
|
|
247
329
|
"pluginAlias": "@unito/integration-cli",
|
|
330
|
+
"pluginName": "@unito/integration-cli",
|
|
248
331
|
"pluginType": "core",
|
|
332
|
+
"strict": true,
|
|
333
|
+
"enableJsonFlag": true,
|
|
334
|
+
"isESM": false,
|
|
335
|
+
"relativePath": [
|
|
336
|
+
"dist",
|
|
337
|
+
"src",
|
|
338
|
+
"commands",
|
|
339
|
+
"invite.js"
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
"login": {
|
|
249
343
|
"aliases": [],
|
|
250
|
-
"
|
|
344
|
+
"args": {},
|
|
345
|
+
"description": "Login to the Integrations Platform",
|
|
251
346
|
"examples": [
|
|
252
347
|
"<%= config.bin %> <%= command.id %>"
|
|
253
348
|
],
|
|
254
349
|
"flags": {
|
|
350
|
+
"json": {
|
|
351
|
+
"description": "Format output as json.",
|
|
352
|
+
"helpGroup": "GLOBAL",
|
|
353
|
+
"name": "json",
|
|
354
|
+
"allowNo": false,
|
|
355
|
+
"type": "boolean"
|
|
356
|
+
},
|
|
255
357
|
"environment": {
|
|
256
|
-
"name": "environment",
|
|
257
|
-
"type": "option",
|
|
258
358
|
"description": "the environment of the platform",
|
|
359
|
+
"name": "environment",
|
|
360
|
+
"default": "production",
|
|
361
|
+
"hasDynamicHelp": false,
|
|
259
362
|
"multiple": false,
|
|
260
363
|
"options": [
|
|
261
364
|
"local",
|
|
262
365
|
"staging",
|
|
263
366
|
"production"
|
|
264
367
|
],
|
|
265
|
-
"
|
|
368
|
+
"type": "option"
|
|
266
369
|
}
|
|
267
370
|
},
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
"id": "oauth2",
|
|
272
|
-
"summary": "Perform an OAuth2 workflow to either populate or refresh a test account's credentials.",
|
|
273
|
-
"description": "The Oauth2 command allows you to perform an OAuth2 workflow to populate the specified test account's accessToken and refreshToken to be used by the 'test' and 'dev' commands.\n\n If the test-account is already populated, the command will refresh the credentials if the refresh token is available.\n If you want to force a new OAuth2 flow to change the connected account or something else, use the --reauth flag.",
|
|
274
|
-
"strict": true,
|
|
275
|
-
"pluginName": "@unito/integration-cli",
|
|
371
|
+
"hasDynamicHelp": false,
|
|
372
|
+
"hiddenAliases": [],
|
|
373
|
+
"id": "login",
|
|
276
374
|
"pluginAlias": "@unito/integration-cli",
|
|
375
|
+
"pluginName": "@unito/integration-cli",
|
|
277
376
|
"pluginType": "core",
|
|
377
|
+
"strict": true,
|
|
378
|
+
"enableJsonFlag": true,
|
|
379
|
+
"isESM": false,
|
|
380
|
+
"relativePath": [
|
|
381
|
+
"dist",
|
|
382
|
+
"src",
|
|
383
|
+
"commands",
|
|
384
|
+
"login.js"
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
"oauth2": {
|
|
278
388
|
"aliases": [],
|
|
279
|
-
"
|
|
389
|
+
"args": {},
|
|
390
|
+
"description": "The Oauth2 command allows you to perform an OAuth2 workflow to populate the specified test account's accessToken and refreshToken to be used by the 'test' and 'dev' commands.\n\n If the test-account is already populated, the command will refresh the credentials if the refresh token is available.\n If you want to force a new OAuth2 flow to change the connected account or something else, use the --reauth flag.",
|
|
280
391
|
"examples": [
|
|
281
392
|
"<%= config.bin %> <%= command.id %>",
|
|
282
393
|
"<%= config.bin %> <%= command.id %> --reauth --test-account=compliance"
|
|
283
394
|
],
|
|
284
395
|
"flags": {
|
|
285
396
|
"test-account": {
|
|
286
|
-
"name": "test-account",
|
|
287
|
-
"type": "option",
|
|
288
397
|
"description": "Test account to use.",
|
|
398
|
+
"name": "test-account",
|
|
399
|
+
"default": "development",
|
|
400
|
+
"hasDynamicHelp": false,
|
|
289
401
|
"multiple": false,
|
|
290
402
|
"options": [
|
|
291
403
|
"development",
|
|
292
404
|
"compliance"
|
|
293
405
|
],
|
|
294
|
-
"
|
|
406
|
+
"type": "option"
|
|
295
407
|
},
|
|
296
408
|
"environment": {
|
|
297
|
-
"name": "environment",
|
|
298
|
-
"type": "option",
|
|
299
409
|
"description": "the environment of the platform",
|
|
300
410
|
"hidden": true,
|
|
411
|
+
"name": "environment",
|
|
412
|
+
"default": "production",
|
|
413
|
+
"hasDynamicHelp": false,
|
|
301
414
|
"multiple": false,
|
|
302
415
|
"options": [
|
|
303
416
|
"local",
|
|
304
417
|
"staging",
|
|
305
418
|
"production"
|
|
306
419
|
],
|
|
307
|
-
"
|
|
420
|
+
"type": "option"
|
|
308
421
|
},
|
|
309
422
|
"reauth": {
|
|
310
|
-
"name": "reauth",
|
|
311
|
-
"type": "boolean",
|
|
312
423
|
"description": "triggers a new oauth2 flow to overwrite the test account's current credentials",
|
|
313
|
-
"
|
|
424
|
+
"name": "reauth",
|
|
425
|
+
"allowNo": false,
|
|
426
|
+
"type": "boolean"
|
|
314
427
|
},
|
|
315
428
|
"config-path": {
|
|
429
|
+
"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",
|
|
316
430
|
"name": "config-path",
|
|
317
|
-
"type": "option",
|
|
318
431
|
"summary": "relative path to a custom \".unito.json\" file",
|
|
319
|
-
"
|
|
320
|
-
"multiple": false
|
|
432
|
+
"hasDynamicHelp": false,
|
|
433
|
+
"multiple": false,
|
|
434
|
+
"type": "option"
|
|
321
435
|
}
|
|
322
436
|
},
|
|
323
|
-
"
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
"id": "publish",
|
|
327
|
-
"description": "Publish your integration",
|
|
328
|
-
"strict": true,
|
|
329
|
-
"pluginName": "@unito/integration-cli",
|
|
437
|
+
"hasDynamicHelp": false,
|
|
438
|
+
"hiddenAliases": [],
|
|
439
|
+
"id": "oauth2",
|
|
330
440
|
"pluginAlias": "@unito/integration-cli",
|
|
441
|
+
"pluginName": "@unito/integration-cli",
|
|
331
442
|
"pluginType": "core",
|
|
443
|
+
"strict": true,
|
|
444
|
+
"summary": "Perform an OAuth2 workflow to either populate or refresh a test account's credentials.",
|
|
445
|
+
"enableJsonFlag": false,
|
|
446
|
+
"isESM": false,
|
|
447
|
+
"relativePath": [
|
|
448
|
+
"dist",
|
|
449
|
+
"src",
|
|
450
|
+
"commands",
|
|
451
|
+
"oauth2.js"
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
"publish": {
|
|
332
455
|
"aliases": [],
|
|
333
|
-
"
|
|
456
|
+
"args": {},
|
|
457
|
+
"description": "Publish your integration",
|
|
334
458
|
"examples": [
|
|
335
459
|
"<%= config.bin %> <%= command.id %>"
|
|
336
460
|
],
|
|
337
461
|
"flags": {
|
|
462
|
+
"json": {
|
|
463
|
+
"description": "Format output as json.",
|
|
464
|
+
"helpGroup": "GLOBAL",
|
|
465
|
+
"name": "json",
|
|
466
|
+
"allowNo": false,
|
|
467
|
+
"type": "boolean"
|
|
468
|
+
},
|
|
338
469
|
"environment": {
|
|
339
|
-
"name": "environment",
|
|
340
|
-
"type": "option",
|
|
341
470
|
"description": "the environment of the platform",
|
|
471
|
+
"name": "environment",
|
|
472
|
+
"default": "production",
|
|
473
|
+
"hasDynamicHelp": false,
|
|
342
474
|
"multiple": false,
|
|
343
475
|
"options": [
|
|
344
476
|
"local",
|
|
345
477
|
"staging",
|
|
346
478
|
"production"
|
|
347
479
|
],
|
|
348
|
-
"
|
|
480
|
+
"type": "option"
|
|
349
481
|
},
|
|
350
482
|
"registry-only": {
|
|
351
|
-
"name": "registry-only",
|
|
352
|
-
"type": "boolean",
|
|
353
483
|
"description": "(advanced) only update the registry",
|
|
354
|
-
"hidden": true,
|
|
355
|
-
"allowNo": false,
|
|
356
484
|
"exclusive": [
|
|
357
485
|
"preview",
|
|
358
486
|
"live-preview"
|
|
359
|
-
]
|
|
487
|
+
],
|
|
488
|
+
"hidden": true,
|
|
489
|
+
"name": "registry-only",
|
|
490
|
+
"allowNo": false,
|
|
491
|
+
"type": "boolean"
|
|
360
492
|
},
|
|
361
493
|
"preview": {
|
|
362
|
-
"name": "preview",
|
|
363
|
-
"type": "boolean",
|
|
364
494
|
"description": "preview the integration - your integration will run and be privately accessible on the target environment",
|
|
365
|
-
"allowNo": false,
|
|
366
495
|
"exclusive": [
|
|
367
496
|
"registry-only",
|
|
368
497
|
"live-preview"
|
|
369
|
-
]
|
|
498
|
+
],
|
|
499
|
+
"name": "preview",
|
|
500
|
+
"allowNo": false,
|
|
501
|
+
"type": "boolean"
|
|
370
502
|
},
|
|
371
503
|
"live-preview": {
|
|
372
|
-
"name": "live-preview",
|
|
373
|
-
"type": "boolean",
|
|
374
504
|
"description": "live-preview the integration - Useful to iterate quickly during development, your integration runs locally and is privately accessible on the target environment",
|
|
375
|
-
"allowNo": false,
|
|
376
505
|
"exclusive": [
|
|
377
506
|
"registry-only",
|
|
378
507
|
"preview"
|
|
379
|
-
]
|
|
508
|
+
],
|
|
509
|
+
"name": "live-preview",
|
|
510
|
+
"allowNo": false,
|
|
511
|
+
"type": "boolean"
|
|
380
512
|
},
|
|
381
513
|
"config-path": {
|
|
514
|
+
"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",
|
|
382
515
|
"name": "config-path",
|
|
383
|
-
"type": "option",
|
|
384
516
|
"summary": "relative path to a custom \".unito.json\" file",
|
|
385
|
-
"
|
|
386
|
-
"multiple": false
|
|
517
|
+
"hasDynamicHelp": false,
|
|
518
|
+
"multiple": false,
|
|
519
|
+
"type": "option"
|
|
387
520
|
},
|
|
388
521
|
"force": {
|
|
389
|
-
"name": "force",
|
|
390
|
-
"type": "boolean",
|
|
391
522
|
"description": "bypass the confirmation prompt and force the command to run - this is useful for CI/CD pipelines",
|
|
392
523
|
"hidden": true,
|
|
393
|
-
"
|
|
524
|
+
"name": "force",
|
|
525
|
+
"allowNo": false,
|
|
526
|
+
"type": "boolean"
|
|
394
527
|
}
|
|
395
528
|
},
|
|
396
|
-
"
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
"id": "test",
|
|
400
|
-
"description": "Test your integration",
|
|
401
|
-
"strict": true,
|
|
402
|
-
"pluginName": "@unito/integration-cli",
|
|
529
|
+
"hasDynamicHelp": false,
|
|
530
|
+
"hiddenAliases": [],
|
|
531
|
+
"id": "publish",
|
|
403
532
|
"pluginAlias": "@unito/integration-cli",
|
|
533
|
+
"pluginName": "@unito/integration-cli",
|
|
404
534
|
"pluginType": "core",
|
|
535
|
+
"strict": true,
|
|
536
|
+
"enableJsonFlag": true,
|
|
537
|
+
"isESM": false,
|
|
538
|
+
"relativePath": [
|
|
539
|
+
"dist",
|
|
540
|
+
"src",
|
|
541
|
+
"commands",
|
|
542
|
+
"publish.js"
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
"test": {
|
|
405
546
|
"aliases": [],
|
|
406
|
-
"
|
|
547
|
+
"args": {},
|
|
548
|
+
"description": "Test your integration",
|
|
407
549
|
"examples": [
|
|
408
550
|
"<%= config.bin %> <%= command.id %>"
|
|
409
551
|
],
|
|
410
552
|
"flags": {
|
|
553
|
+
"json": {
|
|
554
|
+
"description": "Format output as json.",
|
|
555
|
+
"helpGroup": "GLOBAL",
|
|
556
|
+
"name": "json",
|
|
557
|
+
"allowNo": false,
|
|
558
|
+
"type": "boolean"
|
|
559
|
+
},
|
|
411
560
|
"environment": {
|
|
412
|
-
"name": "environment",
|
|
413
|
-
"type": "option",
|
|
414
561
|
"description": "the environment of the platform",
|
|
562
|
+
"name": "environment",
|
|
563
|
+
"default": "production",
|
|
564
|
+
"hasDynamicHelp": false,
|
|
415
565
|
"multiple": false,
|
|
416
566
|
"options": [
|
|
417
567
|
"local",
|
|
418
568
|
"staging",
|
|
419
569
|
"production"
|
|
420
570
|
],
|
|
421
|
-
"
|
|
571
|
+
"type": "option"
|
|
422
572
|
},
|
|
423
573
|
"verbose": {
|
|
424
|
-
"name": "verbose",
|
|
425
|
-
"type": "boolean",
|
|
426
574
|
"description": "output more (debug) information",
|
|
427
|
-
"
|
|
575
|
+
"name": "verbose",
|
|
576
|
+
"allowNo": false,
|
|
577
|
+
"type": "boolean"
|
|
428
578
|
},
|
|
429
579
|
"starting-path": {
|
|
430
|
-
"name": "starting-path",
|
|
431
|
-
"type": "option",
|
|
432
580
|
"description": "starting path of the crawler",
|
|
581
|
+
"name": "starting-path",
|
|
582
|
+
"default": "/",
|
|
583
|
+
"hasDynamicHelp": false,
|
|
433
584
|
"multiple": false,
|
|
434
|
-
"
|
|
585
|
+
"type": "option"
|
|
435
586
|
},
|
|
436
587
|
"starting-operation": {
|
|
437
|
-
"name": "starting-operation",
|
|
438
|
-
"type": "option",
|
|
439
588
|
"description": "starting operation of the crawler",
|
|
589
|
+
"name": "starting-operation",
|
|
590
|
+
"default": "getItem",
|
|
591
|
+
"hasDynamicHelp": false,
|
|
440
592
|
"multiple": false,
|
|
441
593
|
"options": [
|
|
442
594
|
"getCollection",
|
|
@@ -449,112 +601,152 @@
|
|
|
449
601
|
"unsubscribeWebhook",
|
|
450
602
|
"getCredentialAccount"
|
|
451
603
|
],
|
|
452
|
-
"
|
|
604
|
+
"type": "option"
|
|
453
605
|
},
|
|
454
606
|
"output-path": {
|
|
455
|
-
"name": "output-path",
|
|
456
|
-
"type": "option",
|
|
457
607
|
"description": "output report in JSON format at the specified path",
|
|
458
|
-
"
|
|
608
|
+
"name": "output-path",
|
|
609
|
+
"hasDynamicHelp": false,
|
|
610
|
+
"multiple": false,
|
|
611
|
+
"type": "option"
|
|
459
612
|
},
|
|
460
613
|
"credential-payload": {
|
|
461
|
-
"name": "credential-payload",
|
|
462
|
-
"type": "option",
|
|
463
614
|
"description": "(advanced) credential payload to use.",
|
|
464
|
-
"multiple": false,
|
|
465
615
|
"exclusive": [
|
|
466
616
|
"credential-id"
|
|
467
|
-
]
|
|
617
|
+
],
|
|
618
|
+
"name": "credential-payload",
|
|
619
|
+
"hasDynamicHelp": false,
|
|
620
|
+
"multiple": false,
|
|
621
|
+
"type": "option"
|
|
468
622
|
},
|
|
469
623
|
"credential-id": {
|
|
470
|
-
"name": "credential-id",
|
|
471
|
-
"type": "option",
|
|
472
624
|
"description": "(advanced) credential to use.",
|
|
473
|
-
"multiple": false,
|
|
474
625
|
"exclusive": [
|
|
475
626
|
"credential-payload"
|
|
476
|
-
]
|
|
627
|
+
],
|
|
628
|
+
"name": "credential-id",
|
|
629
|
+
"hasDynamicHelp": false,
|
|
630
|
+
"multiple": false,
|
|
631
|
+
"type": "option"
|
|
477
632
|
},
|
|
478
633
|
"test-account": {
|
|
479
|
-
"name": "test-account",
|
|
480
|
-
"type": "option",
|
|
481
634
|
"description": "test account to use.",
|
|
635
|
+
"name": "test-account",
|
|
636
|
+
"default": "development",
|
|
637
|
+
"hasDynamicHelp": false,
|
|
482
638
|
"multiple": false,
|
|
483
639
|
"options": [
|
|
484
640
|
"development",
|
|
485
641
|
"compliance"
|
|
486
642
|
],
|
|
487
|
-
"
|
|
643
|
+
"type": "option"
|
|
488
644
|
},
|
|
489
645
|
"read-only": {
|
|
490
|
-
"name": "read-only",
|
|
491
|
-
"type": "boolean",
|
|
492
646
|
"description": "whether or not to only perform read operations",
|
|
493
|
-
"
|
|
647
|
+
"name": "read-only",
|
|
648
|
+
"allowNo": true,
|
|
649
|
+
"type": "boolean"
|
|
494
650
|
},
|
|
495
651
|
"timeout": {
|
|
496
|
-
"name": "timeout",
|
|
497
|
-
"type": "option",
|
|
498
652
|
"description": "timeout in seconds passed as 'X-Unito-Operation-Deadline' header to the integration. Set to 0 for no timeout.",
|
|
653
|
+
"name": "timeout",
|
|
654
|
+
"default": 20,
|
|
655
|
+
"hasDynamicHelp": false,
|
|
499
656
|
"multiple": false,
|
|
500
|
-
"
|
|
657
|
+
"type": "option"
|
|
501
658
|
},
|
|
502
659
|
"crawlMode": {
|
|
503
|
-
"name": "crawlMode",
|
|
504
|
-
"type": "option",
|
|
505
660
|
"description": "mode to use while crawling the integration graph",
|
|
661
|
+
"name": "crawlMode",
|
|
662
|
+
"default": "full",
|
|
663
|
+
"hasDynamicHelp": false,
|
|
506
664
|
"multiple": false,
|
|
507
665
|
"options": [
|
|
508
666
|
"full",
|
|
509
667
|
"sample",
|
|
510
668
|
"single"
|
|
511
669
|
],
|
|
512
|
-
"
|
|
670
|
+
"type": "option"
|
|
513
671
|
},
|
|
514
672
|
"checks": {
|
|
515
|
-
"name": "checks",
|
|
516
|
-
"type": "option",
|
|
517
673
|
"description": "checks to perform while crawling the integration graph",
|
|
674
|
+
"name": "checks",
|
|
675
|
+
"default": [],
|
|
676
|
+
"hasDynamicHelp": false,
|
|
518
677
|
"multiple": true,
|
|
519
|
-
"
|
|
678
|
+
"type": "option"
|
|
520
679
|
},
|
|
521
680
|
"debug": {
|
|
522
|
-
"name": "debug",
|
|
523
|
-
"type": "boolean",
|
|
524
681
|
"description": "log launch command to console before running it - including decrypted values - for debugging only",
|
|
525
682
|
"hidden": true,
|
|
526
|
-
"
|
|
683
|
+
"name": "debug",
|
|
684
|
+
"allowNo": false,
|
|
685
|
+
"type": "boolean"
|
|
527
686
|
},
|
|
528
687
|
"config-path": {
|
|
688
|
+
"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",
|
|
529
689
|
"name": "config-path",
|
|
530
|
-
"type": "option",
|
|
531
690
|
"summary": "relative path to a custom \".unito.json\" file",
|
|
532
|
-
"
|
|
533
|
-
"multiple": false
|
|
691
|
+
"hasDynamicHelp": false,
|
|
692
|
+
"multiple": false,
|
|
693
|
+
"type": "option"
|
|
534
694
|
},
|
|
535
695
|
"skip-install": {
|
|
536
|
-
"name": "skip-install",
|
|
537
|
-
"type": "boolean",
|
|
538
696
|
"description": "whether or not to run npm install before starting the integration. Useful when npx linking modules to the integration.",
|
|
539
|
-
"
|
|
697
|
+
"name": "skip-install",
|
|
698
|
+
"allowNo": true,
|
|
699
|
+
"type": "boolean"
|
|
540
700
|
}
|
|
541
701
|
},
|
|
542
|
-
"
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
"id": "upgrade",
|
|
546
|
-
"description": "Upgrade the CLI",
|
|
547
|
-
"strict": true,
|
|
548
|
-
"pluginName": "@unito/integration-cli",
|
|
702
|
+
"hasDynamicHelp": false,
|
|
703
|
+
"hiddenAliases": [],
|
|
704
|
+
"id": "test",
|
|
549
705
|
"pluginAlias": "@unito/integration-cli",
|
|
706
|
+
"pluginName": "@unito/integration-cli",
|
|
550
707
|
"pluginType": "core",
|
|
708
|
+
"strict": true,
|
|
709
|
+
"enableJsonFlag": true,
|
|
710
|
+
"isESM": false,
|
|
711
|
+
"relativePath": [
|
|
712
|
+
"dist",
|
|
713
|
+
"src",
|
|
714
|
+
"commands",
|
|
715
|
+
"test.js"
|
|
716
|
+
]
|
|
717
|
+
},
|
|
718
|
+
"upgrade": {
|
|
551
719
|
"aliases": [],
|
|
552
|
-
"
|
|
720
|
+
"args": {},
|
|
721
|
+
"description": "Upgrade the CLI",
|
|
553
722
|
"examples": [
|
|
554
723
|
"<%= config.bin %> <%= command.id %>"
|
|
555
724
|
],
|
|
556
|
-
"flags": {
|
|
557
|
-
|
|
725
|
+
"flags": {
|
|
726
|
+
"json": {
|
|
727
|
+
"description": "Format output as json.",
|
|
728
|
+
"helpGroup": "GLOBAL",
|
|
729
|
+
"name": "json",
|
|
730
|
+
"allowNo": false,
|
|
731
|
+
"type": "boolean"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"hasDynamicHelp": false,
|
|
735
|
+
"hiddenAliases": [],
|
|
736
|
+
"id": "upgrade",
|
|
737
|
+
"pluginAlias": "@unito/integration-cli",
|
|
738
|
+
"pluginName": "@unito/integration-cli",
|
|
739
|
+
"pluginType": "core",
|
|
740
|
+
"strict": true,
|
|
741
|
+
"enableJsonFlag": true,
|
|
742
|
+
"isESM": false,
|
|
743
|
+
"relativePath": [
|
|
744
|
+
"dist",
|
|
745
|
+
"src",
|
|
746
|
+
"commands",
|
|
747
|
+
"upgrade.js"
|
|
748
|
+
]
|
|
558
749
|
}
|
|
559
|
-
}
|
|
750
|
+
},
|
|
751
|
+
"version": "0.64.3"
|
|
560
752
|
}
|