@contrail/cli 3.5.2-alpha.fcd3386 → 3.5.3-alpha.0e9434c

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.
Files changed (48) hide show
  1. package/README.md +11 -5
  2. package/dist/commands/workflow-templates/export.d.ts +3 -1
  3. package/dist/commands/workflow-templates/export.js +105 -28
  4. package/dist/helpers/workflow-templates/helper.d.ts +1 -0
  5. package/dist/helpers/workflow-templates/helper.js +27 -6
  6. package/node_modules/@contrail/org-config-migration/.github/workflows/publish-to-npm.yml +117 -0
  7. package/node_modules/@contrail/org-config-migration/.husky/pre-commit +0 -0
  8. package/node_modules/@contrail/org-config-migration/lib/index.d.ts +3 -3
  9. package/node_modules/@contrail/org-config-migration/lib/index.js +19 -19
  10. package/node_modules/@contrail/org-config-migration/lib/interfaces.d.ts +87 -97
  11. package/node_modules/@contrail/org-config-migration/lib/interfaces.js +2 -2
  12. package/node_modules/@contrail/org-config-migration/lib/services/index.d.ts +1 -1
  13. package/node_modules/@contrail/org-config-migration/lib/services/index.js +17 -17
  14. package/node_modules/@contrail/org-config-migration/lib/services/types.d.ts +12 -17
  15. package/node_modules/@contrail/org-config-migration/lib/services/types.js +115 -155
  16. package/node_modules/@contrail/org-config-migration/lib/types/exportAll.d.ts +2 -2
  17. package/node_modules/@contrail/org-config-migration/lib/types/exportAll.js +34 -40
  18. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.d.ts +2 -2
  19. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.js +20 -20
  20. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.d.ts +2 -3
  21. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.js +16 -47
  22. package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.d.ts +2 -2
  23. package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.js +8 -8
  24. package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.d.ts +2 -3
  25. package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.js +14 -39
  26. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.d.ts +2 -3
  27. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.js +44 -56
  28. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.d.ts +2 -3
  29. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.js +44 -71
  30. package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.d.ts +2 -2
  31. package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.js +85 -85
  32. package/node_modules/@contrail/org-config-migration/lib/types/importAll.d.ts +2 -2
  33. package/node_modules/@contrail/org-config-migration/lib/types/importAll.js +386 -451
  34. package/node_modules/@contrail/org-config-migration/lib/types/index.d.ts +8 -9
  35. package/node_modules/@contrail/org-config-migration/lib/types/index.js +24 -25
  36. package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.d.ts +3 -3
  37. package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.js +210 -210
  38. package/node_modules/@contrail/org-config-migration/lib/users/export.d.ts +2 -2
  39. package/node_modules/@contrail/org-config-migration/lib/users/export.js +40 -40
  40. package/node_modules/@contrail/org-config-migration/lib/users/import.d.ts +2 -2
  41. package/node_modules/@contrail/org-config-migration/lib/users/import.js +41 -41
  42. package/node_modules/@contrail/org-config-migration/lib/users/index.d.ts +2 -2
  43. package/node_modules/@contrail/org-config-migration/lib/users/index.js +18 -18
  44. package/node_modules/@contrail/org-config-migration/package.json +1 -1
  45. package/oclif.manifest.json +15 -5
  46. package/package.json +2 -2
  47. package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.d.ts +0 -2
  48. package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.js +0 -39
