@configura/web-api 1.4.0-alpha.4 → 1.4.0

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 (57) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +1 -1
  3. package/dist/CatalogueAPI.d.ts +504 -504
  4. package/dist/CatalogueAPI.js +248 -248
  5. package/dist/CfgMeasure.d.ts +32 -32
  6. package/dist/CfgMeasure.js +30 -30
  7. package/dist/CfgProduct.d.ts +217 -217
  8. package/dist/CfgProduct.js +636 -636
  9. package/dist/index.d.ts +16 -16
  10. package/dist/index.js +16 -16
  11. package/dist/material/CfgMaterialMapping.d.ts +7 -7
  12. package/dist/material/CfgMaterialMapping.js +181 -181
  13. package/dist/material/CfgMtrlApplication.d.ts +18 -18
  14. package/dist/material/CfgMtrlApplication.js +43 -43
  15. package/dist/material/CfgMtrlApplicationSource.d.ts +7 -7
  16. package/dist/material/CfgMtrlApplicationSource.js +8 -8
  17. package/dist/material/CfgMtrlSource.d.ts +19 -19
  18. package/dist/material/CfgMtrlSource.js +40 -40
  19. package/dist/material/CfgMtrlSourceWithMetaData.d.ts +7 -7
  20. package/dist/material/CfgMtrlSourceWithMetaData.js +1 -1
  21. package/dist/productConfiguration/CfgFeature.d.ts +160 -160
  22. package/dist/productConfiguration/CfgFeature.js +593 -593
  23. package/dist/productConfiguration/CfgOption.d.ts +128 -128
  24. package/dist/productConfiguration/CfgOption.js +394 -394
  25. package/dist/productConfiguration/CfgProductConfiguration.d.ts +120 -120
  26. package/dist/productConfiguration/CfgProductConfiguration.js +307 -307
  27. package/dist/productConfiguration/filters.d.ts +15 -15
  28. package/dist/productConfiguration/filters.js +67 -67
  29. package/dist/productConfiguration/productParamsGenerator.d.ts +15 -15
  30. package/dist/productConfiguration/productParamsGenerator.js +51 -51
  31. package/dist/productConfiguration/utilitiesProductConfiguration.d.ts +17 -17
  32. package/dist/productConfiguration/utilitiesProductConfiguration.js +80 -80
  33. package/dist/productLoader.d.ts +33 -33
  34. package/dist/productLoader.js +49 -49
  35. package/dist/tests/testData/collectorForTest.d.ts +73 -73
  36. package/dist/tests/testData/collectorForTest.js +195 -195
  37. package/dist/tests/testData/dummyProductForTest.d.ts +4 -4
  38. package/dist/tests/testData/dummyProductForTest.js +36 -36
  39. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.d.ts +32 -32
  40. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.js +348 -348
  41. package/dist/tests/testData/testDataCachedGetProduct.d.ts +5 -5
  42. package/dist/tests/testData/testDataCachedGetProduct.js +196 -196
  43. package/dist/tests/testData/testDataCachedPostValidate.d.ts +7 -7
  44. package/dist/tests/testData/testDataCachedPostValidate.js +183 -183
  45. package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.d.ts +3 -3
  46. package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.js +1099 -1099
  47. package/dist/tests/testData/testDataProductAggregatedPrice.d.ts +6 -6
  48. package/dist/tests/testData/testDataProductAggregatedPrice.js +198 -198
  49. package/dist/tests/testData/testDataUpcharge.d.ts +29 -29
  50. package/dist/tests/testData/testDataUpcharge.js +151 -151
  51. package/dist/utilitiesCatalogueData.d.ts +25 -25
  52. package/dist/utilitiesCatalogueData.js +64 -64
  53. package/dist/utilitiesCataloguePermission.d.ts +39 -39
  54. package/dist/utilitiesCataloguePermission.js +84 -84
  55. package/dist/utilitiesNumericValues.d.ts +24 -24
  56. package/dist/utilitiesNumericValues.js +109 -109
  57. package/package.json +3 -3
