@longvansoftware/storefront-js-client 1.0.12 → 1.0.13

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,327 +89,327 @@ 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
- }
142
- categories {
143
- id
144
- title
145
- handle
146
- }
147
- }
148
- }
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
+ }
142
+ categories {
143
+ id
144
+ title
145
+ handle
146
+ }
147
+ }
148
+ }
149
149
  `;
150
- exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
151
- query GetProductByHandle(
152
- $partnerId: String!
153
- $storeChannel: String!
154
- $handle: String!
155
- ) {
156
- getProductByHandle(
157
- partnerId: $partnerId
158
- storeChannel: $storeChannel
159
- handle: $handle
160
- ) {
161
- id
162
- title
163
- description
164
- sku
165
- shortDescription
166
- weight
167
- width
168
- depth
169
- height
170
- vat
171
- qualify
172
- parentId
173
- handle
174
- price
175
- options
176
- optionsRelationship
177
- compareAtPrice
178
- featuredImage
179
- images
180
- productAttributes {
181
- attributeName
182
- attributeValue
183
- }
184
- variants {
185
- id
186
- handle
187
- title
188
- price
189
- compareAtPrice
190
- options
191
- optionsIds
192
- featuredImage
193
- sku
194
- }
195
- featureTypes {
196
- id
197
- name
198
- values
199
- }
200
- categories {
201
- id
202
- title
203
- handle
204
- }
205
- }
206
- }
150
+ exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
151
+ query GetProductByHandle(
152
+ $partnerId: String!
153
+ $storeChannel: String!
154
+ $handle: String!
155
+ ) {
156
+ getProductByHandle(
157
+ partnerId: $partnerId
158
+ storeChannel: $storeChannel
159
+ handle: $handle
160
+ ) {
161
+ id
162
+ title
163
+ description
164
+ sku
165
+ shortDescription
166
+ weight
167
+ width
168
+ depth
169
+ height
170
+ vat
171
+ qualify
172
+ parentId
173
+ handle
174
+ price
175
+ options
176
+ optionsRelationship
177
+ compareAtPrice
178
+ featuredImage
179
+ images
180
+ productAttributes {
181
+ attributeName
182
+ attributeValue
183
+ }
184
+ variants {
185
+ id
186
+ handle
187
+ title
188
+ price
189
+ compareAtPrice
190
+ options
191
+ optionsIds
192
+ featuredImage
193
+ sku
194
+ }
195
+ featureTypes {
196
+ id
197
+ name
198
+ values
199
+ }
200
+ categories {
201
+ id
202
+ title
203
+ handle
204
+ }
205
+ }
206
+ }
207
207
  `;
