@longvansoftware/storefront-js-client 4.3.7-beta.1 → 4.3.7

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 (38) hide show
  1. package/README.md +221 -221
  2. package/dist/src/graphql/auth/mutations.js +309 -309
  3. package/dist/src/graphql/auth/queries.js +209 -209
  4. package/dist/src/graphql/campaign/mutations.js +26 -26
  5. package/dist/src/graphql/campaign/queries.js +457 -457
  6. package/dist/src/graphql/cashbook/queries.js +93 -93
  7. package/dist/src/graphql/cloud/mutations.js +103 -103
  8. package/dist/src/graphql/cloud/queries.js +112 -112
  9. package/dist/src/graphql/cloudCloud/mutations.js +12 -12
  10. package/dist/src/graphql/cloudCloud/queries.js +117 -117
  11. package/dist/src/graphql/cloudService/queries.d.ts +1 -0
  12. package/dist/src/graphql/cloudService/queries.js +71 -0
  13. package/dist/src/graphql/computing/mutations.js +96 -96
  14. package/dist/src/graphql/computing/queries.js +41 -41
  15. package/dist/src/graphql/crm/mutations.js +1064 -1064
  16. package/dist/src/graphql/crm/queries.js +920 -920
  17. package/dist/src/graphql/orderCloud/mutations.js +7 -7
  18. package/dist/src/graphql/orderCloud/queries.js +7 -7
  19. package/dist/src/graphql/payment/mutations.js +194 -194
  20. package/dist/src/graphql/payment/queries.js +117 -117
  21. package/dist/src/graphql/paymentV2/mutations.js +115 -115
  22. package/dist/src/graphql/paymentV2/queries.js +263 -263
  23. package/dist/src/graphql/product/mutations.js +652 -652
  24. package/dist/src/graphql/product/queries.js +990 -989
  25. package/dist/src/graphql/service/mutations.js +304 -304
  26. package/dist/src/graphql/service/queries.js +131 -131
  27. package/dist/src/graphql/store/mutations.js +24 -24
  28. package/dist/src/graphql/store/queries.js +24 -24
  29. package/dist/src/graphql/user/mutations.js +201 -201
  30. package/dist/src/graphql/user/queries.js +339 -339
  31. package/dist/src/lib/cloudService/index.d.ts +5 -0
  32. package/dist/src/lib/cloudService/index.js +35 -0
  33. package/dist/src/lib/order/index.d.ts +0 -9
  34. package/dist/src/lib/order/index.js +0 -21
  35. package/dist/src/lib/serviceSDK.js +14 -14
  36. package/package.json +43 -43
  37. package/dist/index.d.ts +0 -1698
  38. package/dist/index.js +0 -13673
@@ -2,684 +2,684 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UPDATE_PRODUCT_SUBTYPE = exports.REMOVE_PRODUCT = exports.CREATE_PRODUCT = exports.REMOVE_IMAGE = exports.REMOVE_PRODUCT_IMAGES = exports.BUILD_PRODUCT_PREBUILD_BY_STORE = exports.BUILD_PRODUCT_PREBUILD_BY_PRODUCT = exports.CREATE_PRODUCT_IMAGES = exports.CREATE_UNIT = exports.CREATE_BRAND = exports.CREATE_CATEGORY = exports.CREATE_GROUP = exports.UPDATE_PRODUCT_VAT = exports.UPDATE_PRODUCT_SKU = exports.CREATE_PRODUCT_VARIANT = exports.REMOVE_PRODUCT_ATTRIBUTE = exports.UPDATE_PRODUCT_ATTRIBUTE = exports.UPDATE_PRODUCT_BRAND = exports.SAVE_PRODUCT_DRAFT = exports.ADD_PRODUCT_ATTRIBUTE = exports.CREATE_PRODUCT_FROM_TEMPLATE = exports.CREATE_PRODUCT_TEMPLATES_BY_PARTNER = exports.CLEAR_ALL_CACHES = exports.UPDATE_UNIT = exports.UPDATE_SHORT_DESCRIPTION = exports.UPDATE_CATEGORY = exports.UPDATE_PRICE_PROMOTION = exports.UPDATE_PRICE = exports.UPDATE_PRODUCT_TITLE = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.UPDATE_PRODUCT_TITLE = (0, graphql_tag_1.gql) `
6
- mutation UpdateProductTitle(
7
- $productId: String!
8
- $title: String!
9
- $updatedBy: String!
10
- ) {
11
- updateProductTitle(
12
- productId: $productId
13
- title: $title
14
- updatedBy: $updatedBy
15
- ) {
16
- status
17
- message
18
- }
19
- }
5
+ exports.UPDATE_PRODUCT_TITLE = (0, graphql_tag_1.gql) `
6
+ mutation UpdateProductTitle(
7
+ $productId: String!
8
+ $title: String!
9
+ $updatedBy: String!
10
+ ) {
11
+ updateProductTitle(
12
+ productId: $productId
13
+ title: $title
14
+ updatedBy: $updatedBy
15
+ ) {
16
+ status
17
+ message
18
+ }
19
+ }
20
20
  `;
21
- exports.UPDATE_PRICE = (0, graphql_tag_1.gql) `
22
- mutation UpdatePrice(
23
- $productId: String!
24
- $storeId: String!
25
- $price: BigDecimal!
26
- $updatedBy: String!
27
- ) {
28
- updatePrice(
29
- productId: $productId
30
- storeId: $storeId
31
- price: $price
32
- updatedBy: $updatedBy
33
- ) {
34
- status
35
- message
36
- }
37
- }
21
+ exports.UPDATE_PRICE = (0, graphql_tag_1.gql) `
22
+ mutation UpdatePrice(
23
+ $productId: String!
24
+ $storeId: String!
25
+ $price: BigDecimal!
26
+ $updatedBy: String!
27
+ ) {
28
+ updatePrice(
29
+ productId: $productId
30
+ storeId: $storeId
31
+ price: $price
32
+ updatedBy: $updatedBy
33
+ ) {
34
+ status
35
+ message
36
+ }
37
+ }
38
38
  `;
