@longvansoftware/storefront-js-client 4.2.4 → 4.2.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.
@@ -40,7 +40,7 @@ exports.UPDATE_PRICE_PROMOTION = (0, graphql_tag_1.gql) `
40
40
  mutation UpdatePricePromotion(
41
41
  $productId: String!
42
42
  $storeId: String!
43
- $price: BigDecimal!
43
+ $price: BigDecimal
44
44
  $updatedBy: String!
45
45
  ) {
46
46
  updatePricePromotion(
@@ -110,6 +110,7 @@ exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
110
110
  depth
111
111
  height
112
112
  vat
113
+ priceType
113
114
  qualify
114
115
  parentId
115
116
  handle
@@ -159,6 +160,26 @@ exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
159
160
  optionsIds
160
161
  featuredImage
161
162
  sku
163
+ priceType
164
+ featureTypeDTOS {
165
+ id
166
+ keyId
167
+ name
168
+ position
169
+ type
170
+ subType
171
+ fill
172
+ requireData
173
+ otherItem
174
+ values
175
+ description
176
+ createStamp
177
+ createdBy
178
+ valuesFull {
179
+ id
180
+ name
181
+ }
182
+ }
162
183
  }
163
184
  featureTypes {
164
185
  id
@@ -349,6 +370,25 @@ exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
349
370
  featuredImage
350
371
  optionsRelationship
351
372
  images
373
+ featureTypes {
374
+ id
375
+ keyId
376
+ name
377
+ position
378
+ type
379
+ subType
380
+ fill
381
+ requireData
382
+ otherItem
383
+ values
384
+ description
385
+ createStamp
386
+ createdBy
387
+ valuesFull {
388
+ id
389
+ name
390
+ }
391
+ }
352
392
  }
353
393
  }
354
394
  }
@@ -28,4 +28,5 @@ export declare class PortalService extends Service {
28
28
  getWorkSchedule(orgId: string, query?: Record<string, any>): Promise<any>;
29
29
  updateSchedule(orgId: string, data: Record<string, any>): Promise<any>;
30
30
  getPosition(query?: Record<string, any>): Promise<any>;
31
+ getPositionForTime(query?: Record<string, any>): Promise<any>;
31
32
  }
@@ -404,5 +404,29 @@ class PortalService extends serviceSDK_1.Service {
404
404
  }
405
405
  });
406
406
  }
407
+ getPositionForTime(query) {
408
+ return __awaiter(this, void 0, void 0, function* () {
409
+ const method = "GET";
410
+ const baseUrl = `/dynamic-collection/public/v2/visit/slot`;
411
+ const params = new URLSearchParams();
412
+ if (query) {
413
+ Object.entries(query).forEach(([key, value]) => {
414
+ if (value !== undefined && value !== null) {
415
+ params.append(key, String(value));
416
+ }
417
+ });
418
+ }
419
+ const endpoint = params.toString()
420
+ ? `${baseUrl}?${params.toString()}`
421
+ : baseUrl;
422
+ try {
423
+ const response = yield this.restApiCallWithNoToken(endpoint, method);
424
+ return response;
425
+ }
426
+ catch (error) {
427
+ throw error;
428
+ }
429
+ });
430
+ }
407
431
  }
408
432
  exports.PortalService = PortalService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [