@contrail/cli 3.0.4 → 3.0.6

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
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/3.0.4 darwin-x64 node-v20.19.1
20
+ @contrail/cli/3.0.6 darwin-x64 node-v20.19.1
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -1,4 +1,5 @@
1
1
  export declare function getOptionSets(): Promise<any[]>;
2
+ export declare function getUserLists(): Promise<any[]>;
2
3
  export declare function getOptionSetHierarchies(): Promise<any[]>;
3
4
  export declare function getOptionSetHierarchyLinks(): Promise<any[]>;
4
5
  export declare function getRuleSets(): Promise<any[]>;
package/dist/api/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTypePolicyLinks = exports.getTypePolicies = exports.getTypePropertyPolicyLinks = exports.getTypePropertyPolicies = exports.getUsageInfo = exports.getRuleSetLinks = exports.getRuleSets = exports.getOptionSetHierarchyLinks = exports.getOptionSetHierarchies = exports.getOptionSets = void 0;
3
+ exports.getTypePolicyLinks = exports.getTypePolicies = exports.getTypePropertyPolicyLinks = exports.getTypePropertyPolicies = exports.getUsageInfo = exports.getRuleSetLinks = exports.getRuleSets = exports.getOptionSetHierarchyLinks = exports.getOptionSetHierarchies = exports.getUserLists = exports.getOptionSets = void 0;
4
4
  const sdk_1 = require("@contrail/sdk");
5
5
  async function getOptionSets() {
6
6
  return await new sdk_1.Entities().get({
@@ -8,6 +8,12 @@ async function getOptionSets() {
8
8
  });
9
9
  }
10
10
  exports.getOptionSets = getOptionSets;
11
+ async function getUserLists() {
12
+ return await new sdk_1.Entities().get({
13
+ entityName: 'user-list',
14
+ });
15
+ }
16
+ exports.getUserLists = getUserLists;
11
17
  async function getOptionSetHierarchies() {
12
18
  const entitiesClient = new sdk_1.Entities();
13
19
  return await entitiesClient.get({
@@ -64,6 +64,7 @@ async function getAll(outDir, overwrite) {
64
64
  typePolicyLinks: await (0, types_1.getTypePolicyLinks)(),
65
65
  orgUsers: await (0, users_1.getUserOrgs)(),
66
66
  groups: await (0, users_1.getGroups)(),
67
+ userList: await (0, types_1.getUserLists)(),
67
68
  };
68
69
  const reducedData = await (0, types_2.getAllReducedTypes)(data);
69
70
  await saveData(reducedData, outDir, overwrite);
@@ -35,6 +35,7 @@ class ConfigPropertiesParser {
35
35
  slug: configKey,
36
36
  propertyType: declaration.propertyType,
37
37
  dynamic: declaration?.dynamic || false,
38
+ masked: declaration?.masked || false,
38
39
  };
39
40
  if (declaration.options) {
40
41
  config.options = declaration.options;
@@ -62,6 +62,7 @@ export interface ConfigPropertyElement {
62
62
  options?: any[];
63
63
  label: string;
64
64
  dynamic?: boolean;
65
+ masked?: boolean;
65
66
  }
66
67
  export interface AppActionDeclaration {
67
68
  handler: string;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.4",
2
+ "version": "3.0.6",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@contrail/entity-types": "^1.1.17",
26
- "@contrail/org-config-migration": "^1.1.3",
26
+ "@contrail/org-config-migration": "^1.1.4",
27
27
  "@contrail/sdk": "^1.4.6",
28
28
  "@contrail/types": "^3.0.48",
29
29
  "@contrail/util": "^1.0.41",