@unito/integration-cli 0.64.5 → 0.65.0
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 +11 -24
- package/dist/src/commands/graph.d.ts +21 -0
- package/dist/src/commands/graph.js +144 -0
- package/dist/src/commands/schema-snapshot.d.ts +9 -0
- package/dist/src/commands/schema-snapshot.js +425 -0
- package/dist/src/hooks/init/displayLogo.js +3 -1
- package/dist/src/resources/coverageCalculator.d.ts +12 -0
- package/dist/src/resources/coverageCalculator.js +50 -0
- package/dist/src/resources/fieldExtractor.d.ts +7 -0
- package/dist/src/resources/fieldExtractor.js +45 -0
- package/dist/src/resources/jsonlReader.d.ts +11 -0
- package/dist/src/resources/jsonlReader.js +29 -0
- package/dist/test/commands/graph.test.d.ts +1 -0
- package/dist/test/commands/graph.test.js +188 -0
- package/dist/test/resources/coverageCalculator.test.d.ts +1 -0
- package/dist/test/resources/coverageCalculator.test.js +71 -0
- package/dist/test/resources/fieldExtractor.test.d.ts +1 -0
- package/dist/test/resources/fieldExtractor.test.js +60 -0
- package/dist/test/resources/jsonlReader.test.d.ts +1 -0
- package/dist/test/resources/jsonlReader.test.js +66 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/oclif.manifest.json +214 -1
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -253,6 +253,131 @@
|
|
|
253
253
|
"encrypt.js"
|
|
254
254
|
]
|
|
255
255
|
},
|
|
256
|
+
"graph": {
|
|
257
|
+
"aliases": [],
|
|
258
|
+
"args": {
|
|
259
|
+
"operation": {
|
|
260
|
+
"default": "get",
|
|
261
|
+
"description": "Operation to perform on the graph path",
|
|
262
|
+
"name": "operation",
|
|
263
|
+
"options": [
|
|
264
|
+
"get",
|
|
265
|
+
"getItem",
|
|
266
|
+
"getCollection",
|
|
267
|
+
"createItem",
|
|
268
|
+
"updateItem",
|
|
269
|
+
"deleteItem"
|
|
270
|
+
],
|
|
271
|
+
"required": false
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"description": "Query a running integration graph and print the response",
|
|
275
|
+
"examples": [
|
|
276
|
+
"<%= config.bin %> <%= command.id %> --path=/sobjects/Opportunity/records/abc123",
|
|
277
|
+
"<%= config.bin %> <%= command.id %> get --path=/sobjects/Opportunity --port=9201"
|
|
278
|
+
],
|
|
279
|
+
"flags": {
|
|
280
|
+
"json": {
|
|
281
|
+
"description": "Format output as json.",
|
|
282
|
+
"helpGroup": "GLOBAL",
|
|
283
|
+
"name": "json",
|
|
284
|
+
"allowNo": false,
|
|
285
|
+
"type": "boolean"
|
|
286
|
+
},
|
|
287
|
+
"path": {
|
|
288
|
+
"description": "Graph path to fetch (must start with /), e.g. /sobjects/Opportunity/records/abc123",
|
|
289
|
+
"name": "path",
|
|
290
|
+
"required": true,
|
|
291
|
+
"hasDynamicHelp": false,
|
|
292
|
+
"multiple": false,
|
|
293
|
+
"type": "option"
|
|
294
|
+
},
|
|
295
|
+
"port": {
|
|
296
|
+
"description": "Port the integration is running on",
|
|
297
|
+
"name": "port",
|
|
298
|
+
"default": 9200,
|
|
299
|
+
"hasDynamicHelp": false,
|
|
300
|
+
"multiple": false,
|
|
301
|
+
"type": "option"
|
|
302
|
+
},
|
|
303
|
+
"environment": {
|
|
304
|
+
"description": "the environment of the platform",
|
|
305
|
+
"name": "environment",
|
|
306
|
+
"default": "production",
|
|
307
|
+
"hasDynamicHelp": false,
|
|
308
|
+
"multiple": false,
|
|
309
|
+
"options": [
|
|
310
|
+
"local",
|
|
311
|
+
"staging",
|
|
312
|
+
"production"
|
|
313
|
+
],
|
|
314
|
+
"type": "option"
|
|
315
|
+
},
|
|
316
|
+
"test-account": {
|
|
317
|
+
"description": "test account to use",
|
|
318
|
+
"name": "test-account",
|
|
319
|
+
"default": "development",
|
|
320
|
+
"hasDynamicHelp": false,
|
|
321
|
+
"multiple": false,
|
|
322
|
+
"options": [
|
|
323
|
+
"development",
|
|
324
|
+
"compliance"
|
|
325
|
+
],
|
|
326
|
+
"type": "option"
|
|
327
|
+
},
|
|
328
|
+
"credential-payload": {
|
|
329
|
+
"description": "(advanced) credential payload to use.",
|
|
330
|
+
"exclusive": [
|
|
331
|
+
"credential-id"
|
|
332
|
+
],
|
|
333
|
+
"name": "credential-payload",
|
|
334
|
+
"hasDynamicHelp": false,
|
|
335
|
+
"multiple": false,
|
|
336
|
+
"type": "option"
|
|
337
|
+
},
|
|
338
|
+
"credential-id": {
|
|
339
|
+
"description": "(advanced) credential to use.",
|
|
340
|
+
"exclusive": [
|
|
341
|
+
"credential-payload"
|
|
342
|
+
],
|
|
343
|
+
"name": "credential-id",
|
|
344
|
+
"hasDynamicHelp": false,
|
|
345
|
+
"multiple": false,
|
|
346
|
+
"type": "option"
|
|
347
|
+
},
|
|
348
|
+
"config-path": {
|
|
349
|
+
"description": "Use a custom configuration file instead of the default '.unito.json'.\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",
|
|
350
|
+
"name": "config-path",
|
|
351
|
+
"summary": "relative path to a custom \".unito.json\" file",
|
|
352
|
+
"hasDynamicHelp": false,
|
|
353
|
+
"multiple": false,
|
|
354
|
+
"type": "option"
|
|
355
|
+
},
|
|
356
|
+
"output": {
|
|
357
|
+
"char": "o",
|
|
358
|
+
"description": "Write response body to file instead of stdout",
|
|
359
|
+
"name": "output",
|
|
360
|
+
"hasDynamicHelp": false,
|
|
361
|
+
"multiple": false,
|
|
362
|
+
"type": "option"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"hasDynamicHelp": false,
|
|
366
|
+
"hiddenAliases": [],
|
|
367
|
+
"id": "graph",
|
|
368
|
+
"pluginAlias": "@unito/integration-cli",
|
|
369
|
+
"pluginName": "@unito/integration-cli",
|
|
370
|
+
"pluginType": "core",
|
|
371
|
+
"strict": true,
|
|
372
|
+
"enableJsonFlag": true,
|
|
373
|
+
"isESM": false,
|
|
374
|
+
"relativePath": [
|
|
375
|
+
"dist",
|
|
376
|
+
"src",
|
|
377
|
+
"commands",
|
|
378
|
+
"graph.js"
|
|
379
|
+
]
|
|
380
|
+
},
|
|
256
381
|
"init": {
|
|
257
382
|
"aliases": [],
|
|
258
383
|
"args": {},
|
|
@@ -542,6 +667,94 @@
|
|
|
542
667
|
"publish.js"
|
|
543
668
|
]
|
|
544
669
|
},
|
|
670
|
+
"schema-snapshot": {
|
|
671
|
+
"aliases": [],
|
|
672
|
+
"args": {},
|
|
673
|
+
"description": "Generate a schema snapshot by crawling the integration graph",
|
|
674
|
+
"examples": [
|
|
675
|
+
"<%= config.bin %> <%= command.id %> --output=./schema-snapshot.json",
|
|
676
|
+
"<%= config.bin %> <%= command.id %> --output=./schema-snapshot.json --diff=./previous-snapshot.json"
|
|
677
|
+
],
|
|
678
|
+
"flags": {
|
|
679
|
+
"json": {
|
|
680
|
+
"description": "Format output as json.",
|
|
681
|
+
"helpGroup": "GLOBAL",
|
|
682
|
+
"name": "json",
|
|
683
|
+
"allowNo": false,
|
|
684
|
+
"type": "boolean"
|
|
685
|
+
},
|
|
686
|
+
"output": {
|
|
687
|
+
"description": "path to write the schema snapshot",
|
|
688
|
+
"name": "output",
|
|
689
|
+
"required": true,
|
|
690
|
+
"hasDynamicHelp": false,
|
|
691
|
+
"multiple": false,
|
|
692
|
+
"type": "option"
|
|
693
|
+
},
|
|
694
|
+
"diff": {
|
|
695
|
+
"description": "path to a previous snapshot for comparison",
|
|
696
|
+
"name": "diff",
|
|
697
|
+
"hasDynamicHelp": false,
|
|
698
|
+
"multiple": false,
|
|
699
|
+
"type": "option"
|
|
700
|
+
},
|
|
701
|
+
"environment": {
|
|
702
|
+
"description": "the environment of the platform",
|
|
703
|
+
"name": "environment",
|
|
704
|
+
"default": "production",
|
|
705
|
+
"hasDynamicHelp": false,
|
|
706
|
+
"multiple": false,
|
|
707
|
+
"options": [
|
|
708
|
+
"local",
|
|
709
|
+
"staging",
|
|
710
|
+
"production"
|
|
711
|
+
],
|
|
712
|
+
"type": "option"
|
|
713
|
+
},
|
|
714
|
+
"test-account": {
|
|
715
|
+
"description": "test account to use",
|
|
716
|
+
"name": "test-account",
|
|
717
|
+
"default": "development",
|
|
718
|
+
"hasDynamicHelp": false,
|
|
719
|
+
"multiple": false,
|
|
720
|
+
"type": "option"
|
|
721
|
+
},
|
|
722
|
+
"config-path": {
|
|
723
|
+
"description": "relative path to a custom \".unito.json\" file",
|
|
724
|
+
"name": "config-path",
|
|
725
|
+
"hasDynamicHelp": false,
|
|
726
|
+
"multiple": false,
|
|
727
|
+
"type": "option"
|
|
728
|
+
},
|
|
729
|
+
"skip-install": {
|
|
730
|
+
"description": "skip npm install before starting",
|
|
731
|
+
"name": "skip-install",
|
|
732
|
+
"allowNo": false,
|
|
733
|
+
"type": "boolean"
|
|
734
|
+
},
|
|
735
|
+
"strict": {
|
|
736
|
+
"description": "fail if any fields are unmapped and not in the allowlist",
|
|
737
|
+
"name": "strict",
|
|
738
|
+
"allowNo": false,
|
|
739
|
+
"type": "boolean"
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"hasDynamicHelp": false,
|
|
743
|
+
"hiddenAliases": [],
|
|
744
|
+
"id": "schema-snapshot",
|
|
745
|
+
"pluginAlias": "@unito/integration-cli",
|
|
746
|
+
"pluginName": "@unito/integration-cli",
|
|
747
|
+
"pluginType": "core",
|
|
748
|
+
"strict": true,
|
|
749
|
+
"enableJsonFlag": true,
|
|
750
|
+
"isESM": false,
|
|
751
|
+
"relativePath": [
|
|
752
|
+
"dist",
|
|
753
|
+
"src",
|
|
754
|
+
"commands",
|
|
755
|
+
"schema-snapshot.js"
|
|
756
|
+
]
|
|
757
|
+
},
|
|
545
758
|
"test": {
|
|
546
759
|
"aliases": [],
|
|
547
760
|
"args": {},
|
|
@@ -748,5 +961,5 @@
|
|
|
748
961
|
]
|
|
749
962
|
}
|
|
750
963
|
},
|
|
751
|
-
"version": "0.
|
|
964
|
+
"version": "0.65.0"
|
|
752
965
|
}
|