@@ -1,36 +1,36 @@
1
- import { CfgProduct } from "../../CfgProduct";
2
- export const dummyCatId = {
3
- enterprise: "enterprise",
4
- prdCat: "prdCat",
5
- prdCatVersion: "prdCatVersion",
6
- vendor: "vendor",
7
- priceList: "priceList",
8
- };
9
- export const getDummyCfgProduct = () => CfgProduct.make({
10
- getProduct: () => Promise.resolve({
11
- features: [],
12
- uuid: "uuid",
13
- unit: "m",
14
- rootFeatureRefs: [],
15
- productData: {
16
- sku: "sku",
17
- partsData: {
18
- basePrice: 0,
19
- currency: "",
20
- listPrice: 0,
21
- pkgCount: 0,
22
- selOptions: [],
23
- styleNr: "",
24
- },
25
- },
26
- }),
27
- postValidate: () => {
28
- throw new Error("Should not be used");
29
- },
30
- }, "lang", {
31
- enterprise: "enterprise",
32
- prdCat: "prdCat",
33
- prdCatVersion: "prdCatVersion",
34
- priceList: "priceList",
35
- vendor: "vendor",
36
- }, "partNumber");
1
+ import { CfgProduct } from "../../CfgProduct";
2
+ export const dummyCatId = {
3
+ enterprise: "enterprise",
4
+ prdCat: "prdCat",
5
+ prdCatVersion: "prdCatVersion",
6
+ vendor: "vendor",
7
+ priceList: "priceList",
8
+ };
9
+ export const getDummyCfgProduct = () => CfgProduct.make({
10
+ getProduct: () => Promise.resolve({
11
+ features: [],
12
+ uuid: "uuid",
13
+ unit: "m",
14
+ rootFeatureRefs: [],
15
+ productData: {
16
+ sku: "sku",
17
+ partsData: {
18
+ basePrice: 0,
19
+ currency: "",
20
+ listPrice: 0,
21
+ pkgCount: 0,
22
+ selOptions: [],
23
+ styleNr: "",
24
+ },
25
+ },
26
+ }),
27
+ postValidate: () => {
28
+ throw new Error("Should not be used");
29
+ },
30
+ }, "lang", {
31
+ enterprise: "enterprise",
32
+ prdCat: "prdCat",
33
+ prdCatVersion: "prdCatVersion",
34
+ priceList: "priceList",
35
+ vendor: "vendor",
36
+ }, "partNumber");
@@ -1,33 +1,33 @@
1
- import { GetProductParams } from "../../CatalogueAPI";
2
- import { CfgProduct } from "../../CfgProduct";
3
- import { CfgProductResponse } from "../../utilitiesCatalogueData";
4
- export declare const getTestProduct: (params: GetProductParams) => Promise<CfgProductResponse>;
5
- export declare const cfgProductTest: (testFunc: (product: CfgProduct) => Promise<void>, prepFunc?: ((product: CfgProduct) => Promise<void>) | undefined) => Promise<{
6
- beforeSnapshot: {
7
- path: string;
8
- selected: boolean;
9
- } & {
10
- productConfiguration: {
11
- path: string;
12
- };
13
- additionalProducts: {
14
- path: string;
15
- selected: boolean;
16
- }[];
17
- };
18
- afterSnapshot: {
19
- path: string;
20
- selected: boolean;
21
- } & {
22
- productConfiguration: {
23
- path: string;
24
- };
25
- additionalProducts: {
26
- path: string;
27
- selected: boolean;
28
- }[];
29
- };
30
- diff: string[];
31
- notifications: string[];
32
- }>;
1
+ import { GetProductParams } from "../../CatalogueAPI";
2
+ import { CfgProduct } from "../../CfgProduct";
3
+ import { CfgProductResponse } from "../../utilitiesCatalogueData";
4
+ export declare const getTestProduct: (params: GetProductParams) => Promise<CfgProductResponse>;
5
+ export declare const cfgProductTest: (testFunc: (product: CfgProduct) => Promise<void>, prepFunc?: ((product: CfgProduct) => Promise<void>) | undefined) => Promise<{
6
+ beforeSnapshot: {
7
+ path: string;
8
+ selected: boolean;
9
+ } & {
10
+ productConfiguration: {
11
+ path: string;
12
+ };
13
+ additionalProducts: {
14
+ path: string;
15
+ selected: boolean;
16
+ }[];
17
+ };
18
+ afterSnapshot: {
19
+ path: string;
20
+ selected: boolean;
21
+ } & {
22
+ productConfiguration: {
23
+ path: string;
24
+ };
25
+ additionalProducts: {
26
+ path: string;
27
+ selected: boolean;
28
+ }[];
29
+ };
30
+ diff: string[];
31
+ notifications: string[];
32
+ }>;
33
33
  //# sourceMappingURL=testDataAdditionalProductInAdditionalProductInProductForTest.d.ts.map