@longvansoftware/storefront-js-client 4.3.8 → 4.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 (43) 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.d.ts +1 -0
  20. package/dist/src/graphql/payment/mutations.js +212 -195
  21. package/dist/src/graphql/payment/queries.d.ts +1 -0
  22. package/dist/src/graphql/payment/queries.js +123 -118
  23. package/dist/src/graphql/paymentV2/mutations.js +115 -115
  24. package/dist/src/graphql/paymentV2/queries.js +263 -263
  25. package/dist/src/graphql/product/mutations.d.ts +1 -0
  26. package/dist/src/graphql/product/mutations.js +671 -653
  27. package/dist/src/graphql/product/queries.js +996 -990
  28. package/dist/src/graphql/service/mutations.js +304 -304
  29. package/dist/src/graphql/service/queries.js +131 -131
  30. package/dist/src/graphql/store/mutations.js +24 -24
  31. package/dist/src/graphql/store/queries.js +24 -24
  32. package/dist/src/graphql/user/mutations.js +201 -201
  33. package/dist/src/graphql/user/queries.js +339 -339
  34. package/dist/src/lib/cloudService/index.d.ts +5 -0
  35. package/dist/src/lib/cloudService/index.js +35 -0
  36. package/dist/src/lib/payment/index.d.ts +2 -0
  37. package/dist/src/lib/payment/index.js +33 -0
  38. package/dist/src/lib/product/index.d.ts +1 -0
  39. package/dist/src/lib/product/index.js +17 -0
  40. package/dist/src/lib/serviceSDK.js +14 -14
  41. package/package.json +43 -43
  42. package/dist/index.d.ts +0 -1698
  43. package/dist/index.js +0 -13673
@@ -89,1018 +89,1024 @@ const graphql_tag_1 = require("graphql-tag");
89
89
  // }
90
90
  // }
91
91
  // `;
