@longvansoftware/storefront-js-client 1.9.8 → 2.0.1

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,359 +89,359 @@ 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($partnerId: String!, $storeChannel: String!, $productId: String!) {
94
- getProductById(partnerId: $partnerId, storeChannel: $storeChannel, productId: $productId) {
95
- id
96
- title
97
- description
98
- sku
99
- shortDescription
100
- weight
101
- width
102
- depth
103
- height
104
- vat
105
- qualify
106
- parentId
107
- handle
108
- price
109
- options
110
- optionsRelationship
111
- compareAtPrice
112
- featuredImage
113
- images
114
- productAttributes {
115
- attributeName
116
- attributeValue
117
- }
118
- variants {
119
- id
120
- handle
121
- title
122
- price
123
- compareAtPrice
124
- options
125
- optionsIds
126
- featuredImage
127
- sku
128
- }
129
- featureTypes {
130
- id
131
- name
132
- values
133
- valuesFull {
134
- id
135
- name
136
- }
137
- }
138
- categories {
139
- id
140
- title
141
- handle
142
- }
143
- }
144
- }
92
+ exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
93
+ query GetProductById($partnerId: String!, $storeChannel: String!, $productId: String!) {
94
+ getProductById(partnerId: $partnerId, storeChannel: $storeChannel, productId: $productId) {
95
+ id
96
+ title
97
+ description
98
+ sku
99
+ shortDescription
100
+ weight
101
+ width
102
+ depth
103
+ height
104
+ vat
105
+ qualify
106
+ parentId
107
+ handle
108
+ price
109
+ options
110
+ optionsRelationship
111
+ compareAtPrice
112
+ featuredImage
113
+ images
114
+ productAttributes {
115
+ attributeName
116
+ attributeValue
117
+ }
118
+ variants {
119
+ id
120
+ handle
121
+ title
122
+ price
123
+ compareAtPrice
124
+ options
125
+ optionsIds
126
+ featuredImage
127
+ sku
128
+ }
129
+ featureTypes {
130
+ id
131
+ name
132
+ values
133
+ valuesFull {
134
+ id
135
+ name
136
+ }
137
+ }
138
+ categories {
139
+ id
140
+ title
141
+ handle
142
+ }
143
+ }
144
+ }
145
145
  `;
146
- exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
147
- query GetProductByHandle($partnerId: String!, $storeChannel: String!, $handle: String!) {
148
- getProductByHandle(partnerId: $partnerId, storeChannel: $storeChannel, handle: $handle) {
149
- id
150
- title
151
- description
152
- sku
153
- shortDescription
154
- weight
155
- width
156
- depth
157
- height
158
- vat
159
- qualify
160
- parentId
161
- handle
162
- price
163
- options
164
- optionsRelationship
165
- compareAtPrice
166
- featuredImage
167
- images
168
- productAttributes {
169
- attributeName
170
- attributeValue
171
- }
172
- variants {
173
- id
174
- handle
175
- title
176
- price
177
- compareAtPrice
178
- options
179
- optionsIds
180
- featuredImage
181
- sku
182
- }
183
- featureTypes {
184
- id
185
- name
186
- values
187
- }
188
- categories {
189
- id
190
- title
191
- handle
192
- }
193
- }
194
- }
146
+ exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
147
+ query GetProductByHandle($partnerId: String!, $storeChannel: String!, $handle: String!) {
148
+ getProductByHandle(partnerId: $partnerId, storeChannel: $storeChannel, handle: $handle) {
149
+ id
150
+ title
151
+ description
152
+ sku
153
+ shortDescription
154
+ weight
155
+ width
156
+ depth
157
+ height
158
+ vat
159
+ qualify
160
+ parentId
161
+ handle
162
+ price
163
+ options
164
+ optionsRelationship
165
+ compareAtPrice
166
+ featuredImage
167
+ images
168
+ productAttributes {
169
+ attributeName
170
+ attributeValue
171
+ }
172
+ variants {
173
+ id
174
+ handle
175
+ title
176
+ price
177
+ compareAtPrice
178
+ options
179
+ optionsIds
180
+ featuredImage
181
+ sku
182
+ }
183
+ featureTypes {
184
+ id
185
+ name
186
+ values
187
+ }
188
+ categories {
189
+ id
190
+ title
191
+ handle
192
+ }
193
+ }
194
+ }
195
195
  `;
