@ikas/storefront 0.0.100 → 0.0.101
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 +1 -7
- package/build/api/cart/__generated__/getCart.d.ts +0 -4
- package/build/api/cart/__generated__/saveItemToCart.d.ts +0 -4
- 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 +0 -3
- package/build/api/country/index.d.ts +1 -1
- package/build/api/index.d.ts +2 -0
- package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
- package/build/api/product-stock-location/index.d.ts +4 -0
- package/build/api/storefront/__generated__/getStorefront.d.ts +23 -0
- package/build/api/storefront/index.d.ts +4 -0
- package/build/api/theme/index.d.ts +4 -0
- package/build/components/checkout/index.d.ts +0 -3
- package/build/components/checkout/model.d.ts +3 -4
- package/build/index.es.js +409 -469
- package/build/index.js +412 -471
- package/build/models/data/cart/index.d.ts +0 -9
- package/build/models/data/storefront/index.d.ts +6 -19
- package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
- package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
- package/build/models/data/storefront/{domain → storefront-domain}/index.d.ts +0 -1
- package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/pages/checkout/[id].d.ts +0 -3
- package/build/storefront/index.d.ts +0 -6
- package/package.json +1 -1
- package/build/models/data/sales-channel/index.d.ts +0 -12
- package/build/models/data/storefront/localization/index.d.ts +0 -7
- package/build/models/data/storefront/routing/index.d.ts +0 -9
- package/build/models/data/storefront/theme/index.d.ts +0 -13
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -12
- package/build/utils/settings.d.ts +0 -84
|
@@ -90,7 +90,6 @@ export declare enum OrderPackageFulfillStatusEnum {
|
|
|
90
90
|
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
91
91
|
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
92
92
|
DELIVERED = "DELIVERED",
|
|
93
|
-
ERROR = "ERROR",
|
|
94
93
|
FULFILLED = "FULFILLED",
|
|
95
94
|
REFUNDED = "REFUNDED",
|
|
96
95
|
REFUND_REJECTED = "REFUND_REJECTED",
|
|
@@ -270,6 +269,7 @@ export interface CartLineVariantInput {
|
|
|
270
269
|
export interface CheckStocksLineInput {
|
|
271
270
|
productId: string;
|
|
272
271
|
quantity: number;
|
|
272
|
+
stockLocationId?: string | null;
|
|
273
273
|
variantId: string;
|
|
274
274
|
}
|
|
275
275
|
export interface CheckoutCustomerInput {
|
|
@@ -415,11 +415,6 @@ 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;
|
|
423
418
|
}
|
|
424
419
|
export interface SaveMyCustomerInput {
|
|
425
420
|
addresses?: CustomerAddressInput[] | null;
|
|
@@ -428,7 +423,6 @@ export interface SaveMyCustomerInput {
|
|
|
428
423
|
phone?: string | null;
|
|
429
424
|
}
|
|
430
425
|
export interface SearchInput {
|
|
431
|
-
brandId?: string | null;
|
|
432
426
|
categoryIdList?: string[] | null;
|
|
433
427
|
filterList?: SearchInputFilterListInput[] | null;
|
|
434
428
|
order?: SearchInputOrderByInput[] | null;
|
|
@@ -51,10 +51,6 @@ 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;
|
|
58
54
|
items: getCart_getCart_items[];
|
|
59
55
|
merchantId: string;
|
|
60
56
|
status: CartStatusEnum;
|
|
@@ -54,10 +54,6 @@ 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;
|
|
61
57
|
items: saveItemToCart_saveItemToCart_items[];
|
|
62
58
|
}
|
|
63
59
|
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
|
+
availableQuantity: number;
|
|
5
5
|
isAvailable: boolean;
|
|
6
|
+
stockLocationId: string | null;
|
|
6
7
|
variantId: string;
|
|
7
8
|
}
|
|
8
9
|
export interface checkStocks_checkStocks {
|
|
9
10
|
__typename: "CheckStocksResponse";
|
|
10
|
-
lines: checkStocks_checkStocks_lines[];
|
|
11
|
+
lines: checkStocks_checkStocks_lines[] | null;
|
|
11
12
|
}
|
|
12
13
|
export interface checkStocks {
|
|
13
14
|
checkStocks: checkStocks_checkStocks;
|
|
14
15
|
}
|
|
15
16
|
export interface checkStocksVariables {
|
|
16
17
|
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[]
|
|
12
|
+
static checkStocks(lines: CheckStocksLineInput[]): Promise<CheckStocksTypes.checkStocks_checkStocks | undefined>;
|
|
13
13
|
}
|
|
14
14
|
declare type CheckStocksLineInput = {
|
|
15
15
|
quantity: number;
|
package/build/api/index.d.ts
CHANGED
|
@@ -13,5 +13,7 @@ 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";
|
|
16
18
|
export { IkasVariantTypeAPI } from "./variant-type/index";
|
|
17
19
|
export { apollo } from "./apollo";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface listProductStockLocation_listProductStockLocation {
|
|
2
|
+
__typename: "ProductStockLocation";
|
|
3
|
+
variantId: string;
|
|
4
|
+
stockLocationId: string;
|
|
5
|
+
stockCount: number;
|
|
6
|
+
}
|
|
7
|
+
export interface listProductStockLocation {
|
|
8
|
+
listProductStockLocation: listProductStockLocation_listProductStockLocation[];
|
|
9
|
+
}
|
|
10
|
+
export interface listProductStockLocationVariables {
|
|
11
|
+
stockLocationIdList: string[];
|
|
12
|
+
variantIdList: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as ListProductStockLocationTypes from "./__generated__/listProductStockLocation";
|
|
2
|
+
export declare class IkasProductStockLocationAPI {
|
|
3
|
+
static listProductStockLocation(stockLocationIdList: string[], variantIdList: string[]): Promise<ListProductStockLocationTypes.listProductStockLocation_listProductStockLocation[] | undefined>;
|
|
4
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface getStorefront_getStorefront_regions {
|
|
2
|
+
__typename: "StorefrontRegion";
|
|
3
|
+
id: string;
|
|
4
|
+
locale: string;
|
|
5
|
+
privacyPolicy: string | null;
|
|
6
|
+
returnPolicy: string | null;
|
|
7
|
+
termsOfService: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface getStorefront_getStorefront {
|
|
10
|
+
__typename: "Storefront";
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
themeId: string;
|
|
14
|
+
themeVersionId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
regions: getStorefront_getStorefront_regions[];
|
|
17
|
+
}
|
|
18
|
+
export interface getStorefront {
|
|
19
|
+
getStorefront: getStorefront_getStorefront;
|
|
20
|
+
}
|
|
21
|
+
export interface getStorefrontVariables {
|
|
22
|
+
storefrontId: string;
|
|
23
|
+
}
|
|
@@ -4,9 +4,6 @@ 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;
|
|
10
7
|
queryParams: ParsedUrlQuery;
|
|
11
8
|
};
|
|
12
9
|
export declare const IkasCheckoutPage: React.FC<Props>;
|
|
@@ -27,13 +27,11 @@ 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;
|
|
33
30
|
error?: CheckoutError | null;
|
|
34
|
-
constructor(checkout: IkasCheckout, queryParams: ParsedUrlQuery, router: NextRouter
|
|
31
|
+
constructor(checkout: IkasCheckout, queryParams: ParsedUrlQuery, router: NextRouter);
|
|
35
32
|
init: (queryParams: ParsedUrlQuery) => Promise<void>;
|
|
36
33
|
get cart(): import("../../models/data/cart/index").IkasCart | null | undefined;
|
|
34
|
+
get storefrontRegion(): import("../../models/data/storefront/storefront-region/index").IkasStorefrontRegion | undefined;
|
|
37
35
|
get selectedPaymentGatewayIndex(): number;
|
|
38
36
|
get selectedInstallmentIndex(): number;
|
|
39
37
|
get checkoutUrl(): string;
|
|
@@ -53,6 +51,7 @@ export default class CheckoutViewModel {
|
|
|
53
51
|
initialStockCheck: () => Promise<void>;
|
|
54
52
|
listPaymentGateways: () => Promise<void>;
|
|
55
53
|
retrieveInstallmentInfo: (input: IkasInstallmentInfoInput) => Promise<void>;
|
|
54
|
+
getStorefront: () => Promise<void>;
|
|
56
55
|
createCustomer: () => void;
|
|
57
56
|
createShippingAddress: () => void;
|
|
58
57
|
createBillingAddress: () => void;
|