92
- exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
93
- query GetProductById(
94
- $partnerId: String!
95
- $storeChannel: String!
96
- $productId: String!
97
- ) {
98
- getProductById(
99
- partnerId: $partnerId
100
- storeChannel: $storeChannel
101
- productId: $productId
102
- ) {
103
- id
104
- title
105
- description
106
- sku
107
- shortDescription
108
- weight
109
- width
110
- depth
111
- height
112
- vat
113
- priceType
114
- qualify
115
- parentId
116
- handle
117
- price
118
- options
119
- optionsRelationship
120
- compareAtPrice
121
- featuredImage
122
- images
123
- tags
124
- brand {
125
- id
126
- createStamp
127
- createdBy
128
- name
129
- image
130
- imageIcon
131
- }
132
- attributeDTOS {
133
- id
134
- key
135
- extendFromSource
136
- value {
137
- name
138
- value
139
- }
140
- metadata {
141
- type
142
- dataFrom
143
- description
144
- requiredData
145
- otherItem
146
- fill
147
- }
148
- }
149
- productAttributes {
150
- attributeName
151
- attributeValue
152
- }
153
- variants {
154
- id
155
- handle
156
- title
157
- price
158
- compareAtPrice
159
- options
160
- optionsIds
161
- featuredImage
162
- sku
163
- priceType
164
- featureTypeDTOS {
165
- id
166
- keyId
167
- name
168
- position
169
- type
170
- subType
171
- fill
172
- requireData
173
- otherItem
174
- values
175
- description
176
- createStamp
177
- createdBy
178
- usedCreatedChild
179
- valuesFull {
180
- id
181
- name
182
- }
183
- }
184
- }
185
- featureTypes {
186
- id
187
- name
188
- values
189
- valuesFull {
190
- id
191
- name
192
- }
193
- usedCreatedChild
194
- }
195
- categories {
196
- id
197
- title
198
- handle
199
- }
200
- unitDTO {
201
- id
202
- name
203
- }
204
- }
205
- }
92
+ exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
93
+ query GetProductById(
94
+ $partnerId: String!
95
+ $storeChannel: String!
96
+ $productId: String!
97
+ ) {
98
+ getProductById(
99
+ partnerId: $partnerId
100
+ storeChannel: $storeChannel
101
+ productId: $productId
102
+ ) {
103
+ id
104
+ title
105
+ description
106
+ sku
107
+ shortDescription
108
+ weight
109
+ width
110
+ depth
111
+ height
112
+ vat
113
+ priceType
114
+ qualify
115
+ parentId
116
+ handle
117
+ price
118
+ options
119
+ optionsRelationship
120
+ compareAtPrice
121
+ featuredImage
122
+ images
123
+ tags
124
+ brand {
125
+ id
126
+ createStamp
127
+ createdBy
128
+ name
129
+ image
130
+ imageIcon
131
+ }
132
+ attributeDTOS {
133
+ id
134
+ key
135
+ keyId
136
+ extendFromSource
137
+ value {
138
+ name
139
+ value
140
+ }
141
+ metadata {
142
+ type
143
+ dataFrom
144
+ description
145
+ requiredData
146
+ otherItem
147
+ fill
148
+ usedCreatedChild
149
+ subDataFrom {
150
+ name
151
+ value
152
+ }
153
+ }
154
+ }
155
+ productAttributes {
156
+ attributeName
157
+ attributeValue
158
+ }
159
+ variants {
160
+ id
161
+ handle
162
+ title
163
+ price
164
+ compareAtPrice
165
+ options
166
+ optionsIds
167
+ featuredImage
168
+ sku
169
+ priceType
170
+ featureTypeDTOS {
171
+ id
172
+ keyId
173
+ name
174
+ position
175
+ type
176
+ subType
177
+ fill
178
+ requireData
179
+ otherItem
180
+ values
181
+ description
182
+ createStamp
183
+ createdBy
184
+ usedCreatedChild
185
+ valuesFull {
186
+ id
187
+ name
188
+ }
189
+ }
190
+ }
191
+ featureTypes {
192
+ id
193
+ name
194
+ values
195
+ valuesFull {
196
+ id
197
+ name
198
+ }
199
+ usedCreatedChild
200
+ }
201
+ categories {
202
+ id
203
+ title
204
+ handle
205
+ }
206
+ unitDTO {
207
+ id
208
+ name
209
+ }
210
+ }
211
+ }
206
212
  `;
207
- exports.GET_SIMPLE_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
208
- query GetSimpleProductById(
209
- $partnerId: String!
210
- $storeChannel: String!
211
- $productId: String!
212
- ) {
213
- getSimpleProductById(
214
- partnerId: $partnerId
215
- storeChannel: $storeChannel
216
- productId: $productId
217
- ) {
218
- id
219
- title
220
- description
221
- sku
222
- shortDescription
223
- weight
224
- width
225
- depth
226
- height
227
- vat
228
- priceType
229
- qualify
230
- parentId
231
- handle
232
- price
233
- options
234
- optionsRelationship
235
- compareAtPrice
236
- featuredImage
237
- images
238
- tags
239
- version
240
- brand {
241
- id
242
- createStamp
243
- createdBy
244
- name
245
- image
246
- imageIcon
247
- }
248
- featureTypes {
249
- id
250
- keyId
251
- name
252
- position
253
- type
254
- subType
255
- fill
256
- requireData
257
- otherItem
258
- values
259
- description
260
- createStamp
261
- createdBy
262
- usedCreatedChild
263
- }
264
- attributeDTOS {
265
- id
266
- key
267
- extendFromSource
268
- value {
269
- name
270
- value
271
- }
272
- metadata {
273
- type
274
- dataFrom
275
- description
276
- requiredData
277
- otherItem
278
- fill
279
- }
280
- }
281
- productAttributes {
282
- attributeName
283
- attributeValue
284
- }
285
- variants {
286
- id
287
- handle
288
- title
289
- price
290
- compareAtPrice
291
- options
292
- optionsIds
293
- featuredImage
294
- sku
295
- priceType
296
- featureTypeDTOS {
297
- id
298
- keyId
299
- name
300
- position
301
- type
302
- subType
303
- fill
304
- requireData
305
- otherItem
306
- values
307
- description
308
- createStamp
309
- createdBy
310
- usedCreatedChild
311
- valuesFull {
312
- id
313
- name
314
- }
315
- }
316
- }
317
- featureTypes {
318
- id
319
- name
320
- values
321
- valuesFull {
322
- id
323
- name
324
- }
325
- }
326
- categories {
327
- id
328
- title
329
- handle
330
- }
331
- unitDTO {
332
- id
333
- name
334
- }
335
- }
336
- }
213
+ exports.GET_SIMPLE_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
214
+ query GetSimpleProductById(
215
+ $partnerId: String!
216
+ $storeChannel: String!
217
+ $productId: String!
218
+ ) {
219
+ getSimpleProductById(
220
+ partnerId: $partnerId
221
+ storeChannel: $storeChannel
222
+ productId: $productId
223
+ ) {
224
+ id
225
+ title
226
+ description
227
+ sku
228
+ shortDescription
229
+ weight
230
+ width
231
+ depth
232
+ height
233
+ vat
234
+ priceType
235
+ qualify
236
+ parentId
237
+ handle
238
+ price
239
+ options
240
+ optionsRelationship
241
+ compareAtPrice
242
+ featuredImage
243
+ images
244
+ tags
245
+ version
246
+ brand {
247
+ id
248
+ createStamp
249
+ createdBy
250
+ name
251
+ image
252
+ imageIcon
253
+ }
254
+ featureTypes {
255
+ id
256
+ keyId
257
+ name
258
+ position
259
+ type
260
+ subType
261
+ fill
262
+ requireData
263
+ otherItem
264
+ values
265
+ description
266
+ createStamp
267
+ createdBy
268
+ usedCreatedChild
269
+ }
270
+ attributeDTOS {
271
+ id
272
+ key
273
+ extendFromSource
274
+ value {
275
+ name
276
+ value
277
+ }
278
+ metadata {
279
+ type
280
+ dataFrom
281
+ description
282
+ requiredData
283
+ otherItem
284
+ fill
285
+ }
286
+ }
287
+ productAttributes {
288
+ attributeName
289
+ attributeValue
290
+ }
291
+ variants {
292
+ id
293
+ handle
294
+ title
295
+ price
296
+ compareAtPrice
297
+ options
298
+ optionsIds
299
+ featuredImage
300
+ sku
301
+ priceType
302
+ featureTypeDTOS {
303
+ id
304
+ keyId
305
+ name
306
+ position
307
+ type
308
+ subType
309
+ fill
310
+ requireData
311
+ otherItem
312
+ values
313
+ description
314
+ createStamp
315
+ createdBy
316
+ usedCreatedChild
317
+ valuesFull {
318
+ id
319
+ name
320
+ }
321
+ }
322
+ }
323
+ featureTypes {
324
+ id
325
+ name
326
+ values
327
+ valuesFull {
328
+ id
329
+ name
330
+ }
331
+ }
332
+ categories {
333
+ id
334
+ title
335
+ handle
336
+ }
337
+ unitDTO {
338
+ id
339
+ name
340
+ }
341
+ }
342
+ }
337
343
  `;
