@configura/web-api 2.1.0 → 2.2.0-alpha.1
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/.eslintrc.json +5 -5
- package/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/CatalogueAPI.d.ts +633 -633
- package/dist/CatalogueAPI.js +312 -312
- package/dist/CfgMeasure.d.ts +32 -32
- package/dist/CfgMeasure.js +30 -30
- package/dist/CfgProduct.d.ts +344 -344
- package/dist/CfgProduct.js +992 -990
- package/dist/CfgReferencePathHelper.d.ts +26 -26
- package/dist/CfgReferencePathHelper.js +26 -26
- package/dist/index.d.ts +24 -24
- package/dist/index.js +24 -24
- package/dist/io/CfgHistoryManager.d.ts +83 -83
- package/dist/io/CfgHistoryManager.js +144 -144
- package/dist/io/CfgHistoryToProdConfConnector.d.ts +21 -21
- package/dist/io/CfgHistoryToProdConfConnector.js +50 -50
- package/dist/io/CfgIOManager.d.ts +53 -53
- package/dist/io/CfgIOManager.js +134 -134
- package/dist/io/CfgIOProdConfConnector.d.ts +54 -54
- package/dist/io/CfgIOProdConfConnector.js +139 -137
- package/dist/io/CfgIOWarningSupplier.d.ts +3 -3
- package/dist/io/CfgIOWarningSupplier.js +1 -1
- package/dist/io/CfgObservableStateManager.d.ts +25 -25
- package/dist/io/CfgObservableStateManager.js +69 -69
- package/dist/io/CfgObservableStateToProdConfConnector.d.ts +15 -15
- package/dist/io/CfgObservableStateToProdConfConnector.js +17 -17
- package/dist/io/CfgWindowEventManager.d.ts +21 -21
- package/dist/io/CfgWindowEventManager.js +38 -38
- package/dist/io/CfgWindowMessageManager.d.ts +40 -40
- package/dist/io/CfgWindowMessageManager.js +91 -91
- package/dist/io/CfgWindowMessageToProdConfConnector.d.ts +17 -17
- package/dist/io/CfgWindowMessageToProdConfConnector.js +19 -19
- package/dist/io/index.d.ts +8 -8
- package/dist/io/index.js +8 -8
- package/dist/material/CfgMaterialMapping.d.ts +7 -7
- package/dist/material/CfgMaterialMapping.js +181 -181
- package/dist/material/CfgMtrlApplication.d.ts +18 -18
- package/dist/material/CfgMtrlApplication.js +43 -43
- package/dist/material/CfgMtrlApplicationSource.d.ts +7 -7
- package/dist/material/CfgMtrlApplicationSource.js +8 -8
- package/dist/material/CfgMtrlSource.d.ts +19 -19
- package/dist/material/CfgMtrlSource.js +40 -40
- package/dist/material/CfgMtrlSourceWithMetaData.d.ts +7 -7
- package/dist/material/CfgMtrlSourceWithMetaData.js +1 -1
- package/dist/productConfiguration/CfgFeature.d.ts +199 -199
- package/dist/productConfiguration/CfgFeature.js +691 -691
- package/dist/productConfiguration/CfgOption.d.ts +160 -160
- package/dist/productConfiguration/CfgOption.js +464 -464
- package/dist/productConfiguration/CfgProductConfiguration.d.ts +129 -129
- package/dist/productConfiguration/CfgProductConfiguration.js +346 -346
- package/dist/productConfiguration/filters.d.ts +17 -17
- package/dist/productConfiguration/filters.js +141 -141
- package/dist/productConfiguration/productParamsGenerator.d.ts +15 -15
- package/dist/productConfiguration/productParamsGenerator.js +65 -64
- package/dist/productConfiguration/utilitiesProductConfiguration.d.ts +17 -17
- package/dist/productConfiguration/utilitiesProductConfiguration.js +87 -87
- package/dist/productLoader.d.ts +33 -33
- package/dist/productLoader.js +49 -49
- package/dist/syncGroups/SyncGroupsApplyMode.d.ts +20 -20
- package/dist/syncGroups/SyncGroupsApplyMode.js +21 -21
- package/dist/syncGroups/SyncGroupsHandler.d.ts +47 -47
- package/dist/syncGroups/SyncGroupsHandler.js +370 -370
- package/dist/syncGroups/SyncGroupsPathHelper.d.ts +26 -26
- package/dist/syncGroups/SyncGroupsPathHelper.js +90 -90
- package/dist/syncGroups/SyncGroupsState.d.ts +39 -39
- package/dist/syncGroups/SyncGroupsState.js +167 -167
- package/dist/syncGroups/SyncGroupsTransaction.d.ts +154 -154
- package/dist/syncGroups/SyncGroupsTransaction.js +589 -589
- package/dist/tasks/TaskHandler.d.ts +77 -77
- package/dist/tasks/TaskHandler.js +276 -276
- package/dist/tasks/formats.d.ts +4 -4
- package/dist/tasks/formats.js +7 -7
- package/dist/tests/testData/collectorForTest.d.ts +73 -73
- package/dist/tests/testData/collectorForTest.js +194 -194
- package/dist/tests/testData/dummyProductForTest.d.ts +4 -4
- package/dist/tests/testData/dummyProductForTest.js +32 -32
- package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.d.ts +11 -11
- package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.js +282 -282
- package/dist/tests/testData/testDataCachedGetProduct.d.ts +5 -5
- package/dist/tests/testData/testDataCachedGetProduct.js +187 -187
- package/dist/tests/testData/testDataCachedPostValidate.d.ts +7 -7
- package/dist/tests/testData/testDataCachedPostValidate.js +185 -185
- package/dist/tests/testData/testDataConstraints.d.ts +3 -3
- package/dist/tests/testData/testDataConstraints.js +174 -174
- package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.d.ts +3 -3
- package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.js +1099 -1099
- package/dist/tests/testData/testDataOptions.d.ts +12 -12
- package/dist/tests/testData/testDataOptions.js +60 -60
- package/dist/tests/testData/testDataProductAggregatedPrice.d.ts +6 -6
- package/dist/tests/testData/testDataProductAggregatedPrice.js +189 -189
- package/dist/tests/testData/testDataUpcharge.d.ts +8 -8
- package/dist/tests/testData/testDataUpcharge.js +121 -121
- package/dist/utilitiesCatalogueData.d.ts +47 -47
- package/dist/utilitiesCatalogueData.js +180 -180
- package/dist/utilitiesCataloguePermission.d.ts +38 -38
- package/dist/utilitiesCataloguePermission.js +79 -79
- package/dist/utilitiesConfiguration.d.ts +28 -28
- package/dist/utilitiesConfiguration.js +200 -200
- package/dist/utilitiesNumericValues.d.ts +24 -24
- package/dist/utilitiesNumericValues.js +114 -114
- package/package.json +4 -4
package/dist/CfgMeasure.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { DtoMeasurement, DtoValueWithUnit } from "./CatalogueAPI.js";
|
|
2
|
-
/**
|
|
3
|
-
* Measures can be used to Anchor items (Models or Additional Products).
|
|
4
|
-
*
|
|
5
|
-
* Measures originates in Models, and can then be used in Products. There is nothing stopping
|
|
6
|
-
* having multiple Models in the same Product that use the same Measure name. If so it is ambiguous
|
|
7
|
-
* which of the Models in the Product to anchor to.
|
|
8
|
-
*
|
|
9
|
-
* Measure Priority tries to solve this by allowing MeasureParams to contain an ordered list
|
|
10
|
-
* containing which Model should have highest priority (i.e. gets "first dibs") when Anchoring.
|
|
11
|
-
*
|
|
12
|
-
* Unfortunately the solution is currently a bit limited - we can not differentiate between Models
|
|
13
|
-
* pointing to the same URL in a Product. However, we consistently pick the first one.
|
|
14
|
-
* Lower index = higher priority
|
|
15
|
-
*/
|
|
16
|
-
export declare type CfgMeasurePriority = {
|
|
17
|
-
index: number;
|
|
18
|
-
modelLocalFilePath: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* This class strips the Measurement of things that are not actually used or relevant
|
|
22
|
-
* to Stage, specifically anchoring and stretching. Measurements can also contain
|
|
23
|
-
* volume and area, but these are ignored. Here Measures are used to define defaults
|
|
24
|
-
* such as its preferences when dealing with ambiguity or its default value.
|
|
25
|
-
*/
|
|
26
|
-
export declare class CfgMeasureDefinition {
|
|
27
|
-
readonly measureParamCode: string;
|
|
28
|
-
readonly numericValue: DtoValueWithUnit | undefined;
|
|
29
|
-
readonly measurePriorities: CfgMeasurePriority[];
|
|
30
|
-
static make(measurement: DtoMeasurement): CfgMeasureDefinition | undefined;
|
|
31
|
-
private constructor();
|
|
32
|
-
}
|
|
1
|
+
import { DtoMeasurement, DtoValueWithUnit } from "./CatalogueAPI.js";
|
|
2
|
+
/**
|
|
3
|
+
* Measures can be used to Anchor items (Models or Additional Products).
|
|
4
|
+
*
|
|
5
|
+
* Measures originates in Models, and can then be used in Products. There is nothing stopping
|
|
6
|
+
* having multiple Models in the same Product that use the same Measure name. If so it is ambiguous
|
|
7
|
+
* which of the Models in the Product to anchor to.
|
|
8
|
+
*
|
|
9
|
+
* Measure Priority tries to solve this by allowing MeasureParams to contain an ordered list
|
|
10
|
+
* containing which Model should have highest priority (i.e. gets "first dibs") when Anchoring.
|
|
11
|
+
*
|
|
12
|
+
* Unfortunately the solution is currently a bit limited - we can not differentiate between Models
|
|
13
|
+
* pointing to the same URL in a Product. However, we consistently pick the first one.
|
|
14
|
+
* Lower index = higher priority
|
|
15
|
+
*/
|
|
16
|
+
export declare type CfgMeasurePriority = {
|
|
17
|
+
index: number;
|
|
18
|
+
modelLocalFilePath: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* This class strips the Measurement of things that are not actually used or relevant
|
|
22
|
+
* to Stage, specifically anchoring and stretching. Measurements can also contain
|
|
23
|
+
* volume and area, but these are ignored. Here Measures are used to define defaults
|
|
24
|
+
* such as its preferences when dealing with ambiguity or its default value.
|
|
25
|
+
*/
|
|
26
|
+
export declare class CfgMeasureDefinition {
|
|
27
|
+
readonly measureParamCode: string;
|
|
28
|
+
readonly numericValue: DtoValueWithUnit | undefined;
|
|
29
|
+
readonly measurePriorities: CfgMeasurePriority[];
|
|
30
|
+
static make(measurement: DtoMeasurement): CfgMeasureDefinition | undefined;
|
|
31
|
+
private constructor();
|
|
32
|
+
}
|
|
33
33
|
//# sourceMappingURL=CfgMeasure.d.ts.map
|
package/dist/CfgMeasure.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This class strips the Measurement of things that are not actually used or relevant
|
|
3
|
-
* to Stage, specifically anchoring and stretching. Measurements can also contain
|
|
4
|
-
* volume and area, but these are ignored. Here Measures are used to define defaults
|
|
5
|
-
* such as its preferences when dealing with ambiguity or its default value.
|
|
6
|
-
*/
|
|
7
|
-
export class CfgMeasureDefinition {
|
|
8
|
-
constructor(measureParamCode, numericValue, measurePriorities) {
|
|
9
|
-
this.measureParamCode = measureParamCode;
|
|
10
|
-
this.numericValue = numericValue;
|
|
11
|
-
this.measurePriorities = measurePriorities;
|
|
12
|
-
}
|
|
13
|
-
static make(measurement) {
|
|
14
|
-
// The measurement.code seems to be used in CET to connect the value to
|
|
15
|
-
// pre-existing fields in the product, such as width, height and depth.
|
|
16
|
-
// We however only use this for anchoring and stretching and so it is the
|
|
17
|
-
// code of the measureParam that is relevant. Hence Measurements with no
|
|
18
|
-
// measureParam are ignored.
|
|
19
|
-
var _a;
|
|
20
|
-
const measureParam = measurement.measureParam;
|
|
21
|
-
if (measureParam === undefined) {
|
|
22
|
-
return undefined;
|
|
23
|
-
}
|
|
24
|
-
const code = measureParam.code;
|
|
25
|
-
return new this(code, measurement.numericValue, ((_a = measureParam.measurePriority) !== null && _a !== void 0 ? _a : []).map((p, index) => ({
|
|
26
|
-
modelLocalFilePath: p.url,
|
|
27
|
-
index,
|
|
28
|
-
})));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* This class strips the Measurement of things that are not actually used or relevant
|
|
3
|
+
* to Stage, specifically anchoring and stretching. Measurements can also contain
|
|
4
|
+
* volume and area, but these are ignored. Here Measures are used to define defaults
|
|
5
|
+
* such as its preferences when dealing with ambiguity or its default value.
|
|
6
|
+
*/
|
|
7
|
+
export class CfgMeasureDefinition {
|
|
8
|
+
constructor(measureParamCode, numericValue, measurePriorities) {
|
|
9
|
+
this.measureParamCode = measureParamCode;
|
|
10
|
+
this.numericValue = numericValue;
|
|
11
|
+
this.measurePriorities = measurePriorities;
|
|
12
|
+
}
|
|
13
|
+
static make(measurement) {
|
|
14
|
+
// The measurement.code seems to be used in CET to connect the value to
|
|
15
|
+
// pre-existing fields in the product, such as width, height and depth.
|
|
16
|
+
// We however only use this for anchoring and stretching and so it is the
|
|
17
|
+
// code of the measureParam that is relevant. Hence Measurements with no
|
|
18
|
+
// measureParam are ignored.
|
|
19
|
+
var _a;
|
|
20
|
+
const measureParam = measurement.measureParam;
|
|
21
|
+
if (measureParam === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
const code = measureParam.code;
|
|
25
|
+
return new this(code, measurement.numericValue, ((_a = measureParam.measurePriority) !== null && _a !== void 0 ? _a : []).map((p, index) => ({
|
|
26
|
+
modelLocalFilePath: p.url,
|
|
27
|
+
index,
|
|
28
|
+
})));
|
|
29
|
+
}
|
|
30
|
+
}
|