39
- exports.UPDATE_PRICE_PROMOTION = (0, graphql_tag_1.gql) `
40
- mutation UpdatePricePromotion(
41
- $productId: String!
42
- $storeId: String!
43
- $price: BigDecimal
44
- $updatedBy: String!
45
- ) {
46
- updatePricePromotion(
47
- productId: $productId
48
- storeId: $storeId
49
- price: $price
50
- updatedBy: $updatedBy
51
- ) {
52
- status
53
- message
54
- }
55
- }
39
+ exports.UPDATE_PRICE_PROMOTION = (0, graphql_tag_1.gql) `
40
+ mutation UpdatePricePromotion(
41
+ $productId: String!
42
+ $storeId: String!
43
+ $price: BigDecimal
44
+ $updatedBy: String!
45
+ ) {
46
+ updatePricePromotion(
47
+ productId: $productId
48
+ storeId: $storeId
49
+ price: $price
50
+ updatedBy: $updatedBy
51
+ ) {
52
+ status
53
+ message
54
+ }
55
+ }
56
56
  `;
57
- exports.UPDATE_CATEGORY = (0, graphql_tag_1.gql) `
58
- mutation UpdateCategory(
59
- $productId: String!
60
- $categoryId: String!
61
- $updatedBy: String!
62
- ) {
63
- updateCategory(
64
- productId: $productId
65
- categoryId: $categoryId
66
- updatedBy: $updatedBy
67
- ) {
68
- status
69
- message
70
- }
71
- }
57
+ exports.UPDATE_CATEGORY = (0, graphql_tag_1.gql) `
58
+ mutation UpdateCategory(
59
+ $productId: String!
60
+ $categoryId: String!
61
+ $updatedBy: String!
62
+ ) {
63
+ updateCategory(
64
+ productId: $productId
65
+ categoryId: $categoryId
66
+ updatedBy: $updatedBy
67
+ ) {
68
+ status
69
+ message
70
+ }
71
+ }
72
72
  `;
73
- exports.UPDATE_SHORT_DESCRIPTION = (0, graphql_tag_1.gql) `
74
- mutation UpdateShortDescription(
75
- $productId: String!
76
- $shortDescription: String!
77
- $updatedBy: String!
78
- ) {
79
- updateShortDescription(
80
- productId: $productId
81
- shortDescription: $shortDescription
82
- updatedBy: $updatedBy
83
- ) {
84
- status
85
- message
86
- }
87
- }
73
+ exports.UPDATE_SHORT_DESCRIPTION = (0, graphql_tag_1.gql) `
74
+ mutation UpdateShortDescription(
75
+ $productId: String!
76
+ $shortDescription: String!
77
+ $updatedBy: String!
78
+ ) {
79
+ updateShortDescription(
80
+ productId: $productId
81
+ shortDescription: $shortDescription
82
+ updatedBy: $updatedBy
83
+ ) {
84
+ status
85
+ message
86
+ }
87
+ }
88
88
  `;
89
- exports.UPDATE_UNIT = (0, graphql_tag_1.gql) `
90
- mutation UpdateUnit(
91
- $productId: String!
92
- $unitId: String!
93
- $updatedBy: String!
94
- ) {
95
- updateUnit(productId: $productId, unitId: $unitId, updatedBy: $updatedBy) {
96
- status
97
- message
98
- }
99
- }
89
+ exports.UPDATE_UNIT = (0, graphql_tag_1.gql) `
90
+ mutation UpdateUnit(
91
+ $productId: String!
92
+ $unitId: String!
93
+ $updatedBy: String!
94
+ ) {
95
+ updateUnit(productId: $productId, unitId: $unitId, updatedBy: $updatedBy) {
96
+ status
97
+ message
98
+ }
99
+ }
100
100
  `;
