@longvansoftware/storefront-js-client 2.2.7-beta.2 → 2.2.9

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.d.ts +0 -3
  3. package/dist/src/graphql/auth/mutations.js +89 -134
  4. package/dist/src/graphql/auth/queries.d.ts +0 -3
  5. package/dist/src/graphql/auth/queries.js +21 -56
  6. package/dist/src/graphql/campaign/queries.js +248 -248
  7. package/dist/src/graphql/cloud/mutations.js +103 -103
  8. package/dist/src/graphql/cloud/queries.js +112 -112
  9. package/dist/src/graphql/computing/mutations.js +96 -96
  10. package/dist/src/graphql/computing/queries.js +41 -41
  11. package/dist/src/graphql/crm/mutations.js +799 -799
  12. package/dist/src/graphql/crm/queries.js +615 -615
  13. package/dist/src/graphql/payment/mutations.js +39 -39
  14. package/dist/src/graphql/payment/queries.js +57 -57
  15. package/dist/src/graphql/paymentV2/mutations.d.ts +1 -0
  16. package/dist/src/graphql/paymentV2/mutations.js +18 -5
  17. package/dist/src/graphql/paymentV2/queries.d.ts +2 -0
  18. package/dist/src/graphql/paymentV2/queries.js +160 -60
  19. package/dist/src/graphql/product/queries.js +431 -431
  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 +281 -281
  24. package/dist/src/lib/auth/index.d.ts +0 -16
  25. package/dist/src/lib/auth/index.js +0 -181
  26. package/dist/src/lib/paymentV2/index.d.ts +3 -0
  27. package/dist/src/lib/paymentV2/index.js +46 -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
@@ -89,449 +89,449 @@ 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
- }
210
- }
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
+ }
211
211
  `;
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
- }
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
+ }
280
280
  `;
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
- }
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
+ }
314
314
  `;
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
- }
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
+ }
344
344
  `;
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
- }
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
+ }
374
374
  `;
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
- }
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
+ }
384
384
  `;
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
- }
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
+ }
394
394
  `;
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
- }
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
+ }
404
404
  `;
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
- }
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
+ }
429
429
  `;
430
- exports.GET_POLICY = (0, graphql_tag_1.gql) `
431
- query GetPolicy($groupId: String!) {
432
- getPolicy(groupId: $groupId) {
433
- value
434
- }
435
- }
430
+ exports.GET_POLICY = (0, graphql_tag_1.gql) `
431
+ query GetPolicy($groupId: String!) {
432
+ getPolicy(groupId: $groupId) {
433
+ value
434
+ }
435
+ }
436
436
  `;
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
- }
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
+ }
461
461
  `;
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
- }
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
+ }
486
486
  `;
487
- exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
488
- query GetProductImage($partnerId: String!, $productId: String!) {
489
- getProductImage(partnerId: $partnerId, productId: $productId)
490
- }
487
+ exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
488
+ query GetProductImage($partnerId: String!, $productId: String!) {
489
+ getProductImage(partnerId: $partnerId, productId: $productId)
490
+ }
491
491
  `;
492
- exports.GET_PRODUCT = (0, graphql_tag_1.gql) `
493
- query GetProducts(
494
- $partnerId: String!
495
- $storeChannel: String!
496
- $category: String
497
- ) {
498
- getProducts(
499
- partnerId: $partnerId
500
- storeChannel: $storeChannel
501
- category: $category
502
- ) {
503
- total
504
- currentPage
505
- maxResult
506
- totalPage
507
- data {
508
- id
509
- title
510
- subType
511
- description
512
- sku
513
- shortDescription
514
- weight
515
- width
516
- depth
517
- height
518
- vat
519
- qualify
520
- parentId
521
- handle
522
- price
523
- priceType
524
- salePolicy
525
- priceTypeName
526
- priceVaries
527
- available
528
- tags
529
- options
530
- optionsRelationship
531
- compareAtPrice
532
- featuredImage
533
- images
534
- }
535
- }
536
- }
492
+ exports.GET_PRODUCT = (0, graphql_tag_1.gql) `
493
+ query GetProducts(
494
+ $partnerId: String!
495
+ $storeChannel: String!
496
+ $category: String
497
+ ) {
498
+ getProducts(
499
+ partnerId: $partnerId
500
+ storeChannel: $storeChannel
501
+ category: $category
502
+ ) {
503
+ total
504
+ currentPage
505
+ maxResult
506
+ totalPage
507
+ data {
508
+ id
509
+ title
510
+ subType
511
+ description
512
+ sku
513
+ shortDescription
514
+ weight
515
+ width
516
+ depth
517
+ height
518
+ vat
519
+ qualify
520
+ parentId
521
+ handle
522
+ price
523
+ priceType
524
+ salePolicy
525
+ priceTypeName
526
+ priceVaries
527
+ available
528
+ tags
529
+ options
530
+ optionsRelationship
531
+ compareAtPrice
532
+ featuredImage
533
+ images
534
+ }
535
+ }
536
+ }
537
537
  `;