@configura/web-api 1.6.1-alpha.7 → 2.0.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.
Files changed (98) hide show
  1. package/.eslintrc.json +18 -0
  2. package/LICENSE +201 -201
  3. package/README.md +1 -1
  4. package/dist/CatalogueAPI.d.ts +551 -512
  5. package/dist/CatalogueAPI.js +293 -277
  6. package/dist/CfgMeasure.d.ts +32 -32
  7. package/dist/CfgMeasure.js +30 -30
  8. package/dist/CfgProduct.d.ts +268 -239
  9. package/dist/CfgProduct.js +778 -668
  10. package/dist/CfgReferencePathHelper.d.ts +14 -0
  11. package/dist/CfgReferencePathHelper.js +13 -0
  12. package/dist/ConfigurationConverter.d.ts +5 -0
  13. package/dist/ConfigurationConverter.js +72 -0
  14. package/dist/index.d.ts +23 -18
  15. package/dist/index.js +23 -18
  16. package/dist/io/CfgHistoryManager.d.ts +51 -0
  17. package/dist/io/CfgHistoryManager.js +82 -0
  18. package/dist/io/CfgHistoryToProdConfConnector.d.ts +21 -0
  19. package/dist/io/CfgHistoryToProdConfConnector.js +56 -0
  20. package/dist/io/CfgIOManager.d.ts +49 -0
  21. package/dist/io/CfgIOManager.js +115 -0
  22. package/dist/io/CfgIOProdConfConnector.d.ts +53 -0
  23. package/dist/io/CfgIOProdConfConnector.js +141 -0
  24. package/dist/io/CfgObservableStateManager.d.ts +22 -0
  25. package/dist/io/CfgObservableStateManager.js +65 -0
  26. package/dist/io/CfgObservableStateToProdConfConnector.d.ts +15 -0
  27. package/dist/io/CfgObservableStateToProdConfConnector.js +16 -0
  28. package/dist/io/CfgWindowEventManager.d.ts +22 -0
  29. package/dist/io/CfgWindowEventManager.js +38 -0
  30. package/dist/io/CfgWindowMessageManager.d.ts +41 -0
  31. package/dist/io/CfgWindowMessageManager.js +84 -0
  32. package/dist/io/CfgWindowMessageToProdConfConnector.d.ts +17 -0
  33. package/dist/io/CfgWindowMessageToProdConfConnector.js +18 -0
  34. package/dist/io/index.d.ts +9 -0
  35. package/dist/io/index.js +8 -0
  36. package/dist/material/CfgMaterialMapping.d.ts +7 -7
  37. package/dist/material/CfgMaterialMapping.js +181 -181
  38. package/dist/material/CfgMtrlApplication.d.ts +18 -18
  39. package/dist/material/CfgMtrlApplication.js +43 -43
  40. package/dist/material/CfgMtrlApplicationSource.d.ts +7 -7
  41. package/dist/material/CfgMtrlApplicationSource.js +8 -8
  42. package/dist/material/CfgMtrlSource.d.ts +19 -19
  43. package/dist/material/CfgMtrlSource.js +40 -40
  44. package/dist/material/CfgMtrlSourceWithMetaData.d.ts +7 -7
  45. package/dist/material/CfgMtrlSourceWithMetaData.js +1 -1
  46. package/dist/productConfiguration/CfgFeature.d.ts +187 -178
  47. package/dist/productConfiguration/CfgFeature.js +645 -611
  48. package/dist/productConfiguration/CfgOption.d.ts +151 -128
  49. package/dist/productConfiguration/CfgOption.js +416 -394
  50. package/dist/productConfiguration/CfgProductConfiguration.d.ts +117 -120
  51. package/dist/productConfiguration/CfgProductConfiguration.js +307 -307
  52. package/dist/productConfiguration/filters.d.ts +15 -15
  53. package/dist/productConfiguration/filters.js +70 -70
  54. package/dist/productConfiguration/productParamsGenerator.d.ts +15 -15
  55. package/dist/productConfiguration/productParamsGenerator.js +51 -51
  56. package/dist/productConfiguration/utilitiesProductConfiguration.d.ts +17 -17
  57. package/dist/productConfiguration/utilitiesProductConfiguration.js +80 -80
  58. package/dist/productLoader.d.ts +33 -33
  59. package/dist/productLoader.js +49 -49
  60. package/dist/syncGroups/SyncGroupsApplyMode.d.ts +21 -0
  61. package/dist/syncGroups/SyncGroupsApplyMode.js +21 -0
  62. package/dist/syncGroups/SyncGroupsHandler.d.ts +41 -0
  63. package/dist/syncGroups/SyncGroupsHandler.js +359 -0
  64. package/dist/syncGroups/SyncGroupsPathHelper.d.ts +27 -0
  65. package/dist/syncGroups/SyncGroupsPathHelper.js +90 -0
  66. package/dist/syncGroups/SyncGroupsState.d.ts +36 -0
  67. package/dist/syncGroups/SyncGroupsState.js +125 -0
  68. package/dist/syncGroups/SyncGroupsTransaction.d.ts +155 -0
  69. package/dist/syncGroups/SyncGroupsTransaction.js +576 -0
  70. package/dist/tasks/TaskHandler.d.ts +77 -78
  71. package/dist/tasks/TaskHandler.js +275 -265
  72. package/dist/tasks/formats.d.ts +4 -4
  73. package/dist/tasks/formats.js +7 -7
  74. package/dist/tests/testData/collectorForTest.d.ts +73 -73
  75. package/dist/tests/testData/collectorForTest.js +194 -195
  76. package/dist/tests/testData/dummyProductForTest.d.ts +4 -4
  77. package/dist/tests/testData/dummyProductForTest.js +32 -36
  78. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.d.ts +11 -32
  79. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.js +277 -348
  80. package/dist/tests/testData/testDataCachedGetProduct.d.ts +5 -5
  81. package/dist/tests/testData/testDataCachedGetProduct.js +185 -196
  82. package/dist/tests/testData/testDataCachedPostValidate.d.ts +7 -7
  83. package/dist/tests/testData/testDataCachedPostValidate.js +183 -183
  84. package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.d.ts +3 -3
  85. package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.js +1099 -1099
  86. package/dist/tests/testData/testDataOptions.d.ts +13 -0
  87. package/dist/tests/testData/testDataOptions.js +60 -0
  88. package/dist/tests/testData/testDataProductAggregatedPrice.d.ts +6 -6
  89. package/dist/tests/testData/testDataProductAggregatedPrice.js +187 -198
  90. package/dist/tests/testData/testDataUpcharge.d.ts +8 -29
  91. package/dist/tests/testData/testDataUpcharge.js +119 -151
  92. package/dist/utilitiesCatalogueData.d.ts +33 -25
  93. package/dist/utilitiesCatalogueData.js +164 -66
  94. package/dist/utilitiesCataloguePermission.d.ts +32 -39
  95. package/dist/utilitiesCataloguePermission.js +76 -84
  96. package/dist/utilitiesNumericValues.d.ts +24 -24
  97. package/dist/utilitiesNumericValues.js +109 -109
  98. package/package.json +3 -3
@@ -1,33 +1,33 @@
1
- import { Measurement, ValueWithUnit } 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: ValueWithUnit | undefined;
29
- readonly measurePriorities: CfgMeasurePriority[];
30
- static make(measurement: Measurement): 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
@@ -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
+ }