101
- exports.CLEAR_ALL_CACHES = (0, graphql_tag_1.gql) `
102
- mutation ClearAllCaches {
103
- clearAllCaches
104
- }
101
+ exports.CLEAR_ALL_CACHES = (0, graphql_tag_1.gql) `
102
+ mutation ClearAllCaches {
103
+ clearAllCaches
104
+ }
105
105
  `;
106
- exports.CREATE_PRODUCT_TEMPLATES_BY_PARTNER = (0, graphql_tag_1.gql) `
107
- mutation CreateProductTemplatesByPartner($partnerId: String!) {
108
- createProductTemplatesByPartner(partnerId: $partnerId) {
109
- id
110
- title
111
- subType
112
- description
113
- sku
114
- shortDescription
115
- weight
116
- width
117
- depth
118
- height
119
- vat
120
- qualify
121
- parentId
122
- handle
123
- price
124
- displayPrice
125
- hint
126
- compareAtPrices
127
- priceUnit
128
- priceQuantity
129
- priceType
130
- salePolicy
131
- priceTypeName
132
- priceVaries
133
- available
134
- tags
135
- options
136
- optionsRelationship
137
- compareAtPrice
138
- featuredImage
139
- version
140
- images
141
- }
142
- }
106
+ exports.CREATE_PRODUCT_TEMPLATES_BY_PARTNER = (0, graphql_tag_1.gql) `
107
+ mutation CreateProductTemplatesByPartner($partnerId: String!) {
108
+ createProductTemplatesByPartner(partnerId: $partnerId) {
109
+ id
110
+ title
111
+ subType
112
+ description
113
+ sku
114
+ shortDescription
115
+ weight
116
+ width
117
+ depth
118
+ height
119
+ vat
120
+ qualify
121
+ parentId
122
+ handle
123
+ price
124
+ displayPrice
125
+ hint
126
+ compareAtPrices
127
+ priceUnit
128
+ priceQuantity
129
+ priceType
130
+ salePolicy
131
+ priceTypeName
132
+ priceVaries
133
+ available
134
+ tags
135
+ options
136
+ optionsRelationship
137
+ compareAtPrice
138
+ featuredImage
139
+ version
140
+ images
141
+ }
142
+ }
143
143
  `;