196
- exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
197
- query GetSimpleProducts(
198
- $partnerId: String!
199
- $storeChannel: String!
200
- $category: String
201
- $product: String
202
- $sku: String
203
- $tag: String
204
- $priceFrom: BigDecimal
205
- $priceTo: BigDecimal
206
- $status: String
207
- $productType: String
208
- $subType: String
209
- $sortOrder: String
210
- $sortBy: String
211
- $brandId: String
212
- $keyword: String
213
- $display: String
214
- $onlyPromotion: Boolean
215
- $currentPage: Int
216
- $maxResult: Int
217
- ) {
218
- getSimpleProducts(
219
- partnerId: $partnerId
220
- storeChannel: $storeChannel
221
- category: $category
222
- product: $product
223
- sku: $sku
224
- tag: $tag
225
- priceFrom: $priceFrom
226
- priceTo: $priceTo
227
- status: $status
228
- productType: $productType
229
- subType: $subType
230
- sortOrder: $sortOrder
231
- sortBy: $sortBy
232
- brandId: $brandId
233
- keyword: $keyword
234
- display: $display
235
- onlyPromotion: $onlyPromotion
236
- currentPage: $currentPage
237
- maxResult: $maxResult
238
- ) {
239
- total
240
- currentPage
241
- maxResult
242
- totalPage
243
- data {
244
- id
245
- title
246
- sku
247
- subType
248
- shortDescription
249
- vat
250
- subType
251
- qualify
252
- handle
253
- price
254
- compareAtPrice
255
- featuredImage
256
- images
257
- }
258
- }
259
- }
196
+ exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
197
+ query GetSimpleProducts(
198
+ $partnerId: String!
199
+ $storeChannel: String!
200
+ $category: String
201
+ $product: String
202
+ $sku: String
203
+ $tag: String
204
+ $priceFrom: BigDecimal
205
+ $priceTo: BigDecimal
206
+ $status: String
207
+ $productType: String
208
+ $subType: String
209
+ $sortOrder: String
210
+ $sortBy: String
211
+ $brandId: String
212
+ $keyword: String
213
+ $display: String
214
+ $onlyPromotion: Boolean
215
+ $currentPage: Int
216
+ $maxResult: Int
217
+ ) {
218
+ getSimpleProducts(
219
+ partnerId: $partnerId
220
+ storeChannel: $storeChannel
221
+ category: $category
222
+ product: $product
223
+ sku: $sku
224
+ tag: $tag
225
+ priceFrom: $priceFrom
226
+ priceTo: $priceTo
227
+ status: $status
228
+ productType: $productType
229
+ subType: $subType
230
+ sortOrder: $sortOrder
231
+ sortBy: $sortBy
232
+ brandId: $brandId
233
+ keyword: $keyword
234
+ display: $display
235
+ onlyPromotion: $onlyPromotion
236
+ currentPage: $currentPage
237
+ maxResult: $maxResult
238
+ ) {
239
+ total
240
+ currentPage
241
+ maxResult
242
+ totalPage
243
+ data {
244
+ id
245
+ title
246
+ sku
247
+ subType
248
+ shortDescription
249
+ vat
250
+ subType
251
+ qualify
252
+ handle
253
+ price
254
+ compareAtPrice
255
+ featuredImage
256
+ images
257
+ }
258
+ }
259
+ }
260
260
  `;
261
- exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
262
- query GetCategories(
263
- $partnerId: String!
264
- $storeChannel: String!
265
- $typeBuild: String!
266
- $level: Int!
267
- ) {
268
- getCategories(
269
- partnerId: $partnerId
270
- storeChannel: $storeChannel
271
- typeBuild: $typeBuild
272
- level: $level
273
- ) {
274
- id
275
- title
276
- image
277
- icon
278
- parentId
279
- level
280
- sequence
281
- handle
282
- child {
283
- id
284
- title
285
- image
286
- icon
287
- parentId
288
- level
289
- sequence
290
- handle
291
- }
292
- }
293
- }
261
+ exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
262
+ query GetCategories(
263
+ $partnerId: String!
264
+ $storeChannel: String!
265
+ $typeBuild: String!
266
+ $level: Int!
267
+ ) {
268
+ getCategories(
269
+ partnerId: $partnerId
270
+ storeChannel: $storeChannel
271
+ typeBuild: $typeBuild
272
+ level: $level
273
+ ) {
274
+ id
275
+ title
276
+ image
277
+ icon
278
+ parentId
279
+ level
280
+ sequence
281
+ handle
282
+ child {
283
+ id
284
+ title
285
+ image
286
+ icon
287
+ parentId
288
+ level
289
+ sequence
290
+ handle
291
+ }
292
+ }
293
+ }
294
294
  `;