338
- exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
339
- query GetProductByHandle(
340
- $partnerId: String!
341
- $storeChannel: String!
342
- $handle: String!
343
- ) {
344
- getProductByHandle(
345
- partnerId: $partnerId
346
- storeChannel: $storeChannel
347
- handle: $handle
348
- ) {
349
- id
350
- title
351
- subType
352
- description
353
- sku
354
- shortDescription
355
- weight
356
- width
357
- depth
358
- height
359
- vat
360
- qualify
361
- parentId
362
- handle
363
- price
364
- displayPrice
365
- hint
366
- priceUnit
367
- priceQuantity
368
- priceType
369
- salePolicy
370
- priceTypeName
371
- priceVaries
372
- available
373
- tags
374
- options
375
- optionsRelationship
376
- compareAtPrice
377
- featuredImage
378
- version
379
- images
380
- brand {
381
- id
382
- createStamp
383
- createdBy
384
- name
385
- image
386
- imageIcon
387
- }
388
- unitDTO {
389
- id
390
- name
391
- }
392
- groups {
393
- id
394
- name
395
- policy
396
- image
397
- }
398
- categories {
399
- id
400
- title
401
- image
402
- icon
403
- parentId
404
- level
405
- handle
406
- description
407
- }
408
- variants {
409
- id
410
- handle
411
- title
412
- price
413
- priceType
414
- compareAtPrice
415
- options
416
- optionsIds
417
- featuredImage
418
- sku
419
- }
420
- featureTypes {
421
- id
422
- name
423
- position
424
- type
425
- subType
426
- fill
427
- requireData
428
- otherItem
429
- values
430
- description
431
- createStamp
432
- createdBy
433
- valuesFull {
434
- id
435
- name
436
- }
437
- }
438
- }
439
- }
344
+ exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
345
+ query GetProductByHandle(
346
+ $partnerId: String!
347
+ $storeChannel: String!
348
+ $handle: String!
349
+ ) {
350
+ getProductByHandle(
351
+ partnerId: $partnerId
352
+ storeChannel: $storeChannel
353
+ handle: $handle
354
+ ) {
355
+ id
356
+ title
357
+ subType
358
+ description
359
+ sku
360
+ shortDescription
361
+ weight
362
+ width
363
+ depth
364
+ height
365
+ vat
366
+ qualify
367
+ parentId
368
+ handle
369
+ price
370
+ displayPrice
371
+ hint
372
+ priceUnit
373
+ priceQuantity
374
+ priceType
375
+ salePolicy
376
+ priceTypeName
377
+ priceVaries
378
+ available
379
+ tags
380
+ options
381
+ optionsRelationship
382
+ compareAtPrice
383
+ featuredImage
384
+ version
385
+ images
386
+ brand {
387
+ id
388
+ createStamp
389
+ createdBy
390
+ name
391
+ image
392
+ imageIcon
393
+ }
394
+ unitDTO {
395
+ id
396
+ name
397
+ }
398
+ groups {
399
+ id
400
+ name
401
+ policy
402
+ image
403
+ }
404
+ categories {
405
+ id
406
+ title
407
+ image
408
+ icon
409
+ parentId
410
+ level
411
+ handle
412
+ description
413
+ }
414
+ variants {
415
+ id
416
+ handle
417
+ title
418
+ price
419
+ priceType
420
+ compareAtPrice
421
+ options
422
+ optionsIds
423
+ featuredImage
424
+ sku
425
+ }
426
+ featureTypes {
427
+ id
428
+ name
429
+ position
430
+ type
431
+ subType
432
+ fill
433
+ requireData
434
+ otherItem
435
+ values
436
+ description
437
+ createStamp
438
+ createdBy
439
+ valuesFull {
440
+ id
441
+ name
442
+ }
443
+ }
444
+ }
445
+ }
440
446
  `;
441
- exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
442
- query GetSimpleProducts(
443
- $partnerId: String!
444
- $storeChannel: String!
445
- $category: String
446
- $product: String
447
- $sku: String
448
- $tag: String
449
- $priceFrom: BigDecimal
450
- $priceTo: BigDecimal
451
- $status: String
452
- $productType: String
453
- $subType: String
454
- $sortOrder: String
455
- $sortBy: String
456
- $brandId: String
457
- $keyword: String
458
- $display: String
459
- $onlyPromotion: Boolean
460
- $currentPage: Int
461
- $maxResult: Int
462
- ) {
463
- getSimpleProducts(
464
- partnerId: $partnerId
465
- storeChannel: $storeChannel
466
- category: $category
467
- product: $product
468
- sku: $sku
469
- tag: $tag
470
- priceFrom: $priceFrom
471
- priceTo: $priceTo
472
- status: $status
473
- productType: $productType
474
- subType: $subType
475
- sortOrder: $sortOrder
476
- sortBy: $sortBy
477
- brandId: $brandId
478
- keyword: $keyword
479
- display: $display
480
- onlyPromotion: $onlyPromotion
481
- currentPage: $currentPage
482
- maxResult: $maxResult
483
- ) {
484
- total
485
- currentPage
486
- maxResult
487
- totalPage
488
- data {
489
- id
490
- title
491
- sku
492
- shortDescription
493
- description
494
- subType
495
- vat
496
- qualify
497
- parentId
498
- handle
499
- price
500
- compareAtPrice
501
- priceType
502
- priceTypeName
503
- featuredImage
504
- optionsRelationship
505
- images
506
- featureTypes {
507
- id
508
- keyId
509
- name
510
- position
511
- type
512
- subType
513
- fill
514
- requireData
515
- otherItem
516
- values
517
- description
518
- createStamp
519
- createdBy
520
- valuesFull {
521
- id
522
- name
523
- }
524
- }
525
- }
526
- }
527
- }
447
+ exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
448
+ query GetSimpleProducts(
449
+ $partnerId: String!
450
+ $storeChannel: String!
451
+ $category: String
452
+ $product: String
453
+ $sku: String
454
+ $tag: String
455
+ $priceFrom: BigDecimal
456
+ $priceTo: BigDecimal
457
+ $status: String
458
+ $productType: String
459
+ $subType: String
460
+ $sortOrder: String
461
+ $sortBy: String
462
+ $brandId: String
463
+ $keyword: String
464
+ $display: String
465
+ $onlyPromotion: Boolean
466
+ $currentPage: Int
467
+ $maxResult: Int
468
+ ) {
469
+ getSimpleProducts(
470
+ partnerId: $partnerId
471
+ storeChannel: $storeChannel
472
+ category: $category
473
+ product: $product
474
+ sku: $sku
475
+ tag: $tag
476
+ priceFrom: $priceFrom
477
+ priceTo: $priceTo
478
+ status: $status
479
+ productType: $productType
480
+ subType: $subType
481
+ sortOrder: $sortOrder
482
+ sortBy: $sortBy
483
+ brandId: $brandId
484
+ keyword: $keyword
485
+ display: $display
486
+ onlyPromotion: $onlyPromotion
487
+ currentPage: $currentPage
488
+ maxResult: $maxResult
489
+ ) {
490
+ total
491
+ currentPage
492
+ maxResult
493
+ totalPage
494
+ data {
495
+ id
496
+ title
497
+ sku
498
+ shortDescription
499
+ description
500
+ subType
501
+ vat
502
+ qualify
503
+ parentId
504
+ handle
505
+ price
506
+ compareAtPrice
507
+ priceType
508
+ priceTypeName
509
+ featuredImage
510
+ optionsRelationship
511
+ images
512
+ featureTypes {
513
+ id
514
+ keyId
515
+ name
516
+ position
517
+ type
518
+ subType
519
+ fill
520
+ requireData
521
+ otherItem
522
+ values
523
+ description
524
+ createStamp
525
+ createdBy
526
+ valuesFull {
527
+ id
528
+ name
529
+ }
530
+ }
531
+ }
532
+ }
533
+ }
528
534
  `;