144
- exports.CREATE_PRODUCT_FROM_TEMPLATE = (0, graphql_tag_1.gql) `
145
- mutation CreateProductFromTemplate(
146
- $partnerId: String!
147
- $templateId: String
148
- $createdBy: String!
149
- ) {
150
- createProductFromTemplate(
151
- partnerId: $partnerId
152
- templateId: $templateId
153
- createdBy: $createdBy
154
- ) {
155
- id
156
- title
157
- subType
158
- description
159
- sku
160
- shortDescription
161
- weight
162
- width
163
- depth
164
- height
165
- vat
166
- qualify
167
- parentId
168
- handle
169
- price
170
- displayPrice
171
- hint
172
- brand {
173
- id
174
- createStamp
175
- createdBy
176
- name
177
- image
178
- imageIcon
179
- }
180
- attributeDTOS {
181
- id
182
- key
183
- extendFromSource
184
- value {
185
- name
186
- value
187
- }
188
- metadata {
189
- type
190
- dataFrom
191
- description
192
- requiredData
193
- otherItem
194
- fill
195
- subDataFrom {
196
- name
197
- value
198
- }
199
- }
200
- }
201
- compareAtPrices
202
- priceUnit
203
- priceQuantity
204
- priceType
205
- salePolicy
206
- priceTypeName
207
- priceVaries
208
- available
209
- tags
210
- options
211
- optionsRelationship
212
- compareAtPrice
213
- featuredImage
214
- version
215
- unitDTO {
216
- id
217
- name
218
- }
219
- images
220
- variants {
221
- id
222
- handle
223
- title
224
- price
225
- priceType
226
- compareAtPrice
227
- options
228
- optionsIds
229
- featuredImage
230
- sku
231
- }
232
- featureTypes {
233
- id
234
- name
235
- position
236
- type
237
- subType
238
- fill
239
- requireData
240
- otherItem
241
- values
242
- createStamp
243
- createdBy
244
- }
245
- categories {
246
- id
247
- title
248
- image
249
- icon
250
- parentId
251
- level
252
- handle
253
- description
254
- }
255
- groups {
256
- id
257
- name
258
- policy
259
- image
260
- }
261
- }
262
- }
144
+ exports.CREATE_PRODUCT_FROM_TEMPLATE = (0, graphql_tag_1.gql) `
145
+ mutation CreateProductFromTemplate(
146
+ $partnerId: String!
147
+ $templateId: String
148
+ $createdBy: String!
149
+ ) {
150
+ createProductFromTemplate(
151
+ partnerId: $partnerId
152
+ templateId: $templateId
153
+ createdBy: $createdBy
154
+ ) {
155
+ id
156
+ title
157
+ subType
158
+ description
159
+ sku
160
+ shortDescription
161
+ weight
162
+ width
163
+ depth
164
+ height
165
+ vat
166
+ qualify
167
+ parentId
168
+ handle
169
+ price
170
+ displayPrice
171
+ hint
172
+ brand {
173
+ id
174
+ createStamp
175
+ createdBy
176
+ name
177
+ image
178
+ imageIcon
179
+ }
180
+ attributeDTOS {
181
+ id
182
+ key
183
+ extendFromSource
184
+ value {
185
+ name
186
+ value
187
+ }
188
+ metadata {
189
+ type
190
+ dataFrom
191
+ description
192
+ requiredData
193
+ otherItem
194
+ fill
195
+ subDataFrom {
196
+ name
197
+ value
198
+ }
199
+ }
200
+ }
201
+ compareAtPrices
202
+ priceUnit
203
+ priceQuantity
204
+ priceType
205
+ salePolicy
206
+ priceTypeName
207
+ priceVaries
208
+ available
209
+ tags
210
+ options
211
+ optionsRelationship
212
+ compareAtPrice
213
+ featuredImage
214
+ version
215
+ unitDTO {
216
+ id
217
+ name
218
+ }
219
+ images
220
+ variants {
221
+ id
222
+ handle
223
+ title
224
+ price
225
+ priceType
226
+ compareAtPrice
227
+ options
228
+ optionsIds
229
+ featuredImage
230
+ sku
231
+ }
232
+ featureTypes {
233
+ id
234
+ name
235
+ position
236
+ type
237
+ subType
238
+ fill
239
+ requireData
240
+ otherItem
241
+ values
242
+ createStamp
243
+ createdBy
244
+ }
245
+ categories {
246
+ id
247
+ title
248
+ image
249
+ icon
250
+ parentId
251
+ level
252
+ handle
253
+ description
254
+ }
255
+ groups {
256
+ id
257
+ name
258
+ policy
259
+ image
260
+ }
261
+ }
262
+ }
263
263
  `;
264
- exports.ADD_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
265
- mutation AddProductAttribute(
266
- $productId: String!
267
- $key: String!
268
- $values: [String]!
269
- ) {
270
- addProductAttribute(productId: $productId, key: $key, values: $values) {
271
- id
272
- key
273
- extendFromSource
274
- metadata {
275
- type
276
- dataFrom
277
- description
278
- requiredData
279
- otherItem
280
- fill
281
- subDataFrom {
282
- name
283
- value
284
- }
285
- }
286
- value {
287
- name
288
- value
289
- }
290
- }
291
- }
264
+ exports.ADD_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
265
+ mutation AddProductAttribute(
266
+ $productId: String!
267
+ $key: String!
268
+ $values: [String]!
269
+ ) {
270
+ addProductAttribute(productId: $productId, key: $key, values: $values) {
271
+ id
272
+ key
273
+ extendFromSource
274
+ metadata {
275
+ type
276
+ dataFrom
277
+ description
278
+ requiredData
279
+ otherItem
280
+ fill
281
+ subDataFrom {
282
+ name
283
+ value
284
+ }
285
+ }
286
+ value {
287
+ name
288
+ value
289
+ }
290
+ }
291
+ }
292
292
  `;
293
- exports.SAVE_PRODUCT_DRAFT = (0, graphql_tag_1.gql) `
294
- mutation SaveProductDraft(
295
- $partnerId: String!
296
- $productId: String!
297
- $productInputDTOS: [ProductInputDTOInput]
298
- $storeId: String!
299
- ) {
300
- saveProductDraft(
301
- partnerId: $partnerId
302
- productId: $productId
303
- productInputDTOS: $productInputDTOS
304
- storeId: $storeId
305
- ) {
306
- status
307
- message
308
- }
309
- }
293
+ exports.SAVE_PRODUCT_DRAFT = (0, graphql_tag_1.gql) `
294
+ mutation SaveProductDraft(
295
+ $partnerId: String!
296
+ $productId: String!
297
+ $productInputDTOS: [ProductInputDTOInput]
298
+ $storeId: String!
299
+ ) {
300
+ saveProductDraft(
301
+ partnerId: $partnerId
302
+ productId: $productId
303
+ productInputDTOS: $productInputDTOS
304
+ storeId: $storeId
305
+ ) {
306
+ status
307
+ message
308
+ }
309
+ }
310
310
  `;
311
- exports.UPDATE_PRODUCT_BRAND = (0, graphql_tag_1.gql) `
312
- mutation UpdateProductBrand(
313
- $productId: String!
314
- $brandId: String!
315
- $updatedBy: String!
316
- ) {
317
- updateProductBrand(
318
- productId: $productId
319
- brandId: $brandId
320
- updatedBy: $updatedBy
321
- ) {
322
- status
323
- message
324
- }
325
- }
311
+ exports.UPDATE_PRODUCT_BRAND = (0, graphql_tag_1.gql) `
312
+ mutation UpdateProductBrand(
313
+ $productId: String!
314
+ $brandId: String!
315
+ $updatedBy: String!
316
+ ) {
317
+ updateProductBrand(
318
+ productId: $productId
319
+ brandId: $brandId
320
+ updatedBy: $updatedBy
321
+ ) {
322
+ status
323
+ message
324
+ }
325
+ }
326
326
  `;
