@ikas/storefront-api 6.1.0-beta.208 → 6.1.0-beta.209

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.
@@ -9,6 +9,7 @@ export declare class LoyaltyProgramSpendingMethodData extends BaseModelData {
9
9
  description: string | null;
10
10
  discountSettings: LoyaltyProgramDiscountSettingsData | null;
11
11
  isActive: boolean;
12
+ isAvailable: boolean | null;
12
13
  isDynamic: boolean;
13
14
  loyaltyProgramId: string;
14
15
  pointUsageLimit: LoyaltyProgramPointLimitData | null;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { CartV2 } from "../types";
4
3
  declare const removeLoyaltyPointsFromCart: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CartV2> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { AddLoyaltyToCartInput, CartV2 } from "../types";
4
3
  declare const useLoyaltyPoints: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CartV2> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { LoyaltyCustomerInfo } from "../types";
4
3
  declare const getLoyaltyCustomerInfo: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyCustomerInfo> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { LoyaltyProgram } from "../types";
4
3
  declare const getLoyaltyProgram: (fields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgram> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { StorefrontWidgetSettings } from "../types";
4
3
  declare const getStorefrontWidgetSettings: (fields?: string[], config?: ConfigType) => Promise<APIResponse<StorefrontWidgetSettings> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { LoyaltyProgramEarningMethod } from "../types";
4
3
  declare const listEarningMethods: (fields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgramEarningMethod[]> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { LoyaltyProgramPointHistoryTypeEnumFilterInput, LoyaltyProgramPointHistory } from "../types";
4
3
  declare const listLoyaltyProgramPointHistory: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgramPointHistory[]> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { LoyaltyProgramTier } from "../types";
4
3
  declare const listLoyaltyProgramTiers: (fields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgramTier[]> | APIResponse<undefined>>;
@@ -1,4 +1,3 @@
1
- /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
2
  import { LoyaltyProgramSpendingMethod } from "../types";
4
3
  declare const listSpendingMethodsByCartId: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgramSpendingMethod[]> | APIResponse<undefined>>;
@@ -15,6 +14,7 @@ export declare enum ResponseField {
15
14
  DISCOUNT_SETTINGS__POINT = "discountSettings.point",
16
15
  ID = "id",
17
16
  IS_ACTIVE = "isActive",
17
+ IS_AVAILABLE = "isAvailable",
18
18
  IS_DYNAMIC = "isDynamic",
19
19
  LOYALTY_PROGRAM_ID = "loyaltyProgramId",
20
20
  POINT_USAGE_LIMIT__MAX_POINT_LIMIT = "pointUsageLimit.maxPointLimit",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as e,fetchQuery as r}from"@ikas/fe-api-client";var s,o=function(s,o,a){return t(void 0,void 0,void 0,(function(){var t,I,_,T;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,r({operationName:"listSpendingMethodsByCartId",config:a,variables:s,allReturnFields:d,fields:o,query:function(t){return"\n\t\t\t\tquery listSpendingMethodsByCartId (\n\t\t\t\t\t$cartId: String,\n\t\t\t\t) {\n\t\t\t\t\tlistSpendingMethodsByCartId (\n\t\t\t\t\t\tcartId: $cartId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=i.sent(),I=t.data,_=t.errors,[2,new e(null==I?void 0:I.listSpendingMethodsByCartId,_)];case 2:return T=i.sent(),[2,n(T)];case 3:return[2]}}))}))},d="{createdAt deleted description discountSettings {discountAmount freeProductId point } id isActive isDynamic loyaltyProgramId pointUsageLimit {maxPointLimit minPointLimit } productFilters {idList type } translations {description locale } type updatedAt }";!function(t){t.CREATED_AT="createdAt",t.DELETED="deleted",t.DESCRIPTION="description",t.DISCOUNT_SETTINGS__DISCOUNT_AMOUNT="discountSettings.discountAmount",t.DISCOUNT_SETTINGS__FREE_PRODUCT_ID="discountSettings.freeProductId",t.DISCOUNT_SETTINGS__POINT="discountSettings.point",t.ID="id",t.IS_ACTIVE="isActive",t.IS_DYNAMIC="isDynamic",t.LOYALTY_PROGRAM_ID="loyaltyProgramId",t.POINT_USAGE_LIMIT__MAX_POINT_LIMIT="pointUsageLimit.maxPointLimit",t.POINT_USAGE_LIMIT__MIN_POINT_LIMIT="pointUsageLimit.minPointLimit",t.PRODUCT_FILTERS__ID_LIST="productFilters.idList",t.PRODUCT_FILTERS__TYPE="productFilters.type",t.TRANSLATIONS__DESCRIPTION="translations.description",t.TRANSLATIONS__LOCALE="translations.locale",t.TYPE="type",t.UPDATED_AT="updatedAt"}(s||(s={}));export{s as ResponseField,o as default};
1
+ import{__awaiter as t,__generator as i}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as n,fetchQuery as s}from"@ikas/fe-api-client";var r,o=function(r,o,a){return t(void 0,void 0,void 0,(function(){var t,I,_,T;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,s({operationName:"listSpendingMethodsByCartId",config:a,variables:r,allReturnFields:d,fields:o,query:function(t){return"\n\t\t\t\tquery listSpendingMethodsByCartId (\n\t\t\t\t\t$cartId: String,\n\t\t\t\t) {\n\t\t\t\t\tlistSpendingMethodsByCartId (\n\t\t\t\t\t\tcartId: $cartId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=i.sent(),I=t.data,_=t.errors,[2,new n(null==I?void 0:I.listSpendingMethodsByCartId,_)];case 2:return T=i.sent(),[2,e(T)];case 3:return[2]}}))}))},d="{createdAt deleted description discountSettings {discountAmount freeProductId point } id isActive isAvailable isDynamic loyaltyProgramId pointUsageLimit {maxPointLimit minPointLimit } productFilters {idList type } translations {description locale } type updatedAt }";!function(t){t.CREATED_AT="createdAt",t.DELETED="deleted",t.DESCRIPTION="description",t.DISCOUNT_SETTINGS__DISCOUNT_AMOUNT="discountSettings.discountAmount",t.DISCOUNT_SETTINGS__FREE_PRODUCT_ID="discountSettings.freeProductId",t.DISCOUNT_SETTINGS__POINT="discountSettings.point",t.ID="id",t.IS_ACTIVE="isActive",t.IS_AVAILABLE="isAvailable",t.IS_DYNAMIC="isDynamic",t.LOYALTY_PROGRAM_ID="loyaltyProgramId",t.POINT_USAGE_LIMIT__MAX_POINT_LIMIT="pointUsageLimit.maxPointLimit",t.POINT_USAGE_LIMIT__MIN_POINT_LIMIT="pointUsageLimit.minPointLimit",t.PRODUCT_FILTERS__ID_LIST="productFilters.idList",t.PRODUCT_FILTERS__TYPE="productFilters.type",t.TRANSLATIONS__DESCRIPTION="translations.description",t.TRANSLATIONS__LOCALE="translations.locale",t.TYPE="type",t.UPDATED_AT="updatedAt"}(r||(r={}));export{r as ResponseField,o as default};
@@ -3923,6 +3923,7 @@ export interface LoyaltyProgramSpendingMethod {
3923
3923
  discountSettings: LoyaltyProgramDiscountSettings | null;
3924
3924
  id: string;
3925
3925
  isActive: boolean;
3926
+ isAvailable: boolean | null;
3926
3927
  isDynamic: boolean;
3927
3928
  loyaltyProgramId: string;
3928
3929
  pointUsageLimit: LoyaltyProgramPointLimit | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "6.1.0-beta.208",
3
+ "version": "6.1.0-beta.209",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-config": "^6.1.0-beta.208",
21
- "@ikas/storefront-models": "^6.1.0-beta.208",
20
+ "@ikas/storefront-config": "^6.1.0-beta.209",
21
+ "@ikas/storefront-models": "^6.1.0-beta.209",
22
22
  "@rollup/plugin-node-resolve": "^13.3.0",
23
23
  "rollup-plugin-rename-node-modules": "^1.2.0",
24
24
  "prettier": "^2.2.1",
@@ -31,12 +31,12 @@
31
31
  "typescript-transform-paths": "^2.2.2",
32
32
  "axios": "^0.26.0",
33
33
  "ts-essentials": "^7.0.1",
34
- "@ikas/fe-api-client": "^1.0.19"
34
+ "@ikas/fe-api-client": "1.0.30"
35
35
  },
36
36
  "peerDependencies": {
37
- "@ikas/storefront-config": "^6.1.0-beta.208",
38
- "@ikas/storefront-models": "^6.1.0-beta.208",
39
- "@ikas/fe-api-client": "^1.0.18",
37
+ "@ikas/storefront-config": "^6.1.0-beta.209",
38
+ "@ikas/storefront-models": "^6.1.0-beta.209",
39
+ "@ikas/fe-api-client": "1.0.30",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"
42
42
  }
@@ -1,13 +0,0 @@
1
- import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
- import { CheckStocksResponse } from "../types";
3
- declare const checkOrderStocks: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<undefined> | APIResponse<CheckStocksResponse>>;
4
- export default checkOrderStocks;
5
- export declare type QueryParams = {
6
- orderId: string;
7
- stockLocationIdList?: string[] | null;
8
- };
9
- export declare enum ResponseField {
10
- LINES__IS_AVAILABLE = "lines.isAvailable",
11
- LINES__STOCK_COUNT = "lines.stockCount",
12
- LINES__VARIANT_ID = "lines.variantId"
13
- }