@ikas/storefront-models 5.0.0-beta.9 → 5.0.1
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/index.d.ts +27 -0
- package/build/index.js +1 -1
- package/build/models/campaign-offer/index.d.ts +2 -1
- package/build/models/campaign-offer/index.js +1 -1
- package/build/models/campaign-offer/init.d.ts +2 -0
- package/build/models/campaign-offer/init.js +1 -0
- package/build/models/campaign-offer/product/index.d.ts +1 -1
- package/build/models/campaign-offer/product/init.d.ts +2 -0
- package/build/models/campaign-offer/product/init.js +1 -0
- package/build/models/cart/available-shipping-method/estimated-delivery-time/index.d.ts +9 -0
- package/build/models/cart/available-shipping-method/estimated-delivery-time/index.js +1 -0
- package/build/models/cart/available-shipping-method/index.d.ts +2 -0
- package/build/models/cart/index.d.ts +2 -1
- package/build/models/cart/index.js +1 -1
- package/build/models/category/conditions/index.d.ts +19 -0
- package/build/models/category/conditions/index.js +1 -0
- package/build/models/category/index.d.ts +3 -0
- package/build/models/checkout-settings/index.d.ts +6 -0
- package/build/models/checkout-settings/index.js +1 -1
- package/build/models/checkout-settings/price/index.d.ts +2 -1
- package/build/models/contact-form/index.d.ts +1 -0
- package/build/models/customer/address/index.d.ts +2 -0
- package/build/models/customer/address/region/index.d.ts +4 -0
- package/build/models/customer/index.d.ts +3 -0
- package/build/models/customer/price-list-rule/filter/index.d.ts +10 -0
- package/build/models/customer/price-list-rule/filter/index.js +1 -0
- package/build/models/customer/price-list-rule/index.d.ts +12 -0
- package/build/models/customer/price-list-rule/index.js +1 -0
- package/build/models/customer/review/index.d.ts +1 -0
- package/build/models/favorite-product/index.d.ts +2 -0
- package/build/models/filter-category/index.d.ts +4 -0
- package/build/models/html-meta-data/init.js +1 -1
- package/build/models/html-meta-data/translations/index.d.ts +1 -0
- package/build/models/image/index.d.ts +1 -0
- package/build/models/order/address/index.d.ts +2 -0
- package/build/models/order/address/region/index.d.ts +4 -0
- package/build/models/order/index.d.ts +1 -0
- package/build/models/order/line-item/variant/bundle-product/bundle-variant/index.d.ts +31 -0
- package/build/models/order/line-item/variant/bundle-product/index.d.ts +13 -0
- package/build/models/order/line-item/variant/index.d.ts +4 -0
- package/build/models/order/transaction/index.d.ts +1 -0
- package/build/models/order/transaction/payment-method-detail/index.d.ts +1 -0
- package/build/models/payment-gateway/index.d.ts +4 -0
- package/build/models/payment-gateway/index.js +1 -1
- package/build/models/product/campaign/data/index.d.ts +1 -1
- package/build/models/product/campaign/data/index.js +1 -1
- package/build/models/product/campaign-offer/index.d.ts +11 -0
- package/build/models/product/filter/index.d.ts +1 -0
- package/build/models/product/group/index.d.ts +9 -0
- package/build/models/product/group/init.d.ts +3 -0
- package/build/models/product/group/init.js +1 -0
- package/build/models/product/group/translation/index.d.ts +9 -0
- package/build/models/product/group/value/index.d.ts +5 -0
- package/build/models/product/image/index.d.ts +1 -0
- package/build/models/product/index.d.ts +13 -0
- package/build/models/product/init.js +1 -1
- package/build/models/product/variant/bundle-settings/bundle-product/index.d.ts +11 -0
- package/build/models/product/variant/bundle-settings/index.d.ts +6 -0
- package/build/models/product/variant/index.d.ts +5 -1
- package/build/models/product/variant/price/index.d.ts +2 -0
- package/build/models/product/variant/price/product-campaign-price/index.d.ts +4 -0
- package/build/models/product-file/index.d.ts +6 -0
- package/build/models/shipping-zone/index.d.ts +7 -0
- package/build/models/shipping-zone/state/city/district/index.d.ts +5 -0
- package/build/models/shipping-zone/state/city/district/region/index.d.ts +4 -0
- package/build/models/shipping-zone/state/city/index.d.ts +6 -0
- package/build/models/shipping-zone/state/index.d.ts +7 -0
- package/build/models/storefront/b2b-settings/index.d.ts +14 -0
- package/build/models/storefront/b2b-settings/index.js +1 -0
- package/build/models/storefront/index-page-seo-setting/index.d.ts +15 -0
- package/build/models/storefront/index.d.ts +9 -0
- package/build/models/storefront/index.js +1 -1
- package/build/models/theme-json/component/index.d.ts +1 -0
- package/build/models/theme-json/component/prop/index.d.ts +3 -0
- package/build/models/theme-json/component/prop/index.js +1 -1
- package/build/models/theme-json/custom-data/index.d.ts +2 -0
- package/build/models/theme-json/page/index.d.ts +2 -1
- package/build/models/theme-json/page/index.js +1 -1
- package/build/models/video/index.d.ts +9 -0
- package/build-cjs/index.d.ts +27 -0
- package/build-cjs/index.js +1 -1
- package/build-cjs/models/campaign-offer/index.d.ts +2 -1
- package/build-cjs/models/campaign-offer/index.js +1 -1
- package/build-cjs/models/campaign-offer/init.d.ts +2 -0
- package/build-cjs/models/campaign-offer/init.js +1 -0
- package/build-cjs/models/campaign-offer/product/index.d.ts +1 -1
- package/build-cjs/models/campaign-offer/product/init.d.ts +2 -0
- package/build-cjs/models/campaign-offer/product/init.js +1 -0
- package/build-cjs/models/cart/available-shipping-method/estimated-delivery-time/index.d.ts +9 -0
- package/build-cjs/models/cart/available-shipping-method/estimated-delivery-time/index.js +1 -0
- package/build-cjs/models/cart/available-shipping-method/index.d.ts +2 -0
- package/build-cjs/models/cart/index.d.ts +2 -1
- package/build-cjs/models/cart/index.js +1 -1
- package/build-cjs/models/category/conditions/index.d.ts +19 -0
- package/build-cjs/models/category/conditions/index.js +1 -0
- package/build-cjs/models/category/index.d.ts +3 -0
- package/build-cjs/models/checkout-settings/index.d.ts +6 -0
- package/build-cjs/models/checkout-settings/index.js +1 -1
- package/build-cjs/models/checkout-settings/price/index.d.ts +2 -1
- package/build-cjs/models/contact-form/index.d.ts +1 -0
- package/build-cjs/models/customer/address/index.d.ts +2 -0
- package/build-cjs/models/customer/address/region/index.d.ts +4 -0
- package/build-cjs/models/customer/index.d.ts +3 -0
- package/build-cjs/models/customer/price-list-rule/filter/index.d.ts +10 -0
- package/build-cjs/models/customer/price-list-rule/filter/index.js +1 -0
- package/build-cjs/models/customer/price-list-rule/index.d.ts +12 -0
- package/build-cjs/models/customer/price-list-rule/index.js +1 -0
- package/build-cjs/models/customer/review/index.d.ts +1 -0
- package/build-cjs/models/favorite-product/index.d.ts +2 -0
- package/build-cjs/models/filter-category/index.d.ts +4 -0
- package/build-cjs/models/html-meta-data/init.js +1 -1
- package/build-cjs/models/html-meta-data/translations/index.d.ts +1 -0
- package/build-cjs/models/image/index.d.ts +1 -0
- package/build-cjs/models/order/address/index.d.ts +2 -0
- package/build-cjs/models/order/address/region/index.d.ts +4 -0
- package/build-cjs/models/order/index.d.ts +1 -0
- package/build-cjs/models/order/line-item/variant/bundle-product/bundle-variant/index.d.ts +31 -0
- package/build-cjs/models/order/line-item/variant/bundle-product/index.d.ts +13 -0
- package/build-cjs/models/order/line-item/variant/index.d.ts +4 -0
- package/build-cjs/models/order/transaction/index.d.ts +1 -0
- package/build-cjs/models/order/transaction/payment-method-detail/index.d.ts +1 -0
- package/build-cjs/models/payment-gateway/index.d.ts +4 -0
- package/build-cjs/models/payment-gateway/index.js +1 -1
- package/build-cjs/models/product/campaign/data/index.d.ts +1 -1
- package/build-cjs/models/product/campaign/data/index.js +1 -1
- package/build-cjs/models/product/campaign/search/index.d.ts +13 -0
- package/build-cjs/models/product/campaign-offer/index.d.ts +11 -0
- package/build-cjs/models/product/filter/index.d.ts +1 -0
- package/build-cjs/models/product/group/index.d.ts +9 -0
- package/build-cjs/models/product/group/init.d.ts +3 -0
- package/build-cjs/models/product/group/init.js +1 -0
- package/build-cjs/models/product/group/translation/index.d.ts +9 -0
- package/build-cjs/models/product/group/value/index.d.ts +5 -0
- package/build-cjs/models/product/image/index.d.ts +1 -0
- package/build-cjs/models/product/index.d.ts +13 -0
- package/build-cjs/models/product/init.js +1 -1
- package/build-cjs/models/product/variant/bundle-settings/bundle-product/index.d.ts +11 -0
- package/build-cjs/models/product/variant/bundle-settings/index.d.ts +6 -0
- package/build-cjs/models/product/variant/index.d.ts +5 -1
- package/build-cjs/models/product/variant/price/index.d.ts +2 -0
- package/build-cjs/models/product/variant/price/product-campaign-price/index.d.ts +4 -0
- package/build-cjs/models/product-file/index.d.ts +6 -0
- package/build-cjs/models/shipping-zone/index.d.ts +7 -0
- package/build-cjs/models/shipping-zone/state/city/district/index.d.ts +5 -0
- package/build-cjs/models/shipping-zone/state/city/district/region/index.d.ts +4 -0
- package/build-cjs/models/shipping-zone/state/city/index.d.ts +6 -0
- package/build-cjs/models/shipping-zone/state/index.d.ts +7 -0
- package/build-cjs/models/storefront/b2b-settings/index.d.ts +14 -0
- package/build-cjs/models/storefront/b2b-settings/index.js +1 -0
- package/build-cjs/models/storefront/index-page-seo-setting/index.d.ts +15 -0
- package/build-cjs/models/storefront/index.d.ts +9 -0
- package/build-cjs/models/storefront/index.js +1 -1
- package/build-cjs/models/theme-json/component/index.d.ts +1 -0
- package/build-cjs/models/theme-json/component/prop/index.d.ts +3 -0
- package/build-cjs/models/theme-json/component/prop/index.js +1 -1
- package/build-cjs/models/theme-json/custom-data/index.d.ts +2 -0
- package/build-cjs/models/theme-json/page/index.d.ts +2 -1
- package/build-cjs/models/theme-json/page/index.js +1 -1
- package/build-cjs/models/video/index.d.ts +9 -0
- package/package.json +2 -2
- package/build-cjs/_virtual/_tslib.js.map +0 -1
- package/build-cjs/index.js.map +0 -1
- package/build-cjs/models/base/init.js.map +0 -1
- package/build-cjs/models/blog/category/init.js.map +0 -1
- package/build-cjs/models/blog/init.js.map +0 -1
- package/build-cjs/models/blog/meta-data/index.js.map +0 -1
- package/build-cjs/models/brand/index.js.map +0 -1
- package/build-cjs/models/brand/init.js.map +0 -1
- package/build-cjs/models/campaign-offer/index.js.map +0 -1
- package/build-cjs/models/campaign-offer/product/index.js.map +0 -1
- package/build-cjs/models/cart/available-shipping-method/index.js.map +0 -1
- package/build-cjs/models/cart/campaign-offer/index.js.map +0 -1
- package/build-cjs/models/category/index.js.map +0 -1
- package/build-cjs/models/category/init.js.map +0 -1
- package/build-cjs/models/category/path-item/init.js.map +0 -1
- package/build-cjs/models/checkout-settings/index.js.map +0 -1
- package/build-cjs/models/country/init.js.map +0 -1
- package/build-cjs/models/customer/attribute/index.js.map +0 -1
- package/build-cjs/models/customer/attribute/init.js.map +0 -1
- package/build-cjs/models/customer/attribute/sales-channel/index.js.map +0 -1
- package/build-cjs/models/customer/index.js.map +0 -1
- package/build-cjs/models/customer/review/index.js.map +0 -1
- package/build-cjs/models/customer/review/init.js.map +0 -1
- package/build-cjs/models/html-meta-data/index.js.map +0 -1
- package/build-cjs/models/html-meta-data/init.js.map +0 -1
- package/build-cjs/models/merchant-settings/address/type/index.js.map +0 -1
- package/build-cjs/models/merchant-settings/index.js.map +0 -1
- package/build-cjs/models/merchant-settings/init.js.map +0 -1
- package/build-cjs/models/order/adjustment/index.js.map +0 -1
- package/build-cjs/models/order/index.js.map +0 -1
- package/build-cjs/models/order/invoice/index.js.map +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.js.map +0 -1
- package/build-cjs/models/order/line-item/index.js.map +0 -1
- package/build-cjs/models/order/package/index.js.map +0 -1
- package/build-cjs/models/order/transaction/index.js.map +0 -1
- package/build-cjs/models/order/transaction/payment-method-detail/index.js.map +0 -1
- package/build-cjs/models/payment-gateway/additional-price/index.js.map +0 -1
- package/build-cjs/models/payment-gateway/index.js.map +0 -1
- package/build-cjs/models/payment-gateway/init.js.map +0 -1
- package/build-cjs/models/payment-gateway/settings/index.js.map +0 -1
- package/build-cjs/models/product/attribute/index.js.map +0 -1
- package/build-cjs/models/product/attribute/init.js.map +0 -1
- package/build-cjs/models/product/attribute-value/init.js.map +0 -1
- package/build-cjs/models/product/campaign/data/index.js.map +0 -1
- package/build-cjs/models/product/campaign/filter/index.js.map +0 -1
- package/build-cjs/models/product/filter/index.js.map +0 -1
- package/build-cjs/models/product/image/init.js.map +0 -1
- package/build-cjs/models/product/index.js.map +0 -1
- package/build-cjs/models/product/init.js.map +0 -1
- package/build-cjs/models/product/option-set/init.js.map +0 -1
- package/build-cjs/models/product/option-set/option/index.js.map +0 -1
- package/build-cjs/models/product/option-set/option/init.js.map +0 -1
- package/build-cjs/models/product/variant/init.js.map +0 -1
- package/build-cjs/models/product/variant-type/init.js.map +0 -1
- package/build-cjs/models/raffle/index.js.map +0 -1
- package/build-cjs/models/raffle/init.js.map +0 -1
- package/build-cjs/models/stock-location/index.js.map +0 -1
- package/build-cjs/models/storefront/index.js.map +0 -1
- package/build-cjs/models/storefront/meta-templates/index.js.map +0 -1
- package/build-cjs/models/storefront/theme/index.js.map +0 -1
- package/build-cjs/models/theme-json/component/prop/index.js.map +0 -1
- package/build-cjs/models/theme-json/page/index.js.map +0 -1
- package/build-cjs/models/theme-json/settings/index.js.map +0 -1
- package/build-cjs/models/variant-type/index.js.map +0 -1
- package/build-cjs/models/variant-type/init.js.map +0 -1
- package/build-cjs/models/variant-type/variant-value/init.js.map +0 -1
|
@@ -3,6 +3,7 @@ import { IkasHTMLMetaData } from "../html-meta-data";
|
|
|
3
3
|
import { IkasBaseModel } from "../base";
|
|
4
4
|
import { IkasCategoryPathItem } from "./path-item";
|
|
5
5
|
import { IkasCategoryTranslation } from "./translations";
|
|
6
|
+
import { IkasCategoryConditions, IkasCategoryConditionValues } from "./conditions";
|
|
6
7
|
export declare type IkasCategory = {
|
|
7
8
|
categoryPath: string[] | null;
|
|
8
9
|
description: string | null;
|
|
@@ -12,8 +13,10 @@ export declare type IkasCategory = {
|
|
|
12
13
|
metaData: IkasHTMLMetaData | null;
|
|
13
14
|
categoryPathItems: IkasCategoryPathItem[];
|
|
14
15
|
orderType: IkasCategoryProductsOrderType | null;
|
|
16
|
+
conditions: IkasCategoryConditions[] | null;
|
|
15
17
|
image?: IkasImage | null;
|
|
16
18
|
translations?: IkasCategoryTranslation[] | null;
|
|
19
|
+
conditionValues: IkasCategoryConditionValues | null;
|
|
17
20
|
} & IkasBaseModel;
|
|
18
21
|
export declare enum IkasCategoryProductsOrderType {
|
|
19
22
|
BEST_SELLER = "BEST_SELLER",
|
|
@@ -12,6 +12,7 @@ export declare type IkasCheckoutSettings = {
|
|
|
12
12
|
options: IkasCheckoutOption[] | null;
|
|
13
13
|
phoneRequirement: IkasCheckoutRequirement;
|
|
14
14
|
postalCodeRequirement: IkasCheckoutRequirement | null;
|
|
15
|
+
couponCodeRequirement: IkasCouponCodeRequirement | null;
|
|
15
16
|
showCheckoutNote: boolean | null;
|
|
16
17
|
showTermsAndConditionsCheckbox: boolean;
|
|
17
18
|
storefrontId: string;
|
|
@@ -21,3 +22,8 @@ export declare enum IkasCheckoutRequirement {
|
|
|
21
22
|
MANDATORY = "MANDATORY",
|
|
22
23
|
OPTIONAL = "OPTIONAL"
|
|
23
24
|
}
|
|
25
|
+
export declare enum IkasCouponCodeRequirement {
|
|
26
|
+
DEFAULT = "DEFAULT",
|
|
27
|
+
INVISIBLE = "INVISIBLE",
|
|
28
|
+
OPEN = "OPEN"
|
|
29
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCheckoutRequirement=void 0,(e=exports.IkasCheckoutRequirement||(exports.IkasCheckoutRequirement={})).INVISIBLE="INVISIBLE",e.MANDATORY="MANDATORY",e.OPTIONAL="OPTIONAL";
|
|
1
|
+
"use strict";var e,o;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCheckoutRequirement=void 0,(e=exports.IkasCheckoutRequirement||(exports.IkasCheckoutRequirement={})).INVISIBLE="INVISIBLE",e.MANDATORY="MANDATORY",e.OPTIONAL="OPTIONAL",exports.IkasCouponCodeRequirement=void 0,(o=exports.IkasCouponCodeRequirement||(exports.IkasCouponCodeRequirement={})).DEFAULT="DEFAULT",o.INVISIBLE="INVISIBLE",o.OPEN="OPEN";
|
|
@@ -3,6 +3,7 @@ import { IkasCustomerAttributeValue } from "../attribute/value";
|
|
|
3
3
|
import { IkasCustomerAddressCity } from "./city";
|
|
4
4
|
import { IkasCustomerAddressCountry } from "./country";
|
|
5
5
|
import { IkasCustomerAddressDistrict } from "./district";
|
|
6
|
+
import { IkasCustomerAddressRegion } from "./region";
|
|
6
7
|
import { IkasCustomerAddressState } from "./state";
|
|
7
8
|
export declare type IkasCustomerAddress = {
|
|
8
9
|
addressLine1: string;
|
|
@@ -22,4 +23,5 @@ export declare type IkasCustomerAddress = {
|
|
|
22
23
|
state: IkasCustomerAddressState | null;
|
|
23
24
|
city: IkasCustomerAddressCity | null;
|
|
24
25
|
district: IkasCustomerAddressDistrict | null;
|
|
26
|
+
region: IkasCustomerAddressRegion | null;
|
|
25
27
|
} & IkasBaseModel;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IkasCustomerAddress } from "./address";
|
|
2
2
|
import { IkasCustomerAttributeValue } from "./attribute/value";
|
|
3
3
|
import { IkasBaseModel } from "../base";
|
|
4
|
+
import { IkasCustomerPriceListRule } from "./price-list-rule";
|
|
4
5
|
export declare type IkasCustomer = {
|
|
5
6
|
accountStatusUpdatedAt: number | null;
|
|
6
7
|
customerGroupIds: string[] | null;
|
|
@@ -19,6 +20,8 @@ export declare type IkasCustomer = {
|
|
|
19
20
|
phoneVerifiedDate: number | null;
|
|
20
21
|
subscriptionStatusUpdatedAt: number | null;
|
|
21
22
|
tagIds: string[] | null;
|
|
23
|
+
priceListId: string | null;
|
|
24
|
+
priceListRules: IkasCustomerPriceListRule[] | null;
|
|
22
25
|
registrationSource: IkasCustomerRegistrationSource | null;
|
|
23
26
|
accountStatus: IkasCustomerAccountStatus | null;
|
|
24
27
|
addresses: IkasCustomerAddress[] | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type IkasCustomerPriceListRuleFilter = {
|
|
2
|
+
type: IkasCustomerPriceListRuleFilterType;
|
|
3
|
+
valueList: string[];
|
|
4
|
+
};
|
|
5
|
+
export declare enum IkasCustomerPriceListRuleFilterType {
|
|
6
|
+
CATEGORY = "CATEGORY",
|
|
7
|
+
PRODUCT = "PRODUCT",
|
|
8
|
+
PRODUCT_BRAND = "PRODUCT_BRAND",
|
|
9
|
+
PRODUCT_TAG = "PRODUCT_TAG"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCustomerPriceListRuleFilterType=void 0,(e=exports.IkasCustomerPriceListRuleFilterType||(exports.IkasCustomerPriceListRuleFilterType={})).CATEGORY="CATEGORY",e.PRODUCT="PRODUCT",e.PRODUCT_BRAND="PRODUCT_BRAND",e.PRODUCT_TAG="PRODUCT_TAG";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IkasCustomerPriceListRuleFilter } from "./filter";
|
|
2
|
+
export declare type IkasCustomerPriceListRule = {
|
|
3
|
+
filters: IkasCustomerPriceListRuleFilter[] | null;
|
|
4
|
+
shouldMatchAllFilters: boolean | null;
|
|
5
|
+
value: number;
|
|
6
|
+
valueType: IkasCustomerPriceListRuleValueType;
|
|
7
|
+
};
|
|
8
|
+
export declare enum IkasCustomerPriceListRuleValueType {
|
|
9
|
+
DISCOUNT_AMOUNT = "DISCOUNT_AMOUNT",
|
|
10
|
+
DISCOUNT_RATE = "DISCOUNT_RATE",
|
|
11
|
+
FIXED_PRICE = "FIXED_PRICE"
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCustomerPriceListRuleValueType=void 0,(e=exports.IkasCustomerPriceListRuleValueType||(exports.IkasCustomerPriceListRuleValueType={})).DISCOUNT_AMOUNT="DISCOUNT_AMOUNT",e.DISCOUNT_RATE="DISCOUNT_RATE",e.FIXED_PRICE="FIXED_PRICE";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { IkasHTMLMetaData } from "../html-meta-data";
|
|
2
|
+
import { IkasImage } from "../image";
|
|
2
3
|
export declare type IkasFilterCategory = {
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
metaData: IkasHTMLMetaData | null;
|
|
7
|
+
isAutomated: boolean | null;
|
|
6
8
|
resultCount: number | null;
|
|
7
9
|
isSelected: boolean;
|
|
10
|
+
imageId: string | null;
|
|
11
|
+
image?: IkasImage | null;
|
|
8
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function t(t,e){if(t.translations&&t.translations.some((function(t){return t.locale===e}))){var n=t.translations.find((function(t){return t.locale===e}));(null==n?void 0:n.pageTitle)&&(t.pageTitle=n.pageTitle),(null==n?void 0:n.description)&&(t.description=n.description)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasHTMLMetaData=function(e,n){n&&t(e,n)},exports.setHTMLMetaDataTranslations=t;
|
|
1
|
+
"use strict";function t(t,e){if(t.translations&&t.translations.some((function(t){return t.locale===e}))){var n=t.translations.find((function(t){return t.locale===e}));(null==n?void 0:n.pageTitle)&&(t.pageTitle=n.pageTitle),(null==n?void 0:n.description)&&(t.description=n.description),(null==n?void 0:n.slug)&&(t.slug=n.slug)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasHTMLMetaData=function(e,n){n&&t(e,n)},exports.setHTMLMetaDataTranslations=t;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IkasOrderAddressCity } from "./city";
|
|
2
2
|
import { IkasOrderAddressCountry } from "./country";
|
|
3
3
|
import { IkasOrderAddressDistrict } from "./district";
|
|
4
|
+
import { IkasOrderAddressRegion } from "./region";
|
|
4
5
|
import { IkasOrderAddressState } from "./state";
|
|
5
6
|
export declare type IkasOrderAddress = {
|
|
6
7
|
addressLine1: string;
|
|
@@ -19,4 +20,5 @@ export declare type IkasOrderAddress = {
|
|
|
19
20
|
state: IkasOrderAddressState | null;
|
|
20
21
|
city: IkasOrderAddressCity | null;
|
|
21
22
|
district: IkasOrderAddressDistrict | null;
|
|
23
|
+
region: IkasOrderAddressRegion | null;
|
|
22
24
|
};
|
|
@@ -30,6 +30,7 @@ export declare type IkasOrder = {
|
|
|
30
30
|
orderPaymentStatus: IkasOrderPaymentStatus | null;
|
|
31
31
|
orderedAt: number | null;
|
|
32
32
|
paymentMethods: IkasOrderPaymentMethod[] | null;
|
|
33
|
+
priceListId: string | null;
|
|
33
34
|
shippingAddress: IkasOrderAddress | null;
|
|
34
35
|
shippingLines: IkasOrderShippingLine[] | null;
|
|
35
36
|
shippingMethod: IkasOrderShippingMethod;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IkasOrderLineVariantVariantValue } from "../../value";
|
|
2
|
+
import { IkasOrderLineVariantBrand } from "../../brand";
|
|
3
|
+
import { IkasOrderLineVariantCategory } from "../../category";
|
|
4
|
+
import { IkasOrderLineVariantPrice } from "../../price";
|
|
5
|
+
import { IkasImage } from "../../../../../image";
|
|
6
|
+
import { IkasOrderLineBaseUnit } from "../../../base-unit";
|
|
7
|
+
import { IkasOrderLineVariantUnit } from "../../unit";
|
|
8
|
+
import { IkasOrderLineVariantTag } from "../../tag";
|
|
9
|
+
export declare type IkasOrderLineBundleVariant = {
|
|
10
|
+
barcodeList: string[] | null;
|
|
11
|
+
baseUnit: IkasOrderLineBaseUnit | null;
|
|
12
|
+
brand: IkasOrderLineVariantBrand | null;
|
|
13
|
+
categories: IkasOrderLineVariantCategory[] | null;
|
|
14
|
+
fileId: string | null;
|
|
15
|
+
id: string | null;
|
|
16
|
+
mainImageId: string | null;
|
|
17
|
+
name: string;
|
|
18
|
+
prices: IkasOrderLineVariantPrice[] | null;
|
|
19
|
+
productId: string | null;
|
|
20
|
+
sku: string | null;
|
|
21
|
+
slug: string | null;
|
|
22
|
+
tagIds: string[] | null;
|
|
23
|
+
tags: IkasOrderLineVariantTag[] | null;
|
|
24
|
+
taxValue: number | null;
|
|
25
|
+
type: number | null;
|
|
26
|
+
unit: IkasOrderLineVariantUnit | null;
|
|
27
|
+
weight: number | null;
|
|
28
|
+
hsCode: string | null;
|
|
29
|
+
variantValues: IkasOrderLineVariantVariantValue[] | null;
|
|
30
|
+
mainImage?: IkasImage | null;
|
|
31
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IkasOrderLineBundleVariant } from "./bundle-variant";
|
|
2
|
+
export declare type IkasOrderLineVariantBundleProduct = {
|
|
3
|
+
id: string;
|
|
4
|
+
deleted: boolean | null;
|
|
5
|
+
discountPrice: number | null;
|
|
6
|
+
discountRatio: number | null;
|
|
7
|
+
finalPrice: number | null;
|
|
8
|
+
order: number;
|
|
9
|
+
price: number;
|
|
10
|
+
quantity: number;
|
|
11
|
+
taxValue: number | null;
|
|
12
|
+
variant: IkasOrderLineBundleVariant;
|
|
13
|
+
};
|
|
@@ -6,11 +6,14 @@ import { IkasImage } from "../../../image";
|
|
|
6
6
|
import { IkasOrderLineBaseUnit } from "../base-unit";
|
|
7
7
|
import { IkasOrderLineVariantUnit } from "./unit";
|
|
8
8
|
import { IkasOrderLineVariantTag } from "./tag";
|
|
9
|
+
import { IkasOrderLineVariantBundleProduct } from "./bundle-product";
|
|
9
10
|
export declare type IkasOrderLineVariant = {
|
|
10
11
|
barcodeList: string[] | null;
|
|
11
12
|
baseUnit: IkasOrderLineBaseUnit | null;
|
|
12
13
|
brand: IkasOrderLineVariantBrand | null;
|
|
14
|
+
bundleProducts: IkasOrderLineVariantBundleProduct[] | null;
|
|
13
15
|
categories: IkasOrderLineVariantCategory[] | null;
|
|
16
|
+
fileId: string | null;
|
|
14
17
|
id: string | null;
|
|
15
18
|
mainImageId: string | null;
|
|
16
19
|
name: string;
|
|
@@ -24,6 +27,7 @@ export declare type IkasOrderLineVariant = {
|
|
|
24
27
|
type: number | null;
|
|
25
28
|
unit: IkasOrderLineVariantUnit | null;
|
|
26
29
|
weight: number | null;
|
|
30
|
+
hsCode: string | null;
|
|
27
31
|
variantValues: IkasOrderLineVariantVariantValue[] | null;
|
|
28
32
|
mainImage?: IkasImage | null;
|
|
29
33
|
};
|
|
@@ -11,6 +11,7 @@ export declare type IkasOrderTransaction = {
|
|
|
11
11
|
error: IkasTransactionError | null;
|
|
12
12
|
id: string | null;
|
|
13
13
|
orderId: string | null;
|
|
14
|
+
paymentGatewayCode: string | null;
|
|
14
15
|
paymentGatewayId: string | null;
|
|
15
16
|
paymentGatewayName: string | null;
|
|
16
17
|
paymentMethod: IkasPaymentMethodType | null;
|
|
@@ -7,6 +7,7 @@ export declare type IkasTransactionPaymentMethodDetail = {
|
|
|
7
7
|
cardType: IkasTransactionCardType | null;
|
|
8
8
|
installment: IkasTransactionInstallmentPrice | null;
|
|
9
9
|
lastFourDigits: string;
|
|
10
|
+
paymentMethodName: string | null;
|
|
10
11
|
threeDSecure: boolean | null;
|
|
11
12
|
};
|
|
12
13
|
export declare enum IkasTransactionCardAssociation {
|
|
@@ -21,14 +21,18 @@ export declare type IkasPaymentGateway = {
|
|
|
21
21
|
} & IkasBaseModel;
|
|
22
22
|
export declare enum IkasPaymentMethodType {
|
|
23
23
|
APP_PAYMENT = "APP_PAYMENT",
|
|
24
|
+
BANK_REDIRECT = "BANK_REDIRECT",
|
|
24
25
|
BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
|
|
25
26
|
CASH = "CASH",
|
|
26
27
|
CASH_ON_DELIVERY = "CASH_ON_DELIVERY",
|
|
27
28
|
CREDIT_CARD = "CREDIT_CARD",
|
|
28
29
|
CREDIT_CARD_ON_DELIVERY = "CREDIT_CARD_ON_DELIVERY",
|
|
30
|
+
DIRECT_DEBIT = "DIRECT_DEBIT",
|
|
29
31
|
GIFT_CARD = "GIFT_CARD",
|
|
30
32
|
MONEY_ORDER = "MONEY_ORDER",
|
|
31
33
|
OTHER = "OTHER",
|
|
34
|
+
PAY_LATER = "PAY_LATER",
|
|
35
|
+
SLICE_IT = "SLICE_IT",
|
|
32
36
|
WALLET = "WALLET"
|
|
33
37
|
}
|
|
34
38
|
export declare type IkasPaymentMethod = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var E,T;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasPaymentMethodType=void 0,(E=exports.IkasPaymentMethodType||(exports.IkasPaymentMethodType={})).APP_PAYMENT="APP_PAYMENT",E.BANK_REDIRECT="BANK_REDIRECT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.DIRECT_DEBIT="DIRECT_DEBIT",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.PAY_LATER="PAY_LATER",E.SLICE_IT="SLICE_IT",E.WALLET="WALLET",exports.IkasPaymentGatewayType=void 0,(T=exports.IkasPaymentGatewayType||(exports.IkasPaymentGatewayType={})).EXTERNAL="EXTERNAL",T.INTERNAL="INTERNAL",T.THIRD_PARTY="THIRD_PARTY";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var a,e,p;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCampaignApplicablePrice=void 0,(a=exports.IkasCampaignApplicablePrice||(exports.IkasCampaignApplicablePrice={})).DISCOUNT_PRICE="DISCOUNT_PRICE",a.SELL_PRICE="SELL_PRICE",exports.IkasCampaignCreatedFor=void 0,(e=exports.IkasCampaignCreatedFor||(exports.IkasCampaignCreatedFor={})).ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",e.CART="CART",e.CUSTOMER_REVIEW="CUSTOMER_REVIEW",exports.IkasCampaignType=void 0,(p=exports.IkasCampaignType||(exports.IkasCampaignType={})).BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",p.FIXED_AMOUNT="FIXED_AMOUNT",p.FREE_SHIPPING="FREE_SHIPPING",p.RATIO="
|
|
1
|
+
"use strict";var a,e,p;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCampaignApplicablePrice=void 0,(a=exports.IkasCampaignApplicablePrice||(exports.IkasCampaignApplicablePrice={})).DISCOUNT_PRICE="DISCOUNT_PRICE",a.SELL_PRICE="SELL_PRICE",exports.IkasCampaignCreatedFor=void 0,(e=exports.IkasCampaignCreatedFor||(exports.IkasCampaignCreatedFor={})).ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",e.CART="CART",e.CUSTOMER_REVIEW="CUSTOMER_REVIEW",exports.IkasCampaignType=void 0,(p=exports.IkasCampaignType||(exports.IkasCampaignType={})).BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",p.FIXED_AMOUNT="FIXED_AMOUNT",p.FREE_SHIPPING="FREE_SHIPPING",p.RATIO="RATIO";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IkasCampaignType } from "../data";
|
|
2
|
+
import { IkasProductBuyXThenGetY } from "../product-buyx-then-gety";
|
|
3
|
+
import { IkasProductCampaignDateRangeField } from "../product-campaign-date-range-field";
|
|
4
|
+
import { IkasProductFixedDiscount } from "../product-fixed-discount";
|
|
5
|
+
export declare type IkasProductCampaignSearch = {
|
|
6
|
+
buyXThenGetY: IkasProductBuyXThenGetY;
|
|
7
|
+
currencyCodes: [string] | null;
|
|
8
|
+
dateRange: IkasProductCampaignDateRangeField | null;
|
|
9
|
+
fixedDiscount: IkasProductFixedDiscount | null;
|
|
10
|
+
salesChannelIds: string[] | null;
|
|
11
|
+
title: string;
|
|
12
|
+
type: IkasCampaignType;
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IkasProduct } from "..";
|
|
2
|
+
export declare type IkasProductCampaignOffer = {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type IkasProductOffer = {
|
|
6
|
+
campaignOfferId: string;
|
|
7
|
+
campaignOfferProductId: string;
|
|
8
|
+
product: IkasProduct;
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
quantity?: number;
|
|
11
|
+
};
|
|
@@ -23,6 +23,7 @@ export declare type IkasApplicableProductFilterValue = {
|
|
|
23
23
|
thumbnailImageId?: string | null;
|
|
24
24
|
thumbnailImage?: IkasImage | null;
|
|
25
25
|
resultCount?: number | null;
|
|
26
|
+
slug?: string | null;
|
|
26
27
|
isSelected: boolean;
|
|
27
28
|
};
|
|
28
29
|
export declare type IkasProductFilterValue = {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasProductGroupTranslation } from "./translation";
|
|
2
|
+
import { IkasProductGroupValue } from "./value";
|
|
3
|
+
export declare type IkasProductGroup = {
|
|
4
|
+
groupKey: string;
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
translations?: IkasProductGroupTranslation[] | null;
|
|
8
|
+
values: IkasProductGroupValue[];
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(n,t){var e;if(n.translations&&n.translations.some((function(n){return n.locale===t}))){var o=n.translations.find((function(n){return n.locale===t}));null===(e=null==o?void 0:o.values)||void 0===e||e.map((function(t){var e,o,a=n.values.find((function(n){return n.id===t.id}));a&&(a.name=null!==(e=t.name)&&void 0!==e?e:a.name,a.value=null!==(o=t.value)&&void 0!==o?o:a.value)}))}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasProductGroup=function(t,e){e&&n(t,e),delete t.translations},exports.setProductGroupTranslations=n;
|
|
@@ -9,6 +9,9 @@ import { IkasVariantValue } from "../variant-type/variant-value";
|
|
|
9
9
|
import { IkasVariantType } from "../variant-type";
|
|
10
10
|
import { IkasProductBaseUnit } from "./base-unit";
|
|
11
11
|
import { IkasProductStar } from "./star";
|
|
12
|
+
import { IkasProductCampaign } from "./campaign";
|
|
13
|
+
import { IkasProductCampaignOffer } from "./campaign-offer";
|
|
14
|
+
import { IkasProductGroup } from "./group";
|
|
12
15
|
export declare type IkasProduct = {
|
|
13
16
|
id: string;
|
|
14
17
|
name: string;
|
|
@@ -17,6 +20,7 @@ export declare type IkasProduct = {
|
|
|
17
20
|
shortDescription: string;
|
|
18
21
|
metaData: IkasHTMLMetaData | null;
|
|
19
22
|
brand: IkasBrand | null;
|
|
23
|
+
campaigns?: IkasProductCampaign[] | null;
|
|
20
24
|
categories: IkasCategory[];
|
|
21
25
|
deleted: boolean | null;
|
|
22
26
|
tags: IkasProductTag[] | null;
|
|
@@ -29,6 +33,10 @@ export declare type IkasProduct = {
|
|
|
29
33
|
reviewCount: number | null;
|
|
30
34
|
stars: IkasProductStar[] | null;
|
|
31
35
|
groupVariantsByVariantTypeId: string | null;
|
|
36
|
+
dynamicPriceListIds: string[] | null;
|
|
37
|
+
productVolumeDiscountId: string | null;
|
|
38
|
+
campaignOffers: IkasProductCampaignOffer[] | null;
|
|
39
|
+
productGroup: IkasProductGroup | null;
|
|
32
40
|
};
|
|
33
41
|
export declare enum IkasProductType {
|
|
34
42
|
PHYSICAL = "PHYSICAL",
|
|
@@ -45,3 +53,8 @@ export declare type IkasDisplayedVariantType = {
|
|
|
45
53
|
variantType: IkasVariantType;
|
|
46
54
|
displayedVariantValues: IkasDisplayedVariantValue[];
|
|
47
55
|
};
|
|
56
|
+
export declare type IkasAppliedCampaignOffer = {
|
|
57
|
+
campaignOfferId: string;
|
|
58
|
+
title: string | null;
|
|
59
|
+
description: string | null;
|
|
60
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./variant-type/init.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./variant-type/init.js"),r=require("./variant/init.js"),i=require("./attribute-value/init.js"),a=require("../brand/init.js"),e=require("../category/init.js"),n=require("../html-meta-data/init.js"),u=require("./group/init.js");exports.initIkasProduct=function(o,s){o.metaData&&n.initIkasHTMLMetaData(o.metaData,s),o.brand&&a.initIkasBrand(o.brand,s),o.categories.forEach((function(t){return e.initIkasCategory(t,s)})),o.variants.forEach(r.initIkasProductVariant),o.attributes.forEach(i.initIkasProductAttributeValue),o.variantTypes.forEach(t.initIkasProductVariantType),o.productGroup&&u.initIkasProductGroup(o.productGroup,s)};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type IkasBundleProduct = {
|
|
2
|
+
id: string;
|
|
3
|
+
addToBundleBasePrice: boolean | null;
|
|
4
|
+
discountRatio: number | null;
|
|
5
|
+
filteredVariantIds: string[];
|
|
6
|
+
maxQuantity: number | null;
|
|
7
|
+
minQuantity: number | null;
|
|
8
|
+
order: number;
|
|
9
|
+
productId: string;
|
|
10
|
+
quantity: number;
|
|
11
|
+
};
|
|
@@ -4,13 +4,16 @@ import { IkasProductAttributeValue } from "../attribute-value";
|
|
|
4
4
|
import { IkasProductCampaign } from "../campaign";
|
|
5
5
|
import { IkasProductImage } from "../image";
|
|
6
6
|
import { IkasProductVariantUnit } from "./unit";
|
|
7
|
+
import { IkasBundleSettings } from "./bundle-settings";
|
|
7
8
|
export declare type IkasProductVariant = {
|
|
8
9
|
id: string;
|
|
9
10
|
sku: string | null;
|
|
10
11
|
barcodeList: string[] | null;
|
|
12
|
+
baseBundlePrices: IkasProductPrice[] | null;
|
|
11
13
|
variantValues: IkasVariantValue[];
|
|
12
14
|
attributes: IkasProductAttributeValue[];
|
|
13
|
-
price
|
|
15
|
+
price?: IkasProductPrice;
|
|
16
|
+
prices: IkasProductPrice[];
|
|
14
17
|
stock: number;
|
|
15
18
|
isActive: boolean;
|
|
16
19
|
productId: string;
|
|
@@ -18,4 +21,5 @@ export declare type IkasProductVariant = {
|
|
|
18
21
|
images: IkasProductImage[] | null;
|
|
19
22
|
campaigns?: IkasProductCampaign[];
|
|
20
23
|
unit: IkasProductVariantUnit | null;
|
|
24
|
+
bundleSettings: IkasBundleSettings | null;
|
|
21
25
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { IkasProductCampaignPrice } from "./product-campaign-price";
|
|
1
2
|
export declare type IkasProductPrice = {
|
|
2
3
|
buyPrice: number | null;
|
|
4
|
+
campaignPrice: IkasProductCampaignPrice | null;
|
|
3
5
|
currency: string | null;
|
|
4
6
|
currencySymbol: string | null;
|
|
5
7
|
discountPrice: number | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type IkasStorefrontB2BSettings = {
|
|
2
|
+
allowOnlyApprovedCustomersToLogin: boolean;
|
|
3
|
+
showPrices: IkasStorefrontB2BShowPricesEnum;
|
|
4
|
+
showProducts: IkasStorefrontB2BShowProductsEnum;
|
|
5
|
+
};
|
|
6
|
+
export declare enum IkasStorefrontB2BShowPricesEnum {
|
|
7
|
+
ALWAYS = "ALWAYS",
|
|
8
|
+
NEVER = "NEVER",
|
|
9
|
+
ONLY_TO_CUSTOMERS = "ONLY_TO_CUSTOMERS"
|
|
10
|
+
}
|
|
11
|
+
export declare enum IkasStorefrontB2BShowProductsEnum {
|
|
12
|
+
ALWAYS = "ALWAYS",
|
|
13
|
+
ONLY_TO_CUSTOMERS = "ONLY_TO_CUSTOMERS"
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasStorefrontB2BShowPricesEnum=void 0,(o=exports.IkasStorefrontB2BShowPricesEnum||(exports.IkasStorefrontB2BShowPricesEnum={})).ALWAYS="ALWAYS",o.NEVER="NEVER",o.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS",exports.IkasStorefrontB2BShowProductsEnum=void 0,(r=exports.IkasStorefrontB2BShowProductsEnum||(exports.IkasStorefrontB2BShowProductsEnum={})).ALWAYS="ALWAYS",r.ONLY_TO_CUSTOMERS="ONLY_TO_CUSTOMERS";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasImage } from "../../image";
|
|
2
|
+
export declare type IkasIndexPageSeoSetting = {
|
|
3
|
+
canonicals: string[] | null;
|
|
4
|
+
createdAt: any | null;
|
|
5
|
+
deleted: boolean;
|
|
6
|
+
description: string | null;
|
|
7
|
+
disableIndex: boolean | null;
|
|
8
|
+
favIcon: string | null;
|
|
9
|
+
id: string;
|
|
10
|
+
locale: string;
|
|
11
|
+
pageTitle: string | null;
|
|
12
|
+
slug: string | null;
|
|
13
|
+
updatedAt: any | null;
|
|
14
|
+
icon?: IkasImage | null;
|
|
15
|
+
};
|