327
- exports.UPDATE_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
328
- mutation UpdateProductAttribute(
329
- $productId: String!
330
- $attributeId: String!
331
- $key: String!
332
- $values: [String]!
333
- ) {
334
- updateProductAttribute(
335
- productId: $productId
336
- attributeId: $attributeId
337
- key: $key
338
- values: $values
339
- ) {
340
- id
341
- key
342
- extendFromSource
343
- value {
344
- name
345
- value
346
- }
347
- metadata {
348
- type
349
- dataFrom
350
- description
351
- requiredData
352
- otherItem
353
- fill
354
- subDataFrom {
355
- name
356
- value
357
- }
358
- }
359
- }
360
- }
327
+ exports.UPDATE_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
328
+ mutation UpdateProductAttribute(
329
+ $productId: String!
330
+ $attributeId: String!
331
+ $key: String!
332
+ $values: [String]!
333
+ ) {
334
+ updateProductAttribute(
335
+ productId: $productId
336
+ attributeId: $attributeId
337
+ key: $key
338
+ values: $values
339
+ ) {
340
+ id
341
+ key
342
+ extendFromSource
343
+ value {
344
+ name
345
+ value
346
+ }
347
+ metadata {
348
+ type
349
+ dataFrom
350
+ description
351
+ requiredData
352
+ otherItem
353
+ fill
354
+ subDataFrom {
355
+ name
356
+ value
357
+ }
358
+ }
359
+ }
360
+ }
361
361
  `;
362
- exports.REMOVE_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
363
- mutation RemoveProductAttribute($productId: String!, $key: String!) {
364
- removeProductAttribute(productId: $productId, key: $key) {
365
- status
366
- message
367
- }
368
- }
362
+ exports.REMOVE_PRODUCT_ATTRIBUTE = (0, graphql_tag_1.gql) `
363
+ mutation RemoveProductAttribute($productId: String!, $key: String!) {
364
+ removeProductAttribute(productId: $productId, key: $key) {
365
+ status
366
+ message
367
+ }
368
+ }
369
369
  `;
370
- exports.CREATE_PRODUCT_VARIANT = (0, graphql_tag_1.gql) `
371
- mutation CreateProductVariant(
372
- $partnerId: String!
373
- $attributes: [AttributeDTOInput]
374
- ) {
375
- createProductVariant(partnerId: $partnerId, attributes: $attributes) {
376
- title
377
- sku
378
- partyId
379
- vat
380
- unit
381
- version
382
- status
383
- display
384
- qualify
385
- subType
386
- type
387
- templateFor
388
- isDraft
389
- slug
390
- categoryIds
391
- productGroupIds
392
- tagIds
393
- featureIds
394
- brandId
395
- variant
396
- price
397
- parentId
398
- attributeDTOS {
399
- id
400
- key
401
- extendFromSource
402
- value {
403
- name
404
- value
405
- }
406
- metadata {
407
- type
408
- dataFrom
409
- description
410
- requiredData
411
- otherItem
412
- fill
413
- }
414
- }
415
- productAttributeList {
416
- id
417
- key
418
- extendFromSource
419
- metadata {
420
- type
421
- dataFrom
422
- description
423
- requiredData
424
- otherItem
425
- fill
426
- subDataFrom {
427
- name
428
- value
429
- }
430
- }
431
- value {
432
- name
433
- value
434
- }
435
- }
436
- }
437
- }
370
+ exports.CREATE_PRODUCT_VARIANT = (0, graphql_tag_1.gql) `
371
+ mutation CreateProductVariant(
372
+ $partnerId: String!
373
+ $attributes: [AttributeDTOInput]
374
+ ) {
375
+ createProductVariant(partnerId: $partnerId, attributes: $attributes) {
376
+ title
377
+ sku
378
+ partyId
379
+ vat
380
+ unit
381
+ version
382
+ status
383
+ display
384
+ qualify
385
+ subType
386
+ type
387
+ templateFor
388
+ isDraft
389
+ slug
390
+ categoryIds
391
+ productGroupIds
392
+ tagIds
393
+ featureIds
394
+ brandId
395
+ variant
396
+ price
397
+ parentId
398
+ attributeDTOS {
399
+ id
400
+ key
401
+ extendFromSource
402
+ value {
403
+ name
404
+ value
405
+ }
406
+ metadata {
407
+ type
408
+ dataFrom
409
+ description
410
+ requiredData
411
+ otherItem
412
+ fill
413
+ }
414
+ }
415
+ productAttributeList {
416
+ id
417
+ key
418
+ extendFromSource
419
+ metadata {
420
+ type
421
+ dataFrom
422
+ description
423
+ requiredData
424
+ otherItem
425
+ fill
426
+ subDataFrom {
427
+ name
428
+ value
429
+ }
430
+ }
431
+ value {
432
+ name
433
+ value
434
+ }
435
+ }
436
+ }
437
+ }
438
438
  `;