529
- exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
530
- query GetCategories(
531
- $partnerId: String!
532
- $storeChannel: String!
533
- $typeBuild: String!
534
- $level: Int!
535
- ) {
536
- getCategories(
537
- partnerId: $partnerId
538
- storeChannel: $storeChannel
539
- typeBuild: $typeBuild
540
- level: $level
541
- ) {
542
- id
543
- title
544
- image
545
- icon
546
- parentId
547
- level
548
- handle
549
- description
550
- child {
551
- id
552
- title
553
- image
554
- icon
555
- parentId
556
- level
557
- handle
558
- description
559
- }
560
- }
561
- }
535
+ exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
536
+ query GetCategories(
537
+ $partnerId: String!
538
+ $storeChannel: String!
539
+ $typeBuild: String!
540
+ $level: Int!
541
+ ) {
542
+ getCategories(
543
+ partnerId: $partnerId
544
+ storeChannel: $storeChannel
545
+ typeBuild: $typeBuild
546
+ level: $level
547
+ ) {
548
+ id
549
+ title
550
+ image
551
+ icon
552
+ parentId
553
+ level
554
+ handle
555
+ description
556
+ child {
557
+ id
558
+ title
559
+ image
560
+ icon
561
+ parentId
562
+ level
563
+ handle
564
+ description
565
+ }
566
+ }
567
+ }
562
568
  `;
563
- exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
564
- query GetCategoryByHandle(
565
- $partnerId: String!
566
- $storeChannel: String!
567
- $handle: String!
568
- ) {
569
- getCategoryByHandle(
570
- partnerId: $partnerId
571
- storeChannel: $storeChannel
572
- handle: $handle
573
- ) {
574
- id
575
- title
576
- image
577
- icon
578
- parentId
579
- level
580
- handle
581
- child {
582
- id
583
- title
584
- image
585
- icon
586
- parentId
587
- level
588
- handle
589
- }
590
- }
591
- }
569
+ exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
570
+ query GetCategoryByHandle(
571
+ $partnerId: String!
572
+ $storeChannel: String!
573
+ $handle: String!
574
+ ) {
575
+ getCategoryByHandle(
576
+ partnerId: $partnerId
577
+ storeChannel: $storeChannel
578
+ handle: $handle
579
+ ) {
580
+ id
581
+ title
582
+ image
583
+ icon
584
+ parentId
585
+ level
586
+ handle
587
+ child {
588
+ id
589
+ title
590
+ image
591
+ icon
592
+ parentId
593
+ level
594
+ handle
595
+ }
596
+ }
597
+ }
592
598
  `;
593
- exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
594
- query GetCategoryById(
595
- $partnerId: String!
596
- $storeChannel: String!
597
- $categoryId: String!
598
- ) {
599
- getCategoryById(
600
- partnerId: $partnerId
601
- storeChannel: $storeChannel
602
- categoryId: $categoryId
603
- ) {
604
- id
605
- title
606
- image
607
- icon
608
- parentId
609
- level
610
- handle
611
- child {
612
- id
613
- title
614
- image
615
- icon
616
- parentId
617
- level
618
- handle
619
- }
620
- }
621
- }
599
+ exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
600
+ query GetCategoryById(
601
+ $partnerId: String!
602
+ $storeChannel: String!
603
+ $categoryId: String!
604
+ ) {
605
+ getCategoryById(
606
+ partnerId: $partnerId
607
+ storeChannel: $storeChannel
608
+ categoryId: $categoryId
609
+ ) {
610
+ id
611
+ title
612
+ image
613
+ icon
614
+ parentId
615
+ level
616
+ handle
617
+ child {
618
+ id
619
+ title
620
+ image
621
+ icon
622
+ parentId
623
+ level
624
+ handle
625
+ }
626
+ }
627
+ }
622
628
  `;
623
- exports.GET_BRANDS_QUERY = `
624
- query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
625
- getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
626
- id
627
- name
628
- image
629
- imageIcon
630
- }
631
- }
629
+ exports.GET_BRANDS_QUERY = `
630
+ query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
631
+ getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
632
+ id
633
+ name
634
+ image
635
+ imageIcon
636
+ }
637
+ }
632
638
  `;
633
- exports.GET_BRANDS_BY_CATEGORY_QUERY = `
634
- query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
635
- getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
636
- id
637
- name
638
- image
639
- imageIcon
640
- }
641
- }
639
+ exports.GET_BRANDS_BY_CATEGORY_QUERY = `
640
+ query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
641
+ getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
642
+ id
643
+ name
644
+ image
645
+ imageIcon
646
+ }
647
+ }
642
648
  `;
643
- exports.GET_BRAND_DETAIL_QUERY = `
644
- query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
645
- getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
646
- id
647
- name
648
- image
649
- imageIcon
650
- }
651
- }
649
+ exports.GET_BRAND_DETAIL_QUERY = `
650
+ query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
651
+ getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
652
+ id
653
+ name
654
+ image
655
+ imageIcon
656
+ }
657
+ }
652
658
  `;
653
- exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
654
- query GetProductOption(
655
- $partnerId: String!
656
- $storeChannel: String!
657
- $productId: String!
658
- ) {
659
- getProductOption(
660
- partnerId: $partnerId
661
- storeChannel: $storeChannel
662
- productId: $productId
663
- ) {
664
- id
665
- name
666
- subType
667
- productFeatureDTOS {
668
- productOptionGroupItemDTOS {
669
- id
670
- productId
671
- productName
672
- price
673
- }
674
- }
675
- }
676
- }
659
+ exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
660
+ query GetProductOption(
661
+ $partnerId: String!
662
+ $storeChannel: String!
663
+ $productId: String!
664
+ ) {
665
+ getProductOption(
666
+ partnerId: $partnerId
667
+ storeChannel: $storeChannel
668
+ productId: $productId
669
+ ) {
670
+ id
671
+ name
672
+ subType
673
+ productFeatureDTOS {
674
+ productOptionGroupItemDTOS {
675
+ id
676
+ productId
677
+ productName
678
+ price
679
+ }
680
+ }
681
+ }
682
+ }
677
683
  `;
678
- exports.GET_POLICY = (0, graphql_tag_1.gql) `
679
- query GetPolicy($groupId: String!) {
680
- getPolicy(groupId: $groupId) {
681
- value
682
- }
683
- }
684
+ exports.GET_POLICY = (0, graphql_tag_1.gql) `
685
+ query GetPolicy($groupId: String!) {
686
+ getPolicy(groupId: $groupId) {
687
+ value
688
+ }
689
+ }
684
690
  `;
685
- exports.GET_STORES = (0, graphql_tag_1.gql) `
686
- query GetStores($partnerId: String!, $type: String!) {
687
- getStores(partnerId: $partnerId, type: $type) {
688
- id
689
- createdStamp
690
- name
691
- type
692
- enable
693
- partyId
694
- warehouses
695
- warehouseIdDefault
696
- enableOrderAbleFuture
697
- enableOrderNegativeQuantity
698
- storeEcommerceName
699
- shippingCompanies
700
- shippingCompanyIdPrimary
701
- customerIdPrimary
702
- paymentMethodIdPrimary
703
- enableCustomProductPrice
704
- enablePaymentPartial
705
- paymentPartialPercent
706
- productStoreLink
707
- }
708
- }
691
+ exports.GET_STORES = (0, graphql_tag_1.gql) `
692
+ query GetStores($partnerId: String!, $type: String!) {
693
+ getStores(partnerId: $partnerId, type: $type) {
694
+ id
695
+ createdStamp
696
+ name
697
+ type
698
+ enable
699
+ partyId
700
+ warehouses
701
+ warehouseIdDefault
702
+ enableOrderAbleFuture
703
+ enableOrderNegativeQuantity
704
+ storeEcommerceName
705
+ shippingCompanies
706
+ shippingCompanyIdPrimary
707
+ customerIdPrimary
708
+ paymentMethodIdPrimary
709
+ enableCustomProductPrice
710
+ enablePaymentPartial
711
+ paymentPartialPercent
712
+ productStoreLink
713
+ }
714
+ }
709
715
  `;
710
- exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
711
- query GetDetailStores($partnerId: String!, $storeId: String!) {
712
- getDetailStores(partnerId: $partnerId, storeId: $storeId) {
713
- id
714
- createdStamp
715
- name
716
- type
717
- enable
718
- partyId
719
- warehouses
720
- warehouseIdDefault
721
- enableOrderAbleFuture
722
- enableOrderNegativeQuantity
723
- storeEcommerceName
724
- shippingCompanies
725
- shippingCompanyIdPrimary
726
- customerIdPrimary
727
- paymentMethodIdPrimary
728
- enableCustomProductPrice
729
- enablePaymentPartial
730
- paymentPartialPercent
731
- productStoreLink
732
- }
733
- }
716
+ exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
717
+ query GetDetailStores($partnerId: String!, $storeId: String!) {
718
+ getDetailStores(partnerId: $partnerId, storeId: $storeId) {
719
+ id
720
+ createdStamp
721
+ name
722
+ type
723
+ enable
724
+ partyId
725
+ warehouses
726
+ warehouseIdDefault
727
+ enableOrderAbleFuture
728
+ enableOrderNegativeQuantity
729
+ storeEcommerceName
730
+ shippingCompanies
731
+ shippingCompanyIdPrimary
732
+ customerIdPrimary
733
+ paymentMethodIdPrimary
734
+ enableCustomProductPrice
735
+ enablePaymentPartial
736
+ paymentPartialPercent
737
+ productStoreLink
738
+ }
739
+ }
734
740
  `;
