@longvansoftware/storefront-js-client 3.0.5 → 3.0.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 (41) hide show
  1. package/README.md +221 -221
  2. package/dist/src/graphql/auth/mutations.d.ts +1 -0
  3. package/dist/src/graphql/auth/mutations.js +192 -205
  4. package/dist/src/graphql/auth/queries.d.ts +0 -1
  5. package/dist/src/graphql/auth/queries.js +60 -65
  6. package/dist/src/graphql/campaign/mutations.js +26 -26
  7. package/dist/src/graphql/campaign/queries.js +375 -375
  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/computing/mutations.js +96 -96
  12. package/dist/src/graphql/computing/queries.js +41 -41
  13. package/dist/src/graphql/crm/mutations.js +813 -813
  14. package/dist/src/graphql/crm/queries.js +661 -661
  15. package/dist/src/graphql/fragments/product.d.ts +38 -0
  16. package/dist/src/graphql/fragments/product.js +196 -0
  17. package/dist/src/graphql/payment/mutations.js +146 -146
  18. package/dist/src/graphql/payment/queries.js +116 -116
  19. package/dist/src/graphql/paymentV2/mutations.js +47 -47
  20. package/dist/src/graphql/paymentV2/queries.js +176 -176
  21. package/dist/src/graphql/product/mutations.js +94 -94
  22. package/dist/src/graphql/product/queries.js +472 -472
  23. package/dist/src/graphql/service/mutations.js +304 -304
  24. package/dist/src/graphql/service/queries.js +131 -131
  25. package/dist/src/graphql/store/mutations.js +24 -24
  26. package/dist/src/graphql/store/queries.js +24 -24
  27. package/dist/src/graphql/user/mutations.js +142 -142
  28. package/dist/src/graphql/user/queries.js +298 -298
  29. package/dist/src/lib/auth/index.d.ts +7 -36
  30. package/dist/src/lib/auth/index.js +6 -69
  31. package/dist/src/lib/order/index.d.ts +2 -0
  32. package/dist/src/lib/order/index.js +37 -0
  33. package/dist/src/lib/serviceSDK.js +12 -12
  34. package/dist/src/lib/shareZalo/index.d.ts +5 -0
  35. package/dist/src/lib/shareZalo/index.js +32 -0
  36. package/dist/src/types/auth.d.ts +0 -123
  37. package/dist/src/types/common.d.ts +264 -0
  38. package/dist/src/types/common.js +35 -0
  39. package/dist/src/utils/errorHandler.d.ts +64 -0
  40. package/dist/src/utils/errorHandler.js +197 -0
  41. package/package.json +43 -44
