@configura/web-api 3.2.0-alpha.0 → 3.3.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.
- package/dist/CatalogueAPI.d.ts +2 -0
- package/dist/tests/testData/dummyProductForTest.js +1 -0
- package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.js +5 -0
- package/dist/tests/testData/testDataCachedGetProduct.js +6 -0
- package/dist/tests/testData/testDataCachedPostValidate.js +4 -0
- package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.js +1 -0
- package/dist/tests/testData/testDataProductAggregatedPrice.js +6 -0
- package/dist/tests/testData/testDataUpcharge.js +2 -0
- package/package.json +3 -3
package/dist/CatalogueAPI.d.ts
CHANGED
|
@@ -703,6 +703,7 @@ export interface DtoProductResponse {
|
|
|
703
703
|
rootFeatureRefs: Array<DtoFeatureRef>;
|
|
704
704
|
features: Array<DtoFeature>;
|
|
705
705
|
productData: DtoProductData;
|
|
706
|
+
omitOnOrder: boolean;
|
|
706
707
|
unit: string;
|
|
707
708
|
uuid: string;
|
|
708
709
|
notes?: Array<DtoNote>;
|
|
@@ -900,6 +901,7 @@ export interface DtoValidateRequest {
|
|
|
900
901
|
/** ValidateResponse */
|
|
901
902
|
export interface DtoValidateResponse {
|
|
902
903
|
productData: DtoProductData;
|
|
904
|
+
omitOnOrder: boolean;
|
|
903
905
|
uuid: string;
|
|
904
906
|
validated: boolean;
|
|
905
907
|
rootFeatureRefs?: Array<DtoFeatureRef>;
|
|
@@ -5,6 +5,7 @@ import { letterOptionCodeA, letterOptionCodeB, letterOptionCodeC, letterOptions,
|
|
|
5
5
|
const A = () => ({
|
|
6
6
|
uuid: "A",
|
|
7
7
|
unit: "m",
|
|
8
|
+
omitOnOrder: false,
|
|
8
9
|
features: [
|
|
9
10
|
{
|
|
10
11
|
code: "featureA",
|
|
@@ -98,6 +99,7 @@ const A = () => ({
|
|
|
98
99
|
const B = () => ({
|
|
99
100
|
uuid: "B",
|
|
100
101
|
unit: "m",
|
|
102
|
+
omitOnOrder: false,
|
|
101
103
|
features: [
|
|
102
104
|
{
|
|
103
105
|
code: "featureI",
|
|
@@ -153,6 +155,7 @@ const B = () => ({
|
|
|
153
155
|
const C = () => ({
|
|
154
156
|
uuid: "C",
|
|
155
157
|
unit: "m",
|
|
158
|
+
omitOnOrder: false,
|
|
156
159
|
features: [
|
|
157
160
|
{
|
|
158
161
|
code: "featureC",
|
|
@@ -186,6 +189,7 @@ const C = () => ({
|
|
|
186
189
|
const D = () => ({
|
|
187
190
|
uuid: "D",
|
|
188
191
|
unit: "m",
|
|
192
|
+
omitOnOrder: false,
|
|
189
193
|
features: [],
|
|
190
194
|
productData: {
|
|
191
195
|
sku: "D",
|
|
@@ -253,6 +257,7 @@ export const cfgProductTest = async (testFunc, prepFunc) => {
|
|
|
253
257
|
const validateResponse = {
|
|
254
258
|
uuid: "",
|
|
255
259
|
unit: "m",
|
|
260
|
+
omitOnOrder: false,
|
|
256
261
|
validated: true,
|
|
257
262
|
productData,
|
|
258
263
|
features: [],
|
|
@@ -6,6 +6,7 @@ let prodKeyArray = [];
|
|
|
6
6
|
const A = () => ({
|
|
7
7
|
uuid: "A",
|
|
8
8
|
unit: "m",
|
|
9
|
+
omitOnOrder: false,
|
|
9
10
|
features: [
|
|
10
11
|
{
|
|
11
12
|
code: "featureA",
|
|
@@ -58,6 +59,7 @@ const A = () => ({
|
|
|
58
59
|
const B = () => ({
|
|
59
60
|
uuid: "B",
|
|
60
61
|
unit: "m",
|
|
62
|
+
omitOnOrder: false,
|
|
61
63
|
features: [],
|
|
62
64
|
productData: {
|
|
63
65
|
sku: "B",
|
|
@@ -76,6 +78,7 @@ const B = () => ({
|
|
|
76
78
|
const C = () => ({
|
|
77
79
|
uuid: "C",
|
|
78
80
|
unit: "m",
|
|
81
|
+
omitOnOrder: false,
|
|
79
82
|
features: [],
|
|
80
83
|
productData: {
|
|
81
84
|
sku: "C",
|
|
@@ -93,6 +96,7 @@ const C = () => ({
|
|
|
93
96
|
const D = () => ({
|
|
94
97
|
uuid: "D",
|
|
95
98
|
unit: "m",
|
|
99
|
+
omitOnOrder: false,
|
|
96
100
|
features: [],
|
|
97
101
|
productData: {
|
|
98
102
|
sku: "D",
|
|
@@ -110,6 +114,7 @@ const D = () => ({
|
|
|
110
114
|
const E = () => ({
|
|
111
115
|
uuid: "E",
|
|
112
116
|
unit: "m",
|
|
117
|
+
omitOnOrder: false,
|
|
113
118
|
features: [],
|
|
114
119
|
productData: {
|
|
115
120
|
sku: "E",
|
|
@@ -172,6 +177,7 @@ export const cachedProductLoaderTest = async () => {
|
|
|
172
177
|
const validateResponse = {
|
|
173
178
|
uuid: "",
|
|
174
179
|
unit: "m",
|
|
180
|
+
omitOnOrder: false,
|
|
175
181
|
validated: true,
|
|
176
182
|
productData,
|
|
177
183
|
features: [],
|
|
@@ -3,6 +3,7 @@ import { dummyCatId } from "./dummyProductForTest.js";
|
|
|
3
3
|
const Table = () => ({
|
|
4
4
|
uuid: "Table",
|
|
5
5
|
unit: "m",
|
|
6
|
+
omitOnOrder: false,
|
|
6
7
|
features: [
|
|
7
8
|
{
|
|
8
9
|
code: "Leg",
|
|
@@ -57,6 +58,7 @@ const Table = () => ({
|
|
|
57
58
|
const LegA = () => ({
|
|
58
59
|
uuid: "LegA",
|
|
59
60
|
unit: "m",
|
|
61
|
+
omitOnOrder: false,
|
|
60
62
|
features: [
|
|
61
63
|
{
|
|
62
64
|
code: "Color",
|
|
@@ -103,6 +105,7 @@ const LegA = () => ({
|
|
|
103
105
|
const LegWheel = () => ({
|
|
104
106
|
uuid: "LegWheel",
|
|
105
107
|
unit: "m",
|
|
108
|
+
omitOnOrder: false,
|
|
106
109
|
features: [
|
|
107
110
|
{
|
|
108
111
|
code: "Color",
|
|
@@ -163,6 +166,7 @@ export const cachedProductLoaderTest = async () => {
|
|
|
163
166
|
const validateResponse = {
|
|
164
167
|
uuid: "",
|
|
165
168
|
unit: "m",
|
|
169
|
+
omitOnOrder: false,
|
|
166
170
|
validated: true,
|
|
167
171
|
productData,
|
|
168
172
|
features: [],
|
|
@@ -4,6 +4,7 @@ import { letterOptionCodeA, letterOptionCodeB, letterOptionCodeC, letterOptions,
|
|
|
4
4
|
const A = () => ({
|
|
5
5
|
uuid: "A",
|
|
6
6
|
unit: "m",
|
|
7
|
+
omitOnOrder: false,
|
|
7
8
|
features: [
|
|
8
9
|
{
|
|
9
10
|
code: "featureA",
|
|
@@ -56,6 +57,7 @@ const A = () => ({
|
|
|
56
57
|
const B = () => ({
|
|
57
58
|
uuid: "B",
|
|
58
59
|
unit: "m",
|
|
60
|
+
omitOnOrder: false,
|
|
59
61
|
features: [],
|
|
60
62
|
productData: {
|
|
61
63
|
sku: "B",
|
|
@@ -74,6 +76,7 @@ const B = () => ({
|
|
|
74
76
|
const C = () => ({
|
|
75
77
|
uuid: "C",
|
|
76
78
|
unit: "m",
|
|
79
|
+
omitOnOrder: false,
|
|
77
80
|
features: [],
|
|
78
81
|
productData: {
|
|
79
82
|
sku: "C",
|
|
@@ -91,6 +94,7 @@ const C = () => ({
|
|
|
91
94
|
const D = () => ({
|
|
92
95
|
uuid: "D",
|
|
93
96
|
unit: "m",
|
|
97
|
+
omitOnOrder: false,
|
|
94
98
|
features: [],
|
|
95
99
|
productData: {
|
|
96
100
|
sku: "D",
|
|
@@ -108,6 +112,7 @@ const D = () => ({
|
|
|
108
112
|
const E = () => ({
|
|
109
113
|
uuid: "E",
|
|
110
114
|
unit: "m",
|
|
115
|
+
omitOnOrder: false,
|
|
111
116
|
features: [],
|
|
112
117
|
productData: {
|
|
113
118
|
sku: "E",
|
|
@@ -176,6 +181,7 @@ export const cfgProductPriceTest = async (testFunc, featureOption) => {
|
|
|
176
181
|
uuid: "",
|
|
177
182
|
unit: "m",
|
|
178
183
|
validated: true,
|
|
184
|
+
omitOnOrder: false,
|
|
179
185
|
productData,
|
|
180
186
|
features: [],
|
|
181
187
|
};
|
|
@@ -5,6 +5,7 @@ import { letterOptionCodeA, letterOptions } from "./testDataOptions.js";
|
|
|
5
5
|
const Prd = () => ({
|
|
6
6
|
uuid: "Prd",
|
|
7
7
|
unit: "m",
|
|
8
|
+
omitOnOrder: false,
|
|
8
9
|
features: [
|
|
9
10
|
{
|
|
10
11
|
code: "NoUpcharge",
|
|
@@ -107,6 +108,7 @@ export const getUpchargeProduct = async (testFunc) => {
|
|
|
107
108
|
const validateResponse = {
|
|
108
109
|
uuid: "",
|
|
109
110
|
unit: "m",
|
|
111
|
+
omitOnOrder: false,
|
|
110
112
|
validated: true,
|
|
111
113
|
productData,
|
|
112
114
|
features: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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": "3.
|
|
26
|
+
"@configura/web-utilities": "3.3.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "104ce32c903256c81b11337556386878fbd3980c"
|
|
29
29
|
}
|