735
- exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
736
- query GetProductImage($partnerId: String!, $productId: String!) {
737
- getProductImage(partnerId: $partnerId, productId: $productId)
738
- }
741
+ exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
742
+ query GetProductImage($partnerId: String!, $productId: String!) {
743
+ getProductImage(partnerId: $partnerId, productId: $productId)
744
+ }
739
745
  `;
740
- exports.GET_PRODUCT = (0, graphql_tag_1.gql) `
741
- query GetProducts(
742
- $partnerId: String!
743
- $storeChannel: String!
744
- $keyword: String
745
- $category: String
746
- $currentPage: Int
747
- $maxResult: Int
748
- ) {
749
- getProducts(
750
- partnerId: $partnerId
751
- storeChannel: $storeChannel
752
- keyword: $keyword
753
- category: $category
754
- currentPage: $currentPage
755
- maxResult: $maxResult
756
- ) {
757
- total
758
- currentPage
759
- maxResult
760
- totalPage
761
- data {
762
- id
763
- title
764
- subType
765
- description
766
- sku
767
- shortDescription
768
- weight
769
- width
770
- depth
771
- height
772
- vat
773
- qualify
774
- parentId
775
- handle
776
- price
777
- priceType
778
- salePolicy
779
- priceTypeName
780
- priceVaries
781
- available
782
- tags
783
- options
784
- optionsRelationship
785
- compareAtPrice
786
- featuredImage
787
- images
788
- categories {
789
- id
790
- title
791
- image
792
- icon
793
- parentId
794
- level
795
- handle
796
- description
797
- }
798
- groups {
799
- id
800
- name
801
- policy
802
- image
803
- }
804
- unitDTO {
805
- id
806
- name
807
- }
808
- }
809
- }
810
- }
746
+ exports.GET_PRODUCT = (0, graphql_tag_1.gql) `
747
+ query GetProducts(
748
+ $partnerId: String!
749
+ $storeChannel: String!
750
+ $keyword: String
751
+ $category: String
752
+ $currentPage: Int
753
+ $maxResult: Int
754
+ ) {
755
+ getProducts(
756
+ partnerId: $partnerId
757
+ storeChannel: $storeChannel
758
+ keyword: $keyword
759
+ category: $category
760
+ currentPage: $currentPage
761
+ maxResult: $maxResult
762
+ ) {
763
+ total
764
+ currentPage
765
+ maxResult
766
+ totalPage
767
+ data {
768
+ id
769
+ title
770
+ subType
771
+ description
772
+ sku
773
+ shortDescription
774
+ weight
775
+ width
776
+ depth
777
+ height
778
+ vat
779
+ qualify
780
+ parentId
781
+ handle
782
+ price
783
+ priceType
784
+ salePolicy
785
+ priceTypeName
786
+ priceVaries
787
+ available
788
+ tags
789
+ options
790
+ optionsRelationship
791
+ compareAtPrice
792
+ featuredImage
793
+ images
794
+ categories {
795
+ id
796
+ title
797
+ image
798
+ icon
799
+ parentId
800
+ level
801
+ handle
802
+ description
803
+ }
804
+ groups {
805
+ id
806
+ name
807
+ policy
808
+ image
809
+ }
810
+ unitDTO {
811
+ id
812
+ name
813
+ }
814
+ }
815
+ }
816
+ }
811
817
  `;
812
- exports.GET_UNITS = (0, graphql_tag_1.gql) `
813
- query GetUnits($partnerId: String!) {
814
- getUnits(partnerId: $partnerId) {
815
- id
816
- name
817
- }
818
- }
818
+ exports.GET_UNITS = (0, graphql_tag_1.gql) `
819
+ query GetUnits($partnerId: String!) {
820
+ getUnits(partnerId: $partnerId) {
821
+ id
822
+ name
823
+ }
824
+ }
819
825
  `;
820
- exports.GET_PRODUCT_VARIANT_BY_ID = (0, graphql_tag_1.gql) `
821
- query GetProductVariantById(
822
- $partnerId: String!
823
- $storeChannel: String!
824
- $variantId: String!
825
- ) {
826
- getProductVariantById(
827
- partnerId: $partnerId
828
- storeChannel: $storeChannel
829
- variantId: $variantId
830
- ) {
831
- id
832
- title
833
- subType
834
- description
835
- sku
836
- shortDescription
837
- weight
838
- width
839
- depth
840
- height
841
- vat
842
- qualify
843
- parentId
844
- handle
845
- price
846
- displayPrice
847
- hint
848
- compareAtPrices
849
- priceUnit
850
- priceQuantity
851
- priceType
852
- salePolicy
853
- priceTypeName
854
- priceVaries
855
- available
856
- tags
857
- options
858
- optionsRelationship
859
- compareAtPrice
860
- }
861
- }
826
+ exports.GET_PRODUCT_VARIANT_BY_ID = (0, graphql_tag_1.gql) `
827
+ query GetProductVariantById(
828
+ $partnerId: String!
829
+ $storeChannel: String!
830
+ $variantId: String!
831
+ ) {
832
+ getProductVariantById(
833
+ partnerId: $partnerId
834
+ storeChannel: $storeChannel
835
+ variantId: $variantId
836
+ ) {
837
+ id
838
+ title
839
+ subType
840
+ description
841
+ sku
842
+ shortDescription
843
+ weight
844
+ width
845
+ depth
846
+ height
847
+ vat
848
+ qualify
849
+ parentId
850
+ handle
851
+ price
852
+ displayPrice
853
+ hint
854
+ compareAtPrices
855
+ priceUnit
856
+ priceQuantity
857
+ priceType
858
+ salePolicy
859
+ priceTypeName
860
+ priceVaries
861
+ available
862
+ tags
863
+ options
864
+ optionsRelationship
865
+ compareAtPrice
866
+ }
867
+ }
862
868
  `;