@@ -89,491 +89,491 @@ 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
- qualify
114
- parentId
115
- handle
116
- price
117
- options
118
- optionsRelationship
119
- compareAtPrice
120
- featuredImage
121
- images
122
- productAttributes {
123
- attributeName
124
- attributeValue
125
- }
126
- variants {
127
- id
128
- handle
129
- title
130
- price
131
- compareAtPrice
132
- options
133
- optionsIds
134
- featuredImage
135
- sku
136
- }
137
- featureTypes {
138
- id
139
- name
140
- values
141
- valuesFull {
142
- id
143
- name
144
- }
145
- }
146
- categories {
147
- id
148
- title
149
- handle
150
- }
151
- unitDTO {
152
- id
153
- name
154
- }
155
- }
156
- }
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
+ qualify
114
+ parentId
115
+ handle
116
+ price
117
+ options
118
+ optionsRelationship
119
+ compareAtPrice
120
+ featuredImage
121
+ images
122
+ productAttributes {
123
+ attributeName
124
+ attributeValue
125
+ }
126
+ variants {
127
+ id
128
+ handle
129
+ title
130
+ price
131
+ compareAtPrice
132
+ options
133
+ optionsIds
134
+ featuredImage
135
+ sku
136
+ }
137
+ featureTypes {
138
+ id
139
+ name
140
+ values
141
+ valuesFull {
142
+ id
143
+ name
144
+ }
145
+ }
146
+ categories {
147
+ id
148
+ title
149
+ handle
150
+ }
151
+ unitDTO {
152
+ id
153
+ name
154
+ }
155
+ }
156
+ }
157
157
  `;
158
- exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
159
- query GetProductByHandle(
160
- $partnerId: String!
161
- $storeChannel: String!
162
- $handle: String!
163
- ) {
164
- getProductByHandle(
165
- partnerId: $partnerId
166
- storeChannel: $storeChannel
167
- handle: $handle
168
- ) {
169
- id
170
- title
171
- description
172
- sku
173
- shortDescription
174
- weight
175
- width
176
- depth
177
- height
178
- vat
179
- qualify
180
- parentId
181
- handle
182
- price
183
- options
184
- optionsRelationship
185
- compareAtPrice
186
- featuredImage
187
- images
188
- productAttributes {
189
- attributeName
190
- attributeValue
191
- }
192
- variants {
193
- id
194
- handle
195
- title
196
- price
197
- compareAtPrice
198
- options
199
- optionsIds
200
- featuredImage
201
- sku
202
- }
203
- featureTypes {
204
- id
205
- name
206
- values
207
- }
208
- categories {
209
- id
210
- title
211
- handle
212
- }
213
- unitDTO {
214
- id
215
- name
216
- }
217
- }
218
- }
158
+ exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
159
+ query GetProductByHandle(
160
+ $partnerId: String!
161
+ $storeChannel: String!
162
+ $handle: String!
163
+ ) {
164
+ getProductByHandle(
165
+ partnerId: $partnerId
166
+ storeChannel: $storeChannel
167
+ handle: $handle
168
+ ) {
169
+ id
170
+ title
171
+ description
172
+ sku
173
+ shortDescription
174
+ weight
175
+ width
176
+ depth
177
+ height
178
+ vat
179
+ qualify
180
+ parentId
181
+ handle
182
+ price
183
+ options
184
+ optionsRelationship
185
+ compareAtPrice
186
+ featuredImage
187
+ images
188
+ productAttributes {
189
+ attributeName
190
+ attributeValue
191
+ }
192
+ variants {
193
+ id
194
+ handle
195
+ title
196
+ price
197
+ compareAtPrice
198
+ options
199
+ optionsIds
200
+ featuredImage
201
+ sku
202
+ }
203
+ featureTypes {
204
+ id
205
+ name
206
+ values
207
+ }
208
+ categories {
209
+ id
210
+ title
211
+ handle
212
+ }
213
+ unitDTO {
214
+ id
215
+ name
216
+ }
217
+ }
218
+ }
219
219
  `;
