@longvansoftware/storefront-js-client 2.9.6 → 2.9.8

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