@@ -1,97 +1,87 @@
1
- export interface ReducedType {
2
- slug: string;
3
- label: string;
4
- typePath: string;
5
- isArchived: boolean;
6
- typeProperties: ReducedTypeProperty[];
7
- }
8
- export interface ReducedDataHolder {
9
- reducedTypes?: any[];
10
- reducedOptionSets?: any[];
11
- reducedOptionSetHierarchies?: any[];
12
- reducedOptionSetHierarchyLinks?: any[];
13
- reducedOverrides?: any[];
14
- reducedRuleSets?: any[];
15
- reducedRuleSetLinks?: any[];
16
- reducedUsageInfo?: any[];
17
- reducedTypePropertyPolicies?: any[];
18
- reducedTypePropertyPolicyLinks?: any[];
19
- reducedTypePolicies?: any[];
20
- reducedTypePolicyLinks?: any[];
21
- }
22
- export interface DataHolder {
23
- types?: any[];
24
- optionSets?: any[];
25
- optionSetHierarchies?: any[];
26
- optionSetHierarchyLinks?: any[];
27
- ruleSets?: any[];
28
- ruleSetLinks?: any[];
29
- usageInfo?: any[];
30
- typePropertyPolicies?: any[];
31
- typePropertyPolicyLinks?: any[];
32
- typePolicies?: any[];
33
- typePolicyLinks?: any[];
34
- typeOverrides?: any[];
35
- orgUsers?: any[];
36
- groups?: any[];
37
- userList?: any[];
38
- }
39
- export interface ReducedTypeProperty {
40
- id: string;
41
- isArchived: boolean;
42
- propertyType: PropertyType;
43
- slug: string;
44
- carryOverDefault: any;
45
- carryOverBehavior: string;
46
- label: string;
47
- editable: boolean;
48
- searchable: boolean;
49
- core: boolean;
50
- typePropertyOptionSetSlug: string;
51
- formula: string;
52
- referencedTypePath: string;
53
- referencedTypeRole: string;
54
- typePropertyUserListId: string;
55
- typePropertyUserListName: string;
56
- isUniqueProperty: boolean;
57
- isUniquePropertyInFamily: boolean;
58
- referencedTypeRootSlug: string;
59
- defaultValue: string;
60
- propertyLevel: string;
61
- inherited: boolean;
62
- formulaFunction?: string;
63
- validationFunction?: string;
64
- numberFormat?: any;
65
- sequenceSeedValue?: number;
66
- copyBehavior?: string;
67
- }
68
- export interface ReducedOptionSet {
69
- name: string;
70
- slug: string;
71
- isArchived: boolean;
72
- optionSet: any[];
73
- }
74
- export declare enum PropertyType {
75
- Text = "text",
76
- String = "string",
77
- Number = "number",
78
- Date = "date",
79
- Boolean = "boolean",
80
- MultiSelect = "multi_select",
81
- SingleSelect = "choice",
82
- Url = "url",
83
- Currency = "currency",
84
- Percent = "percent",
85
- Rating = "rating",
86
- Formula = "formula",
87
- ObjectReference = "object_reference",
88
- ObjectReferenceList = "object_ref_list",
89
- DataGrid = "data_grid",
90
- CascadingSelect = "cascading_select",
91
- Sequence = "sequence",
92
- Constant = "constant",
93
- Composite = "composite",
94
- UserList = "userList",
95
- Image = "image",
96
- Json = "json"
97
- }
1
+ export interface ReducedType {
2
+ slug: string;
3
+ label: string;
4
+ typePath: string;
5
+ isArchived: boolean;
6
+ typeProperties: ReducedTypeProperty[];
7
+ }
8
+ export interface ReducedDataHolder {
9
+ reducedTypes?: any[];
10
+ reducedOptionSets?: any[];
11
+ reducedOptionSetHierarchies?: any[];
12
+ reducedOverrides?: any[];
13
+ reducedRuleSets?: any[];
14
+ reducedTypePropertyPolicies?: any[];
15
+ reducedTypePolicies?: any[];
16
+ }
17
+ export interface DataHolder {
18
+ types?: any[];
19
+ optionSets?: any[];
20
+ optionSetHierarchies?: any[];
21
+ ruleSets?: any[];
22
+ typePropertyPolicies?: any[];
23
+ typePolicies?: any[];
24
+ typeOverrides?: any[];
25
+ orgUsers?: any[];
26
+ groups?: any[];
27
+ userList?: any[];
28
+ }
29
+ export interface ReducedTypeProperty {
30
+ id: string;
31
+ isArchived: boolean;
32
+ propertyType: PropertyType;
33
+ slug: string;
34
+ carryOverDefault: any;
35
+ carryOverBehavior: string;
36
+ label: string;
37
+ editable: boolean;
38
+ searchable: boolean;
39
+ core: boolean;
40
+ typePropertyOptionSetSlug: string;
41
+ formula: string;
42
+ referencedTypePath: string;
43
+ referencedTypeRole: string;
44
+ typePropertyUserListId: string;
45
+ typePropertyUserListName: string;
46
+ isUniqueProperty: boolean;
47
+ isUniquePropertyInFamily: boolean;
48
+ referencedTypeRootSlug: string;
49
+ defaultValue: string;
50
+ propertyLevel: string;
51
+ inherited: boolean;
52
+ formulaFunction?: string;
53
+ validationFunction?: string;
54
+ numberFormat?: any;
55
+ sequenceSeedValue?: number;
56
+ copyBehavior?: string;
57
+ }
58
+ export interface ReducedOptionSet {
59
+ name: string;
60
+ slug: string;
61
+ isArchived: boolean;
62
+ optionSet: any[];
63
+ }
64
+ export declare enum PropertyType {
65
+ Text = "text",
66
+ String = "string",
67
+ Number = "number",
68
+ Date = "date",
69
+ Boolean = "boolean",
70
+ MultiSelect = "multi_select",
71
+ SingleSelect = "choice",
72
+ Url = "url",
73
+ Currency = "currency",
74
+ Percent = "percent",
75
+ Rating = "rating",
76
+ Formula = "formula",
77
+ ObjectReference = "object_reference",
78
+ ObjectReferenceList = "object_ref_list",
79
+ DataGrid = "data_grid",
80
+ CascadingSelect = "cascading_select",
81
+ Sequence = "sequence",
82
+ Constant = "constant",
83
+ Composite = "composite",
84
+ UserList = "userList",
85
+ Image = "image",
86
+ Json = "json"
87
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export * from './types';
1
+ export * from './types';
@@ -1,17 +1,17 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -1,17 +1,12 @@
1
- import { EntitiesClient } from '@contrail/entity-types';
2
- export declare function getTypes(client: EntitiesClient, withTypeProperties?: boolean): Promise<any[]>;
3
- export declare function getOptionSets(client: EntitiesClient): Promise<any[]>;
4
- export declare function getOptionSetHierarchies(client: EntitiesClient): Promise<any[]>;
5
- export declare function getOptionSetHierarchyLinks(client: EntitiesClient): Promise<any[]>;
6
- export declare function getRuleSets(client: EntitiesClient): Promise<any[]>;
7
- export declare function getRuleSetLinks(client: EntitiesClient): Promise<any[]>;
8
- export declare function getUsageInfo(client: EntitiesClient): Promise<any[]>;
9
- export declare function getTypePropertyPolicies(client: EntitiesClient): Promise<any[]>;
10
- export declare function getTypePropertyPolicyLinks(client: EntitiesClient): Promise<any[]>;
11
- export declare function getTypePolicies(client: EntitiesClient): Promise<any[]>;
12
- export declare function getTypePolicyLinks(client: EntitiesClient): Promise<any[]>;
13
- export declare function getOverrides(client: EntitiesClient): Promise<any[]>;
14
- export declare function getOverrideCopies(client: EntitiesClient): Promise<any[]>;
15
- export declare function getUserLists(client: EntitiesClient): Promise<any[]>;
16
- export declare function getOrgUsers(client: EntitiesClient, options?: any): Promise<any[]>;
17
- export declare function getGroups(client: EntitiesClient, options?: any): Promise<any[]>;
1
+ import { EntitiesClient } from '@contrail/entity-types';
2
+ export declare function getTypes(client: EntitiesClient, withTypeProperties?: boolean): Promise<any[]>;
3
+ export declare function getOptionSets(client: EntitiesClient): Promise<any[]>;
4
+ export declare function getOptionSetHierarchies(client: EntitiesClient): Promise<any[]>;
5
+ export declare function getRuleSets(client: EntitiesClient): Promise<any[]>;
6
+ export declare function getTypePropertyPolicies(client: EntitiesClient): Promise<any[]>;
7
+ export declare function getTypePolicies(client: EntitiesClient): Promise<any[]>;
8
+ export declare function getOverrides(client: EntitiesClient): Promise<any[]>;
9
+ export declare function getOverrideCopies(client: EntitiesClient): Promise<any[]>;
10
+ export declare function getUserLists(client: EntitiesClient): Promise<any[]>;
11
+ export declare function getOrgUsers(client: EntitiesClient, options?: any): Promise<any[]>;
12
+ export declare function getGroups(client: EntitiesClient, options?: any): Promise<any[]>;
@@ -1,155 +1,115 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.getGroups = exports.getOrgUsers = exports.getUserLists = exports.getOverrideCopies = exports.getOverrides = exports.getTypePolicyLinks = exports.getTypePolicies = exports.getTypePropertyPolicyLinks = exports.getTypePropertyPolicies = exports.getUsageInfo = exports.getRuleSetLinks = exports.getRuleSets = exports.getOptionSetHierarchyLinks = exports.getOptionSetHierarchies = exports.getOptionSets = exports.getTypes = void 0;
16
- const p_limit_1 = __importDefault(require("p-limit"));
17
- const limit = (0, p_limit_1.default)(30);
18
- function getTypes(client, withTypeProperties = true) {
19
- return __awaiter(this, void 0, void 0, function* () {
20
- const types = yield client.get({
21
- entityName: 'type',
22
- });
23
- if (!withTypeProperties) {
24
- return types;
25
- }
26
- const typesWithProperties = [];
27
- const promises = [];
28
- for (const type of types) {
29
- const promise = limit(() => __awaiter(this, void 0, void 0, function* () {
30
- const t = yield client.get({ entityName: 'type', id: type.id, relations: ['typeProperties'] });
31
- typesWithProperties.push(t);
32
- }));
33
- promises.push(promise);
34
- }
35
- yield Promise.all(promises);
36
- return typesWithProperties;
37
- });
38
- }
39
- exports.getTypes = getTypes;
40
- function getOptionSets(client) {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- return yield client.get({
43
- entityName: 'type-property-option-set',
44
- });
45
- });
46
- }
47
- exports.getOptionSets = getOptionSets;
48
- function getOptionSetHierarchies(client) {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- return yield client.get({
51
- entityName: 'option-set-hierarchy',
52
- });
53
- });
54
- }
55
- exports.getOptionSetHierarchies = getOptionSetHierarchies;
56
- function getOptionSetHierarchyLinks(client) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- return yield client.get({
59
- entityName: 'type-option-set-hierarchy-link',
60
- });
61
- });
62
- }
63
- exports.getOptionSetHierarchyLinks = getOptionSetHierarchyLinks;
64
- function getRuleSets(client) {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- return yield client.get({
67
- entityName: 'type-rule-set',
68
- });
69
- });
70
- }
71
- exports.getRuleSets = getRuleSets;
72
- function getRuleSetLinks(client) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- return yield client.get({
75
- entityName: 'type-rule-set-link',
76
- });
77
- });
78
- }
79
- exports.getRuleSetLinks = getRuleSetLinks;
80
- function getUsageInfo(client) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- return yield client.get({
83
- entityName: 'type-property-usage-info',
84
- });
85
- });
86
- }
87
- exports.getUsageInfo = getUsageInfo;
88
- function getTypePropertyPolicies(client) {
89
- return __awaiter(this, void 0, void 0, function* () {
90
- return yield client.get({
91
- entityName: 'type-property-policy',
92
- });
93
- });
94
- }
95
- exports.getTypePropertyPolicies = getTypePropertyPolicies;
96
- function getTypePropertyPolicyLinks(client) {
97
- return __awaiter(this, void 0, void 0, function* () {
98
- return yield client.get({
99
- entityName: 'type-property-policy-link',
100
- });
101
- });
102
- }
103
- exports.getTypePropertyPolicyLinks = getTypePropertyPolicyLinks;
104
- function getTypePolicies(client) {
105
- return __awaiter(this, void 0, void 0, function* () {
106
- return yield client.get({
107
- entityName: 'type-policy',
108
- });
109
- });
110
- }
111
- exports.getTypePolicies = getTypePolicies;
112
- function getTypePolicyLinks(client) {
113
- return __awaiter(this, void 0, void 0, function* () {
114
- return yield client.get({
115
- entityName: 'type-policy-link',
116
- });
117
- });
118
- }
119
- exports.getTypePolicyLinks = getTypePolicyLinks;
120
- function getOverrides(client) {
121
- return __awaiter(this, void 0, void 0, function* () {
122
- return yield client.get({
123
- entityName: 'type-override',
124
- });
125
- });
126
- }
127
- exports.getOverrides = getOverrides;
128
- function getOverrideCopies(client) {
129
- return __awaiter(this, void 0, void 0, function* () {
130
- return yield client.get({
131
- entityName: 'type-override-copy',
132
- });
133
- });
134
- }
135
- exports.getOverrideCopies = getOverrideCopies;
136
- function getUserLists(client) {
137
- return __awaiter(this, void 0, void 0, function* () {
138
- return yield client.get({
139
- entityName: 'user-list',
140
- });
141
- });
142
- }
143
- exports.getUserLists = getUserLists;
144
- function getOrgUsers(client, options) {
145
- return __awaiter(this, void 0, void 0, function* () {
146
- return yield client.get(Object.assign({ entityName: 'user-org' }, options));
147
- });
148
- }
149
- exports.getOrgUsers = getOrgUsers;
150
- function getGroups(client, options) {
151
- return __awaiter(this, void 0, void 0, function* () {
152
- return yield client.get(Object.assign({ entityName: 'group' }, options));
153
- });
154
- }
155
- exports.getGroups = getGroups;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.getGroups = exports.getOrgUsers = exports.getUserLists = exports.getOverrideCopies = exports.getOverrides = exports.getTypePolicies = exports.getTypePropertyPolicies = exports.getRuleSets = exports.getOptionSetHierarchies = exports.getOptionSets = exports.getTypes = void 0;
16
+ const p_limit_1 = __importDefault(require("p-limit"));
17
+ const limit = (0, p_limit_1.default)(30);
18
+ function getTypes(client, withTypeProperties = true) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const types = yield client.get({
21
+ entityName: 'type',
22
+ });
23
+ if (!withTypeProperties) {
24
+ return types;
25
+ }
26
+ const typesWithProperties = [];
27
+ const promises = [];
28
+ for (const type of types) {
29
+ const promise = limit(() => __awaiter(this, void 0, void 0, function* () {
30
+ const t = yield client.get({ entityName: 'type', id: type.id, relations: ['typeProperties'] });
31
+ typesWithProperties.push(t);
32
+ }));
33
+ promises.push(promise);
34
+ }
35
+ yield Promise.all(promises);
36
+ return typesWithProperties;
37
+ });
38
+ }
39
+ exports.getTypes = getTypes;
40
+ function getOptionSets(client) {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ return yield client.get({
43
+ entityName: 'type-property-option-set',
44
+ });
45
+ });
46
+ }
47
+ exports.getOptionSets = getOptionSets;
48
+ function getOptionSetHierarchies(client) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ return yield client.get({
51
+ entityName: 'option-set-hierarchy',
52
+ });
53
+ });
54
+ }
55
+ exports.getOptionSetHierarchies = getOptionSetHierarchies;
56
+ function getRuleSets(client) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ return yield client.get({
59
+ entityName: 'type-rule-set',
60
+ });
61
+ });
62
+ }
63
+ exports.getRuleSets = getRuleSets;
64
+ function getTypePropertyPolicies(client) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ return yield client.get({
67
+ entityName: 'type-property-policy',
68
+ });
69
+ });
70
+ }
71
+ exports.getTypePropertyPolicies = getTypePropertyPolicies;
72
+ function getTypePolicies(client) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ return yield client.get({
75
+ entityName: 'type-policy',
76
+ });
77
+ });
78
+ }
79
+ exports.getTypePolicies = getTypePolicies;
80
+ function getOverrides(client) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ return yield client.get({
83
+ entityName: 'type-override',
84
+ });
85
+ });
86
+ }
87
+ exports.getOverrides = getOverrides;
88
+ function getOverrideCopies(client) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ return yield client.get({
91
+ entityName: 'type-override-copy',
92
+ });
93
+ });
94
+ }
95
+ exports.getOverrideCopies = getOverrideCopies;
96
+ function getUserLists(client) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ return yield client.get({
99
+ entityName: 'user-list',
100
+ });
101
+ });
102
+ }
103
+ exports.getUserLists = getUserLists;
104
+ function getOrgUsers(client, options) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ return yield client.get(Object.assign({ entityName: 'user-org' }, options));
107
+ });
108
+ }
109
+ exports.getOrgUsers = getOrgUsers;
110
+ function getGroups(client, options) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ return yield client.get(Object.assign({ entityName: 'group' }, options));
113
+ });
114
+ }
115
+ exports.getGroups = getGroups;
@@ -1,2 +1,2 @@
1
- import { DataHolder, ReducedDataHolder } from '../interfaces';
2
- export declare function getAllReducedTypes(data: DataHolder): Promise<ReducedDataHolder>;
1
+ import { DataHolder, ReducedDataHolder } from '../interfaces';
2
+ export declare function getAllReducedTypes(data: DataHolder): Promise<ReducedDataHolder>;
@@ -1,40 +1,34 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getAllReducedTypes = void 0;
13
- const exportTypes_1 = require("./exportTypes");
14
- const exportOptionSet_1 = require("./exportOptionSet");
15
- const exportOptionSetHierarchies_1 = require("./exportOptionSetHierarchies");
16
- const exportRuleSets_1 = require("./exportRuleSets");
17
- const exportTypePropertyPolicies_1 = require("./exportTypePropertyPolicies");
18
- const exportTypePolicies_1 = require("./exportTypePolicies");
19
- const exportUsageInfo_1 = require("./exportUsageInfo");
20
- const exportOverrides_1 = require("./exportOverrides");
21
- function getAllReducedTypes(data) {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const reducedData = {
24
- reducedTypes: yield (0, exportTypes_1.getReducedTypes)(data),
25
- reducedOptionSets: (0, exportOptionSet_1.getReducedOptionSets)(data),
26
- reducedOptionSetHierarchies: (0, exportOptionSetHierarchies_1.getReducedOptionSetHierarchies)(data),
27
- reducedOptionSetHierarchyLinks: (0, exportOptionSetHierarchies_1.getReducedOptionSetHierarchyLinks)(data),
28
- reducedOverrides: (0, exportOverrides_1.getReducedOverrides)(data),
29
- reducedRuleSets: (0, exportRuleSets_1.getReducedRuleSets)(data),
30
- reducedRuleSetLinks: (0, exportRuleSets_1.getReducedRuleSetLinks)(data),
31
- reducedUsageInfo: (0, exportUsageInfo_1.getReducedUsageInfo)(data),
32
- reducedTypePropertyPolicies: (0, exportTypePropertyPolicies_1.getReducedTypePropertyPolicies)(data),
33
- reducedTypePropertyPolicyLinks: (0, exportTypePropertyPolicies_1.getReducedTypePropertyPolicyLinks)(data),
34
- reducedTypePolicies: (0, exportTypePolicies_1.getReducedTypePolicies)(data),
35
- reducedTypePolicyLinks: (0, exportTypePolicies_1.getReducedTypePolicyLinks)(data),
36
- };
37
- return reducedData;
38
- });
39
- }
40
- exports.getAllReducedTypes = getAllReducedTypes;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getAllReducedTypes = void 0;
13
+ const exportTypes_1 = require("./exportTypes");
14
+ const exportOptionSet_1 = require("./exportOptionSet");
15
+ const exportOptionSetHierarchies_1 = require("./exportOptionSetHierarchies");
16
+ const exportRuleSets_1 = require("./exportRuleSets");
17
+ const exportTypePropertyPolicies_1 = require("./exportTypePropertyPolicies");
18
+ const exportTypePolicies_1 = require("./exportTypePolicies");
19
+ const exportOverrides_1 = require("./exportOverrides");
20
+ function getAllReducedTypes(data) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const reducedData = {
23
+ reducedTypes: yield (0, exportTypes_1.getReducedTypes)(data),
24
+ reducedOptionSets: (0, exportOptionSet_1.getReducedOptionSets)(data),
25
+ reducedOptionSetHierarchies: (0, exportOptionSetHierarchies_1.getReducedOptionSetHierarchies)(data),
26
+ reducedOverrides: (0, exportOverrides_1.getReducedOverrides)(data),
27
+ reducedRuleSets: (0, exportRuleSets_1.getReducedRuleSets)(data),
28
+ reducedTypePropertyPolicies: (0, exportTypePropertyPolicies_1.getReducedTypePropertyPolicies)(data),
29
+ reducedTypePolicies: (0, exportTypePolicies_1.getReducedTypePolicies)(data),
30
+ };
31
+ return reducedData;
32
+ });
33
+ }
34
+ exports.getAllReducedTypes = getAllReducedTypes;
@@ -1,2 +1,2 @@
1
- import { DataHolder } from '../interfaces';
2
- export declare function getReducedOptionSets(data: DataHolder): any[];
1
+ import { DataHolder } from '../interfaces';
2
+ export declare function getReducedOptionSets(data: DataHolder): any[];