220
- exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
221
- query GetSimpleProducts(
222
- $partnerId: String!
223
- $storeChannel: String!
224
- $category: String
225
- $product: String
226
- $sku: String
227
- $tag: String
228
- $priceFrom: BigDecimal
229
- $priceTo: BigDecimal
230
- $status: String
231
- $productType: String
232
- $subType: String
233
- $sortOrder: String
234
- $sortBy: String
235
- $brandId: String
236
- $keyword: String
237
- $display: String
238
- $onlyPromotion: Boolean
239
- $currentPage: Int
240
- $maxResult: Int
241
- ) {
242
- getSimpleProducts(
243
- partnerId: $partnerId
244
- storeChannel: $storeChannel
245
- category: $category
246
- product: $product
247
- sku: $sku
248
- tag: $tag
249
- priceFrom: $priceFrom
250
- priceTo: $priceTo
251
- status: $status
252
- productType: $productType
253
- subType: $subType
254
- sortOrder: $sortOrder
255
- sortBy: $sortBy
256
- brandId: $brandId
257
- keyword: $keyword
258
- display: $display
259
- onlyPromotion: $onlyPromotion
260
- currentPage: $currentPage
261
- maxResult: $maxResult
262
- ) {
263
- total
264
- currentPage
265
- maxResult
266
- totalPage
267
- data {
268
- id
269
- title
270
- sku
271
- shortDescription
272
- description
273
- subType
274
- vat
275
- qualify
276
- parentId
277
- handle
278
- price
279
- compareAtPrice
280
- priceType
281
- priceTypeName
282
- featuredImage
283
- optionsRelationship
284
- images
285
- }
286
- }
287
- }
220
+ exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
221
+ query GetSimpleProducts(
222
+ $partnerId: String!
223
+ $storeChannel: String!
224
+ $category: String
225
+ $product: String
226
+ $sku: String
227
+ $tag: String
228
+ $priceFrom: BigDecimal
229
+ $priceTo: BigDecimal
230
+ $status: String
231
+ $productType: String
232
+ $subType: String
233
+ $sortOrder: String
234
+ $sortBy: String
235
+ $brandId: String
236
+ $keyword: String
237
+ $display: String
238
+ $onlyPromotion: Boolean
239
+ $currentPage: Int
240
+ $maxResult: Int
241
+ ) {
242
+ getSimpleProducts(
243
+ partnerId: $partnerId
244
+ storeChannel: $storeChannel
245
+ category: $category
246
+ product: $product
247
+ sku: $sku
248
+ tag: $tag
249
+ priceFrom: $priceFrom
250
+ priceTo: $priceTo
251
+ status: $status
252
+ productType: $productType
253
+ subType: $subType
254
+ sortOrder: $sortOrder
255
+ sortBy: $sortBy
256
+ brandId: $brandId
257
+ keyword: $keyword
258
+ display: $display
259
+ onlyPromotion: $onlyPromotion
260
+ currentPage: $currentPage
261
+ maxResult: $maxResult
262
+ ) {
263
+ total
264
+ currentPage
265
+ maxResult
266
+ totalPage
267
+ data {
268
+ id
269
+ title
270
+ sku
271
+ shortDescription
272
+ description
273
+ subType
274
+ vat
275
+ qualify
276
+ parentId
277
+ handle
278
+ price
279
+ compareAtPrice
280
+ priceType
281
+ priceTypeName
282
+ featuredImage
283
+ optionsRelationship
284
+ images
285
+ }
286
+ }
287
+ }
288
288
  `;
289
- exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
290
- query GetCategories(
291
- $partnerId: String!
292
- $storeChannel: String!
293
- $typeBuild: String!
294
- $level: Int!
295
- ) {
296
- getCategories(
297
- partnerId: $partnerId
298
- storeChannel: $storeChannel
299
- typeBuild: $typeBuild
300
- level: $level
301
- ) {
302
- id
303
- title
304
- image
305
- icon
306
- parentId
307
- level
308
- handle
309
- description
310
- child {
311
- id
312
- title
313
- image
314
- icon
315
- parentId
316
- level
317
- handle
318
- description
319
- }
320
- }
321
- }
289
+ exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
290
+ query GetCategories(
291
+ $partnerId: String!
292
+ $storeChannel: String!
293
+ $typeBuild: String!
294
+ $level: Int!
295
+ ) {
296
+ getCategories(
297
+ partnerId: $partnerId
298
+ storeChannel: $storeChannel
299
+ typeBuild: $typeBuild
300
+ level: $level
301
+ ) {
302
+ id
303
+ title
304
+ image
305
+ icon
306
+ parentId
307
+ level
308
+ handle
309
+ description
310
+ child {
311
+ id
312
+ title
313
+ image
314
+ icon
315
+ parentId
316
+ level
317
+ handle
318
+ description
319
+ }
320
+ }
321
+ }
322
322
  `;
