@ikas/storefront-api 6.1.0-beta.215 → 6.1.0-beta.216
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.
|
@@ -4,6 +4,7 @@ export declare class LoyaltyCustomerInfoData {
|
|
|
4
4
|
customerTier: LoyaltyProgramTierData | null;
|
|
5
5
|
loyaltyProgramCustomerId: string;
|
|
6
6
|
loyaltyProgramId: string;
|
|
7
|
+
nextTierRequiredPoint: number | null;
|
|
7
8
|
totalPoint: number;
|
|
8
9
|
constructor(data?: Partial<LoyaltyCustomerInfoData>);
|
|
9
10
|
}
|
|
@@ -22,5 +22,6 @@ export declare enum ResponseField {
|
|
|
22
22
|
CUSTOMER_TIER__UPDATED_AT = "customerTier.updatedAt",
|
|
23
23
|
LOYALTY_PROGRAM_CUSTOMER_ID = "loyaltyProgramCustomerId",
|
|
24
24
|
LOYALTY_PROGRAM_ID = "loyaltyProgramId",
|
|
25
|
+
NEXT_TIER_REQUIRED_POINT = "nextTierRequiredPoint",
|
|
25
26
|
TOTAL_POINT = "totalPoint"
|
|
26
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as o,fetchQuery as i}from"@ikas/fe-api-client";var T,_=function(T,_,a){return t(void 0,void 0,void 0,(function(){var t,
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as o,fetchQuery as i}from"@ikas/fe-api-client";var T,_=function(T,_,a){return t(void 0,void 0,void 0,(function(){var t,E,R,s;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i({operationName:"getLoyaltyCustomerInfo",config:a,variables:T,allReturnFields:n,fields:_,query:function(t){return"\n\t\t\t\tquery getLoyaltyCustomerInfo (\n\t\t\t\t\t$cartId: String,\n\t\t\t\t) {\n\t\t\t\t\tgetLoyaltyCustomerInfo (\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=e.sent(),E=t.data,R=t.errors,[2,new o(null==E?void 0:E.getLoyaltyCustomerInfo,R)];case 2:return s=e.sent(),[2,r(s)];case 3:return[2]}}))}))},n="{customerTier {createdAt customerSegmentId deleted id isActive loyaltyProgramId name period {period periodType } pointsRequired tierPointMultiplier translations {locale name } updatedAt } loyaltyProgramCustomerId loyaltyProgramId nextTierRequiredPoint totalPoint }";!function(t){t.CUSTOMER_TIER__CREATED_AT="customerTier.createdAt",t.CUSTOMER_TIER__CUSTOMER_SEGMENT_ID="customerTier.customerSegmentId",t.CUSTOMER_TIER__DELETED="customerTier.deleted",t.CUSTOMER_TIER__ID="customerTier.id",t.CUSTOMER_TIER__IS_ACTIVE="customerTier.isActive",t.CUSTOMER_TIER__LOYALTY_PROGRAM_ID="customerTier.loyaltyProgramId",t.CUSTOMER_TIER__NAME="customerTier.name",t.CUSTOMER_TIER__PERIOD__PERIOD="customerTier.period.period",t.CUSTOMER_TIER__PERIOD__PERIOD_TYPE="customerTier.period.periodType",t.CUSTOMER_TIER__POINTS_REQUIRED="customerTier.pointsRequired",t.CUSTOMER_TIER__TIER_POINT_MULTIPLIER="customerTier.tierPointMultiplier",t.CUSTOMER_TIER__TRANSLATIONS__LOCALE="customerTier.translations.locale",t.CUSTOMER_TIER__TRANSLATIONS__NAME="customerTier.translations.name",t.CUSTOMER_TIER__UPDATED_AT="customerTier.updatedAt",t.LOYALTY_PROGRAM_CUSTOMER_ID="loyaltyProgramCustomerId",t.LOYALTY_PROGRAM_ID="loyaltyProgramId",t.NEXT_TIER_REQUIRED_POINT="nextTierRequiredPoint",t.TOTAL_POINT="totalPoint"}(T||(T={}));export{T as ResponseField,_ as default};
|
|
@@ -3824,6 +3824,7 @@ export interface LoyaltyCustomerInfo {
|
|
|
3824
3824
|
customerTier: LoyaltyProgramTier | null;
|
|
3825
3825
|
loyaltyProgramCustomerId: string;
|
|
3826
3826
|
loyaltyProgramId: string;
|
|
3827
|
+
nextTierRequiredPoint: number | null;
|
|
3827
3828
|
totalPoint: number;
|
|
3828
3829
|
}
|
|
3829
3830
|
export interface LoyaltyProgram {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "6.1.0-beta.
|
|
3
|
+
"version": "6.1.0-beta.216",
|
|
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.
|
|
21
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
20
|
+
"@ikas/storefront-config": "^6.1.0-beta.216",
|
|
21
|
+
"@ikas/storefront-models": "^6.1.0-beta.216",
|
|
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",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@ikas/fe-api-client": "1.0.30"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
38
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
37
|
+
"@ikas/storefront-config": "^6.1.0-beta.216",
|
|
38
|
+
"@ikas/storefront-models": "^6.1.0-beta.216",
|
|
39
39
|
"@ikas/fe-api-client": "1.0.30",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|