@longvansoftware/storefront-js-client 3.5.4 → 3.5.6
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.
|
@@ -172,10 +172,23 @@ exports.CREATE_PRODUCT_FROM_TEMPLATE = (0, graphql_tag_1.gql) `
|
|
|
172
172
|
attributeDTOS {
|
|
173
173
|
id
|
|
174
174
|
key
|
|
175
|
+
extendFromSource
|
|
175
176
|
value {
|
|
176
177
|
name
|
|
177
178
|
value
|
|
178
179
|
}
|
|
180
|
+
metadata {
|
|
181
|
+
type
|
|
182
|
+
dataFrom
|
|
183
|
+
description
|
|
184
|
+
requiredData
|
|
185
|
+
otherItem
|
|
186
|
+
fill
|
|
187
|
+
subDataFrom {
|
|
188
|
+
name
|
|
189
|
+
value
|
|
190
|
+
}
|
|
191
|
+
}
|
|
179
192
|
}
|
|
180
193
|
compareAtPrices
|
|
181
194
|
priceUnit
|
|
@@ -245,10 +258,7 @@ exports.ADD_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
|
|
245
258
|
addProductAttribute(productId: $productId, key: $key, values: $values) {
|
|
246
259
|
id
|
|
247
260
|
key
|
|
248
|
-
|
|
249
|
-
name
|
|
250
|
-
value
|
|
251
|
-
}
|
|
261
|
+
extendFromSource
|
|
252
262
|
metadata {
|
|
253
263
|
type
|
|
254
264
|
dataFrom
|
|
@@ -256,6 +266,14 @@ exports.ADD_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
|
|
256
266
|
requiredData
|
|
257
267
|
otherItem
|
|
258
268
|
fill
|
|
269
|
+
subDataFrom {
|
|
270
|
+
name
|
|
271
|
+
value
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
value {
|
|
275
|
+
name
|
|
276
|
+
value
|
|
259
277
|
}
|
|
260
278
|
}
|
|
261
279
|
}
|
|
@@ -309,6 +327,7 @@ exports.UPDATE_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
|
|
309
327
|
) {
|
|
310
328
|
id
|
|
311
329
|
key
|
|
330
|
+
extendFromSource
|
|
312
331
|
value {
|
|
313
332
|
name
|
|
314
333
|
value
|
|
@@ -320,6 +339,10 @@ exports.UPDATE_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
|
|
320
339
|
requiredData
|
|
321
340
|
otherItem
|
|
322
341
|
fill
|
|
342
|
+
subDataFrom {
|
|
343
|
+
name
|
|
344
|
+
value
|
|
345
|
+
}
|
|
323
346
|
}
|
|
324
347
|
}
|
|
325
348
|
}
|
|
@@ -359,6 +382,44 @@ exports.CREATE_PRODUCT_VARIANT = (0, graphql_tag_1.gql) `
|
|
|
359
382
|
brandId
|
|
360
383
|
variant
|
|
361
384
|
parentId
|
|
385
|
+
attributeDTOS {
|
|
386
|
+
id
|
|
387
|
+
key
|
|
388
|
+
extendFromSource
|
|
389
|
+
value {
|
|
390
|
+
name
|
|
391
|
+
value
|
|
392
|
+
}
|
|
393
|
+
metadata {
|
|
394
|
+
type
|
|
395
|
+
dataFrom
|
|
396
|
+
description
|
|
397
|
+
requiredData
|
|
398
|
+
otherItem
|
|
399
|
+
fill
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
productAttributeList {
|
|
403
|
+
id
|
|
404
|
+
key
|
|
405
|
+
extendFromSource
|
|
406
|
+
metadata {
|
|
407
|
+
type
|
|
408
|
+
dataFrom
|
|
409
|
+
description
|
|
410
|
+
requiredData
|
|
411
|
+
otherItem
|
|
412
|
+
fill
|
|
413
|
+
subDataFrom {
|
|
414
|
+
name
|
|
415
|
+
value
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
value {
|
|
419
|
+
name
|
|
420
|
+
value
|
|
421
|
+
}
|
|
422
|
+
}
|
|
362
423
|
}
|
|
363
424
|
}
|
|
364
425
|
`;
|
|
@@ -49,7 +49,7 @@ export declare class ProductService extends Service {
|
|
|
49
49
|
getUnits(): Promise<any>;
|
|
50
50
|
clearAllCaches(): Promise<any>;
|
|
51
51
|
getProductVariantById(variantId: string): Promise<any>;
|
|
52
|
-
createProductTemplatesByPartner(): Promise<any>;
|
|
52
|
+
createProductTemplatesByPartner(partnerId: string): Promise<any>;
|
|
53
53
|
createProductFromTemplate(templateId: string, createdBy: string): Promise<any>;
|
|
54
54
|
getProductTemplates(groupId: string): Promise<any>;
|
|
55
55
|
getGroups(): Promise<any>;
|
|
@@ -382,11 +382,11 @@ class ProductService extends serviceSDK_1.Service {
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
createProductTemplatesByPartner() {
|
|
385
|
+
createProductTemplatesByPartner(partnerId) {
|
|
386
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
387
387
|
const mutation = mutations_1.CREATE_PRODUCT_TEMPLATES_BY_PARTNER;
|
|
388
388
|
const variables = {
|
|
389
|
-
partnerId:
|
|
389
|
+
partnerId: partnerId,
|
|
390
390
|
};
|
|
391
391
|
try {
|
|
392
392
|
const response = yield this.graphqlMutation(mutation, variables);
|
|
@@ -670,7 +670,7 @@ class ProductService extends serviceSDK_1.Service {
|
|
|
670
670
|
const mutation = mutations_1.CREATE_UNIT;
|
|
671
671
|
const variables = {
|
|
672
672
|
partnerId: this.orgId,
|
|
673
|
-
name
|
|
673
|
+
name,
|
|
674
674
|
};
|
|
675
675
|
try {
|
|
676
676
|
const response = yield this.graphqlMutation(mutation, variables);
|