439
- exports.UPDATE_PRODUCT_SKU = (0, graphql_tag_1.gql) `
440
- mutation UpdateProductSKU(
441
- $partnerId: String!
442
- $productId: String!
443
- $sku: String!
444
- $updatedBy: String!
445
- ) {
446
- updateProductSKU(
447
- partnerId: $partnerId
448
- productId: $productId
449
- sku: $sku
450
- updatedBy: $updatedBy
451
- ) {
452
- status
453
- message
454
- }
455
- }
439
+ exports.UPDATE_PRODUCT_SKU = (0, graphql_tag_1.gql) `
440
+ mutation UpdateProductSKU(
441
+ $partnerId: String!
442
+ $productId: String!
443
+ $sku: String!
444
+ $updatedBy: String!
445
+ ) {
446
+ updateProductSKU(
447
+ partnerId: $partnerId
448
+ productId: $productId
449
+ sku: $sku
450
+ updatedBy: $updatedBy
451
+ ) {
452
+ status
453
+ message
454
+ }
455
+ }
456
456
  `;
457
- exports.UPDATE_PRODUCT_VAT = (0, graphql_tag_1.gql) `
458
- mutation UpdateProductVAT(
459
- $productId: String!
460
- $vat: BigDecimal!
461
- $updatedBy: String!
462
- ) {
463
- updateProductVAT(productId: $productId, vat: $vat, updatedBy: $updatedBy) {
464
- status
465
- message
466
- }
467
- }
457
+ exports.UPDATE_PRODUCT_VAT = (0, graphql_tag_1.gql) `
458
+ mutation UpdateProductVAT(
459
+ $productId: String!
460
+ $vat: BigDecimal!
461
+ $updatedBy: String!
462
+ ) {
463
+ updateProductVAT(productId: $productId, vat: $vat, updatedBy: $updatedBy) {
464
+ status
465
+ message
466
+ }
467
+ }
468
468
  `;
469
- exports.CREATE_GROUP = (0, graphql_tag_1.gql) `
470
- mutation CreateGroup(
471
- $partnerId: String!
472
- $name: String!
473
- $createdBy: String!
474
- ) {
475
- createGroup(partnerId: $partnerId, name: $name, createdBy: $createdBy) {
476
- id
477
- name
478
- policy
479
- image
480
- }
481
- }
469
+ exports.CREATE_GROUP = (0, graphql_tag_1.gql) `
470
+ mutation CreateGroup(
471
+ $partnerId: String!
472
+ $name: String!
473
+ $createdBy: String!
474
+ ) {
475
+ createGroup(partnerId: $partnerId, name: $name, createdBy: $createdBy) {
476
+ id
477
+ name
478
+ policy
479
+ image
480
+ }
481
+ }
482
482
  `;
483
- exports.CREATE_CATEGORY = (0, graphql_tag_1.gql) `
484
- mutation CreateCategory(
485
- $partnerId: String!
486
- $name: String!
487
- $createdBy: String!
488
- ) {
489
- createCategory(partnerId: $partnerId, name: $name, createdBy: $createdBy) {
490
- id
491
- title
492
- image
493
- icon
494
- parentId
495
- level
496
- handle
497
- description
498
- }
499
- }
483
+ exports.CREATE_CATEGORY = (0, graphql_tag_1.gql) `
484
+ mutation CreateCategory(
485
+ $partnerId: String!
486
+ $name: String!
487
+ $createdBy: String!
488
+ ) {
489
+ createCategory(partnerId: $partnerId, name: $name, createdBy: $createdBy) {
490
+ id
491
+ title
492
+ image
493
+ icon
494
+ parentId
495
+ level
496
+ handle
497
+ description
498
+ }
499
+ }
500
500
  `;
