@contrail/cli 3.5.2 → 3.5.3-alpha.cc8f6c0
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 +1 -25
- package/dist/api/types.d.ts +0 -5
- package/dist/api/types.js +1 -36
- package/dist/commands/types/getAll.js +0 -18
- package/dist/commands/types/loadAll.js +0 -2
- package/dist/commands/types/mergeTypeProperties.js +0 -5
- package/dist/commands/types/uploadOptionSetHierarchies.js +0 -117
- package/dist/commands/types/uploadOptionSets.js +1 -1
- package/dist/commands/types/uploadRuleSets.js +2 -85
- package/dist/commands/types/uploadTypeOverrides.js +10 -2
- package/dist/commands/types/uploadTypePolicies.js +2 -86
- package/dist/commands/types/uploadTypePropertyPolicies.d.ts +0 -1
- package/dist/commands/types/uploadTypePropertyPolicies.js +3 -139
- package/dist/helpers/types/type-uploader.js +1 -1
- package/dist/interfaces.d.ts +0 -25
- package/dist/templates/typescript/tsup.config.ts +0 -0
- package/node_modules/@contrail/org-config-migration/.github/workflows/publish-to-npm.yml +117 -0
- package/node_modules/@contrail/org-config-migration/.husky/pre-commit +0 -0
- package/node_modules/@contrail/org-config-migration/lib/index.d.ts +3 -3
- package/node_modules/@contrail/org-config-migration/lib/index.js +19 -19
- package/node_modules/@contrail/org-config-migration/lib/interfaces.d.ts +87 -97
- package/node_modules/@contrail/org-config-migration/lib/interfaces.js +2 -2
- package/node_modules/@contrail/org-config-migration/lib/services/index.d.ts +1 -1
- package/node_modules/@contrail/org-config-migration/lib/services/index.js +17 -17
- package/node_modules/@contrail/org-config-migration/lib/services/types.d.ts +12 -17
- package/node_modules/@contrail/org-config-migration/lib/services/types.js +115 -155
- package/node_modules/@contrail/org-config-migration/lib/types/exportAll.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/types/exportAll.js +34 -40
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.js +20 -20
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.d.ts +2 -3
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.js +16 -47
- package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.js +8 -8
- package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.d.ts +2 -3
- package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.js +14 -39
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.d.ts +2 -3
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.js +44 -56
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.d.ts +2 -3
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.js +44 -71
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.js +85 -85
- package/node_modules/@contrail/org-config-migration/lib/types/importAll.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/types/importAll.js +386 -451
- package/node_modules/@contrail/org-config-migration/lib/types/index.d.ts +8 -9
- package/node_modules/@contrail/org-config-migration/lib/types/index.js +24 -25
- package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.d.ts +3 -3
- package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.js +210 -210
- package/node_modules/@contrail/org-config-migration/lib/users/export.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/users/export.js +40 -40
- package/node_modules/@contrail/org-config-migration/lib/users/import.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/users/import.js +41 -41
- package/node_modules/@contrail/org-config-migration/lib/users/index.d.ts +2 -2
- package/node_modules/@contrail/org-config-migration/lib/users/index.js +18 -18
- package/node_modules/@contrail/org-config-migration/package.json +1 -1
- package/oclif.manifest.json +1 -52
- package/package.json +2 -2
- package/dist/commands/types/uploadUsageInfo.d.ts +0 -15
- package/dist/commands/types/uploadUsageInfo.js +0 -180
- package/dist/commands/types/uploadUsageInfo.spec.d.ts +0 -1
- package/dist/commands/types/uploadUsageInfo.spec.js +0 -249
- package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.d.ts +0 -2
- package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.js +0 -39
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReducedUsageInfo = void 0;
|
|
4
|
-
function getReducedUsageInfo(data) {
|
|
5
|
-
var _a, _b;
|
|
6
|
-
if (!(data === null || data === void 0 ? void 0 : data.usageInfo) || !(data === null || data === void 0 ? void 0 : data.types)) {
|
|
7
|
-
return [];
|
|
8
|
-
}
|
|
9
|
-
const typeProperties = ((_a = data.types) !== null && _a !== void 0 ? _a : []).flatMap((type) => { var _a; return (_a = type.typeProperties) !== null && _a !== void 0 ? _a : []; });
|
|
10
|
-
return (_b = data === null || data === void 0 ? void 0 : data.usageInfo) === null || _b === void 0 ? void 0 : _b.map((x) => {
|
|
11
|
-
const type = data.types.find((y) => y.id === x.typeId);
|
|
12
|
-
const typeProperty = typeProperties.find((y) => y.id === x.typePropertyId);
|
|
13
|
-
const typePropertySlug = typeProperty === null || typeProperty === void 0 ? void 0 : typeProperty.slug;
|
|
14
|
-
return {
|
|
15
|
-
used: x.used,
|
|
16
|
-
editable: x.editable,
|
|
17
|
-
formulaFunction: x.formulaFunction,
|
|
18
|
-
validationFunction: x.validationFunction,
|
|
19
|
-
numberFormat: x.numberFormat,
|
|
20
|
-
defaultValue: x.defaultValue,
|
|
21
|
-
label: x.label,
|
|
22
|
-
typeSlug: type === null || type === void 0 ? void 0 : type.slug,
|
|
23
|
-
typePath: type === null || type === void 0 ? void 0 : type.typePath,
|
|
24
|
-
typePropertySlug,
|
|
25
|
-
required: x.required,
|
|
26
|
-
searchable: x.searchable,
|
|
27
|
-
isUniqueProperty: x.isUniqueProperty,
|
|
28
|
-
isUniquePropertyInFamily: x.isUniquePropertyInFamily,
|
|
29
|
-
copyBehavior: x.copyBehavior,
|
|
30
|
-
copyDefault: x.copyDefault,
|
|
31
|
-
propertyLevel: x.propertyLevel,
|
|
32
|
-
isArchived: x.isArchived,
|
|
33
|
-
isFederationProperty: x.isFederationProperty,
|
|
34
|
-
carryOverBehavior: x.carryOverBehavior,
|
|
35
|
-
carryOverDefault: x.carryOverDefault,
|
|
36
|
-
};
|
|
37
|
-
}).sort((one, two) => (one.typePath < two.typePath ? -1 : 1));
|
|
38
|
-
}
|
|
39
|
-
exports.getReducedUsageInfo = getReducedUsageInfo;
|