@ikas/storefront 0.0.93 → 0.0.95
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 +7 -1
- package/build/analytics/analytics.d.ts +1 -0
- package/build/analytics/facebookPixel.d.ts +1 -0
- package/build/api/cart/__generated__/getCart.d.ts +4 -0
- package/build/api/cart/__generated__/saveItemToCart.d.ts +4 -0
- package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
- package/build/api/checkout/index.d.ts +1 -1
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
- package/build/api/country/index.d.ts +1 -1
- package/build/api/index.d.ts +0 -2
- package/build/components/checkout/index.d.ts +3 -0
- package/build/components/checkout/model.d.ts +4 -3
- package/build/index.es.js +474 -438
- package/build/index.js +475 -441
- package/build/models/data/cart/index.d.ts +9 -0
- package/build/models/data/product/index.d.ts +2 -0
- package/build/models/data/product-tag/index.d.ts +5 -0
- package/build/models/data/storefront/{storefront-domain → domain}/index.d.ts +1 -0
- package/build/models/data/storefront/index.d.ts +19 -6
- package/build/models/data/storefront/localization/index.d.ts +7 -0
- package/build/models/data/storefront/routing/index.d.ts +9 -0
- package/build/models/data/storefront/theme/index.d.ts +13 -0
- package/build/models/data/storefront/theme-localization/index.d.ts +11 -0
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/pages/checkout/[id].d.ts +3 -0
- package/build/storefront/index.d.ts +5 -0
- package/build/utils/settings.d.ts +80 -0
- package/package.json +1 -1
- package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +0 -13
- package/build/api/product-stock-location/index.d.ts +0 -4
- package/build/api/storefront/__generated__/getStorefront.d.ts +0 -23
- package/build/api/storefront/index.d.ts +0 -4
- package/build/api/theme/index.d.ts +0 -4
- package/build/models/data/storefront/stockfront-location/index.d.ts +0 -5
- package/build/models/data/storefront/stockfront-route/index.d.ts +0 -5
- package/build/models/data/storefront/storefront-region/index.d.ts +0 -18
|
@@ -90,6 +90,7 @@ export declare enum OrderPackageFulfillStatusEnum {
|
|
|
90
90
|
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
91
91
|
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
92
92
|
DELIVERED = "DELIVERED",
|
|
93
|
+
ERROR = "ERROR",
|
|
93
94
|
FULFILLED = "FULFILLED",
|
|
94
95
|
REFUNDED = "REFUNDED",
|
|
95
96
|
REFUND_REJECTED = "REFUND_REJECTED",
|
|
@@ -269,7 +270,6 @@ export interface CartLineVariantInput {
|
|
|
269
270
|
export interface CheckStocksLineInput {
|
|
270
271
|
productId: string;
|
|
271
272
|
quantity: number;
|
|
272
|
-
stockLocationId?: string | null;
|
|
273
273
|
variantId: string;
|
|
274
274
|
}
|
|
275
275
|
export interface CheckoutCustomerInput {
|
|
@@ -415,6 +415,11 @@ export interface SaveItemToCartInput {
|
|
|
415
415
|
cartId?: string | null;
|
|
416
416
|
customerId?: string | null;
|
|
417
417
|
item: CartLineItemInput;
|
|
418
|
+
priceListId?: string | null;
|
|
419
|
+
salesChannelId: string;
|
|
420
|
+
storefrontId: string;
|
|
421
|
+
storefrontRoutingId: string;
|
|
422
|
+
storefrontThemeId: string;
|
|
418
423
|
}
|
|
419
424
|
export interface SaveMyCustomerInput {
|
|
420
425
|
addresses?: CustomerAddressInput[] | null;
|
|
@@ -423,6 +428,7 @@ export interface SaveMyCustomerInput {
|
|
|
423
428
|
phone?: string | null;
|
|
424
429
|
}
|
|
425
430
|
export interface SearchInput {
|
|
431
|
+
brandId?: string | null;
|
|
426
432
|
categoryIdList?: string[] | null;
|
|
427
433
|
filterList?: SearchInputFilterListInput[] | null;
|
|
428
434
|
order?: SearchInputOrderByInput[] | null;
|
|
@@ -51,6 +51,10 @@ export interface getCart_getCart {
|
|
|
51
51
|
dueDate: any;
|
|
52
52
|
id: string;
|
|
53
53
|
itemCount: number;
|
|
54
|
+
salesChannelId: string;
|
|
55
|
+
storefrontId: string | null;
|
|
56
|
+
storefrontRoutingId: string | null;
|
|
57
|
+
storefrontThemeId: string | null;
|
|
54
58
|
items: getCart_getCart_items[];
|
|
55
59
|
merchantId: string;
|
|
56
60
|
status: CartStatusEnum;
|
|
@@ -54,6 +54,10 @@ export interface saveItemToCart_saveItemToCart {
|
|
|
54
54
|
merchantId: string;
|
|
55
55
|
itemCount: number;
|
|
56
56
|
totalPrice: number;
|
|
57
|
+
salesChannelId: string;
|
|
58
|
+
storefrontId: string | null;
|
|
59
|
+
storefrontRoutingId: string | null;
|
|
60
|
+
storefrontThemeId: string | null;
|
|
57
61
|
items: saveItemToCart_saveItemToCart_items[];
|
|
58
62
|
}
|
|
59
63
|
export interface saveItemToCart {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { CheckStocksLineInput } from "../../../__generated__/global-types";
|
|
2
2
|
export interface checkStocks_checkStocks_lines {
|
|
3
3
|
__typename: "CheckStocksLineResponse";
|
|
4
|
-
|
|
4
|
+
stockCount: number;
|
|
5
5
|
isAvailable: boolean;
|
|
6
|
-
stockLocationId: string | null;
|
|
7
6
|
variantId: string;
|
|
8
7
|
}
|
|
9
8
|
export interface checkStocks_checkStocks {
|
|
10
9
|
__typename: "CheckStocksResponse";
|
|
11
|
-
lines: checkStocks_checkStocks_lines[]
|
|
10
|
+
lines: checkStocks_checkStocks_lines[];
|
|
12
11
|
}
|
|
13
12
|
export interface checkStocks {
|
|
14
13
|
checkStocks: checkStocks_checkStocks;
|
|
15
14
|
}
|
|
16
15
|
export interface checkStocksVariables {
|
|
17
16
|
lines: CheckStocksLineInput[];
|
|
17
|
+
stockLocationIdList?: string[] | null;
|
|
18
18
|
}
|
|
@@ -9,7 +9,7 @@ export declare class IkasCheckoutAPI {
|
|
|
9
9
|
static createSaleTransactionWithCheckout(checkoutId: string, paymentGatewayId: string, paymentMethodDetail?: IkasPaymentMethodDetail): Promise<SaleTransactionTypes.createSaleTransactionWithCheckout_createSaleTransactionWithCheckout | undefined>;
|
|
10
10
|
static listPaymentGateway(): Promise<IkasPaymentGateway[] | undefined>;
|
|
11
11
|
static retrieveInstallmentInfo(input: IkasInstallmentInfoInput): Promise<IkasInstallmentInfo | undefined>;
|
|
12
|
-
static checkStocks(lines: CheckStocksLineInput[]): Promise<CheckStocksTypes.checkStocks_checkStocks | undefined>;
|
|
12
|
+
static checkStocks(lines: CheckStocksLineInput[], stockLocationIdList: string[]): Promise<CheckStocksTypes.checkStocks_checkStocks | undefined>;
|
|
13
13
|
}
|
|
14
14
|
declare type CheckStocksLineInput = {
|
|
15
15
|
quantity: number;
|
package/build/api/index.d.ts
CHANGED
|
@@ -13,7 +13,5 @@ export { IkasProductAttributeAPI } from "./product-attribute/index";
|
|
|
13
13
|
export { IkasFavoriteProductAPI } from "./favorite-product/index";
|
|
14
14
|
export { IkasContactFormAPI } from "./contact-form/index";
|
|
15
15
|
export { IkasStateAPI } from "./state/index";
|
|
16
|
-
export { IkasStorefrontAPI } from "./storefront/index";
|
|
17
|
-
export { IkasThemeAPI } from "./theme/index";
|
|
18
16
|
export { IkasVariantTypeAPI } from "./variant-type/index";
|
|
19
17
|
export { apollo } from "./apollo";
|
|
@@ -4,6 +4,9 @@ import { ParsedUrlQuery } from "querystring";
|
|
|
4
4
|
import { IkasCheckout } from "../../models/index";
|
|
5
5
|
declare type Props = {
|
|
6
6
|
checkout: IkasCheckout;
|
|
7
|
+
returnPolicy: string;
|
|
8
|
+
privacyPolicy: string;
|
|
9
|
+
termsOfService: string;
|
|
7
10
|
queryParams: ParsedUrlQuery;
|
|
8
11
|
};
|
|
9
12
|
export declare const IkasCheckoutPage: React.FC<Props>;
|
|
@@ -27,11 +27,13 @@ export default class CheckoutViewModel {
|
|
|
27
27
|
shippingCountryIds?: string[] | null;
|
|
28
28
|
selectedShippingAddressId?: string;
|
|
29
29
|
selectedBillingAddressId?: string;
|
|
30
|
+
returnPolicy: string;
|
|
31
|
+
privacyPolicy: string;
|
|
32
|
+
termsOfService: string;
|
|
30
33
|
error?: CheckoutError | null;
|
|
31
|
-
constructor(checkout: IkasCheckout, queryParams: ParsedUrlQuery, router: NextRouter);
|
|
34
|
+
constructor(checkout: IkasCheckout, queryParams: ParsedUrlQuery, router: NextRouter, returnPolicy: string, privacyPolicy: string, termsOfService: string);
|
|
32
35
|
init: (queryParams: ParsedUrlQuery) => Promise<void>;
|
|
33
36
|
get cart(): import("../../models/data/cart/index").IkasCart | null | undefined;
|
|
34
|
-
get storefrontRegion(): import("../../models/data/storefront/storefront-region/index").IkasStorefrontRegion | undefined;
|
|
35
37
|
get selectedPaymentGatewayIndex(): number;
|
|
36
38
|
get selectedInstallmentIndex(): number;
|
|
37
39
|
get checkoutUrl(): string;
|
|
@@ -51,7 +53,6 @@ export default class CheckoutViewModel {
|
|
|
51
53
|
initialStockCheck: () => Promise<void>;
|
|
52
54
|
listPaymentGateways: () => Promise<void>;
|
|
53
55
|
retrieveInstallmentInfo: (input: IkasInstallmentInfoInput) => Promise<void>;
|
|
54
|
-
getStorefront: () => Promise<void>;
|
|
55
56
|
createCustomer: () => void;
|
|
56
57
|
createShippingAddress: () => void;
|
|
57
58
|
createBillingAddress: () => void;
|