501
- exports.CREATE_BRAND = (0, graphql_tag_1.gql) `
502
- mutation CreateBrand(
503
- $partnerId: String!
504
- $brandName: String!
505
- $createdBy: String!
506
- ) {
507
- createBrand(
508
- partnerId: $partnerId
509
- brandName: $brandName
510
- createdBy: $createdBy
511
- ) {
512
- id
513
- createStamp
514
- createdBy
515
- name
516
- image
517
- imageIcon
518
- }
519
- }
501
+ exports.CREATE_BRAND = (0, graphql_tag_1.gql) `
502
+ mutation CreateBrand(
503
+ $partnerId: String!
504
+ $brandName: String!
505
+ $createdBy: String!
506
+ ) {
507
+ createBrand(
508
+ partnerId: $partnerId
509
+ brandName: $brandName
510
+ createdBy: $createdBy
511
+ ) {
512
+ id
513
+ createStamp
514
+ createdBy
515
+ name
516
+ image
517
+ imageIcon
518
+ }
519
+ }
520
520
  `;
521
- exports.CREATE_UNIT = (0, graphql_tag_1.gql) `
522
- mutation CreateUnit($partnerId: String!, $name: String!) {
523
- createUnit(partnerId: $partnerId, name: $name) {
524
- id
525
- name
526
- }
527
- }
521
+ exports.CREATE_UNIT = (0, graphql_tag_1.gql) `
522
+ mutation CreateUnit($partnerId: String!, $name: String!) {
523
+ createUnit(partnerId: $partnerId, name: $name) {
524
+ id
525
+ name
526
+ }
527
+ }
528
528
  `;
529
- exports.CREATE_PRODUCT_IMAGES = (0, graphql_tag_1.gql) `
530
- mutation CreateProductImages(
531
- $partnerId: String!
532
- $productId: String!
533
- $createdBy: String!
534
- $imageDTO: ImageDTOInput
535
- ) {
536
- createProductImages(
537
- partnerId: $partnerId
538
- productId: $productId
539
- createdBy: $createdBy
540
- imageDTO: $imageDTO
541
- ) {
542
- status
543
- message
544
- }
545
- }
529
+ exports.CREATE_PRODUCT_IMAGES = (0, graphql_tag_1.gql) `
530
+ mutation CreateProductImages(
531
+ $partnerId: String!
532
+ $productId: String!
533
+ $createdBy: String!
534
+ $imageDTO: ImageDTOInput
535
+ ) {
536
+ createProductImages(
537
+ partnerId: $partnerId
538
+ productId: $productId
539
+ createdBy: $createdBy
540
+ imageDTO: $imageDTO
541
+ ) {
542
+ status
543
+ message
544
+ }
545
+ }
546
546
  `;
547
- exports.BUILD_PRODUCT_PREBUILD_BY_PRODUCT = (0, graphql_tag_1.gql) `
548
- mutation BuildProductPreBuildByProduct(
549
- $partnerId: String!
550
- $productId: String!
551
- ) {
552
- buildProductPreBuildByProduct(
553
- partnerId: $partnerId
554
- productId: $productId
555
- ) {
556
- status
557
- message
558
- }
559
- }
547
+ exports.BUILD_PRODUCT_PREBUILD_BY_PRODUCT = (0, graphql_tag_1.gql) `
548
+ mutation BuildProductPreBuildByProduct(
549
+ $partnerId: String!
550
+ $productId: String!
551
+ ) {
552
+ buildProductPreBuildByProduct(
553
+ partnerId: $partnerId
554
+ productId: $productId
555
+ ) {
556
+ status
557
+ message
558
+ }
559
+ }
560
560
  `;
561
- exports.BUILD_PRODUCT_PREBUILD_BY_STORE = (0, graphql_tag_1.gql) `
562
- mutation BuildProductPreBuildByStore(
563
- $partnerId: String!
564
- $storeIds: [String]!
565
- ) {
566
- buildProductPreBuildByStore(partnerId: $partnerId, storeIds: $storeIds) {
567
- status
568
- message
569
- }
570
- }
561
+ exports.BUILD_PRODUCT_PREBUILD_BY_STORE = (0, graphql_tag_1.gql) `
562
+ mutation BuildProductPreBuildByStore(
563
+ $partnerId: String!
564
+ $storeIds: [String]!
565
+ ) {
566
+ buildProductPreBuildByStore(partnerId: $partnerId, storeIds: $storeIds) {
567
+ status
568
+ message
569
+ }
570
+ }
571
571
  `;
572
- exports.REMOVE_PRODUCT_IMAGES = (0, graphql_tag_1.gql) `
573
- mutation RemoveProductImages(
574
- $partnerId: String!
575
- $productId: String!
576
- $imageDTO: ImageDTOInput
577
- ) {
578
- removeProductImages(
579
- partnerId: $partnerId
580
- productId: $productId
581
- imageDTO: $imageDTO
582
- ) {
583
- status
584
- message
585
- }
586
- }
572
+ exports.REMOVE_PRODUCT_IMAGES = (0, graphql_tag_1.gql) `
573
+ mutation RemoveProductImages(
574
+ $partnerId: String!
575
+ $productId: String!
576
+ $imageDTO: ImageDTOInput
577
+ ) {
578
+ removeProductImages(
579
+ partnerId: $partnerId
580
+ productId: $productId
581
+ imageDTO: $imageDTO
582
+ ) {
583
+ status
584
+ message
585
+ }
586
+ }
587
587
  `;
