@contrail/cli 1.0.56 → 1.0.58
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/lib/types/interfaces.d.ts +1 -0
- package/lib/types/types-extractor.d.ts +5 -0
- package/lib/types/types-extractor.js +6 -0
- package/lib/types/usage-info-uploader.js +5 -0
- package/package.json +1 -1
- package/src/types/interfaces.ts +1 -0
- package/src/types/types-extractor.ts +6 -0
- package/src/types/usage-info-uploader.ts +5 -0
|
@@ -34,6 +34,11 @@ export declare function reduceData(data: DataHolder): {
|
|
|
34
34
|
reducedUsageInfo: {
|
|
35
35
|
used: any;
|
|
36
36
|
editable: any;
|
|
37
|
+
formulaFunction: any;
|
|
38
|
+
validationFunction: any;
|
|
39
|
+
numberFormat: any;
|
|
40
|
+
defaultValue: any;
|
|
41
|
+
label: any;
|
|
37
42
|
typeSlug: any;
|
|
38
43
|
typePropertySlug: any;
|
|
39
44
|
}[];
|
|
@@ -133,6 +133,11 @@ function reduceUsageInfo(data) {
|
|
|
133
133
|
return {
|
|
134
134
|
used: x.used,
|
|
135
135
|
editable: x.editable,
|
|
136
|
+
formulaFunction: x.formulaFunction,
|
|
137
|
+
validationFunction: x.validationFunction,
|
|
138
|
+
numberFormat: x.numberFormat,
|
|
139
|
+
defaultValue: x.defaultValue,
|
|
140
|
+
label: x.label,
|
|
136
141
|
typeSlug: (_a = data.types.find(y => y.id === x.typeId)) === null || _a === void 0 ? void 0 : _a.slug,
|
|
137
142
|
typePropertySlug: (_b = typeProperties.find(y => y.id === x.typePropertyId)) === null || _b === void 0 ? void 0 : _b.slug,
|
|
138
143
|
};
|
|
@@ -214,6 +219,7 @@ export function reduceTypes(dataHolder) {
|
|
|
214
219
|
inherited: typeProperty.inherited,
|
|
215
220
|
formulaFunction: typeProperty.formulaFunction,
|
|
216
221
|
validationFunction: typeProperty.validationFunction,
|
|
222
|
+
numberFormat: typeProperty.numberFormat,
|
|
217
223
|
};
|
|
218
224
|
reducedTypeProperties.push(reducedTypeProperty);
|
|
219
225
|
}
|
|
@@ -71,6 +71,11 @@ async function uploadUsageInfoObjects(loadedUsageInfo) {
|
|
|
71
71
|
typeId: loadedUI.typeId,
|
|
72
72
|
editable: loadedUI.editable,
|
|
73
73
|
used: loadedUI.used,
|
|
74
|
+
formulaFunction: loadedUI.formulaFunction,
|
|
75
|
+
validationFunction: loadedUI.validationFunction,
|
|
76
|
+
numberFormat: loadedUI.numberFormat,
|
|
77
|
+
defaultValue: loadedUI.defaultValue,
|
|
78
|
+
label: loadedUI.label,
|
|
74
79
|
}
|
|
75
80
|
});
|
|
76
81
|
}
|
package/package.json
CHANGED
package/src/types/interfaces.ts
CHANGED
|
@@ -156,6 +156,11 @@ function reduceUsageInfo(data: DataHolder) {
|
|
|
156
156
|
return {
|
|
157
157
|
used: x.used,
|
|
158
158
|
editable: x.editable,
|
|
159
|
+
formulaFunction: x.formulaFunction,
|
|
160
|
+
validationFunction: x.validationFunction,
|
|
161
|
+
numberFormat: x.numberFormat,
|
|
162
|
+
defaultValue: x.defaultValue,
|
|
163
|
+
label: x.label,
|
|
159
164
|
typeSlug: data.types.find(y => y.id === x.typeId)?.slug,
|
|
160
165
|
typePropertySlug: typeProperties.find(y => y.id === x.typePropertyId)?.slug,
|
|
161
166
|
};
|
|
@@ -242,6 +247,7 @@ export function reduceTypes(dataHolder: DataHolder) {
|
|
|
242
247
|
inherited: typeProperty.inherited,
|
|
243
248
|
formulaFunction: typeProperty.formulaFunction,
|
|
244
249
|
validationFunction: typeProperty.validationFunction,
|
|
250
|
+
numberFormat: typeProperty.numberFormat,
|
|
245
251
|
};
|
|
246
252
|
|
|
247
253
|
reducedTypeProperties.push(reducedTypeProperty);
|
|
@@ -79,6 +79,11 @@ async function uploadUsageInfoObjects(loadedUsageInfo) {
|
|
|
79
79
|
typeId: loadedUI.typeId,
|
|
80
80
|
editable: loadedUI.editable,
|
|
81
81
|
used: loadedUI.used,
|
|
82
|
+
formulaFunction: loadedUI.formulaFunction,
|
|
83
|
+
validationFunction: loadedUI.validationFunction,
|
|
84
|
+
numberFormat: loadedUI.numberFormat,
|
|
85
|
+
defaultValue: loadedUI.defaultValue,
|
|
86
|
+
label: loadedUI.label,
|
|
82
87
|
}
|
|
83
88
|
});
|
|
84
89
|
} else {
|