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

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/index.d.ts +1698 -0
  3. package/dist/index.js +13673 -0
  4. package/dist/src/graphql/auth/mutations.js +309 -309
  5. package/dist/src/graphql/auth/queries.js +209 -209
  6. package/dist/src/graphql/campaign/mutations.js +26 -26
  7. package/dist/src/graphql/campaign/queries.js +457 -457
  8. package/dist/src/graphql/cashbook/queries.js +93 -93
  9. package/dist/src/graphql/cloud/mutations.js +103 -103
  10. package/dist/src/graphql/cloud/queries.js +112 -112
  11. package/dist/src/graphql/cloudCloud/mutations.js +12 -12
  12. package/dist/src/graphql/cloudCloud/queries.js +117 -117
  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 +989 -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/order/index.d.ts +9 -0
  32. package/dist/src/lib/order/index.js +21 -0
  33. package/dist/src/lib/serviceSDK.js +14 -14
  34. package/package.json +43 -43
  35. package/dist/src/graphql/cloudService/queries.d.ts +0 -1
  36. package/dist/src/graphql/cloudService/queries.js +0 -71
  37. package/dist/src/lib/cloudService/index.d.ts +0 -5
  38. package/dist/src/lib/cloudService/index.js +0 -35
@@ -89,1017 +89,1017 @@ 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
+ }
194
+ categories {
195
+ id
196
+ title
197
+ handle
198
+ }
199
+ unitDTO {
200
+ id
201
+ name
202
+ }
203
+ }
204
+ }
205
205
  `;
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
- }
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
+ }
336
336
  `;
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
- }
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
+ }
439
439
  `;
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
- }
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
+ }
527
527
  `;
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
- }
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
+ }
561
561
  `;
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
- }
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
+ }
591
591
  `;
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
- }
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
+ }
621
621
  `;
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
- }
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
+ }
631
631
  `;
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
- }
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
+ }
641
641
  `;
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
- }
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
+ }
651
651
  `;
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
- }
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
+ }
676
676
  `;
677
- exports.GET_POLICY = (0, graphql_tag_1.gql) `
678
- query GetPolicy($groupId: String!) {
679
- getPolicy(groupId: $groupId) {
680
- value
681
- }
682
- }
677
+ exports.GET_POLICY = (0, graphql_tag_1.gql) `
678
+ query GetPolicy($groupId: String!) {
679
+ getPolicy(groupId: $groupId) {
680
+ value
681
+ }
682
+ }
683
683
  `;
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
- }
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
+ }
708
708
  `;
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
- }
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
+ }
733
733
  `;
734
- exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
735
- query GetProductImage($partnerId: String!, $productId: String!) {
736
- getProductImage(partnerId: $partnerId, productId: $productId)
737
- }
734
+ exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
735
+ query GetProductImage($partnerId: String!, $productId: String!) {
736
+ getProductImage(partnerId: $partnerId, productId: $productId)
737
+ }
738
738
  `;
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
- }
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
+ }
810
810
  `;
811
- exports.GET_UNITS = (0, graphql_tag_1.gql) `
812
- query GetUnits($partnerId: String!) {
813
- getUnits(partnerId: $partnerId) {
814
- id
815
- name
816
- }
817
- }
811
+ exports.GET_UNITS = (0, graphql_tag_1.gql) `
812
+ query GetUnits($partnerId: String!) {
813
+ getUnits(partnerId: $partnerId) {
814
+ id
815
+ name
816
+ }
817
+ }
818
818
  `;
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
- }
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
+ }
861
861
  `;
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
- }
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
+ }
899
899
  `;
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
- }
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
+ }
909
909
  `;
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
- }
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
+ }
921
921
  `;
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
- }
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
+ }
934
934
  `;
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
- }
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
+ }
1041
1041
  `;
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
- }
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
+ }
1073
1073
  `;
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
- }
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
+ }
1105
1105
  `;