@ikas/storefront 0.0.16-0.alpha-1 → 0.0.16
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 -214
- package/build/api/brand/__generated__/listProductBrand.d.ts +2 -3
- package/build/api/brand/index.d.ts +0 -1
- package/build/api/cart/__generated__/getCart.d.ts +3 -7
- package/build/api/cart/__generated__/saveItemToCart.d.ts +3 -6
- package/build/api/category/__generated__/listCategory.d.ts +2 -4
- package/build/api/category/index.d.ts +0 -3
- package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
- package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +1 -1
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -5
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +2 -14
- package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
- package/build/api/checkout/index.d.ts +3 -11
- package/build/api/city/__generated__/listCity.d.ts +1 -1
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -3
- package/build/api/country/__generated__/listCountry.d.ts +1 -8
- package/build/api/country/index.d.ts +2 -3
- package/build/api/customer/__generated__/customerLogin.d.ts +3 -5
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +4 -3
- package/build/api/customer/__generated__/getMyCustomer.d.ts +2 -3
- package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
- package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +2 -3
- package/build/api/customer/index.d.ts +0 -15
- package/build/api/district/__generated__/listDistrict.d.ts +1 -1
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +1 -2
- package/build/api/html-meta-data/index.d.ts +1 -1
- package/build/api/index.d.ts +3 -4
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
- package/build/api/product/__generated__/listProduct.d.ts +90 -0
- package/build/api/product/index.d.ts +15 -0
- package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
- 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/state/__generated__/listState.d.ts +1 -1
- package/build/api/stock-location/__generated__/listStockLocation.d.ts +1 -1
- package/build/api/storefront/__generated__/getStorefront.d.ts +12 -41
- package/build/api/storefront/index.d.ts +1 -1
- package/build/api/theme/index.d.ts +4 -0
- package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
- package/build/components/checkout/components/address-form/index.d.ts +0 -3
- package/build/components/checkout/components/address-form/model.d.ts +0 -11
- package/build/components/checkout/components/button/index.d.ts +1 -4
- package/build/components/checkout/components/checkbox/index.d.ts +1 -2
- package/build/components/checkout/components/error-container/payment-error/index.d.ts +0 -2
- package/build/components/checkout/components/form-item/model.d.ts +2 -11
- package/build/components/checkout/index.d.ts +0 -5
- package/build/components/checkout/model.d.ts +5 -18
- package/build/components/gtm/functions.d.ts +164 -0
- package/build/components/gtm/index.d.ts +7 -0
- package/build/components/hoc/ThemeComponent.d.ts +2 -2
- package/build/components/index.d.ts +2 -1
- package/build/components/page/head.d.ts +0 -5
- package/build/components/page/index.d.ts +1 -6
- package/build/components/page-editor/model.d.ts +2 -6
- package/build/index.d.ts +0 -1
- package/build/index.es.js +10449 -18854
- package/build/index.js +10441 -18882
- package/build/models/data/brand/index.d.ts +1 -1
- package/build/models/data/cart/index.d.ts +0 -9
- package/build/models/data/category/index.d.ts +1 -22
- package/build/models/data/checkout/index.d.ts +0 -5
- package/build/models/data/country/index.d.ts +0 -2
- package/build/models/data/customer/index.d.ts +0 -7
- package/build/models/data/image/index.d.ts +0 -1
- package/build/models/data/index.d.ts +1 -5
- package/build/models/data/order/address/index.d.ts +0 -6
- package/build/models/data/order/index.d.ts +1 -19
- package/build/models/data/order/line-item/index.d.ts +0 -18
- package/build/models/data/payment-gateway/index.d.ts +2 -26
- package/build/models/data/product/attribute-value/index.d.ts +1 -15
- package/build/models/data/product/index.d.ts +1 -2
- package/build/models/data/product/variant/index.d.ts +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -2
- package/build/models/data/product-attribute/index.d.ts +2 -5
- package/build/models/data/storefront/index.d.ts +6 -17
- 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/data/variant-type/variant-value/index.d.ts +1 -1
- package/build/models/theme/component/prop/index.d.ts +1 -17
- package/build/models/theme/index.d.ts +0 -4
- package/build/models/theme/page/component/prop-value/product-list.d.ts +0 -2
- package/build/models/theme/page/index.d.ts +1 -14
- package/build/models/theme/theme.d.ts +0 -4
- package/build/models/ui/brand-list/index.d.ts +0 -3
- package/build/models/ui/category-list/index.d.ts +0 -3
- package/build/models/ui/index.d.ts +2 -12
- package/build/models/ui/product-detail/index.d.ts +3 -14
- package/build/models/ui/product-list/filter.d.ts +18 -0
- package/build/models/ui/product-list/index.d.ts +14 -62
- package/build/pages/{pages/[slug].d.ts → [slug]/[secondSlug].d.ts} +0 -2
- package/build/pages/[slug]/index.d.ts +3 -9
- package/build/pages/account/addresses.d.ts +0 -2
- package/build/pages/account/forgot-password.d.ts +0 -3
- package/build/pages/account/index.d.ts +0 -2
- package/build/pages/account/login.d.ts +0 -3
- package/build/pages/account/orders/[id].d.ts +0 -2
- package/build/pages/account/orders/index.d.ts +0 -2
- package/build/pages/account/recover-password.d.ts +0 -3
- package/build/pages/account/register.d.ts +0 -3
- package/build/pages/checkout/[id].d.ts +0 -5
- package/build/pages/home.d.ts +0 -3
- package/build/pages/index.d.ts +2 -8
- package/build/store/base.d.ts +0 -17
- package/build/store/customer.d.ts +1 -31
- package/build/storefront/index.d.ts +3 -29
- package/build/utils/helper.d.ts +0 -1
- package/build/utils/index.d.ts +0 -1
- package/build/utils/providers/page-data.d.ts +5 -60
- package/build/utils/providers/prop-value/boolean.d.ts +1 -1
- package/build/utils/providers/prop-value/category.d.ts +2 -2
- package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
- package/build/utils/providers/prop-value/product-list.d.ts +3 -1
- package/package.json +3 -3
- package/build/analytics/analytics.d.ts +0 -22
- package/build/analytics/facebookPixel.d.ts +0 -15
- package/build/analytics/googleTagManager.d.ts +0 -201
- package/build/analytics/head/index.d.ts +0 -7
- package/build/analytics/index.d.ts +0 -2
- package/build/api/blog/__generated__/getBlog.d.ts +0 -83
- package/build/api/blog/__generated__/listBlog.d.ts +0 -86
- package/build/api/blog/__generated__/listBlogCategory.d.ts +0 -38
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +0 -29
- package/build/api/blog/index.d.ts +0 -32
- package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -23
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +0 -26
- package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -9
- package/build/api/contact-form/index.d.ts +0 -10
- package/build/api/country/__generated__/getMyCountry.d.ts +0 -3
- package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +0 -11
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +0 -215
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
- package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
- package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +0 -6
- package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +0 -12
- package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +0 -7
- package/build/api/favorite-product/index.d.ts +0 -6
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -50
- package/build/api/product-search/__generated__/searchProducts.d.ts +0 -26
- package/build/api/product-search/index.d.ts +0 -20
- package/build/components/checkout/components/cart-summary/cross.d.ts +0 -6
- package/build/components/checkout/components/cart-summary/tag.d.ts +0 -6
- package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +0 -6
- package/build/components/image/index.d.ts +0 -35
- package/build/models/data/blog/index.d.ts +0 -67
- package/build/models/data/checkout-settings/index.d.ts +0 -18
- package/build/models/data/contact-form/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.d.ts +0 -6
- package/build/models/data/order/refund/index.d.ts +0 -6
- package/build/models/data/order/refund/refund-line-item/index.d.ts +0 -5
- package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +0 -5
- package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +0 -6
- package/build/models/data/product-filter/index.d.ts +0 -102
- package/build/models/data/product-tag/index.d.ts +0 -5
- package/build/models/data/sales-channel/index.d.ts +0 -18
- package/build/models/data/simple-product/index.d.ts +0 -135
- 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/models/theme/custom-data/index.d.ts +0 -24
- package/build/models/theme/page/component/prop-value/attribute-list.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/attribute.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/blog-list.d.ts +0 -9
- package/build/models/theme/page/component/prop-value/blog.d.ts +0 -5
- package/build/models/theme/settings/index.d.ts +0 -7
- package/build/models/theme/settings/prop/color/index.d.ts +0 -7
- package/build/models/theme/settings/prop/favicon/index.d.ts +0 -4
- package/build/models/ui/blog-list/index.d.ts +0 -56
- package/build/models/ui/component-renderer/index.d.ts +0 -7
- package/build/models/ui/validator/form/account-info.d.ts +0 -40
- package/build/models/ui/validator/form/address.d.ts +0 -75
- package/build/models/ui/validator/form/contact-form.d.ts +0 -45
- package/build/models/ui/validator/form/forgot-password.d.ts +0 -29
- package/build/models/ui/validator/form/login.d.ts +0 -35
- package/build/models/ui/validator/form/recover-password.d.ts +0 -36
- package/build/models/ui/validator/form/register.d.ts +0 -45
- package/build/models/ui/validator/index.d.ts +0 -27
- package/build/models/ui/validator/rules/index.d.ts +0 -87
- package/build/pages/404.d.ts +0 -13
- package/build/pages/account/favorite-products.d.ts +0 -12
- package/build/pages/blog/[slug].d.ts +0 -18
- package/build/pages/blog/index.d.ts +0 -13
- package/build/pages/cart.d.ts +0 -12
- package/build/pages/search.d.ts +0 -13
- package/build/utils/providers/placeholders.d.ts +0 -5
- package/build/utils/providers/prop-value/attribute-list.d.ts +0 -9
- package/build/utils/providers/prop-value/attribute.d.ts +0 -9
- package/build/utils/providers/prop-value/blog-list.d.ts +0 -9
- package/build/utils/providers/prop-value/blog.d.ts +0 -8
- package/build/utils/providers/prop-value/color.d.ts +0 -6
- package/build/utils/providers/prop-value/custom.d.ts +0 -40
- package/build/utils/providers/prop-value/rich-text.d.ts +0 -6
- package/build/utils/settings.d.ts +0 -168
|
@@ -10,10 +10,6 @@ export declare class IkasCart {
|
|
|
10
10
|
items: IkasOrderLineItem[];
|
|
11
11
|
merchantId: string;
|
|
12
12
|
totalPrice: number;
|
|
13
|
-
salesChannelId: string;
|
|
14
|
-
storefrontId: string | null;
|
|
15
|
-
storefrontRoutingId: string | null;
|
|
16
|
-
storefrontThemeId: string | null;
|
|
17
13
|
constructor(data: Partial<IkasCart>);
|
|
18
14
|
get totalTax(): number;
|
|
19
15
|
}
|
|
@@ -30,10 +26,5 @@ export declare type IkasSaveItemToCartInput = {
|
|
|
30
26
|
cartId: string | null;
|
|
31
27
|
customerId: string | null;
|
|
32
28
|
item: IkasCartLineItemInput;
|
|
33
|
-
priceListId: string | null;
|
|
34
|
-
salesChannelId: string;
|
|
35
|
-
storefrontId: string;
|
|
36
|
-
storefrontRoutingId: string;
|
|
37
|
-
storefrontThemeId: string;
|
|
38
29
|
};
|
|
39
30
|
export {};
|
|
@@ -6,27 +6,6 @@ export declare class IkasCategory {
|
|
|
6
6
|
parentId: string | null;
|
|
7
7
|
metaData?: IkasHTMLMetaData | null;
|
|
8
8
|
image?: IkasImage | null;
|
|
9
|
-
|
|
10
|
-
constructor(data?: Partial<IkasCategory>);
|
|
9
|
+
constructor(data: Partial<IkasCategory>);
|
|
11
10
|
get href(): string;
|
|
12
11
|
}
|
|
13
|
-
export declare class IkasCategoryPath {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
slug?: string | null;
|
|
17
|
-
constructor(data: Partial<IkasCategoryPath>);
|
|
18
|
-
get href(): string;
|
|
19
|
-
}
|
|
20
|
-
export declare class IkasFilterCategory {
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
slug?: string | null;
|
|
24
|
-
resultCount?: number | null;
|
|
25
|
-
private _isSelected;
|
|
26
|
-
constructor(data: Partial<IkasFilterCategory>);
|
|
27
|
-
get isSelected(): boolean;
|
|
28
|
-
get href(): string;
|
|
29
|
-
toJSON(): this & {
|
|
30
|
-
isSelected: boolean;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
@@ -2,7 +2,6 @@ import { IkasOrderAddress } from "../order/address/index";
|
|
|
2
2
|
import { IkasOrderShippingLine } from "../order/shipping-line/index";
|
|
3
3
|
import { IkasCart } from "../cart/index";
|
|
4
4
|
import { IkasOrderAdjustment } from "../order/index";
|
|
5
|
-
import { IkasPaymentGateway } from "../payment-gateway/index";
|
|
6
5
|
export declare class IkasCheckout {
|
|
7
6
|
id?: string | null;
|
|
8
7
|
createdAt?: string | null;
|
|
@@ -26,16 +25,12 @@ export declare class IkasCheckout {
|
|
|
26
25
|
recoveryStatus?: IkasCheckoutRecoveryStatus | null;
|
|
27
26
|
totalFinalPrice?: number | null;
|
|
28
27
|
adjustments?: IkasOrderAdjustment[] | null;
|
|
29
|
-
note: string | null;
|
|
30
|
-
appliedCouponCode?: string | null;
|
|
31
|
-
selectedPaymentGateway?: IkasPaymentGateway | null;
|
|
32
28
|
constructor(data?: Partial<IkasCheckout>);
|
|
33
29
|
get shippingTotal(): number;
|
|
34
30
|
get hasCustomer(): boolean;
|
|
35
31
|
get hasValidCustomer(): boolean;
|
|
36
32
|
get customerText(): string;
|
|
37
33
|
get dateStr(): string;
|
|
38
|
-
get $totalFinalPrice(): number;
|
|
39
34
|
}
|
|
40
35
|
export declare type IkasCheckoutCustomer = {
|
|
41
36
|
id?: string;
|
|
@@ -9,9 +9,7 @@ export declare class IkasCustomer {
|
|
|
9
9
|
isPhoneVerified: boolean;
|
|
10
10
|
accountStatus: IkasCustomerAccountStatus;
|
|
11
11
|
addresses: IkasCustomerAddress[];
|
|
12
|
-
subscriptionStatus: IkasCustomerEmailSubscriptionStatus | null;
|
|
13
12
|
constructor(data: Partial<IkasCustomer>);
|
|
14
|
-
get isSubscribed(): boolean;
|
|
15
13
|
}
|
|
16
14
|
export declare enum IkasCustomerAccountStatus {
|
|
17
15
|
ACTIVE_ACCOUNT = "ACTIVE_ACCOUNT",
|
|
@@ -19,8 +17,3 @@ export declare enum IkasCustomerAccountStatus {
|
|
|
19
17
|
DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
|
|
20
18
|
INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT"
|
|
21
19
|
}
|
|
22
|
-
export declare enum IkasCustomerEmailSubscriptionStatus {
|
|
23
|
-
NOT_SUBSCRIBED = "NOT_SUBSCRIBED",
|
|
24
|
-
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
25
|
-
SUBSCRIBED = "SUBSCRIBED"
|
|
26
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./blog/index";
|
|
2
1
|
export { IkasBrand } from "./brand/index";
|
|
3
2
|
export { IkasCategory } from "./category/index";
|
|
4
3
|
export * from "./checkout/index";
|
|
@@ -19,10 +18,7 @@ export { IkasProductVariantType } from "./product/variant-type/index";
|
|
|
19
18
|
export { IkasProductVariant } from "./product/variant/index";
|
|
20
19
|
export { IkasProductPrice } from "./product/variant/price/index";
|
|
21
20
|
export { IkasProductAttribute } from "./product-attribute/index";
|
|
22
|
-
export { IkasProductAttributeValue
|
|
23
|
-
export * from "./product-filter/index";
|
|
24
|
-
export { IkasFavoriteProduct } from "./favorite-product/index";
|
|
25
|
-
export { IkasContactForm } from "./contact-form/index";
|
|
21
|
+
export { IkasProductAttributeValue } from "./product/attribute-value/index";
|
|
26
22
|
export type { IkasState } from "./state/index";
|
|
27
23
|
export * from "./variant-type/index";
|
|
28
24
|
export { IkasVariantValue } from "./variant-type/variant-value/index";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IkasCheckoutSettings } from "../../checkout-settings/index";
|
|
2
1
|
export declare class IkasOrderAddress {
|
|
3
2
|
addressLine1?: string | null;
|
|
4
3
|
addressLine2?: string | null;
|
|
@@ -15,13 +14,10 @@ export declare class IkasOrderAddress {
|
|
|
15
14
|
identityNumber?: string | null;
|
|
16
15
|
taxNumber?: string | null;
|
|
17
16
|
taxOffice?: string | null;
|
|
18
|
-
checkoutSettings?: IkasCheckoutSettings;
|
|
19
|
-
isDistrictRequired?: boolean;
|
|
20
17
|
constructor(data?: Partial<IkasOrderAddress>);
|
|
21
18
|
get addressText(): string;
|
|
22
19
|
get validationResult(): IkasAddressValidationResult;
|
|
23
20
|
get isValid(): boolean;
|
|
24
|
-
toJSON(): this;
|
|
25
21
|
}
|
|
26
22
|
declare type IkasOrderAddressLocation = {
|
|
27
23
|
id?: string;
|
|
@@ -40,8 +36,6 @@ export declare type IkasAddressValidationResult = {
|
|
|
40
36
|
country: boolean;
|
|
41
37
|
state: boolean;
|
|
42
38
|
city: boolean;
|
|
43
|
-
district: boolean;
|
|
44
39
|
phone: boolean;
|
|
45
|
-
identityNumber: boolean;
|
|
46
40
|
};
|
|
47
41
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
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";
|
|
5
4
|
export declare class IkasOrder {
|
|
6
5
|
id: string;
|
|
7
6
|
orderNumber: string;
|
|
@@ -25,12 +24,8 @@ export declare class IkasOrder {
|
|
|
25
24
|
taxLines: IkasOrderTaxLine[] | null;
|
|
26
25
|
orderPackages: IkasOrderPackage[] | null;
|
|
27
26
|
currencyRates: IkasOrderCurrencyRate[] | null;
|
|
28
|
-
customerStore: IkasCustomerStore;
|
|
29
27
|
constructor(data: IkasOrder);
|
|
30
|
-
get
|
|
31
|
-
get unfullfilledItems(): IkasOrderLineItem[];
|
|
32
|
-
get refundedItems(): IkasOrderLineItem[];
|
|
33
|
-
refund: () => Promise<boolean>;
|
|
28
|
+
get unfullfilledOrderLineItems(): IkasOrderLineItem[];
|
|
34
29
|
}
|
|
35
30
|
export declare type IkasOrderAdjustment = {
|
|
36
31
|
amount: number;
|
|
@@ -38,7 +33,6 @@ export declare type IkasOrderAdjustment = {
|
|
|
38
33
|
name: string;
|
|
39
34
|
order: number;
|
|
40
35
|
type: IkasAdjustmentEnum;
|
|
41
|
-
couponId: string | null;
|
|
42
36
|
};
|
|
43
37
|
export declare type IkasOrderCustomer = {
|
|
44
38
|
id: string;
|
|
@@ -112,16 +106,4 @@ export declare type IkasOrderCurrencyRate = {
|
|
|
112
106
|
originalRate: number;
|
|
113
107
|
rate: number;
|
|
114
108
|
};
|
|
115
|
-
export declare enum OrderLineItemStatusEnum {
|
|
116
|
-
FULFILLED = "FULFILLED",
|
|
117
|
-
UNFULFILLED = "UNFULFILLED",
|
|
118
|
-
DELIVERED = "DELIVERED",
|
|
119
|
-
CANCELLED = "CANCELLED",
|
|
120
|
-
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
121
|
-
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
122
|
-
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
123
|
-
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
124
|
-
REFUNDED = "REFUNDED",
|
|
125
|
-
REFUND_REJECTED = "REFUND_REJECTED"
|
|
126
|
-
}
|
|
127
109
|
export {};
|
|
@@ -13,25 +13,7 @@ export declare class IkasOrderLineItem {
|
|
|
13
13
|
price: number;
|
|
14
14
|
quantity: number;
|
|
15
15
|
taxValue?: number | null;
|
|
16
|
-
private _refundQuantity?;
|
|
17
16
|
variant: IkasOrderLineVariant;
|
|
18
|
-
status: OrderLineItemStatusEnum;
|
|
19
17
|
constructor(data: Partial<IkasOrderLineItem>);
|
|
20
|
-
get priceWithQuantity(): number;
|
|
21
|
-
get finalPriceWithQuantity(): number;
|
|
22
18
|
get tax(): number;
|
|
23
|
-
get refundQuantity(): number | null | undefined;
|
|
24
|
-
set refundQuantity(value: number | null | undefined);
|
|
25
|
-
}
|
|
26
|
-
export declare enum OrderLineItemStatusEnum {
|
|
27
|
-
FULFILLED = "FULFILLED",
|
|
28
|
-
UNFULFILLED = "UNFULFILLED",
|
|
29
|
-
DELIVERED = "DELIVERED",
|
|
30
|
-
CANCELLED = "CANCELLED",
|
|
31
|
-
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
32
|
-
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
33
|
-
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
34
|
-
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
35
|
-
REFUNDED = "REFUNDED",
|
|
36
|
-
REFUND_REJECTED = "REFUND_REJECTED"
|
|
37
19
|
}
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class IkasPaymentGateway {
|
|
1
|
+
export declare type IkasPaymentGateway = {
|
|
3
2
|
paymentMethods: IkasPaymentMethod[];
|
|
4
3
|
paymentMethodType: IkasPaymentMethodType;
|
|
5
4
|
id: string | null;
|
|
6
5
|
name: string;
|
|
7
6
|
testMode: boolean | null;
|
|
8
|
-
|
|
9
|
-
additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;
|
|
10
|
-
constructor(data: Partial<IkasPaymentGateway>);
|
|
11
|
-
getCalculatedAdditionalPrices(totalFinalPrice: number, shippingLines: IkasOrderShippingLine[] | null): {
|
|
12
|
-
name: string;
|
|
13
|
-
amount: number;
|
|
14
|
-
type: IkasPaymentMethodAdditionalPriceType;
|
|
15
|
-
}[] | undefined;
|
|
16
|
-
}
|
|
7
|
+
};
|
|
17
8
|
export declare type IkasPaymentMethod = {
|
|
18
9
|
name: string;
|
|
19
10
|
logoUrl: string | null;
|
|
20
11
|
};
|
|
21
|
-
export declare class IkasPaymentGatewayAdditionalPrice {
|
|
22
|
-
amount: number;
|
|
23
|
-
amountType: IkasPaymentGatewayAdditionalPriceAmountType;
|
|
24
|
-
name: string;
|
|
25
|
-
type: IkasPaymentMethodAdditionalPriceType;
|
|
26
|
-
constructor(data: Partial<IkasPaymentGatewayAdditionalPrice>);
|
|
27
|
-
}
|
|
28
12
|
export declare enum IkasPaymentMethodType {
|
|
29
13
|
BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
|
|
30
14
|
CASH = "CASH",
|
|
@@ -34,11 +18,3 @@ export declare enum IkasPaymentMethodType {
|
|
|
34
18
|
MONEY_ORDER = "MONEY_ORDER",
|
|
35
19
|
OTHER = "OTHER"
|
|
36
20
|
}
|
|
37
|
-
export declare enum IkasPaymentMethodAdditionalPriceType {
|
|
38
|
-
DECREMENT = "DECREMENT",
|
|
39
|
-
INCREMENT = "INCREMENT"
|
|
40
|
-
}
|
|
41
|
-
export declare enum IkasPaymentGatewayAdditionalPriceAmountType {
|
|
42
|
-
AMOUNT = "AMOUNT",
|
|
43
|
-
RATIO = "RATIO"
|
|
44
|
-
}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import { IkasProductAttribute } from "../../product-attribute/index";
|
|
2
|
-
import IkasProductAttributeOption from "../../product-attribute/product-attribute-option/index";
|
|
3
1
|
export declare class IkasProductAttributeValue {
|
|
4
|
-
value:
|
|
2
|
+
value: string | null;
|
|
5
3
|
productAttributeId: string | null;
|
|
6
4
|
productAttributeOptionId: string | null;
|
|
7
|
-
productAttribute?: IkasProductAttribute | null;
|
|
8
|
-
productAttributeOption?: IkasProductAttributeOption | null;
|
|
9
5
|
constructor(data: Partial<IkasProductAttributeValue>);
|
|
10
|
-
get tableValue(): IkasAttributeTableCellValue[] | undefined;
|
|
11
6
|
}
|
|
12
|
-
export declare type IkasAttributeTableCellValue = {
|
|
13
|
-
colId: string;
|
|
14
|
-
rowId: string;
|
|
15
|
-
value: string | null;
|
|
16
|
-
};
|
|
17
|
-
export declare type IkasProductAttributeMap = {
|
|
18
|
-
attribute: IkasProductAttribute;
|
|
19
|
-
values: IkasProductAttributeValue[];
|
|
20
|
-
};
|
|
@@ -4,17 +4,16 @@ import { IkasProductAttributeValue } from "./attribute-value/index";
|
|
|
4
4
|
import { IkasProductVariantType } from "./variant-type/index";
|
|
5
5
|
import { IkasBrand } from "../brand/index";
|
|
6
6
|
import { IkasHTMLMetaData } from "../html-meta-data/index";
|
|
7
|
-
import { IkasProductTag } from "../product-tag/index";
|
|
8
7
|
export declare class IkasProduct {
|
|
9
8
|
id: string;
|
|
10
9
|
name: string;
|
|
11
10
|
type: IkasProductType;
|
|
12
11
|
description: string;
|
|
13
12
|
shortDescription: string;
|
|
13
|
+
taxValue: number | null;
|
|
14
14
|
metaData?: IkasHTMLMetaData;
|
|
15
15
|
brand: IkasBrand | null;
|
|
16
16
|
categories: IkasCategory[];
|
|
17
|
-
tags: IkasProductTag[] | null;
|
|
18
17
|
variants: IkasProductVariant[];
|
|
19
18
|
attributes: IkasProductAttributeValue[];
|
|
20
19
|
variantTypes: IkasProductVariantType[];
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import IkasProductAttributeOption from "./product-attribute-option/index";
|
|
2
|
-
import { IkasProductAttributeTableTemplate } from "./product-attribute-table-template/index";
|
|
3
2
|
export declare class IkasProductAttribute {
|
|
4
3
|
id: string;
|
|
5
4
|
name: string;
|
|
6
5
|
type: IkasProductAttributeType;
|
|
7
|
-
options
|
|
8
|
-
tableTemplate?: IkasProductAttributeTableTemplate | null;
|
|
6
|
+
options: IkasProductAttributeOption[] | null;
|
|
9
7
|
constructor(data: Partial<IkasProductAttribute>);
|
|
10
8
|
}
|
|
11
9
|
export declare enum IkasProductAttributeType {
|
|
@@ -15,6 +13,5 @@ export declare enum IkasProductAttributeType {
|
|
|
15
13
|
BOOLEAN = "BOOLEAN",
|
|
16
14
|
NUMERIC = "NUMERIC",
|
|
17
15
|
DATETIME = "DATETIME",
|
|
18
|
-
HTML = "HTML"
|
|
19
|
-
TABLE = "TABLE"
|
|
16
|
+
HTML = "HTML"
|
|
20
17
|
}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IkasStorefrontRouting } from "./routing/index";
|
|
4
|
-
import { IkasStorefrontTheme } from "./theme/index";
|
|
5
|
-
export declare enum StorefrontStatus {
|
|
6
|
-
WAITING = "WAITING",
|
|
7
|
-
READY = "READY"
|
|
8
|
-
}
|
|
1
|
+
import { IkasStorefrontDomain } from "./storefront-domain/index";
|
|
2
|
+
import { IkasStorefrontRegion } from "./storefront-region/index";
|
|
9
3
|
export declare class IkasStorefront {
|
|
10
4
|
id: string;
|
|
11
5
|
name: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
salesChannelId: string | null;
|
|
16
|
-
fbpId: string | null;
|
|
17
|
-
gtmId: string | null;
|
|
18
|
-
localizations: IkasStorefrontLocalization[];
|
|
19
|
-
routings: IkasStorefrontRouting[];
|
|
6
|
+
themeId: string;
|
|
7
|
+
themeVersionId: string;
|
|
8
|
+
userId: string;
|
|
20
9
|
domains: IkasStorefrontDomain[];
|
|
21
|
-
|
|
10
|
+
regions: IkasStorefrontRegion[];
|
|
22
11
|
constructor(data?: Partial<IkasStorefront>);
|
|
23
12
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IkasStorefrontLocation } from "../stockfront-location/index";
|
|
2
|
+
import { IkasStorefrontRoute } from "../stockfront-route/index";
|
|
3
|
+
import { IkasTheme } from "../../../theme/index";
|
|
4
|
+
export declare class IkasStorefrontRegion {
|
|
5
|
+
id: string;
|
|
6
|
+
locale: string;
|
|
7
|
+
themeJSON: string | null;
|
|
8
|
+
shipping: string | null;
|
|
9
|
+
paymentSettingsId: string | null;
|
|
10
|
+
priceListId: string | null;
|
|
11
|
+
locations: IkasStorefrontLocation[] | null;
|
|
12
|
+
routes: IkasStorefrontRoute[] | null;
|
|
13
|
+
termsOfService: string;
|
|
14
|
+
privacyPolicy: string;
|
|
15
|
+
returnPolicy: string;
|
|
16
|
+
theme: IkasTheme;
|
|
17
|
+
constructor(data?: Partial<IkasStorefrontRegion>);
|
|
18
|
+
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { IkasProductAttributeType } from "../../../data/product-attribute/index";
|
|
2
1
|
export declare class IkasThemeComponentProp {
|
|
3
2
|
id: string;
|
|
4
3
|
name: string;
|
|
5
4
|
displayName: string;
|
|
6
5
|
type: IkasThemeComponentPropType;
|
|
7
6
|
isRequired: boolean;
|
|
8
|
-
customDataId?: string | null;
|
|
9
|
-
attributeTypes?: IkasProductAttributeType[] | null;
|
|
10
7
|
constructor(data: Partial<IkasThemeComponentProp>);
|
|
11
8
|
}
|
|
12
9
|
export declare enum IkasThemeComponentPropType {
|
|
13
10
|
TEXT = "TEXT",
|
|
14
|
-
RICH_TEXT = "RICH_TEXT",
|
|
15
11
|
BOOLEAN = "BOOLEAN",
|
|
16
12
|
IMAGE = "IMAGE",
|
|
17
13
|
IMAGE_LIST = "IMAGE_LIST",
|
|
@@ -19,20 +15,8 @@ export declare enum IkasThemeComponentPropType {
|
|
|
19
15
|
LIST_OF_LINK = "LIST_OF_LINK",
|
|
20
16
|
PRODUCT_DETAIL = "PRODUCT_DETAIL",
|
|
21
17
|
PRODUCT_LIST = "PRODUCT_LIST",
|
|
22
|
-
PRODUCT_ATTRIBUTE = "PRODUCT_ATTRIBUTE",
|
|
23
|
-
PRODUCT_ATTRIBUTE_LIST = "PRODUCT_ATTRIBUTE_LIST",
|
|
24
18
|
BRAND = "BRAND",
|
|
25
19
|
BRAND_LIST = "BRAND_LIST",
|
|
26
20
|
CATEGORY = "CATEGORY",
|
|
27
|
-
CATEGORY_LIST = "CATEGORY_LIST"
|
|
28
|
-
COLOR = "COLOR",
|
|
29
|
-
CUSTOM = "CUSTOM",
|
|
30
|
-
COMPONENT = "COMPONENT",
|
|
31
|
-
COMPONENT_LIST = "COMPONENT_LIST",
|
|
32
|
-
BLOG = "BLOG",
|
|
33
|
-
BLOG_LIST = "BLOG_LIST",
|
|
34
|
-
OBJECT = "OBJECT",
|
|
35
|
-
STATIC_LIST = "STATIC_LIST",
|
|
36
|
-
DYNAMIC_LIST = "DYNAMIC_LIST",
|
|
37
|
-
ENUM = "ENUM"
|
|
21
|
+
CATEGORY_LIST = "CATEGORY_LIST"
|
|
38
22
|
}
|
|
@@ -10,7 +10,3 @@ export { IkasProductListPropValue } from "./page/component/prop-value/product-li
|
|
|
10
10
|
export { IkasProductDetailPropValue } from "./page/component/prop-value/product-detail";
|
|
11
11
|
export { IkasCategoryPropValue } from "./page/component/prop-value/category";
|
|
12
12
|
export { IkasCategoryListPropValue } from "./page/component/prop-value/category-list";
|
|
13
|
-
export { IkasThemeSettings } from "./settings/index";
|
|
14
|
-
export { IkasThemeCustomData } from "./custom-data/index";
|
|
15
|
-
export { IkasBlogPropValue } from "./page/component/prop-value/blog";
|
|
16
|
-
export { IkasBlogListPropValue } from "./page/component/prop-value/blog-list";
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { IkasProductListSortType, IkasProductListType } from "../../../../ui/index";
|
|
2
2
|
export declare class IkasProductListPropValue {
|
|
3
|
-
id: string;
|
|
4
3
|
productListType: IkasProductListType;
|
|
5
4
|
initialSort?: IkasProductListSortType | null;
|
|
6
5
|
initialLimit?: number | null;
|
|
7
6
|
productCount?: number | null;
|
|
8
7
|
productIds?: IkasProductVariantId[] | null;
|
|
9
8
|
usePageFilter?: boolean | null;
|
|
10
|
-
category?: string | null;
|
|
11
9
|
constructor(data: Partial<IkasProductListPropValue>);
|
|
12
10
|
}
|
|
13
11
|
declare type IkasProductVariantId = {
|
|
@@ -7,14 +7,8 @@ export declare class IkasThemePage {
|
|
|
7
7
|
pageTitle: string | null;
|
|
8
8
|
description: string | null;
|
|
9
9
|
components: IkasThemePageComponent[];
|
|
10
|
-
specifications: IkasThemePageSpecification[] | null;
|
|
11
10
|
constructor(data: Partial<IkasThemePage>);
|
|
12
11
|
}
|
|
13
|
-
export declare class IkasThemePageSpecification {
|
|
14
|
-
id: string;
|
|
15
|
-
components: IkasThemePageComponent[];
|
|
16
|
-
constructor(data: Partial<IkasThemePageSpecification>);
|
|
17
|
-
}
|
|
18
12
|
export declare enum IkasThemePageType {
|
|
19
13
|
INDEX = "INDEX",
|
|
20
14
|
CATEGORY = "CATEGORY",
|
|
@@ -28,12 +22,5 @@ export declare enum IkasThemePageType {
|
|
|
28
22
|
LOGIN = "LOGIN",
|
|
29
23
|
REGISTER = "REGISTER",
|
|
30
24
|
FORGOT_PASSWORD = "FORGOT_PASSWORD",
|
|
31
|
-
RECOVER_PASSWORD = "RECOVER_PASSWORD"
|
|
32
|
-
CART = "CART",
|
|
33
|
-
FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS",
|
|
34
|
-
SEARCH = "SEARCH",
|
|
35
|
-
NOT_FOUND = "NOT_FOUND",
|
|
36
|
-
BLOG = "BLOG",
|
|
37
|
-
BLOG_INDEX = "BLOG_INDEX",
|
|
38
|
-
BLOG_CATEGORY = "BLOG_CATEGORY"
|
|
25
|
+
RECOVER_PASSWORD = "RECOVER_PASSWORD"
|
|
39
26
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { IkasThemeComponent } from "./component/index";
|
|
2
|
-
import { IkasThemeCustomData } from "./custom-data/index";
|
|
3
2
|
import { IkasThemePage } from "./page/index";
|
|
4
|
-
import { IkasThemeSettings } from "./settings/index";
|
|
5
3
|
export declare class IkasTheme {
|
|
6
4
|
name: string;
|
|
7
5
|
components: IkasThemeComponent[];
|
|
8
6
|
pages: IkasThemePage[];
|
|
9
|
-
settings: IkasThemeSettings;
|
|
10
|
-
customData: IkasThemeCustomData[];
|
|
11
7
|
constructor(data?: Partial<IkasTheme>);
|
|
12
8
|
get headerComponent(): IkasThemeComponent | undefined;
|
|
13
9
|
get footerComponent(): IkasThemeComponent | undefined;
|
|
@@ -16,18 +16,15 @@ export declare class IkasBrandList {
|
|
|
16
16
|
get limit(): number;
|
|
17
17
|
get page(): number;
|
|
18
18
|
get count(): number;
|
|
19
|
-
get pageCount(): number;
|
|
20
19
|
get isInitialized(): boolean;
|
|
21
20
|
get isStatic(): boolean;
|
|
22
21
|
get hasPrev(): boolean;
|
|
23
22
|
get hasNext(): boolean;
|
|
24
23
|
get isLoading(): boolean;
|
|
25
|
-
private getSortParams;
|
|
26
24
|
getInitial: () => Promise<void>;
|
|
27
25
|
getPrev: () => Promise<void>;
|
|
28
26
|
getNext: () => Promise<void>;
|
|
29
27
|
getPage: (page: number) => Promise<void>;
|
|
30
|
-
setSortType(sortType: IkasBrandListSortType): Promise<void>;
|
|
31
28
|
toJSON(): {
|
|
32
29
|
data: IkasBrand[];
|
|
33
30
|
type: IkasBrandListType;
|
|
@@ -16,18 +16,15 @@ export declare class IkasCategoryList {
|
|
|
16
16
|
get limit(): number;
|
|
17
17
|
get page(): number;
|
|
18
18
|
get count(): number;
|
|
19
|
-
get pageCount(): number;
|
|
20
19
|
get isInitialized(): boolean;
|
|
21
20
|
get isStatic(): boolean;
|
|
22
21
|
get hasPrev(): boolean;
|
|
23
22
|
get hasNext(): boolean;
|
|
24
23
|
get isLoading(): boolean;
|
|
25
|
-
private getSortParams;
|
|
26
24
|
getInitial: () => Promise<void>;
|
|
27
25
|
getPrev: () => Promise<void>;
|
|
28
26
|
getNext: () => Promise<void>;
|
|
29
27
|
getPage: (page: number) => Promise<void>;
|
|
30
|
-
setSortType(sortType: IkasCategoryListSortType): Promise<void>;
|
|
31
28
|
toJSON(): {
|
|
32
29
|
data: IkasCategory[];
|
|
33
30
|
type: IkasCategoryListType;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
export * from "./blog-list/index";
|
|
2
1
|
export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list/index";
|
|
3
2
|
export { IkasCategoryList, IkasCategoryListType, IkasCategoryListSortType, } from "./category-list/index";
|
|
4
3
|
export type { IkasBrandListParams } from "./brand-list/index";
|
|
5
4
|
export { IkasNavigationLink } from "./navigation-link/index";
|
|
6
|
-
export { IkasProductDetail
|
|
5
|
+
export { IkasProductDetail } from "./product-detail/index";
|
|
7
6
|
export { IkasProductList, IkasProductListType, IkasProductListSortType, } from "./product-list/index";
|
|
8
|
-
export {
|
|
9
|
-
export * from "./validator/rules/index";
|
|
10
|
-
export { LoginForm } from "./validator/form/login";
|
|
11
|
-
export { AddressForm } from "./validator/form/address";
|
|
12
|
-
export { RegisterForm } from "./validator/form/register";
|
|
13
|
-
export { ContactForm } from "./validator/form/contact-form";
|
|
14
|
-
export { ForgotPasswordForm } from "./validator/form/forgot-password";
|
|
15
|
-
export { RecoverPasswordForm } from "./validator/form/recover-password";
|
|
16
|
-
export { AccountInfoForm } from "./validator/form/account-info";
|
|
17
|
-
export * from "./component-renderer/index";
|
|
7
|
+
export { IkasProductListFilter } from "./product-list/filter";
|
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
import { IkasProduct, IkasVariantValue } from "../../index";
|
|
2
2
|
import { NextRouter } from "next/router";
|
|
3
|
-
import { IkasProductVariant, IkasVariantType } from "../../data/index";
|
|
4
3
|
export declare class IkasProductDetail {
|
|
5
4
|
product: IkasProduct;
|
|
6
5
|
selectedVariantValues: IkasVariantValue[];
|
|
6
|
+
private usePageData?;
|
|
7
7
|
private router?;
|
|
8
|
-
constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], router?: NextRouter);
|
|
8
|
+
constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], usePageData?: boolean, router?: NextRouter);
|
|
9
9
|
get mainVariantValue(): IkasVariantValue | undefined;
|
|
10
|
-
get selectedVariant(): IkasProductVariant;
|
|
10
|
+
get selectedVariant(): import("../../index").IkasProductVariant;
|
|
11
11
|
get href(): string;
|
|
12
|
-
get displayedVariantTypes(): IkasDisplayedVariantType[];
|
|
13
12
|
selectVariantValue(variantValue: IkasVariantValue): void;
|
|
14
13
|
}
|
|
15
|
-
export declare type IkasDisplayedVariantValue = {
|
|
16
|
-
variant: IkasProductVariant;
|
|
17
|
-
variantValue: IkasVariantValue;
|
|
18
|
-
hasStock: boolean;
|
|
19
|
-
isSelected: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare type IkasDisplayedVariantType = {
|
|
22
|
-
variantType: IkasVariantType;
|
|
23
|
-
displayedVariantValues: IkasDisplayedVariantValue[];
|
|
24
|
-
};
|