@configura/web-api 2.0.0-alpha.13 → 2.0.0-alpha.14
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.
|
@@ -10,4 +10,5 @@ export declare const dtoProductConfigurationToCompactString: (conf: DtoProductCo
|
|
|
10
10
|
* Deserializes and inflates the configuration from the compacted format
|
|
11
11
|
*/
|
|
12
12
|
export declare const compactStringToDtoProductConfiguration: (versionAndConf: string) => DtoProductConfiguration;
|
|
13
|
+
export declare const stripExtendedDataFromDtoProductConfiguration: (conf: DtoProductConfiguration) => DtoProductConfiguration;
|
|
13
14
|
//# sourceMappingURL=ConfigurationConverter.d.ts.map
|
|
@@ -140,3 +140,27 @@ export const compactStringToDtoProductConfiguration = (versionAndConf) => {
|
|
|
140
140
|
}
|
|
141
141
|
return JSON.parse(expandDtoProductConfigurationJsonKeys(jsonStringSwapCharsForUrl(conf)));
|
|
142
142
|
};
|
|
143
|
+
export const stripExtendedDataFromDtoProductConfiguration = (conf) => {
|
|
144
|
+
var _a, _b;
|
|
145
|
+
return ({
|
|
146
|
+
features: (_a = conf.features) === null || _a === void 0 ? void 0 : _a.map(stripExtendedDataFromDtoFeatureConfiguration),
|
|
147
|
+
additionalProducts: (_b = conf.additionalProducts) === null || _b === void 0 ? void 0 : _b.map(stripExtendedDataFromDtoAdditionalProductConfiguration),
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const stripExtendedDataFromDtoAdditionalProductConfiguration = (conf) => (Object.assign(Object.assign({}, stripExtendedDataFromDtoProductConfiguration(conf)), { refKey: conf.refKey, selected: conf.selected }));
|
|
151
|
+
const stripExtendedDataFromDtoFeatureConfiguration = (conf) => {
|
|
152
|
+
var _a;
|
|
153
|
+
return ({
|
|
154
|
+
code: conf.code,
|
|
155
|
+
options: (_a = conf.options) === null || _a === void 0 ? void 0 : _a.map(stripExtendedDataFromDtoOptionConfiguration),
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
const stripExtendedDataFromDtoOptionConfiguration = (conf) => {
|
|
159
|
+
var _a;
|
|
160
|
+
return ({
|
|
161
|
+
code: conf.code,
|
|
162
|
+
selected: conf.selected,
|
|
163
|
+
numericValue: conf.numericValue,
|
|
164
|
+
features: (_a = conf.features) === null || _a === void 0 ? void 0 : _a.map(stripExtendedDataFromDtoFeatureConfiguration),
|
|
165
|
+
});
|
|
166
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-api",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@configura/web-utilities": "2.0.0-alpha.
|
|
26
|
+
"@configura/web-utilities": "2.0.0-alpha.14"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "b3d0439069dc8cca134143d00fcd2f964525ceca"
|
|
29
29
|
}
|