588
- exports.REMOVE_IMAGE = (0, graphql_tag_1.gql) `
589
- mutation RemoveImage($partnerId: String!, $productId: String!) {
590
- removeImage(partnerId: $partnerId, productId: $productId) {
591
- status
592
- message
593
- }
594
- }
588
+ exports.REMOVE_IMAGE = (0, graphql_tag_1.gql) `
589
+ mutation RemoveImage($partnerId: String!, $productId: String!) {
590
+ removeImage(partnerId: $partnerId, productId: $productId) {
591
+ status
592
+ message
593
+ }
594
+ }
595
595
  `;
596
- exports.CREATE_PRODUCT = (0, graphql_tag_1.gql) `
597
- mutation CreateProduct(
598
- $partnerId: String!
599
- $productInputDTO: ProductInputDTOInput
600
- ) {
601
- createProduct(partnerId: $partnerId, productInputDTO: $productInputDTO) {
602
- id
603
- title
604
- subType
605
- description
606
- sku
607
- brand {
608
- id
609
- createStamp
610
- createdBy
611
- name
612
- image
613
- imageIcon
614
- }
615
- shortDescription
616
- weight
617
- width
618
- depth
619
- height
620
- vat
621
- unitDTO {
622
- id
623
- name
624
- }
625
- productAttributes {
626
- attributeName
627
- attributeValue
628
- }
629
- attributeDTOS {
630
- id
631
- key
632
- extendFromSource
633
- }
634
- qualify
635
- parentId
636
- handle
637
- price
638
- displayPrice
639
- hint
640
- compareAtPrices
641
- priceUnit
642
- priceQuantity
643
- priceType
644
- salePolicy
645
- priceTypeName
646
- priceVaries
647
- available
648
- tags
649
- options
650
- optionsRelationship
651
- compareAtPrice
652
- featuredImage
653
- version
654
- images
655
- variants {
656
- id
657
- handle
658
- title
659
- price
660
- priceType
661
- compareAtPrice
662
- options
663
- optionsIds
664
- featuredImage
665
- sku
666
- }
667
- }
668
- }
596
+ exports.CREATE_PRODUCT = (0, graphql_tag_1.gql) `
597
+ mutation CreateProduct(
598
+ $partnerId: String!
599
+ $productInputDTO: ProductInputDTOInput
600
+ ) {
601
+ createProduct(partnerId: $partnerId, productInputDTO: $productInputDTO) {
602
+ id
603
+ title
604
+ subType
605
+ description
606
+ sku
607
+ brand {
608
+ id
609
+ createStamp
610
+ createdBy
611
+ name
612
+ image
613
+ imageIcon
614
+ }
615
+ shortDescription
616
+ weight
617
+ width
618
+ depth
619
+ height
620
+ vat
621
+ unitDTO {
622
+ id
623
+ name
624
+ }
625
+ productAttributes {
626
+ attributeName
627
+ attributeValue
628
+ }
629
+ attributeDTOS {
630
+ id
631
+ key
632
+ extendFromSource
633
+ }
634
+ qualify
635
+ parentId
636
+ handle
637
+ price
638
+ displayPrice
639
+ hint
640
+ compareAtPrices
641
+ priceUnit
642
+ priceQuantity
643
+ priceType
644
+ salePolicy
645
+ priceTypeName
646
+ priceVaries
647
+ available
648
+ tags
649
+ options
650
+ optionsRelationship
651
+ compareAtPrice
652
+ featuredImage
653
+ version
654
+ images
655
+ variants {
656
+ id
657
+ handle
658
+ title
659
+ price
660
+ priceType
661
+ compareAtPrice
662
+ options
663
+ optionsIds
664
+ featuredImage
665
+ sku
666
+ }
667
+ }
668
+ }
669
669
  `;
670
- exports.REMOVE_PRODUCT = (0, graphql_tag_1.gql) `
671
- mutation RemoveProduct($partnerId: String!, $productId: String!) {
672
- removeProduct(partnerId: $partnerId, productId: $productId) {
673
- status
674
- message
675
- }
676
- }
670
+ exports.REMOVE_PRODUCT = (0, graphql_tag_1.gql) `
671
+ mutation RemoveProduct($partnerId: String!, $productId: String!) {
672
+ removeProduct(partnerId: $partnerId, productId: $productId) {
673
+ status
674
+ message
675
+ }
676
+ }
677
677
  `;
678
- exports.UPDATE_PRODUCT_SUBTYPE = (0, graphql_tag_1.gql) `
679
- mutation UpdateProductSubType($productId: String!, $subType: String!) {
680
- updateProductSubType(productId: $productId, subType: $subType) {
681
- status
682
- message
683
- }
684
- }
678
+ exports.UPDATE_PRODUCT_SUBTYPE = (0, graphql_tag_1.gql) `
679
+ mutation UpdateProductSubType($productId: String!, $subType: String!) {
680
+ updateProductSubType(productId: $productId, subType: $subType) {
681
+ status
682
+ message
683
+ }
684
+ }
685
685
  `;