295
- exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
296
- query GetCategoryByHandle($partnerId: String!, $storeChannel: String!, $handle: String!) {
297
- getCategoryByHandle(partnerId: $partnerId, storeChannel: $storeChannel, handle: $handle) {
298
- id
299
- title
300
- image
301
- icon
302
- parentId
303
- level
304
- handle
305
- child {
306
- id
307
- title
308
- image
309
- icon
310
- parentId
311
- level
312
- handle
313
- }
314
- }
315
- }
295
+ exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
296
+ query GetCategoryByHandle($partnerId: String!, $storeChannel: String!, $handle: String!) {
297
+ getCategoryByHandle(partnerId: $partnerId, storeChannel: $storeChannel, handle: $handle) {
298
+ id
299
+ title
300
+ image
301
+ icon
302
+ parentId
303
+ level
304
+ handle
305
+ child {
306
+ id
307
+ title
308
+ image
309
+ icon
310
+ parentId
311
+ level
312
+ handle
313
+ }
314
+ }
315
+ }
316
316
  `;
317
- exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
318
- query GetCategoryById($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
319
- getCategoryById(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
320
- id
321
- title
322
- image
323
- icon
324
- parentId
325
- level
326
- handle
327
- child {
328
- id
329
- title
330
- image
331
- icon
332
- parentId
333
- level
334
- handle
335
- }
336
- }
337
- }
317
+ exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
318
+ query GetCategoryById($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
319
+ getCategoryById(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
320
+ id
321
+ title
322
+ image
323
+ icon
324
+ parentId
325
+ level
326
+ handle
327
+ child {
328
+ id
329
+ title
330
+ image
331
+ icon
332
+ parentId
333
+ level
334
+ handle
335
+ }
336
+ }
337
+ }
338
338
  `;
339
- exports.GET_BRANDS_QUERY = `
340
- query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
341
- getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
342
- id
343
- name
344
- image
345
- imageIcon
346
- }
347
- }
339
+ exports.GET_BRANDS_QUERY = `
340
+ query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
341
+ getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
342
+ id
343
+ name
344
+ image
345
+ imageIcon
346
+ }
347
+ }
348
348
  `;
349
- exports.GET_BRANDS_BY_CATEGORY_QUERY = `
350
- query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
351
- getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
352
- id
353
- name
354
- image
355
- imageIcon
356
- }
357
- }
349
+ exports.GET_BRANDS_BY_CATEGORY_QUERY = `
350
+ query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
351
+ getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
352
+ id
353
+ name
354
+ image
355
+ imageIcon
356
+ }
357
+ }
358
358
  `;
359
- exports.GET_BRAND_DETAIL_QUERY = `
360
- query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
361
- getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
362
- id
363
- name
364
- image
365
- imageIcon
366
- }
367
- }
359
+ exports.GET_BRAND_DETAIL_QUERY = `
360
+ query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
361
+ getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
362
+ id
363
+ name
364
+ image
365
+ imageIcon
366
+ }
367
+ }
368
368
  `;
369
- exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
370
- query GetProductOption($partnerId: String!, $storeChannel: String!, $productId: String!) {
371
- getProductOption(partnerId: $partnerId, storeChannel: $storeChannel, productId: $productId) {
372
- id
373
- name
374
- subType
375
- productFeatureDTOS {
376
- productOptionGroupItemDTOS {
377
- id
378
- productId
379
- productName
380
- price
381
- }
382
- }
383
- }
384
- }
369
+ exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
370
+ query GetProductOption($partnerId: String!, $storeChannel: String!, $productId: String!) {
371
+ getProductOption(partnerId: $partnerId, storeChannel: $storeChannel, productId: $productId) {
372
+ id
373
+ name
374
+ subType
375
+ productFeatureDTOS {
376
+ productOptionGroupItemDTOS {
377
+ id
378
+ productId
379
+ productName
380
+ price
381
+ }
382
+ }
383
+ }
384
+ }
385
385
  `;