323
- exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
324
- query GetCategoryByHandle(
325
- $partnerId: String!
326
- $storeChannel: String!
327
- $handle: String!
328
- ) {
329
- getCategoryByHandle(
330
- partnerId: $partnerId
331
- storeChannel: $storeChannel
332
- handle: $handle
333
- ) {
334
- id
335
- title
336
- image
337
- icon
338
- parentId
339
- level
340
- handle
341
- child {
342
- id
343
- title
344
- image
345
- icon
346
- parentId
347
- level
348
- handle
349
- }
350
- }
351
- }
323
+ exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
324
+ query GetCategoryByHandle(
325
+ $partnerId: String!
326
+ $storeChannel: String!
327
+ $handle: String!
328
+ ) {
329
+ getCategoryByHandle(
330
+ partnerId: $partnerId
331
+ storeChannel: $storeChannel
332
+ handle: $handle
333
+ ) {
334
+ id
335
+ title
336
+ image
337
+ icon
338
+ parentId
339
+ level
340
+ handle
341
+ child {
342
+ id
343
+ title
344
+ image
345
+ icon
346
+ parentId
347
+ level
348
+ handle
349
+ }
350
+ }
351
+ }
352
352
  `;
353
- exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
354
- query GetCategoryById(
355
- $partnerId: String!
356
- $storeChannel: String!
357
- $categoryId: String!
358
- ) {
359
- getCategoryById(
360
- partnerId: $partnerId
361
- storeChannel: $storeChannel
362
- categoryId: $categoryId
363
- ) {
364
- id
365
- title
366
- image
367
- icon
368
- parentId
369
- level
370
- handle
371
- child {
372
- id
373
- title
374
- image
375
- icon
376
- parentId
377
- level
378
- handle
379
- }
380
- }
381
- }
353
+ exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
354
+ query GetCategoryById(
355
+ $partnerId: String!
356
+ $storeChannel: String!
357
+ $categoryId: String!
358
+ ) {
359
+ getCategoryById(
360
+ partnerId: $partnerId
361
+ storeChannel: $storeChannel
362
+ categoryId: $categoryId
363
+ ) {
364
+ id
365
+ title
366
+ image
367
+ icon
368
+ parentId
369
+ level
370
+ handle
371
+ child {
372
+ id
373
+ title
374
+ image
375
+ icon
376
+ parentId
377
+ level
378
+ handle
379
+ }
380
+ }
381
+ }
382
382
  `;
383
- exports.GET_BRANDS_QUERY = `
384
- query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
385
- getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
386
- id
387
- name
388
- image
389
- imageIcon
390
- }
391
- }
383
+ exports.GET_BRANDS_QUERY = `
384
+ query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
385
+ getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
386
+ id
387
+ name
388
+ image
389
+ imageIcon
390
+ }
391
+ }
392
392
  `;
393
- exports.GET_BRANDS_BY_CATEGORY_QUERY = `
394
- query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
395
- getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
396
- id
397
- name
398
- image
399
- imageIcon
400
- }
401
- }
393
+ exports.GET_BRANDS_BY_CATEGORY_QUERY = `
394
+ query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
395
+ getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
396
+ id
397
+ name
398
+ image
399
+ imageIcon
400
+ }
401
+ }
402
402
  `;
403
- exports.GET_BRAND_DETAIL_QUERY = `
404
- query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
405
- getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
406
- id
407
- name
408
- image
409
- imageIcon
410
- }
411
- }
403
+ exports.GET_BRAND_DETAIL_QUERY = `
404
+ query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
405
+ getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
406
+ id
407
+ name
408
+ image
409
+ imageIcon
410
+ }
411
+ }
412
412
  `;
413
- exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
414
- query GetProductOption(
415
- $partnerId: String!
416
- $storeChannel: String!
417
- $productId: String!
418
- ) {
419
- getProductOption(
420
- partnerId: $partnerId
421
- storeChannel: $storeChannel
422
- productId: $productId
423
- ) {
424
- id
425
- name
426
- subType
427
- productFeatureDTOS {
428
- productOptionGroupItemDTOS {
429
- id
430
- productId
431
- productName
432
- price
433
- }
434
- }
435
- }
436
- }
413
+ exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
414
+ query GetProductOption(
415
+ $partnerId: String!
416
+ $storeChannel: String!
417
+ $productId: String!
418
+ ) {
419
+ getProductOption(
420
+ partnerId: $partnerId
421
+ storeChannel: $storeChannel
422
+ productId: $productId
423
+ ) {
424
+ id
425
+ name
426
+ subType
427
+ productFeatureDTOS {
428
+ productOptionGroupItemDTOS {
429
+ id
430
+ productId
431
+ productName
432
+ price
433
+ }
434
+ }
435
+ }
436
+ }
437
437
  `;
