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