386
- exports.GET_POLICY = (0, graphql_tag_1.gql) `
387
- query GetPolicy($groupId: String!) {
388
- getPolicy(groupId: $groupId) {
389
- value
390
- }
391
- }
386
+ exports.GET_POLICY = (0, graphql_tag_1.gql) `
387
+ query GetPolicy($groupId: String!) {
388
+ getPolicy(groupId: $groupId) {
389
+ value
390
+ }
391
+ }
392
392
  `;
393
- exports.GET_STORES = (0, graphql_tag_1.gql) `
394
- query GetStores($partnerId: String!, $type: String!) {
395
- getStores(partnerId: $partnerId, type: $type) {
396
- id
397
- createdStamp
398
- name
399
- type
400
- enable
401
- partyId
402
- warehouses
403
- warehouseIdDefault
404
- enableOrderAbleFuture
405
- enableOrderNegativeQuantity
406
- storeEcommerceName
407
- shippingCompanies
408
- shippingCompanyIdPrimary
409
- customerIdPrimary
410
- paymentMethodIdPrimary
411
- enableCustomProductPrice
412
- enablePaymentPartial
413
- paymentPartialPercent
414
- productStoreLink
415
- }
416
- }
393
+ exports.GET_STORES = (0, graphql_tag_1.gql) `
394
+ query GetStores($partnerId: String!, $type: String!) {
395
+ getStores(partnerId: $partnerId, type: $type) {
396
+ id
397
+ createdStamp
398
+ name
399
+ type
400
+ enable
401
+ partyId
402
+ warehouses
403
+ warehouseIdDefault
404
+ enableOrderAbleFuture
405
+ enableOrderNegativeQuantity
406
+ storeEcommerceName
407
+ shippingCompanies
408
+ shippingCompanyIdPrimary
409
+ customerIdPrimary
410
+ paymentMethodIdPrimary
411
+ enableCustomProductPrice
412
+ enablePaymentPartial
413
+ paymentPartialPercent
414
+ productStoreLink
415
+ }
416
+ }
417
417
  `;
418
- exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
419
- query GetDetailStores($partnerId: String!, $storeId: String!) {
420
- getDetailStores(partnerId: $partnerId, storeId: $storeId) {
421
- id
422
- createdStamp
423
- name
424
- type
425
- enable
426
- partyId
427
- warehouses
428
- warehouseIdDefault
429
- enableOrderAbleFuture
430
- enableOrderNegativeQuantity
431
- storeEcommerceName
432
- shippingCompanies
433
- shippingCompanyIdPrimary
434
- customerIdPrimary
435
- paymentMethodIdPrimary
436
- enableCustomProductPrice
437
- enablePaymentPartial
438
- paymentPartialPercent
439
- productStoreLink
440
- }
441
- }
418
+ exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
419
+ query GetDetailStores($partnerId: String!, $storeId: String!) {
420
+ getDetailStores(partnerId: $partnerId, storeId: $storeId) {
421
+ id
422
+ createdStamp
423
+ name
424
+ type
425
+ enable
426
+ partyId
427
+ warehouses
428
+ warehouseIdDefault
429
+ enableOrderAbleFuture
430
+ enableOrderNegativeQuantity
431
+ storeEcommerceName
432
+ shippingCompanies
433
+ shippingCompanyIdPrimary
434
+ customerIdPrimary
435
+ paymentMethodIdPrimary
436
+ enableCustomProductPrice
437
+ enablePaymentPartial
438
+ paymentPartialPercent
439
+ productStoreLink
440
+ }
441
+ }
442
442
  `;
443
- exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
444
- query GetProductImage($partnerId: String!, $productId: String!) {
445
- getProductImage(partnerId: $partnerId, productId: $productId)
446
- }
443
+ exports.GET_PRODUCT_IMAGE = (0, graphql_tag_1.gql) `
444
+ query GetProductImage($partnerId: String!, $productId: String!) {
445
+ getProductImage(partnerId: $partnerId, productId: $productId)
446
+ }
447
447
  `;