@ikas/storefront 0.0.89 → 0.0.91
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/build/__generated__/global-types.d.ts +8 -12
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +215 -0
- package/build/api/customer/index.d.ts +2 -0
- package/build/components/page-editor/model.d.ts +3 -0
- package/build/index.es.js +7203 -6975
- package/build/index.js +7144 -6917
- package/build/models/data/order/index.d.ts +18 -1
- package/build/models/data/order/line-item/index.d.ts +16 -0
- package/build/models/data/order/refund/index.d.ts +6 -0
- package/build/models/data/order/refund/refund-line-item/index.d.ts +5 -0
- package/build/models/theme/page/index.d.ts +6 -0
- package/build/utils/providers/page-data.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IkasOrderAddress } from "./address/index";
|
|
2
2
|
import { IkasOrderShippingLine } from "./shipping-line/index";
|
|
3
3
|
import { IkasOrderLineItem } from "./line-item/index";
|
|
4
|
+
import { IkasCustomerStore } from "../../../store/customer";
|
|
4
5
|
export declare class IkasOrder {
|
|
5
6
|
id: string;
|
|
6
7
|
orderNumber: string;
|
|
@@ -24,8 +25,12 @@ export declare class IkasOrder {
|
|
|
24
25
|
taxLines: IkasOrderTaxLine[] | null;
|
|
25
26
|
orderPackages: IkasOrderPackage[] | null;
|
|
26
27
|
currencyRates: IkasOrderCurrencyRate[] | null;
|
|
28
|
+
customerStore: IkasCustomerStore;
|
|
27
29
|
constructor(data: IkasOrder);
|
|
28
|
-
get
|
|
30
|
+
get refundableItems(): IkasOrderLineItem[];
|
|
31
|
+
get unfullfilledItems(): IkasOrderLineItem[];
|
|
32
|
+
get refundedItems(): IkasOrderLineItem[];
|
|
33
|
+
refund: () => Promise<boolean>;
|
|
29
34
|
}
|
|
30
35
|
export declare type IkasOrderAdjustment = {
|
|
31
36
|
amount: number;
|
|
@@ -106,4 +111,16 @@ export declare type IkasOrderCurrencyRate = {
|
|
|
106
111
|
originalRate: number;
|
|
107
112
|
rate: number;
|
|
108
113
|
};
|
|
114
|
+
export declare enum OrderLineItemStatusEnum {
|
|
115
|
+
FULFILLED = "FULFILLED",
|
|
116
|
+
UNFULFILLED = "UNFULFILLED",
|
|
117
|
+
DELIVERED = "DELIVERED",
|
|
118
|
+
CANCELLED = "CANCELLED",
|
|
119
|
+
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
120
|
+
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
121
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
122
|
+
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
123
|
+
REFUNDED = "REFUNDED",
|
|
124
|
+
REFUND_REJECTED = "REFUND_REJECTED"
|
|
125
|
+
}
|
|
109
126
|
export {};
|
|
@@ -13,8 +13,24 @@ export declare class IkasOrderLineItem {
|
|
|
13
13
|
price: number;
|
|
14
14
|
quantity: number;
|
|
15
15
|
taxValue?: number | null;
|
|
16
|
+
private _refundQuantity?;
|
|
16
17
|
variant: IkasOrderLineVariant;
|
|
18
|
+
status: OrderLineItemStatusEnum;
|
|
17
19
|
constructor(data: Partial<IkasOrderLineItem>);
|
|
18
20
|
get finalPriceWithQuantity(): number;
|
|
19
21
|
get tax(): number;
|
|
22
|
+
get refundQuantity(): number | null | undefined;
|
|
23
|
+
set refundQuantity(value: number | null | undefined);
|
|
24
|
+
}
|
|
25
|
+
export declare enum OrderLineItemStatusEnum {
|
|
26
|
+
FULFILLED = "FULFILLED",
|
|
27
|
+
UNFULFILLED = "UNFULFILLED",
|
|
28
|
+
DELIVERED = "DELIVERED",
|
|
29
|
+
CANCELLED = "CANCELLED",
|
|
30
|
+
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
31
|
+
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
32
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
33
|
+
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
34
|
+
REFUNDED = "REFUNDED",
|
|
35
|
+
REFUND_REJECTED = "REFUND_REJECTED"
|
|
20
36
|
}
|
|
@@ -7,8 +7,14 @@ export declare class IkasThemePage {
|
|
|
7
7
|
pageTitle: string | null;
|
|
8
8
|
description: string | null;
|
|
9
9
|
components: IkasThemePageComponent[];
|
|
10
|
+
specifications: IkasThemePageSpecification[] | null;
|
|
10
11
|
constructor(data: Partial<IkasThemePage>);
|
|
11
12
|
}
|
|
13
|
+
export declare class IkasThemePageSpecification {
|
|
14
|
+
id: string;
|
|
15
|
+
components: IkasThemePageComponent[];
|
|
16
|
+
constructor(data: Partial<IkasThemePageSpecification>);
|
|
17
|
+
}
|
|
12
18
|
export declare enum IkasThemePageType {
|
|
13
19
|
INDEX = "INDEX",
|
|
14
20
|
CATEGORY = "CATEGORY",
|
|
@@ -4,6 +4,7 @@ import { IkasProductListParams } from "../../models/ui/product-list/index";
|
|
|
4
4
|
import { IkasNavigationLink } from "../../models/ui/navigation-link/index";
|
|
5
5
|
import { IkasCategoryListParams } from "../../models/ui/category-list/index";
|
|
6
6
|
import { CustomDataValue } from "./prop-value/custom";
|
|
7
|
+
import { IkasThemePageSpecification } from "../../models/theme/page/index";
|
|
7
8
|
export declare class IkasPageDataProvider {
|
|
8
9
|
theme: IkasTheme;
|
|
9
10
|
pageType?: IkasThemePageType | null;
|
|
@@ -21,6 +22,8 @@ export declare class IkasPageDataProvider {
|
|
|
21
22
|
merchantSettings: string | null;
|
|
22
23
|
};
|
|
23
24
|
};
|
|
25
|
+
get specification(): IkasThemePageSpecification | undefined;
|
|
26
|
+
get pageComponents(): IkasThemePageComponent[];
|
|
24
27
|
get isStaticPage(): boolean | null | undefined;
|
|
25
28
|
getMerchantSettings(): Promise<void>;
|
|
26
29
|
getPageData(): Promise<void>;
|