438
- exports.GET_POLICY = (0, graphql_tag_1.gql) `
439
- query GetPolicy($groupId: String!) {
440
- getPolicy(groupId: $groupId) {
441
- value
442
- }
443
- }
438
+ exports.GET_POLICY = (0, graphql_tag_1.gql) `
439
+ query GetPolicy($groupId: String!) {
440
+ getPolicy(groupId: $groupId) {
441
+ value
442
+ }
443
+ }
444
444
  `;
445
- exports.GET_STORES = (0, graphql_tag_1.gql) `
446
- query GetStores($partnerId: String!, $type: String!) {
447
- getStores(partnerId: $partnerId, type: $type) {
448
- id
449
- createdStamp
450
- name
451
- type
452
- enable
453
- partyId
454
- warehouses
455
- warehouseIdDefault
456
- enableOrderAbleFuture
457
- enableOrderNegativeQuantity
458
- storeEcommerceName
459
- shippingCompanies
460
- shippingCompanyIdPrimary
461
- customerIdPrimary
462
- paymentMethodIdPrimary
463
- enableCustomProductPrice
464
- enablePaymentPartial
465
- paymentPartialPercent
466
- productStoreLink
467
- }
468
- }
445
+ exports.GET_STORES = (0, graphql_tag_1.gql) `
446
+ query GetStores($partnerId: String!, $type: String!) {
447
+ getStores(partnerId: $partnerId, type: $type) {
448
+ id
449
+ createdStamp
450
+ name
451
+ type
452
+ enable
453
+ partyId
454
+ warehouses
455
+ warehouseIdDefault
456
+ enableOrderAbleFuture
457
+ enableOrderNegativeQuantity
458
+ storeEcommerceName
459
+ shippingCompanies
460
+ shippingCompanyIdPrimary
461
+ customerIdPrimary
462
+ paymentMethodIdPrimary
463
+ enableCustomProductPrice
464
+ enablePaymentPartial
465
+ paymentPartialPercent
466
+ productStoreLink
467
+ }
468
+ }
469
469
  `;
470
- exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
471
- query GetDetailStores($partnerId: String!, $storeId: String!) {
472
- getDetailStores(partnerId: $partnerId, storeId: $storeId) {
473
- id
474
- createdStamp
475
- name
476
- type
477
- enable
478
- partyId
479
- warehouses
480
- warehouseIdDefault
481
- enableOrderAbleFuture
482
- enableOrderNegativeQuantity
483
- storeEcommerceName
484
- shippingCompanies
485
- shippingCompanyIdPrimary
486
- customerIdPrimary
487
- paymentMethodIdPrimary
488
- enableCustomProductPrice
489
- enablePaymentPartial
490
- paymentPartialPercent
491
- productStoreLink
492
- }
493
- }
470
+ exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
471
+ query GetDetailStores($partnerId: String!, $storeId: String!) {
472
+ getDetailStores(partnerId: $partnerId, storeId: $storeId) {
473
+ id
474
+ createdStamp
475
+ name
476
+ type
477
+ enable
478
+ partyId
479
+ warehouses
480
+ warehouseIdDefault
481
+ enableOrderAbleFuture
482
+ enableOrderNegativeQuantity
483
+ storeEcommerceName
484
+ shippingCompanies
485
+ shippingCompanyIdPrimary
486
+ customerIdPrimary
487
+ paymentMethodIdPrimary
488
+ enableCustomProductPrice
489
+ enablePaymentPartial
490
+ paymentPartialPercent
491
+ productStoreLink
492
+ }
493
+ }
494
494
  `;
495
- exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
496
- query GetProductImage($partnerId: String!, $productId: String!) {
497
- getProductImage(partnerId: $partnerId, productId: $productId)
498
- }
495
+ exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
496
+ query GetProductImage($partnerId: String!, $productId: String!) {
497
+ getProductImage(partnerId: $partnerId, productId: $productId)
498
+ }
499
499
  `;