863
- exports.GET_PRODUCT_TEMPLATES = (0, graphql_tag_1.gql) `
864
- query GetProductTemplates($partnerId: String!, $groupId: String!) {
865
- getProductTemplates(partnerId: $partnerId, groupId: $groupId) {
866
- id
867
- title
868
- subType
869
- description
870
- sku
871
- shortDescription
872
- weight
873
- width
874
- depth
875
- height
876
- vat
877
- qualify
878
- parentId
879
- handle
880
- price
881
- displayPrice
882
- hint
883
- compareAtPrices
884
- priceUnit
885
- priceQuantity
886
- priceType
887
- salePolicy
888
- priceTypeName
889
- priceVaries
890
- available
891
- tags
892
- options
893
- optionsRelationship
894
- compareAtPrice
895
- featuredImage
896
- version
897
- images
898
- }
899
- }
869
+ exports.GET_PRODUCT_TEMPLATES = (0, graphql_tag_1.gql) `
870
+ query GetProductTemplates($partnerId: String!, $groupId: String!) {
871
+ getProductTemplates(partnerId: $partnerId, groupId: $groupId) {
872
+ id
873
+ title
874
+ subType
875
+ description
876
+ sku
877
+ shortDescription
878
+ weight
879
+ width
880
+ depth
881
+ height
882
+ vat
883
+ qualify
884
+ parentId
885
+ handle
886
+ price
887
+ displayPrice
888
+ hint
889
+ compareAtPrices
890
+ priceUnit
891
+ priceQuantity
892
+ priceType
893
+ salePolicy
894
+ priceTypeName
895
+ priceVaries
896
+ available
897
+ tags
898
+ options
899
+ optionsRelationship
900
+ compareAtPrice
901
+ featuredImage
902
+ version
903
+ images
904
+ }
905
+ }
900
906
  `;
901
- exports.GET_GROUPS = (0, graphql_tag_1.gql) `
902
- query GetGroups($partnerId: String!, $storeChannel: String!) {
903
- getGroups(partnerId: $partnerId, storeChannel: $storeChannel) {
904
- id
905
- name
906
- policy
907
- image
908
- }
909
- }
907
+ exports.GET_GROUPS = (0, graphql_tag_1.gql) `
908
+ query GetGroups($partnerId: String!, $storeChannel: String!) {
909
+ getGroups(partnerId: $partnerId, storeChannel: $storeChannel) {
910
+ id
911
+ name
912
+ policy
913
+ image
914
+ }
915
+ }
910
916
  `;
911
- exports.GET_BRAND = (0, graphql_tag_1.gql) `
912
- query GetBrands($partnerId: String!) {
913
- getBrands(partnerId: $partnerId) {
914
- id
915
- createStamp
916
- createdBy
917
- name
918
- image
919
- imageIcon
920
- }
921
- }
917
+ exports.GET_BRAND = (0, graphql_tag_1.gql) `
918
+ query GetBrands($partnerId: String!) {
919
+ getBrands(partnerId: $partnerId) {
920
+ id
921
+ createStamp
922
+ createdBy
923
+ name
924
+ image
925
+ imageIcon
926
+ }
927
+ }
922
928
  `;
923
- exports.GET_TAGS = (0, graphql_tag_1.gql) `
924
- query GetTags($partnerId: String!, $storeChannel: String!) {
925
- getTags(partnerId: $partnerId, storeChannel: $storeChannel) {
926
- id
927
- name
928
- slug
929
- type
930
- scope
931
- storeIds
932
- selected
933
- }
934
- }
929
+ exports.GET_TAGS = (0, graphql_tag_1.gql) `
930
+ query GetTags($partnerId: String!, $storeChannel: String!) {
931
+ getTags(partnerId: $partnerId, storeChannel: $storeChannel) {
932
+ id
933
+ name
934
+ slug
935
+ type
936
+ scope
937
+ storeIds
938
+ selected
939
+ }
940
+ }
935
941
  `;
936
- exports.GET_PRODUCT_BY_GROUPID = (0, graphql_tag_1.gql) `
937
- query GetProducts(
938
- $partnerId: String!
939
- $storeChannel: String!
940
- $group: String
941
- ) {
942
- getProducts(
943
- partnerId: $partnerId
944
- storeChannel: $storeChannel
945
- group: $group
946
- ) {
947
- total
948
- currentPage
949
- maxResult
950
- totalPage
951
- data {
952
- id
953
- title
954
- subType
955
- description
956
- sku
957
- shortDescription
958
- weight
959
- width
960
- depth
961
- height
962
- vat
963
- qualify
964
- parentId
965
- handle
966
- price
967
- displayPrice
968
- hint
969
- compareAtPrices
970
- priceUnit
971
- priceQuantity
972
- priceType
973
- salePolicy
974
- priceTypeName
975
- priceVaries
976
- available
977
- tags
978
- options
979
- optionsRelationship
980
- compareAtPrice
981
- featuredImage
982
- version
983
- images
984
- unitDTO {
985
- id
986
- name
987
- }
988
- productAttributes {
989
- attributeName
990
- attributeValue
991
- }
992
- attributeDTOS {
993
- id
994
- key
995
- extendFromSource
996
- }
997
- variants {
998
- id
999
- handle
1000
- title
1001
- price
1002
- priceType
1003
- compareAtPrice
1004
- options
1005
- optionsIds
1006
- featuredImage
1007
- sku
1008
- }
1009
- featureTypes {
1010
- id
1011
- name
1012
- position
1013
- type
1014
- subType
1015
- fill
1016
- requireData
1017
- otherItem
1018
- values
1019
- description
1020
- createStamp
1021
- createdBy
1022
- }
1023
- categories {
1024
- id
1025
- title
1026
- image
1027
- icon
1028
- parentId
1029
- level
1030
- handle
1031
- description
1032
- }
1033
- groups {
1034
- id
1035
- name
1036
- policy
1037
- image
1038
- }
1039
- }
1040
- }
1041
- }
942
+ exports.GET_PRODUCT_BY_GROUPID = (0, graphql_tag_1.gql) `
943
+ query GetProducts(
944
+ $partnerId: String!
945
+ $storeChannel: String!
946
+ $group: String
947
+ ) {
948
+ getProducts(
949
+ partnerId: $partnerId
950
+ storeChannel: $storeChannel
951
+ group: $group
952
+ ) {
953
+ total
954
+ currentPage
955
+ maxResult
956
+ totalPage
957
+ data {
958
+ id
959
+ title
960
+ subType
961
+ description
962
+ sku
963
+ shortDescription
964
+ weight
965
+ width
966
+ depth
967
+ height
968
+ vat
969
+ qualify
970
+ parentId
971
+ handle
972
+ price
973
+ displayPrice
974
+ hint
975
+ compareAtPrices
976
+ priceUnit
977
+ priceQuantity
978
+ priceType
979
+ salePolicy
980
+ priceTypeName
981
+ priceVaries
982
+ available
983
+ tags
984
+ options
985
+ optionsRelationship
986
+ compareAtPrice
987
+ featuredImage
988
+ version
989
+ images
990
+ unitDTO {
991
+ id
992
+ name
993
+ }
994
+ productAttributes {
995
+ attributeName
996
+ attributeValue
997
+ }
998
+ attributeDTOS {
999
+ id
1000
+ key
1001
+ extendFromSource
1002
+ }
1003
+ variants {
1004
+ id
1005
+ handle
1006
+ title
1007
+ price
1008
+ priceType
1009
+ compareAtPrice
1010
+ options
1011
+ optionsIds
1012
+ featuredImage
1013
+ sku
1014
+ }
1015
+ featureTypes {
1016
+ id
1017
+ name
1018
+ position
1019
+ type
1020
+ subType
1021
+ fill
1022
+ requireData
1023
+ otherItem
1024
+ values
1025
+ description
1026
+ createStamp
1027
+ createdBy
1028
+ }
1029
+ categories {
1030
+ id
1031
+ title
1032
+ image
1033
+ icon
1034
+ parentId
1035
+ level
1036
+ handle
1037
+ description
1038
+ }
1039
+ groups {
1040
+ id
1041
+ name
1042
+ policy
1043
+ image
1044
+ }
1045
+ }
1046
+ }
1047
+ }
1042
1048
  `;
1043
- exports.GET_CATEGORY_BY_ID = (0, graphql_tag_1.gql) `
1044
- query GetCategoryById(
1045
- $partnerId: String!
1046
- $storeChannel: String!
1047
- $categoryId: String!
1048
- ) {
1049
- getCategoryById(
1050
- partnerId: $partnerId
1051
- storeChannel: $storeChannel
1052
- categoryId: $categoryId
1053
- ) {
1054
- id
1055
- title
1056
- image
1057
- icon
1058
- parentId
1059
- level
1060
- handle
1061
- description
1062
- child {
1063
- id
1064
- title
1065
- image
1066
- icon
1067
- parentId
1068
- level
1069
- handle
1070
- description
1071
- }
1072
- }
1073
- }
1049
+ exports.GET_CATEGORY_BY_ID = (0, graphql_tag_1.gql) `
1050
+ query GetCategoryById(
1051
+ $partnerId: String!
1052
+ $storeChannel: String!
1053
+ $categoryId: String!
1054
+ ) {
1055
+ getCategoryById(
1056
+ partnerId: $partnerId
1057
+ storeChannel: $storeChannel
1058
+ categoryId: $categoryId
1059
+ ) {
1060
+ id
1061
+ title
1062
+ image
1063
+ icon
1064
+ parentId
1065
+ level
1066
+ handle
1067
+ description
1068
+ child {
1069
+ id
1070
+ title
1071
+ image
1072
+ icon
1073
+ parentId
1074
+ level
1075
+ handle
1076
+ description
1077
+ }
1078
+ }
1079
+ }
1074
1080
  `;
1075
- exports.GET_CATEGORY_BY_HANDLE = (0, graphql_tag_1.gql) `
1076
- query GetCategoryByHandle(
1077
- $partnerId: String!
1078
- $storeChannel: String!
1079
- $handle: String!
1080
- ) {
1081
- getCategoryByHandle(
1082
- partnerId: $partnerId
1083
- storeChannel: $storeChannel
1084
- handle: $handle
1085
- ) {
1086
- id
1087
- title
1088
- image
1089
- icon
1090
- parentId
1091
- level
1092
- handle
1093
- description
1094
- child {
1095
- id
1096
- title
1097
- image
1098
- icon
1099
- parentId
1100
- level
1101
- handle
1102
- description
1103
- }
1104
- }
1105
- }
1081
+ exports.GET_CATEGORY_BY_HANDLE = (0, graphql_tag_1.gql) `
1082
+ query GetCategoryByHandle(
1083
+ $partnerId: String!
1084
+ $storeChannel: String!
1085
+ $handle: String!
1086
+ ) {
1087
+ getCategoryByHandle(
1088
+ partnerId: $partnerId
1089
+ storeChannel: $storeChannel
1090
+ handle: $handle
1091
+ ) {
1092
+ id
1093
+ title
1094
+ image
1095
+ icon
1096
+ parentId
1097
+ level
1098
+ handle
1099
+ description
1100
+ child {
1101
+ id
1102
+ title
1103
+ image
1104
+ icon
1105
+ parentId
1106
+ level
1107
+ handle
1108
+ description
1109
+ }
1110
+ }
1111
+ }
1106
1112
  `;