@longvansoftware/storefront-js-client 2.9.3 → 2.9.5

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.
@@ -89,483 +89,487 @@ 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
+ }
152
+ }
153
153
  `;
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
- }
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
+ }
215
215
  `;
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
- }
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
+ }
284
284
  `;
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
- }
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
+ }
318
318
  `;
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
- }
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
+ }
348
348
  `;
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
- }
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
+ }
378
378
  `;
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
- }
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
+ }
388
388
  `;
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
- }
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
+ }
398
398
  `;
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
- }
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
+ }
408
408
  `;
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
- }
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
+ }
433
433
  `;
434
- exports.GET_POLICY = (0, graphql_tag_1.gql) `
435
- query GetPolicy($groupId: String!) {
436
- getPolicy(groupId: $groupId) {
437
- value
438
- }
439
- }
434
+ exports.GET_POLICY = (0, graphql_tag_1.gql) `
435
+ query GetPolicy($groupId: String!) {
436
+ getPolicy(groupId: $groupId) {
437
+ value
438
+ }
439
+ }
440
440
  `;
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
- }
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
+ }
465
465
  `;
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
- }
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
+ }
490
490
  `;
491
- exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
492
- query GetProductImage($partnerId: String!, $productId: String!) {
493
- getProductImage(partnerId: $partnerId, productId: $productId)
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
495
  `;
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
- }
561
- }
562
- }
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
+ }
563
567
  `;
564
- exports.GET_UNITS = (0, graphql_tag_1.gql) `
565
- query GetUnits($partnerId: String!) {
566
- getUnits(partnerId: $partnerId) {
567
- id
568
- name
569
- }
570
- }
568
+ exports.GET_UNITS = (0, graphql_tag_1.gql) `
569
+ query GetUnits($partnerId: String!) {
570
+ getUnits(partnerId: $partnerId) {
571
+ id
572
+ name
573
+ }
574
+ }
571
575
  `;