500
- exports.GET_PRODUCT = (0, graphql_tag_1.gql) `
501
- query GetProducts(
502
- $partnerId: String!
503
- $storeChannel: String!
504
- $keyword: String
505
- $category: String
506
- $currentPage: Int
507
- $maxResult: Int
508
- ) {
509
- getProducts(
510
- partnerId: $partnerId
511
- storeChannel: $storeChannel
512
- keyword: $keyword
513
- category: $category
514
- currentPage: $currentPage
515
- maxResult: $maxResult
516
- ) {
517
- total
518
- currentPage
519
- maxResult
520
- totalPage
521
- data {
522
- id
523
- title
524
- subType
525
- description
526
- sku
527
- shortDescription
528
- weight
529
- width
530
- depth
531
- height
532
- vat
533
- qualify
534
- parentId
535
- handle
536
- price
537
- priceType
538
- salePolicy
539
- priceTypeName
540
- priceVaries
541
- available
542
- tags
543
- options
544
- optionsRelationship
545
- compareAtPrice
546
- featuredImage
547
- images
548
- categories {
549
- id
550
- title
551
- image
552
- icon
553
- parentId
554
- level
555
- handle
556
- description
557
- }
558
- groups {
559
- id
560
- name
561
- policy
562
- image
563
- }
564
- unitDTO {
565
- id
566
- name
567
- }
568
- }
569
- }
570
- }
500
+ exports.GET_PRODUCT = (0, graphql_tag_1.gql) `
501
+ query GetProducts(
502
+ $partnerId: String!
503
+ $storeChannel: String!
504
+ $keyword: String
505
+ $category: String
506
+ $currentPage: Int
507
+ $maxResult: Int
508
+ ) {
509
+ getProducts(
510
+ partnerId: $partnerId
511
+ storeChannel: $storeChannel
512
+ keyword: $keyword
513
+ category: $category
514
+ currentPage: $currentPage
515
+ maxResult: $maxResult
516
+ ) {
517
+ total
518
+ currentPage
519
+ maxResult
520
+ totalPage
521
+ data {
522
+ id
523
+ title
524
+ subType
525
+ description
526
+ sku
527
+ shortDescription
528
+ weight
529
+ width
530
+ depth
531
+ height
532
+ vat
533
+ qualify
534
+ parentId
535
+ handle
536
+ price
537
+ priceType
538
+ salePolicy
539
+ priceTypeName
540
+ priceVaries
541
+ available
542
+ tags
543
+ options
544
+ optionsRelationship
545
+ compareAtPrice
546
+ featuredImage
547
+ images
548
+ categories {
549
+ id
550
+ title
551
+ image
552
+ icon
553
+ parentId
554
+ level
555
+ handle
556
+ description
557
+ }
558
+ groups {
559
+ id
560
+ name
561
+ policy
562
+ image
563
+ }
564
+ unitDTO {
565
+ id
566
+ name
567
+ }
568
+ }
569
+ }
570
+ }
571
571
  `;
572
- exports.GET_UNITS = (0, graphql_tag_1.gql) `
573
- query GetUnits($partnerId: String!) {
574
- getUnits(partnerId: $partnerId) {
575
- id
576
- name
577
- }
578
- }
572
+ exports.GET_UNITS = (0, graphql_tag_1.gql) `
573
+ query GetUnits($partnerId: String!) {
574
+ getUnits(partnerId: $partnerId) {
575
+ id
576
+ name
577
+ }
578
+ }
579
579
  `;