208
- exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
209
- query GetSimpleProducts(
210
- $partnerId: String!
211
- $storeChannel: String!
212
- $category: String
213
- $product: String
214
- $sku: String
215
- $tag: String
216
- $priceFrom: BigDecimal
217
- $priceTo: BigDecimal
218
- $status: String
219
- $productType: String
220
- $subType: String
221
- $sortOrder: String
222
- $sortBy: String
223
- $brandId: String
224
- $keyword: String
225
- $display: String
226
- $onlyPromotion: Boolean
227
- $currentPage: Int
228
- $maxResult: Int
229
- ) {
230
- getSimpleProducts(
231
- partnerId: $partnerId
232
- storeChannel: $storeChannel
233
- category: $category
234
- product: $product
235
- sku: $sku
236
- tag: $tag
237
- priceFrom: $priceFrom
238
- priceTo: $priceTo
239
- status: $status
240
- productType: $productType
241
- subType: $subType
242
- sortOrder: $sortOrder
243
- sortBy: $sortBy
244
- brandId: $brandId
245
- keyword: $keyword
246
- display: $display
247
- onlyPromotion: $onlyPromotion
248
- currentPage: $currentPage
249
- maxResult: $maxResult
250
- ) {
251
- total
252
- currentPage
253
- maxResult
254
- totalPage
255
- data {
256
- id
257
- title
258
- sku
259
- shortDescription
260
- vat
261
- qualify
262
- handle
263
- price
264
- compareAtPrice
265
- featuredImage
266
- images
267
- }
268
- }
269
- }
208
+ exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
209
+ query GetSimpleProducts(
210
+ $partnerId: String!
211
+ $storeChannel: String!
212
+ $category: String
213
+ $product: String
214
+ $sku: String
215
+ $tag: String
216
+ $priceFrom: BigDecimal
217
+ $priceTo: BigDecimal
218
+ $status: String
219
+ $productType: String
220
+ $subType: String
221
+ $sortOrder: String
222
+ $sortBy: String
223
+ $brandId: String
224
+ $keyword: String
225
+ $display: String
226
+ $onlyPromotion: Boolean
227
+ $currentPage: Int
228
+ $maxResult: Int
229
+ ) {
230
+ getSimpleProducts(
231
+ partnerId: $partnerId
232
+ storeChannel: $storeChannel
233
+ category: $category
234
+ product: $product
235
+ sku: $sku
236
+ tag: $tag
237
+ priceFrom: $priceFrom
238
+ priceTo: $priceTo
239
+ status: $status
240
+ productType: $productType
241
+ subType: $subType
242
+ sortOrder: $sortOrder
243
+ sortBy: $sortBy
244
+ brandId: $brandId
245
+ keyword: $keyword
246
+ display: $display
247
+ onlyPromotion: $onlyPromotion
248
+ currentPage: $currentPage
249
+ maxResult: $maxResult
250
+ ) {
251
+ total
252
+ currentPage
253
+ maxResult
254
+ totalPage
255
+ data {
256
+ id
257
+ title
258
+ sku
259
+ shortDescription
260
+ vat
261
+ qualify
262
+ handle
263
+ price
264
+ compareAtPrice
265
+ featuredImage
266
+ images
267
+ }
268
+ }
269
+ }
270
270
  `;
271
- exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
272
- query GetCategories(
273
- $partnerId: String!
274
- $storeChannel: String!
275
- $typeBuild: String!
276
- $level: Int!
277
- ) {
278
- getCategories(
279
- partnerId: $partnerId
280
- storeChannel: $storeChannel
281
- typeBuild: $typeBuild
282
- level: $level
283
- ) {
284
- id
285
- title
286
- image
287
- icon
288
- parentId
289
- level
290
- sequence
291
- handle
292
- child {
293
- id
294
- title
295
- image
296
- icon
297
- parentId
298
- level
299
- sequence
300
- handle
301
- }
302
- }
303
- }
271
+ exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
272
+ query GetCategories(
273
+ $partnerId: String!
274
+ $storeChannel: String!
275
+ $typeBuild: String!
276
+ $level: Int!
277
+ ) {
278
+ getCategories(
279
+ partnerId: $partnerId
280
+ storeChannel: $storeChannel
281
+ typeBuild: $typeBuild
282
+ level: $level
283
+ ) {
284
+ id
285
+ title
286
+ image
287
+ icon
288
+ parentId
289
+ level
290
+ sequence
291
+ handle
292
+ child {
293
+ id
294
+ title
295
+ image
296
+ icon
297
+ parentId
298
+ level
299
+ sequence
300
+ handle
301
+ }
302
+ }
303
+ }
304
304
  `;
