@contentstack/cli-audit 1.5.0 → 1.5.2

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/README.md CHANGED
@@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
19
19
  $ csdx COMMAND
20
20
  running command...
21
21
  $ csdx (--version|-v)
22
- @contentstack/cli-audit/1.5.0 linux-x64 node-v18.19.1
22
+ @contentstack/cli-audit/1.5.2 linux-x64 node-v18.19.1
23
23
  $ csdx --help [COMMAND]
24
24
  USAGE
25
25
  $ csdx COMMAND
@@ -36,14 +36,14 @@ USAGE
36
36
  * [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
37
37
  * [`csdx help [COMMANDS]`](#csdx-help-commands)
38
38
  * [`csdx plugins`](#csdx-plugins)
39
- * [`csdx plugins:install PLUGIN...`](#csdx-pluginsinstall-plugin)
39
+ * [`csdx plugins:add PLUGIN`](#csdx-pluginsadd-plugin)
40
40
  * [`csdx plugins:inspect PLUGIN...`](#csdx-pluginsinspect-plugin)
41
- * [`csdx plugins:install PLUGIN...`](#csdx-pluginsinstall-plugin-1)
42
- * [`csdx plugins:link PLUGIN`](#csdx-pluginslink-plugin)
43
- * [`csdx plugins:uninstall PLUGIN...`](#csdx-pluginsuninstall-plugin)
41
+ * [`csdx plugins:install PLUGIN`](#csdx-pluginsinstall-plugin)
42
+ * [`csdx plugins:link PATH`](#csdx-pluginslink-path)
43
+ * [`csdx plugins:remove [PLUGIN]`](#csdx-pluginsremove-plugin)
44
44
  * [`csdx plugins:reset`](#csdx-pluginsreset)
45
- * [`csdx plugins:uninstall PLUGIN...`](#csdx-pluginsuninstall-plugin-1)
46
- * [`csdx plugins:uninstall PLUGIN...`](#csdx-pluginsuninstall-plugin-2)
45
+ * [`csdx plugins:uninstall [PLUGIN]`](#csdx-pluginsuninstall-plugin)
46
+ * [`csdx plugins:unlink [PLUGIN]`](#csdx-pluginsunlink-plugin)
47
47
  * [`csdx plugins:update`](#csdx-pluginsupdate)
48
48
 
49
49
  ## `csdx audit`
@@ -285,48 +285,53 @@ EXAMPLES
285
285
  $ csdx plugins
286
286
  ```
287
287
 
288
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/index.ts)_
288
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.0/src/commands/plugins/index.ts)_
289
289
 
290
- ## `csdx plugins:install PLUGIN...`
290
+ ## `csdx plugins:add PLUGIN`
291
291
 
292
- Installs a plugin into the CLI.
292
+ Installs a plugin into csdx.
293
293
 
294
294
  ```
295
295
  USAGE
296
- $ csdx plugins:install PLUGIN...
296
+ $ csdx plugins:add PLUGIN [--json] [-f] [-h] [-s | -v]
297
297
 
298
298
  ARGUMENTS
299
299
  PLUGIN Plugin to install.
300
300
 
301
301
  FLAGS
302
- -f, --force Run yarn install with force flag.
302
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
303
303
  -h, --help Show CLI help.
304
- -s, --silent Silences yarn output.
305
- -v, --verbose Show verbose yarn output.
304
+ -s, --silent Silences npm output.
305
+ -v, --verbose Show verbose npm output.
306
306
 
307
307
  GLOBAL FLAGS
308
308
  --json Format output as json.
309
309
 
310
310
  DESCRIPTION
311
- Installs a plugin into the CLI.
312
- Can be installed from npm or a git url.
311
+ Installs a plugin into csdx.
313
312
 
314
- Installation of a user-installed plugin will override a core plugin.
313
+ Uses bundled npm executable to install plugins into /home/runner/.local/share/@contentstack/cli-audit
315
314
 
316
- e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
317
- will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
318
- the CLI without the need to patch and update the whole CLI.
315
+ Installation of a user-installed plugin will override a core plugin.
319
316
 
317
+ Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
318
+ Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
320
319
 
321
320
  ALIASES
322
321
  $ csdx plugins:add
323
322
 
324
323
  EXAMPLES
325
- $ csdx plugins:add myplugin
324
+ Install a plugin from npm registry.
325
+
326
+ $ csdx plugins:add myplugin
327
+
328
+ Install a plugin from a github url.
329
+
330
+ $ csdx plugins:add https://github.com/someuser/someplugin
326
331
 
327
- $ csdx plugins:add https://github.com/someuser/someplugin
332
+ Install a plugin from a github slug.
328
333
 
329
- $ csdx plugins:add someuser/someplugin
334
+ $ csdx plugins:add someuser/someplugin
330
335
  ```
331
336
 
332
337
  ## `csdx plugins:inspect PLUGIN...`
@@ -354,59 +359,64 @@ EXAMPLES
354
359
  $ csdx plugins:inspect myplugin
355
360
  ```
356
361
 
357
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/inspect.ts)_
362
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.0/src/commands/plugins/inspect.ts)_
358
363
 
359
- ## `csdx plugins:install PLUGIN...`
364
+ ## `csdx plugins:install PLUGIN`
360
365
 
361
- Installs a plugin into the CLI.
366
+ Installs a plugin into csdx.
362
367
 
363
368
  ```
364
369
  USAGE
365
- $ csdx plugins:install PLUGIN...
370
+ $ csdx plugins:install PLUGIN [--json] [-f] [-h] [-s | -v]
366
371
 
367
372
  ARGUMENTS
368
373
  PLUGIN Plugin to install.
369
374
 
370
375
  FLAGS
371
- -f, --force Run yarn install with force flag.
376
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
372
377
  -h, --help Show CLI help.
373
- -s, --silent Silences yarn output.
374
- -v, --verbose Show verbose yarn output.
378
+ -s, --silent Silences npm output.
379
+ -v, --verbose Show verbose npm output.
375
380
 
376
381
  GLOBAL FLAGS
377
382
  --json Format output as json.
378
383
 
379
384
  DESCRIPTION
380
- Installs a plugin into the CLI.
381
- Can be installed from npm or a git url.
385
+ Installs a plugin into csdx.
382
386
 
383
- Installation of a user-installed plugin will override a core plugin.
387
+ Uses bundled npm executable to install plugins into /home/runner/.local/share/@contentstack/cli-audit
384
388
 
385
- e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
386
- will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
387
- the CLI without the need to patch and update the whole CLI.
389
+ Installation of a user-installed plugin will override a core plugin.
388
390
 
391
+ Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
392
+ Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
389
393
 
390
394
  ALIASES
391
395
  $ csdx plugins:add
392
396
 
393
397
  EXAMPLES
394
- $ csdx plugins:install myplugin
398
+ Install a plugin from npm registry.
399
+
400
+ $ csdx plugins:install myplugin
401
+
402
+ Install a plugin from a github url.
403
+
404
+ $ csdx plugins:install https://github.com/someuser/someplugin
395
405
 
396
- $ csdx plugins:install https://github.com/someuser/someplugin
406
+ Install a plugin from a github slug.
397
407
 
398
- $ csdx plugins:install someuser/someplugin
408
+ $ csdx plugins:install someuser/someplugin
399
409
  ```
400
410
 
401
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/install.ts)_
411
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.0/src/commands/plugins/install.ts)_
402
412
 
403
- ## `csdx plugins:link PLUGIN`
413
+ ## `csdx plugins:link PATH`
404
414
 
405
415
  Links a plugin into the CLI for development.
406
416
 
407
417
  ```
408
418
  USAGE
409
- $ csdx plugins:link PLUGIN
419
+ $ csdx plugins:link PATH [-h] [--install] [-v]
410
420
 
411
421
  ARGUMENTS
412
422
  PATH [default: .] path to plugin
@@ -428,15 +438,15 @@ EXAMPLES
428
438
  $ csdx plugins:link myplugin
429
439
  ```
430
440
 
431
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/link.ts)_
441
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.0/src/commands/plugins/link.ts)_
432
442
 
433
- ## `csdx plugins:uninstall PLUGIN...`
443
+ ## `csdx plugins:remove [PLUGIN]`
434
444
 
435
445
  Removes a plugin from the CLI.
436
446
 
437
447
  ```
438
448
  USAGE
439
- $ csdx plugins:uninstall PLUGIN...
449
+ $ csdx plugins:remove [PLUGIN] [-h] [-v]
440
450
 
441
451
  ARGUMENTS
442
452
  PLUGIN plugin to uninstall
@@ -469,15 +479,15 @@ FLAGS
469
479
  --reinstall Reinstall all plugins after uninstalling.
470
480
  ```
471
481
 
472
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/reset.ts)_
482
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.0/src/commands/plugins/reset.ts)_
473
483
 
474
- ## `csdx plugins:uninstall PLUGIN...`
484
+ ## `csdx plugins:uninstall [PLUGIN]`
475
485
 
476
486
  Removes a plugin from the CLI.
477
487
 
478
488
  ```
479
489
  USAGE
480
- $ csdx plugins:uninstall PLUGIN...
490
+ $ csdx plugins:uninstall [PLUGIN] [-h] [-v]
481
491
 
482
492
  ARGUMENTS
483
493
  PLUGIN plugin to uninstall
@@ -497,15 +507,15 @@ EXAMPLES
497
507
  $ csdx plugins:uninstall myplugin
498
508
  ```
499
509
 
500
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/uninstall.ts)_
510
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.0/src/commands/plugins/uninstall.ts)_
501
511
 
502
- ## `csdx plugins:uninstall PLUGIN...`
512
+ ## `csdx plugins:unlink [PLUGIN]`
503
513
 
504
514
  Removes a plugin from the CLI.
505
515
 
506
516
  ```
507
517
  USAGE
508
- $ csdx plugins:uninstall PLUGIN...
518
+ $ csdx plugins:unlink [PLUGIN] [-h] [-v]
509
519
 
510
520
  ARGUMENTS
511
521
  PLUGIN plugin to uninstall
@@ -541,5 +551,5 @@ DESCRIPTION
541
551
  Update installed plugins.
542
552
  ```
543
553
 
544
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/update.ts)_
554
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.0/src/commands/plugins/update.ts)_
545
555
  <!-- commandsstop -->
@@ -249,7 +249,7 @@ class AuditBaseCommand extends base_command_1.BaseCommand {
249
249
  const tableValues = Object.values(missingRefs).flat();
250
250
  const tableKeys = Object.keys(missingRefs[0]);
251
251
  const arrayOfObjects = tableKeys.map((key) => {
252
- if (['title', 'name', 'uid', 'content_types', 'fixStatus'].includes(key)) {
252
+ if (['title', 'name', 'uid', 'content_types', 'branches', 'fixStatus'].includes(key)) {
253
253
  return {
254
254
  [key]: {
255
255
  minWidth: 7,
@@ -258,7 +258,7 @@ class AuditBaseCommand extends base_command_1.BaseCommand {
258
258
  if (key === 'fixStatus') {
259
259
  return chalk_1.default.green(typeof row[key] === 'object' ? JSON.stringify(row[key]) : row[key]);
260
260
  }
261
- else if (key === 'content_types') {
261
+ else if (key === 'content_types' || key === 'branches') {
262
262
  return chalk_1.default.red(typeof row[key] === 'object' ? JSON.stringify(row[key]) : row[key]);
263
263
  }
264
264
  else {
@@ -319,14 +319,22 @@ class AuditBaseCommand extends base_command_1.BaseCommand {
319
319
  : defaultColumns;
320
320
  if (this.sharedConfig.flags.filter) {
321
321
  const [column, value] = this.sharedConfig.flags.filter.split('=');
322
- missingRefs = missingRefs.filter((row) => row[types_1.OutputColumn[column]] === value);
322
+ // Filter the missingRefs array
323
+ missingRefs = missingRefs.filter((row) => {
324
+ if (types_1.OutputColumn[column] in row) {
325
+ const rowKey = types_1.OutputColumn[column];
326
+ return row[rowKey] === value;
327
+ }
328
+ return false;
329
+ });
323
330
  }
324
331
  const rowData = [];
325
332
  for (const issue of missingRefs) {
326
333
  let row = {};
327
334
  for (const column of columns) {
328
335
  if (Object.keys(issue).includes(types_1.OutputColumn[column])) {
329
- row[column] = issue[types_1.OutputColumn[column]];
336
+ const issueKey = types_1.OutputColumn[column];
337
+ row[column] = issue[issueKey];
330
338
  row[column] = typeof row[column] === 'object' ? JSON.stringify(row[column]) : row[column];
331
339
  }
332
340
  }
@@ -14,6 +14,7 @@ declare const commonMsg: {
14
14
  WORKFLOW_FIX_CONFIRMATION: string;
15
15
  EXTENSION_FIX_WARN: string;
16
16
  EXTENSION_FIX_CONFIRMATION: string;
17
+ WF_BRANCH_REMOVAL: string;
17
18
  };
18
19
  declare const auditMsg: {
19
20
  REPORT_PATH: string;
@@ -22,6 +22,7 @@ const commonMsg = {
22
22
  WORKFLOW_FIX_CONFIRMATION: 'Would you like to overwrite existing file?',
23
23
  EXTENSION_FIX_WARN: `The extension associated with UID {uid} and title '{title}' will be removed.`,
24
24
  EXTENSION_FIX_CONFIRMATION: `Would you like to overwrite existing file?`,
25
+ WF_BRANCH_REMOVAL: `Removing the branch '{branch} from workflow with UID {uid} and name {name} will be removed.'`,
25
26
  };
26
27
  exports.commonMsg = commonMsg;
27
28
  const auditMsg = {
@@ -206,6 +206,11 @@ class Entries {
206
206
  * `tree`, `fieldStructure`, and `field`.
207
207
  */
208
208
  validateReferenceField(tree, fieldStructure, field) {
209
+ if (typeof field === 'string') {
210
+ let stringReference = field;
211
+ stringReference = stringReference.replace(/'/g, '"');
212
+ field = JSON.parse(stringReference);
213
+ }
209
214
  return this.validateReferenceValues(tree, fieldStructure, field);
210
215
  }
211
216
  /**
@@ -601,6 +606,11 @@ class Entries {
601
606
  */
602
607
  fixMissingReferences(tree, field, entry) {
603
608
  const missingRefs = [];
609
+ if (typeof entry === 'string') {
610
+ let stringReference = entry;
611
+ stringReference = stringReference.replace(/'/g, '"');
612
+ entry = JSON.parse(stringReference);
613
+ }
604
614
  entry = entry === null || entry === void 0 ? void 0 : entry.map((reference) => {
605
615
  const { uid } = reference;
606
616
  const refExist = (0, find_1.default)(this.entryMetaData, { uid });
@@ -80,6 +80,7 @@ class Extensions {
80
80
  if (this.fix &&
81
81
  (this.config.flags['copy-dir'] ||
82
82
  ((_a = this.config.flags['external-config']) === null || _a === void 0 ? void 0 : _a.skipConfirm) ||
83
+ this.config.flags.yes ||
83
84
  (await cli_utilities_1.ux.confirm(messages_1.commonMsg.FIX_CONFIRMATION)))) {
84
85
  (0, fs_1.writeFileSync)((0, path_1.join)(this.folderPath, this.config.moduleConfig[this.moduleName].fileName), JSON.stringify(fixedExtensions));
85
86
  }
@@ -13,6 +13,7 @@ export default class Workflows {
13
13
  missingCtInWorkflows: Workflow[];
14
14
  missingCts: Set<string>;
15
15
  workflowPath: string;
16
+ isBranchFixDone: boolean;
16
17
  constructor({ log, fix, config, moduleName, ctSchema, }: ModuleConstructorParam & Pick<CtConstructorParam, 'ctSchema'>);
17
18
  /**
18
19
  * Check whether the given path for the workflow exists or not
@@ -20,6 +20,7 @@ class Workflows {
20
20
  this.missingCtInWorkflows = [];
21
21
  this.missingCts = new Set();
22
22
  this.workflowPath = '';
23
+ this.isBranchFixDone = false;
23
24
  }
24
25
  /**
25
26
  * Check whether the given path for the workflow exists or not
@@ -28,6 +29,7 @@ class Workflows {
28
29
  * @returns Array of object containing the workflow name, uid and content_types that are missing
29
30
  */
30
31
  async run() {
32
+ var _a;
31
33
  if (!(0, fs_1.existsSync)(this.folderPath)) {
32
34
  this.log(`Skipping ${this.moduleName} audit`, 'warn');
33
35
  this.log((0, messages_1.$t)(messages_1.auditMsg.NOT_VALID_PATH, { path: this.folderPath }), { color: 'yellow' });
@@ -40,9 +42,16 @@ class Workflows {
40
42
  this.ctSchema.forEach((ct) => this.ctUidSet.add(ct.uid));
41
43
  for (const workflow of this.workflowSchema) {
42
44
  const ctNotPresent = workflow.content_types.filter((ct) => !this.ctUidSet.has(ct));
43
- if (ctNotPresent.length) {
45
+ const branch = (_a = workflow === null || workflow === void 0 ? void 0 : workflow.branches) === null || _a === void 0 ? void 0 : _a.filter((branch) => { var _a; return branch !== ((_a = this.config) === null || _a === void 0 ? void 0 : _a.branch); });
46
+ if (ctNotPresent.length || (branch === null || branch === void 0 ? void 0 : branch.length)) {
44
47
  const tempwf = (0, lodash_1.cloneDeep)(workflow);
45
- tempwf.content_types = ctNotPresent;
48
+ tempwf.content_types = ctNotPresent || [];
49
+ if (workflow === null || workflow === void 0 ? void 0 : workflow.branches) {
50
+ tempwf.branches = branch;
51
+ }
52
+ if (branch === null || branch === void 0 ? void 0 : branch.length) {
53
+ this.isBranchFixDone = true;
54
+ }
46
55
  ctNotPresent.forEach((ct) => this.missingCts.add(ct));
47
56
  this.missingCtInWorkflows.push(tempwf);
48
57
  }
@@ -51,19 +60,34 @@ class Workflows {
51
60
  uid: workflow.uid,
52
61
  }), 'info');
53
62
  }
54
- if (this.fix && this.missingCtInWorkflows.length) {
63
+ if (this.fix && (this.missingCtInWorkflows.length || this.isBranchFixDone)) {
55
64
  await this.fixWorkflowSchema();
56
65
  this.missingCtInWorkflows.forEach((wf) => (wf.fixStatus = 'Fixed'));
57
66
  }
58
67
  return this.missingCtInWorkflows;
59
68
  }
60
69
  async fixWorkflowSchema() {
70
+ var _a;
61
71
  const newWorkflowSchema = (0, fs_1.existsSync)(this.workflowPath)
62
72
  ? JSON.parse((0, fs_1.readFileSync)(this.workflowPath, 'utf8'))
63
73
  : {};
64
74
  if (Object.keys(newWorkflowSchema).length !== 0) {
65
75
  for (const workflow of this.workflowSchema) {
66
76
  const fixedCts = workflow.content_types.filter((ct) => !this.missingCts.has(ct));
77
+ const fixedBranches = [];
78
+ (_a = workflow === null || workflow === void 0 ? void 0 : workflow.branches) === null || _a === void 0 ? void 0 : _a.forEach((branch) => {
79
+ var _a;
80
+ if (branch !== ((_a = this.config) === null || _a === void 0 ? void 0 : _a.branch)) {
81
+ const { uid, name } = workflow;
82
+ this.log((0, messages_1.$t)(messages_1.commonMsg.WF_BRANCH_REMOVAL, { uid, name, branch }), { color: 'yellow' });
83
+ }
84
+ else {
85
+ fixedBranches.push(branch);
86
+ }
87
+ });
88
+ if (fixedBranches.length > 0) {
89
+ newWorkflowSchema[workflow.uid].branches = fixedBranches;
90
+ }
67
91
  if (fixedCts.length) {
68
92
  newWorkflowSchema[workflow.uid].content_types = fixedCts;
69
93
  }
@@ -82,8 +106,10 @@ class Workflows {
82
106
  async writeFixContent(newWorkflowSchema) {
83
107
  var _a;
84
108
  if (this.fix &&
85
- !(this.config.flags['copy-dir'] || ((_a = this.config.flags['external-config']) === null || _a === void 0 ? void 0 : _a.skipConfirm)) &&
86
- (this.config.flags.yes || (await cli_utilities_1.ux.confirm(messages_1.commonMsg.FIX_CONFIRMATION)))) {
109
+ (this.config.flags['copy-dir'] ||
110
+ ((_a = this.config.flags['external-config']) === null || _a === void 0 ? void 0 : _a.skipConfirm) ||
111
+ this.config.flags.yes ||
112
+ (await cli_utilities_1.ux.confirm(messages_1.commonMsg.FIX_CONFIRMATION)))) {
87
113
  (0, fs_1.writeFileSync)((0, path_1.join)(this.folderPath, this.config.moduleConfig[this.moduleName].fileName), JSON.stringify(newWorkflowSchema));
88
114
  }
89
115
  }
@@ -40,6 +40,9 @@ type RefErrorReturnType = {
40
40
  content_types?: string[];
41
41
  title?: string;
42
42
  };
43
+ type WorkflowExtensionsRefErrorReturnType = RefErrorReturnType & {
44
+ branches?: string[];
45
+ };
43
46
  type ReferenceFieldDataType = CommonDataTypeStruct & {
44
47
  reference_to: string[];
45
48
  };
@@ -79,6 +82,7 @@ declare enum OutputColumn {
79
82
  Path = "treeStr",
80
83
  title = "title",
81
84
  'uid' = "uid",
82
- 'missingCts' = "content_types"
85
+ 'missingCts' = "content_types",
86
+ 'Missing Branches' = "branches"
83
87
  }
84
- export { CtConstructorParam, ContentTypeStruct, ModuleConstructorParam, ReferenceFieldDataType, GlobalFieldDataType, ExtensionOrAppFieldDataType, JsonRTEFieldDataType, GroupFieldDataType, ModularBlocksDataType, RefErrorReturnType, ModularBlocksSchemaTypes, ModularBlockType, OutputColumn, ContentTypeSchemaType, GlobalFieldSchemaTypes, };
88
+ export { CtConstructorParam, ContentTypeStruct, ModuleConstructorParam, ReferenceFieldDataType, GlobalFieldDataType, ExtensionOrAppFieldDataType, JsonRTEFieldDataType, GroupFieldDataType, ModularBlocksDataType, RefErrorReturnType, ModularBlocksSchemaTypes, ModularBlockType, OutputColumn, ContentTypeSchemaType, GlobalFieldSchemaTypes, WorkflowExtensionsRefErrorReturnType, };
@@ -11,5 +11,6 @@ var OutputColumn;
11
11
  OutputColumn["title"] = "title";
12
12
  OutputColumn["uid"] = "uid";
13
13
  OutputColumn["missingCts"] = "content_types";
14
+ OutputColumn["Missing Branches"] = "branches";
14
15
  })(OutputColumn || (OutputColumn = {}));
15
16
  exports.OutputColumn = OutputColumn;
@@ -10,4 +10,5 @@ export interface Workflow {
10
10
  deleted_at?: any;
11
11
  missingRefs?: any;
12
12
  fixStatus?: string;
13
+ branches?: string[];
13
14
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.0",
2
+ "version": "1.5.2",
3
3
  "commands": {
4
4
  "cm:stacks:audit:fix": {
5
5
  "id": "cm:stacks:audit:fix",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentstack/cli-audit",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Contentstack audit plugin",
5
5
  "author": "Contentstack CLI",
6
6
  "homepage": "https://github.com/contentstack/cli",
@@ -21,7 +21,7 @@
21
21
  "@contentstack/cli-command": "~1.2.16",
22
22
  "@contentstack/cli-utilities": "~1.6.0",
23
23
  "@oclif/plugin-help": "^5",
24
- "@oclif/plugin-plugins": "^4.1.9",
24
+ "@oclif/plugin-plugins": "^5.0.0",
25
25
  "chalk": "^4.1.2",
26
26
  "fast-csv": "^4.3.6",
27
27
  "fs-extra": "^11.1.1",
@@ -86,4 +86,4 @@
86
86
  "keywords": [
87
87
  "oclif"
88
88
  ]
89
- }
89
+ }