@longvansoftware/storefront-js-client 2.7.4 → 2.7.6

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