@ikas/bp-storefront 1.4.0-beta.175 → 1.4.0-beta.176
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.
- package/dist/functions/api/loyalty/index.d.ts +2 -2
- package/dist/storefront-api/src/__api/queries/listLoyaltyProgramPointHistory.d.ts +3 -2
- package/dist/storefront-api/src/__api/types/index.d.ts +11 -0
- package/dist/storefront-models/src/models/loyalty-program/point-history/index.d.ts +11 -0
- package/package.json +1 -1
|
@@ -2,12 +2,12 @@ import { APIResponse, CartV2, ListLoyaltyProgramPointHistoryQueryParams, UseLoya
|
|
|
2
2
|
import { RemoveLoyaltyPointsFromCartQueryParams } from "../../../storefront-api/src/__api/mutations/removeLoyaltyPointsFromCart";
|
|
3
3
|
import { GetLoyaltyCustomerInfoQueryParams } from "../../../storefront-api/src/__api/queries/getLoyaltyCustomerInfo";
|
|
4
4
|
import { ListSpendingMethodsByCartIdQueryParams } from "../../../storefront-api/src/__api/queries/listSpendingMethodsByCartId";
|
|
5
|
-
import { IkasLoyaltyCustomerInfo, IkasLoyaltyProgramEarningMethod,
|
|
5
|
+
import { IkasLoyaltyCustomerInfo, IkasLoyaltyProgramEarningMethod, IkasLoyaltyProgramPointHistoryPaginationResponse, IkasLoyaltyProgramSpendingMethod, IkasLoyaltyProgramTier, IkasStorefrontWidgetSettings } from "../../../storefront-models/src";
|
|
6
6
|
export declare function apiGetStorefrontWidgetSettings(): Promise<APIResponse<IkasStorefrontWidgetSettings>>;
|
|
7
7
|
export declare function apiListEarningMethods(): Promise<APIResponse<IkasLoyaltyProgramEarningMethod[]>>;
|
|
8
8
|
export declare function apiListLoyaltyProgramTiers(): Promise<APIResponse<IkasLoyaltyProgramTier[]>>;
|
|
9
9
|
export declare function apiListSpendingMethodsByCartId(params: ListSpendingMethodsByCartIdQueryParams): Promise<APIResponse<IkasLoyaltyProgramSpendingMethod[]>>;
|
|
10
10
|
export declare function apiGetLoyaltyCustomerInfo(params: GetLoyaltyCustomerInfoQueryParams): Promise<APIResponse<IkasLoyaltyCustomerInfo>>;
|
|
11
|
-
export declare function apiListLoyaltyProgramPointHistory(params: ListLoyaltyProgramPointHistoryQueryParams): Promise<APIResponse<
|
|
11
|
+
export declare function apiListLoyaltyProgramPointHistory(params: ListLoyaltyProgramPointHistoryQueryParams): Promise<APIResponse<IkasLoyaltyProgramPointHistoryPaginationResponse>>;
|
|
12
12
|
export declare function apiUseLoyaltyPoints(params: UseLoyaltyPointsQueryParams): Promise<APIResponse<CartV2>>;
|
|
13
13
|
export declare function apiRemoveLoyaltyPointsFromCart(params: RemoveLoyaltyPointsFromCartQueryParams): Promise<APIResponse<CartV2>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { APIResponse, ConfigType } from "../../../../storefront-api-client/src";
|
|
2
|
-
import {
|
|
3
|
-
export declare const listLoyaltyProgramPointHistory: (input: ListLoyaltyProgramPointHistoryQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<
|
|
2
|
+
import { LoyaltyProgramPointHistoryPaginationResponse, LoyaltyProgramPointHistoryTypeEnumFilterInput, PaginationInput, StringFilterInput } from "../types";
|
|
3
|
+
export declare const listLoyaltyProgramPointHistory: (input: ListLoyaltyProgramPointHistoryQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgramPointHistoryPaginationResponse> | APIResponse<undefined>>;
|
|
4
4
|
export type ListLoyaltyProgramPointHistoryQueryParams = {
|
|
5
5
|
orderId?: StringFilterInput | null;
|
|
6
|
+
pagination?: PaginationInput | null;
|
|
6
7
|
type?: LoyaltyProgramPointHistoryTypeEnumFilterInput | null;
|
|
7
8
|
};
|
|
@@ -1214,6 +1214,8 @@ export interface LoyaltyProgramPeriod {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
export interface LoyaltyProgramPointHistory {
|
|
1216
1216
|
amount: number;
|
|
1217
|
+
baseAmount: number | null;
|
|
1218
|
+
baseQuantity: number | null;
|
|
1217
1219
|
createdAt: any | null;
|
|
1218
1220
|
customerId: string;
|
|
1219
1221
|
customerReviewId: string | null;
|
|
@@ -1226,9 +1228,18 @@ export interface LoyaltyProgramPointHistory {
|
|
|
1226
1228
|
loyaltyProgramSpendingMethodId: string | null;
|
|
1227
1229
|
orderId: string | null;
|
|
1228
1230
|
productVariantId: string | null;
|
|
1231
|
+
refundTransactionId: string | null;
|
|
1232
|
+
retroactiveCalculationId: string | null;
|
|
1229
1233
|
type: LoyaltyProgramPointHistoryTypeEnum;
|
|
1230
1234
|
updatedAt: any | null;
|
|
1231
1235
|
}
|
|
1236
|
+
export interface LoyaltyProgramPointHistoryPaginationResponse {
|
|
1237
|
+
count: number;
|
|
1238
|
+
data: LoyaltyProgramPointHistory[];
|
|
1239
|
+
hasNext: boolean;
|
|
1240
|
+
limit: number;
|
|
1241
|
+
page: number;
|
|
1242
|
+
}
|
|
1232
1243
|
export interface LoyaltyProgramPointLimit {
|
|
1233
1244
|
maxPointLimit: number | null;
|
|
1234
1245
|
minPointLimit: number | null;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LoyaltyProgramPointHistoryTypeEnum } from "../../../../../storefront-api/src";
|
|
2
2
|
export type IkasLoyaltyProgramPointHistory = {
|
|
3
3
|
amount: number;
|
|
4
|
+
baseAmount: number | null;
|
|
5
|
+
baseQuantity: number | null;
|
|
4
6
|
createdAt: any | null;
|
|
5
7
|
customerId: string;
|
|
6
8
|
deleted: boolean;
|
|
@@ -11,6 +13,15 @@ export type IkasLoyaltyProgramPointHistory = {
|
|
|
11
13
|
loyaltyProgramId: string;
|
|
12
14
|
loyaltyProgramSpendingMethodId: string | null;
|
|
13
15
|
orderId: string | null;
|
|
16
|
+
refundTransactionId: string | null;
|
|
17
|
+
retroactiveCalculationId: string | null;
|
|
14
18
|
type: LoyaltyProgramPointHistoryTypeEnum;
|
|
15
19
|
updatedAt: any | null;
|
|
16
20
|
};
|
|
21
|
+
export type IkasLoyaltyProgramPointHistoryPaginationResponse = {
|
|
22
|
+
count: number;
|
|
23
|
+
data: IkasLoyaltyProgramPointHistory[];
|
|
24
|
+
hasNext: boolean;
|
|
25
|
+
limit: number;
|
|
26
|
+
page: number;
|
|
27
|
+
};
|