305
- exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
306
- query GetCategoryByHandle(
307
- $partnerId: String!
308
- $storeChannel: String!
309
- $handle: String!
310
- ) {
311
- getCategoryByHandle(
312
- partnerId: $partnerId
313
- storeChannel: $storeChannel
314
- handle: $handle
315
- ) {
316
- id
317
- title
318
- image
319
- icon
320
- parentId
321
- level
322
- handle
323
- child {
324
- id
325
- title
326
- image
327
- icon
328
- parentId
329
- level
330
- handle
331
- }
332
- }
333
- }
305
+ exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
306
+ query GetCategoryByHandle(
307
+ $partnerId: String!
308
+ $storeChannel: String!
309
+ $handle: String!
310
+ ) {
311
+ getCategoryByHandle(
312
+ partnerId: $partnerId
313
+ storeChannel: $storeChannel
314
+ handle: $handle
315
+ ) {
316
+ id
317
+ title
318
+ image
319
+ icon
320
+ parentId
321
+ level
322
+ handle
323
+ child {
324
+ id
325
+ title
326
+ image
327
+ icon
328
+ parentId
329
+ level
330
+ handle
331
+ }
332
+ }
333
+ }
334
334
  `;
335
- exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
336
- query GetCategoryById(
337
- $partnerId: String!
338
- $storeChannel: String!
339
- $categoryId: String!
340
- ) {
341
- getCategoryById(
342
- partnerId: $partnerId
343
- storeChannel: $storeChannel
344
- categoryId: $categoryId
345
- ) {
346
- id
347
- title
348
- image
349
- icon
350
- parentId
351
- level
352
- handle
353
- child {
354
- id
355
- title
356
- image
357
- icon
358
- parentId
359
- level
360
- handle
361
- }
362
- }
363
- }
335
+ exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
336
+ query GetCategoryById(
337
+ $partnerId: String!
338
+ $storeChannel: String!
339
+ $categoryId: String!
340
+ ) {
341
+ getCategoryById(
342
+ partnerId: $partnerId
343
+ storeChannel: $storeChannel
344
+ categoryId: $categoryId
345
+ ) {
346
+ id
347
+ title
348
+ image
349
+ icon
350
+ parentId
351
+ level
352
+ handle
353
+ child {
354
+ id
355
+ title
356
+ image
357
+ icon
358
+ parentId
359
+ level
360
+ handle
361
+ }
362
+ }
363
+ }
364
364
  `;
365
- exports.GET_BRANDS_QUERY = `
366
- query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
367
- getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
368
- id
369
- name
370
- image
371
- imageIcon
372
- }
373
- }
365
+ exports.GET_BRANDS_QUERY = `
366
+ query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
367
+ getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
368
+ id
369
+ name
370
+ image
371
+ imageIcon
372
+ }
373
+ }
374
374
  `;
375
- exports.GET_BRANDS_BY_CATEGORY_QUERY = `
376
- query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
377
- getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
378
- id
379
- name
380
- image
381
- imageIcon
382
- }
383
- }
375
+ exports.GET_BRANDS_BY_CATEGORY_QUERY = `
376
+ query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
377
+ getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
378
+ id
379
+ name
380
+ image
381
+ imageIcon
382
+ }
383
+ }
384
384
  `;
385
- exports.GET_BRAND_DETAIL_QUERY = `
386
- query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
387
- getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
388
- id
389
- name
390
- image
391
- imageIcon
392
- }
393
- }
385
+ exports.GET_BRAND_DETAIL_QUERY = `
386
+ query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
387
+ getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
388
+ id
389
+ name
390
+ image
391
+ imageIcon
392
+ }
393
+ }
394
394
  `;
395
- exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
396
- query GetProductOption(
397
- $partnerId: String!
398
- $storeChannel: String!
399
- $productId: String!
400
- ) {
401
- getProductOption(partnerId: $partnerId, storeChannel: $storeChannel, productId: $productId) {
402
- id
403
- name
404
- subType
405
- productFeatureDTOS {
406
- productOptionGroupItemDTOS {
407
- id
408
- productId
409
- productName
410
- price
411
- }
412
- }
413
- }
414
- }
395
+ exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
396
+ query GetProductOption(
397
+ $partnerId: String!
398
+ $storeChannel: String!
399
+ $productId: String!
400
+ ) {
401
+ getProductOption(partnerId: $partnerId, storeChannel: $storeChannel, productId: $productId) {
402
+ id
403
+ name
404
+ subType
405
+ productFeatureDTOS {
406
+ productOptionGroupItemDTOS {
407
+ id
408
+ productId
409
+ productName
410
+ price
411
+ }
412
+ }
413
+ }
414
+ }
415
415
  `;