@ikas/storefront 2.0.0-alpha.2 → 2.0.0-alpha.21
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 +10 -2
- package/build/__generated__/global-types.js +1 -1
- package/build/analytics/facebookPixel.js +1 -1
- package/build/analytics/googleTagManager.js +1 -1
- package/build/analytics/head/index.js +1 -1
- package/build/analytics/ikas.js +1 -1
- package/build/api/apollo.js +1 -1
- package/build/api/blog/__generated__/getBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogCategory.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +14 -16
- package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
- package/build/api/cart/__generated__/getCart.d.ts +2 -4
- package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -4
- package/build/api/category/__generated__/listCategory.d.ts +3 -3
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +2 -4
- package/build/api/checkout/__generated__/getOrder.d.ts +5 -11
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -1
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +5 -11
- package/build/api/customer/__generated__/customerLogin.d.ts +12 -5
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +161 -0
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +5 -11
- package/build/api/customer/__generated__/getMyCustomer.d.ts +4 -5
- package/build/api/customer/__generated__/registerCustomer.d.ts +12 -5
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +12 -5
- package/build/api/customer/index.d.ts +5 -0
- package/build/api/customer/index.js +1 -1
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +14 -16
- package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +3 -0
- package/build/api/raffle/__generated__/listRaffle.d.ts +14 -16
- package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +2 -2
- package/build/api/raffle/index.d.ts +1 -1
- package/build/api/raffle/index.js +1 -1
- package/build/api/variant-type/__generated__/listVariantType.d.ts +3 -7
- package/build/components/checkout/components/address-form/index.js +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
- package/build/components/checkout/components/cart-summary/index.js +1 -1
- package/build/components/checkout/components/step-container/index.js +1 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +2 -0
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
- package/build/components/checkout/steps/step-shipping/index.js +1 -1
- package/build/components/checkout/steps/step-success/index.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/page/ThemeComponent.js +1 -1
- package/build/components/page/head.js +1 -1
- package/build/components/page/index.js +1 -1
- package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -3
- package/build/components/page-editor/ThemeComponentEditor.js +1 -1
- package/build/components/page-editor/index.d.ts +3 -1
- package/build/components/page-editor/index.js +1 -1
- package/build/components/page-editor/loader/index.d.ts +5 -1
- package/build/components/page-editor/loader/index.js +1 -1
- package/build/components/page-editor/loader/style.module.scss.js +1 -1
- package/build/components/page-editor/model.d.ts +6 -4
- package/build/components/page-editor/model.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/entityStore.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/policies.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +1 -1
- package/build/ext/@apollo/client/core/ApolloClient.js +1 -1
- package/build/ext/@apollo/client/core/LocalState.js +1 -1
- package/build/ext/@apollo/client/core/ObservableQuery.js +1 -1
- package/build/ext/@apollo/client/core/QueryManager.js +1 -1
- package/build/ext/@apollo/client/errors/index.js +1 -1
- package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +15 -0
- package/build/ext/@apollo/client/link/context/index.js +1 -1
- package/build/ext/@apollo/client/link/core/ApolloLink.js +1 -1
- package/build/ext/@apollo/client/link/error/index.js +1 -1
- package/build/ext/@apollo/client/link/http/HttpLink.js +1 -1
- package/build/ext/@apollo/client/link/http/createHttpLink.js +1 -1
- package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +1 -1
- package/build/ext/@apollo/client/link/utils/createOperation.js +1 -1
- package/build/ext/@apollo/client/utilities/common/mergeDeep.js +1 -1
- package/build/ext/@apollo/client/utilities/graphql/fragments.js +1 -1
- package/build/ext/@apollo/client/utilities/graphql/transform.js +1 -1
- package/build/ext/@apollo/client/utilities/observables/Concast.js +1 -1
- package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +15 -0
- package/build/ext/ts-invariant/lib/invariant.esm.js +1 -1
- package/build/ext/tslib/tslib.es6.js +1 -1
- package/build/ikas.js +67 -2
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -1
- package/build/models/data/blog/index.js +1 -1
- package/build/models/data/brand/index.js +1 -1
- package/build/models/data/category/index.js +1 -1
- package/build/models/data/checkout/index.js +1 -1
- package/build/models/data/checkout-settings/index.d.ts +1 -1
- package/build/models/data/checkout-settings/index.js +1 -1
- package/build/models/data/customer/address/index.d.ts +4 -1
- package/build/models/data/customer/address/index.js +1 -1
- package/build/models/data/image/index.js +1 -1
- package/build/models/data/index.d.ts +1 -0
- package/build/models/data/language/index.d.ts +6 -0
- package/build/models/data/order/address/index.d.ts +2 -1
- package/build/models/data/order/address/index.js +1 -1
- package/build/models/data/order/index.js +1 -1
- package/build/models/data/order/line-item/variant/index.js +1 -1
- package/build/models/data/product/index.js +1 -1
- package/build/models/data/product-filter/index.js +1 -1
- package/build/models/data/product-option-set/index.d.ts +4 -0
- package/build/models/data/product-option-set/index.js +1 -1
- package/build/models/data/raffle/index.d.ts +2 -1
- package/build/models/data/raffle/index.js +1 -1
- package/build/models/data/slider/index.d.ts +5 -0
- package/build/models/data/slider/index.js +1 -0
- package/build/models/theme/component/index.d.ts +9 -0
- package/build/models/theme/component/index.js +1 -1
- package/build/models/theme/component/prop/index.d.ts +21 -0
- package/build/models/theme/component/prop/index.js +1 -1
- package/build/models/theme/custom-data/index.d.ts +20 -1
- package/build/models/theme/custom-data/index.js +1 -1
- package/build/models/theme/settings/color/index.d.ts +14 -0
- package/build/models/theme/settings/color/index.js +1 -0
- package/build/models/theme/settings/{prop/favicon → favicon}/index.d.ts +0 -0
- package/build/models/theme/settings/{prop/favicon → favicon}/index.js +0 -0
- package/build/models/theme/settings/font-family/index.d.ts +5 -0
- package/build/models/theme/settings/font-family/index.js +1 -0
- package/build/models/theme/settings/index.d.ts +4 -2
- package/build/models/theme/settings/index.js +1 -1
- package/build/models/ui/product-detail/index.js +1 -1
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/models/ui/product-list/index.js +1 -1
- package/build/models/ui/validator/form/account-info.js +1 -1
- package/build/models/ui/validator/form/address.js +1 -1
- package/build/models/ui/validator/form/register.js +1 -1
- package/build/pages/checkout.js +1 -1
- package/build/pages/editor.d.ts +4 -3
- package/build/pages/editor.js +1 -1
- package/build/providers/page-data-get.d.ts +1 -1
- package/build/providers/page-data-get.js +1 -1
- package/build/providers/page-data-init.d.ts +3 -1
- package/build/providers/page-data-init.js +1 -1
- package/build/providers/page-data-next.d.ts +2 -1
- package/build/providers/page-data-next.js +1 -1
- package/build/providers/prop-value/custom.d.ts +1 -0
- package/build/providers/prop-value/custom.js +1 -1
- package/build/providers/prop-value/slider.d.ts +11 -0
- package/build/providers/prop-value/slider.js +1 -0
- package/build/scripts/generators/api/index.d.ts +3 -3
- package/build/scripts/generators/api/index.js +1 -0
- package/build/scripts/generators/api/info.d.ts +4 -4
- package/build/scripts/generators/api/info.js +1 -0
- package/build/scripts/generators/components/index.d.ts +4 -4
- package/build/scripts/generators/components/index.js +1 -0
- package/build/scripts/generators/config/content.d.ts +4 -3
- package/build/scripts/generators/config/content.js +1 -0
- package/build/scripts/generators/config/index.d.ts +6 -6
- package/build/scripts/generators/config/index.js +1 -0
- package/build/scripts/generators/index.d.ts +7 -0
- package/build/scripts/generators/pages/index.d.ts +4 -4
- package/build/scripts/generators/pages/index.js +1 -0
- package/build/scripts/generators/pages/info.js +1 -0
- package/build/scripts/generators/store/content.js +1 -0
- package/build/scripts/generators/store/index.d.ts +2 -2
- package/build/scripts/generators/store/index.js +1 -0
- package/build/scripts/generators/theme/index.d.ts +4 -4
- package/build/scripts/generators/theme/index.js +1 -0
- package/build/scripts/generators/types/index.d.ts +15 -0
- package/build/scripts/generators/types/index.js +1 -0
- package/build/store/cart.d.ts +6 -7
- package/build/store/cart.js +1 -1
- package/build/store/customer.d.ts +19 -0
- package/build/store/customer.js +1 -1
- package/build/storefront/index.d.ts +5 -3
- package/build/storefront/index.js +1 -1
- package/build/utils/fs.d.ts +2 -2
- package/build/utils/fs.js +1 -0
- package/build/utils/google-fonts.d.ts +2 -0
- package/build/utils/google-fonts.js +1 -0
- package/package.json +8 -7
- package/build/models/theme/settings/prop/color/index.d.ts +0 -7
- package/build/models/theme/settings/prop/color/index.js +0 -1
|
@@ -33,6 +33,7 @@ export declare enum CancelledReasonEnum {
|
|
|
33
33
|
*/
|
|
34
34
|
export declare enum CartStatusEnum {
|
|
35
35
|
ACTIVE = "ACTIVE",
|
|
36
|
+
FREEZE = "FREEZE",
|
|
36
37
|
PASSIVE = "PASSIVE"
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
@@ -129,6 +130,7 @@ export declare enum OrderPackageFulfillStatusEnum {
|
|
|
129
130
|
DELIVERED = "DELIVERED",
|
|
130
131
|
ERROR = "ERROR",
|
|
131
132
|
FULFILLED = "FULFILLED",
|
|
133
|
+
READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
|
|
132
134
|
READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
|
|
133
135
|
REFUNDED = "REFUNDED",
|
|
134
136
|
REFUND_REJECTED = "REFUND_REJECTED",
|
|
@@ -148,6 +150,7 @@ export declare enum OrderPackageStatusEnum {
|
|
|
148
150
|
PARTIALLY_DELIVERED = "PARTIALLY_DELIVERED",
|
|
149
151
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
150
152
|
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
153
|
+
READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
|
|
151
154
|
READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
|
|
152
155
|
REFUNDED = "REFUNDED",
|
|
153
156
|
REFUND_REJECTED = "REFUND_REJECTED",
|
|
@@ -199,7 +202,8 @@ export declare enum PaymentMethodEnum {
|
|
|
199
202
|
CREDIT_CARD_ON_DELIVERY = "CREDIT_CARD_ON_DELIVERY",
|
|
200
203
|
GIFT_CARD = "GIFT_CARD",
|
|
201
204
|
MONEY_ORDER = "MONEY_ORDER",
|
|
202
|
-
OTHER = "OTHER"
|
|
205
|
+
OTHER = "OTHER",
|
|
206
|
+
WALLET = "WALLET"
|
|
203
207
|
}
|
|
204
208
|
/**
|
|
205
209
|
* ProductAttribute Types
|
|
@@ -241,6 +245,7 @@ export declare enum ProductFilterSortTypeEnum {
|
|
|
241
245
|
*/
|
|
242
246
|
export declare enum ProductFilterTypeEnum {
|
|
243
247
|
ATTRIBUTE = "ATTRIBUTE",
|
|
248
|
+
AVAILABLE_VARIANT_VALUE = "AVAILABLE_VARIANT_VALUE",
|
|
244
249
|
BRAND = "BRAND",
|
|
245
250
|
DISCOUNT_RATIO = "DISCOUNT_RATIO",
|
|
246
251
|
PRICE = "PRICE",
|
|
@@ -421,6 +426,8 @@ export interface CustomerAddressCityInput {
|
|
|
421
426
|
export interface CustomerAddressCountryInput {
|
|
422
427
|
code?: string | null;
|
|
423
428
|
id?: string | null;
|
|
429
|
+
iso2?: string | null;
|
|
430
|
+
iso3?: string | null;
|
|
424
431
|
name: string;
|
|
425
432
|
}
|
|
426
433
|
export interface CustomerAddressDistrictInput {
|
|
@@ -545,7 +552,7 @@ export interface RaffleMetadataTargetTypeEnumFilter {
|
|
|
545
552
|
in?: RaffleMetadataTargetTypeEnum[] | null;
|
|
546
553
|
}
|
|
547
554
|
export interface RaffleParticipantsInput {
|
|
548
|
-
|
|
555
|
+
appliedProduct: AppliedProductInput;
|
|
549
556
|
createdAt?: any | null;
|
|
550
557
|
deleted?: boolean | null;
|
|
551
558
|
email: string;
|
|
@@ -578,6 +585,7 @@ export interface SaveCheckoutInput {
|
|
|
578
585
|
shippingMethod: ShippingMethodEnum;
|
|
579
586
|
shippingSettingsId?: string | null;
|
|
580
587
|
shippingZoneRateId?: string | null;
|
|
588
|
+
stockLocationId?: string | null;
|
|
581
589
|
updatedAt?: any | null;
|
|
582
590
|
}
|
|
583
591
|
export interface SaveItemToCartInput {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,T,R,D,
|
|
1
|
+
var E,T,R,A,D,C,I,L,_,N,O,U,S,P,F,n,M,Y,H,B,V,o,t,c,f,i,u,G,W,K,Q,X,J,Z,r,a,e,p,v,x,b;!function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(E||(E={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(T||(T={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(A||(A={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(D||(D={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(C||(C={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(I||(I={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(L||(L={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(_||(_={})),function(E){E.COMPLETED="COMPLETED",E.KILLED="KILLED",E.OPEN="OPEN"}(N||(N={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(O||(O={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(U||(U={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(S||(S={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(P||(P={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED"}(F||(F={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(n||(n={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(M||(M={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(Y||(Y={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(H||(H={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(B||(B={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(V||(V={})),function(E){E.APP_PAYMENT="APP_PAYMENT",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.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.WALLET="WALLET"}(o||(o={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(t||(t={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(c||(c={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(f||(f={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.AVAILABLE_VARIANT_VALUE="AVAILABLE_VARIANT_VALUE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(i||(i={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(u||(u={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(G||(G={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(W||(W={})),function(E){E.RAFFLE="RAFFLE"}(K||(K={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(Q||(Q={})),function(E){E.ASC="ASC",E.DESC="DESC"}(X||(X={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE"}(J||(J={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(Z||(Z={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(r||(r={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(a||(a={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(e||(e={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(p||(p={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(v||(v={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(x||(x={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(b||(b={}));export{E as AdjustmentEnum,T as AmountTypeEnum,R as BlogMetadataTargetTypeEnum,A as CancelledReasonEnum,D as CartStatusEnum,C as CategoryProductsOrderTypeEnum,I as CheckoutRecoveryEmailStatusEnum,L as CheckoutRecoveryStatusEnum,_ as CheckoutRequirementEnum,N as CheckoutStatusEnum,O as CustomerAccountStatusEnum,U as CustomerEmailSubscriptionStatusesEnum,S as HTMLMetaDataTargetTypeEnum,P as OrderLineItemStatusEnum,F as OrderPackageFulfillStatusEnum,n as OrderPackageStatusEnum,M as OrderPaymentStatusEnum,Y as OrderStatusEnum,H as PaymentGatewayAdditionalPriceTypeEnum,B as PaymentGatewayTransactionFeeTypeEnum,V as PaymentGatewayTypeEnum,o as PaymentMethodEnum,t as ProductAttributeTypeEnum,c as ProductFilterDisplayTypeEnum,f as ProductFilterSortTypeEnum,i as ProductFilterTypeEnum,u as ProductOptionSelectTypeEnum,G as ProductOptionTypeEnum,W as ProductSearchShowStockOptionEnum,K as RaffleMetadataTargetTypeEnum,Q as ShippingMethodEnum,X as SortByDirectionEnum,J as SortByTypeEnum,Z as StorefrontStatusTypes,r as StorefrontThemeStatus,a as TransactionCardAssociationEnum,e as TransactionCardTypeEnum,p as TransactionStatusEnum,v as TransactionTypeEnum,x as VariantSelectionTypeEnum,b as VerificationTypeEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",function(t,n){return{content_name:t.product.name,content_category:t.product.categories.length>0?t.product.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[t.selectedVariant.id],content_type:"product",value:t.selectedVariant.price.finalPrice,currency:""===t.selectedVariant.price.currency?"TRY":t.selectedVariant.price.currency}}(t)))}catch(t){console.error(t)}},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",(o=t,{content_name:o.variant.name,content_category:"",content_ids:[o.variant.id],content_type:"product",value:o.finalPrice,currency:o.currencyCode}),{eventID:e}))}catch(t){console.error(t)}var o},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.id),r.push({id:t.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n,r,e,o,c=[],i=[];return null===(n=t.cart)||void 0===n||n.items.map((function(t){c.push(t.id),i.push({id:t.id,quantity:t.quantity})})),{contents:i,content_category:"",content_type:"product_group",content_ids:c,currency:null===(r=t.cart)||void 0===r?void 0:r.items[0].currencyCode,value:null===(e=t.cart)||void 0===e?void 0:e.totalPrice,num_items:null===(o=t.cart)||void 0===o?void 0:o.items.length}}export{r as FacebookPixel};
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",function(t,n){return{content_name:t.product.name,content_category:t.product.categories.length>0?t.product.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[t.selectedVariant.id],content_type:"product",value:t.selectedVariant.price.finalPrice,currency:""===t.selectedVariant.price.currency?"TRY":t.selectedVariant.price.currency}}(t)))}catch(t){console.error(t)}},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",(o=t,{content_name:o.variant.name,content_category:"",content_ids:[o.variant.id],content_type:"product",value:o.finalPrice,currency:o.currencyCode}),{eventID:e}))}catch(t){console.error(t)}var o},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n,r,e,o,c=[],i=[];return null===(n=t.cart)||void 0===n||n.items.map((function(t){c.push(t.variant.id),i.push({id:t.variant.id,quantity:t.quantity})})),{contents:i,content_category:"",content_type:"product_group",content_ids:c,currency:null===(r=t.cart)||void 0===r?void 0:r.items[0].currencyCode,value:null===(e=t.cart)||void 0===e?void 0:e.totalPrice,num_items:null===(o=t.cart)||void 0===o?void 0:o.items.length}}export{r as FacebookPixel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as e}from"mobx";import"../models/data/blog/index.js";import"../models/data/brand/index.js";import"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import"../models/data/raffle/index.js";import"../models/theme/theme.js";import"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import{IkasProductDetail as t}from"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import{CheckoutStep as r}from"../components/checkout/model.js";var o="undefined"==typeof window,
|
|
1
|
+
import{makeAutoObservable as e}from"mobx";import"../models/data/blog/index.js";import"../models/data/brand/index.js";import"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import"../models/data/raffle/index.js";import"../models/theme/theme.js";import"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import{IkasProductDetail as t}from"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import{CheckoutStep as r}from"../components/checkout/model.js";var o="undefined"==typeof window,a=function(){function a(){e(this)}return a.pageView=function(e){try{var t={event:"page-view",page:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a.productView=function(e){var t;try{var r={event:"view_item",ecommerce:{items:[i(e)],extraParams:{parent_id:e.product.id,currency:e.selectedVariant.price.currency,url:"https://".concat(window.location.hostname).concat(e.href),item_image:(null===(t=e.selectedVariant.mainImage)||void 0===t?void 0:t.src)||""}}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},a.addToCart=function(e,r){try{var a={event:"add_to_cart",ecommerce:{items:[e instanceof t?i(e,r):n(e,r)]}};return!o&&window.dataLayer&&window.dataLayer.push(a),a}catch(e){console.error(e)}},a.removeFromCart=function(e,r){try{var a={event:"remove_from_cart",ecommerce:{items:[e instanceof t?i(e,r):n(e,r)]}};return!o&&window.dataLayer&&window.dataLayer.push(a),a}catch(e){console.error(e)}},a.beginCheckout=function(e){var t;try{var r={event:"begin_checkout",ecommerce:{items:null===(t=e.cart)||void 0===t?void 0:t.items.map((function(e){return n(e,e.quantity)}))}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},a.purchase=function(e,t){var r,a,i;try{var d={event:"purchase",ecommerce:{purchase:{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+(null===(r=e.cart)||void 0===r?void 0:r.totalTax),shipping:""+e.shippingTotal,currency:null===(a=e.cart)||void 0===a?void 0:a.currencyCode,coupon:e.couponCode,items:null===(i=e.cart)||void 0===i?void 0:i.items.map((function(e){return n(e,e.quantity)}))}}};return!o&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},a.checkoutStep=function(e,t){var a,i="";t===r.INFO?i="checkout_info":t===r.SHIPPING?i="checkout_shipping":t===r.PAYMENT?i="checkout_payment":t===r.SUCCESS&&(i="checkout_success");try{var d={event:i,ecommerce:{items:null===(a=e.cart)||void 0===a?void 0:a.items.map((function(e){return n(e,e.quantity)}))}};return!o&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},a.disableHTML=function(){try{!o&&window.dataLayer&&window.dataLayer.push({"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts"]})}catch(e){console.error(e)}},a.completeRegistration=function(){try{var e={event:"customer_register"};return!o&&window.dataLayer&&window.dataLayer.push(e),e}catch(e){console.error(e)}},a.search=function(e){try{var t={event:"search",search_string:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a.viewCategory=function(e,t){try{var r={event:"view_category",ecommerce:{category:[{id:e.id,name:e.name,metaData:e.metaData,href:e.href,image:e.image,path:t}]}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},a.customerLogin=function(e){try{var t={event:"customer_login",email:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a.customerVisit=function(e){try{var t={event:"customer_visit",email:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a}();function i(e,t){var r;return void 0===t&&(t=1),{item_name:e.product.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(r=e.product.brand)||void 0===r?void 0:r.name)||"",item_category:e.product.categories.length?e.product.categories[0].name:"",item_category_2:e.product.categories.length>1?e.product.categories[1].name:"",item_category_3:e.product.categories.length>2?e.product.categories[2].name:"",item_category_4:e.product.categories.length>3?e.product.categories[3].name:"",item_variant:e.selectedVariant.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}function n(e,t){return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:e.variant.variantValues.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{a as GoogleTagManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{IkasStorefrontConfig as t}from"../../storefront/index.js";import n from'../../ext/html-react-parser/index.js';import{getIkasEventsScript as r}from"../events.js";var a
|
|
1
|
+
import*as e from"react";import{IkasStorefrontConfig as t}from"../../storefront/index.js";import n from'../../ext/html-react-parser/index.js';import{getIkasEventsScript as r}from"../events.js";import{observer as a}from"mobx-react-lite";var o=a((function(a){var o=a.blockHTML,s=t.gtmId,i=t.fbpId,c=t.storefrontJSScripts;return e.createElement(e.Fragment,null,o&&!t.isEditor&&e.createElement("script",{dangerouslySetInnerHTML:{__html:"dataLayer = [{'gtm.blocklist': ['html']}];"}}),s&&!t.isEditor&&e.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(s,"');")}}),i&&!t.isEditor&&e.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"!function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(i,"');\n fbq('track', 'PageView');")}}),n(r()),c.map((function(e){return n(e)})))})),s=function(){var n=t.gtmId,r=t.fbpId;return e.createElement(e.Fragment,null,n&&!t.isEditor&&e.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://www.googletagmanager.com/ns.html?id='.concat(n,'" height="0" width="0" style="display:none;visibility:hidden"></iframe>')}}),r&&!t.isEditor&&e.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<img height="1" width="1" style="display:none" \n src="https://www.facebook.com/tr?id='.concat(r,'&ev=PageView&noscript=1"/>')}}))};export{s as AnalyticsBody,o as AnalyticsHead};
|
package/build/analytics/ikas.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__assign as s}from'../ext/tslib/tslib.es6.js';import"../models/data/blog/index.js";import"../models/data/brand/index.js";import"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"mobx";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import"../models/data/raffle/index.js";import"../models/theme/theme.js";import{IkasThemePageType as i}from"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import{IkasStorefrontConfig as r}from"../storefront/index.js";import o from'../ext/uuid/dist/esm-browser/v4.js';var n,a;!function(t){t[t.SESSION_START=1]="SESSION_START",t[t.PAGE_VIEW=2]="PAGE_VIEW",t[t.PRODUCT_VIEW=3]="PRODUCT_VIEW",t[t.ADD_TO_CART=4]="ADD_TO_CART",t[t.VIEW_CART=5]="VIEW_CART",t[t.ORDER_SUCCESS=6]="ORDER_SUCCESS",t[t.BEGIN_CHECKOUT=7]="BEGIN_CHECKOUT",t[t.CHECKOUT_STEP=8]="CHECKOUT_STEP",t[t.CUSTOMER_REGISTER=9]="CUSTOMER_REGISTER",t[t.CUSTOMER_VISIT=10]="CUSTOMER_VISIT",t[t.CUSTOMER_LOGIN=11]="CUSTOMER_LOGIN",t[t.BRAND_VIEW=12]="BRAND_VIEW",t[t.CATEGORY_VIEW=13]="CATEGORY_VIEW"}(n||(n={})),function(t){t[t.INDEX=1]="INDEX",t[t.CATEGORY=2]="CATEGORY",t[t.BRAND=3]="BRAND",t[t.PRODUCT=4]="PRODUCT",t[t.CUSTOM=5]="CUSTOM",t[t.ACCOUNT=6]="ACCOUNT",t[t.ADDRESSES=7]="ADDRESSES",t[t.ORDERS=8]="ORDERS",t[t.ORDER_DETAIL=9]="ORDER_DETAIL",t[t.LOGIN=10]="LOGIN",t[t.REGISTER=11]="REGISTER",t[t.FORGOT_PASSWORD=12]="FORGOT_PASSWORD",t[t.RECOVER_PASSWORD=13]="RECOVER_PASSWORD",t[t.CART=14]="CART",t[t.FAVORITE_PRODUCTS=15]="FAVORITE_PRODUCTS",t[t.SEARCH=16]="SEARCH",t[t.NOT_FOUND=17]="NOT_FOUND",t[t.BLOG=18]="BLOG",t[t.BLOG_INDEX=19]="BLOG_INDEX",t[t.BLOG_CATEGORY=20]="BLOG_CATEGORY",t[t.CHECKOUT=21]="CHECKOUT"}(a||(a={}));var d=process.env.NEXT_PUBLIC_ANALYTICS_URL?process.env.NEXT_PUBLIC_ANALYTICS_URL+"/sendEvent":"https://0.myikas.com/sendEvent",c=function(){function c(){}return c.createSessionId=function(){try{var t={id:o(),expiry:Date.now()+this.EXPIRY_LENGTH};localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(t)),this.sessionId=t.id,this.sessionStart()}catch(t){console.error(t)}},c.checkSessionId=function(){try{var t=localStorage.getItem(this.SESSION_ID_KEY);if(t){var e=JSON.parse(t);e.expiry<Date.now()?this.createSessionId():(e.expiry=Date.now()+this.EXPIRY_LENGTH,localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(e)),this.sessionId=e.id)}else this.createSessionId()}catch(t){console.error(t)}},c.checkVisitorId=function(){try{var t=localStorage.getItem(this.VISITOR_ID_KEY);t?this.visitorId=t:(this.visitorId=o(),localStorage.setItem(this.VISITOR_ID_KEY,this.visitorId))}catch(t){console.error(t)}},c.getPageType=function(t){switch(t){case i.INDEX:return a.INDEX;case i.CATEGORY:return a.CATEGORY;case i.BRAND:return a.BRAND;case i.PRODUCT:return a.PRODUCT;case i.CUSTOM:return a.CUSTOM;case i.ACCOUNT:return a.ACCOUNT;case i.ADDRESSES:return a.ADDRESSES;case i.ORDERS:return a.ORDERS;case i.ORDER_DETAIL:return a.ORDER_DETAIL;case i.LOGIN:return a.LOGIN;case i.REGISTER:return a.REGISTER;case i.FORGOT_PASSWORD:return a.FORGOT_PASSWORD;case i.RECOVER_PASSWORD:return a.RECOVER_PASSWORD;case i.CART:return a.CART;case i.FAVORITE_PRODUCTS:return a.FAVORITE_PRODUCTS;case i.SEARCH:return a.SEARCH;case i.NOT_FOUND:return a.NOT_FOUND;case i.BLOG:return a.BLOG;case i.BLOG_INDEX:return a.BLOG_INDEX;case i.BLOG_CATEGORY:return a.BLOG_CATEGORY;case i.CHECKOUT:return a.CHECKOUT}},c.getCustomerData=function(){var t=r.store.customerStore.customer;return{id:null==t?void 0:t.id,e:null==t?void 0:t.email,c:r.store.customerStore.customerConsentGranted}},c.getCommonEventData=function(){return{u:window.location.href,r:document.referrer,pt:r.store.currentPageType?this.getPageType(r.store.currentPageType):void 0}},c.sendEvents=function(s){var i;return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this.checkSessionId(),this.checkVisitorId(),t={e:s,scid:r.salesChannelId,sfid:r.storefrontId,sid:this.sessionId,vid:this.visitorId,cid:null===(i=r.store.customerStore.customer)||void 0===i?void 0:i.id},[4,fetch(d,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","x-api-key":r.config.apiKey}})];case 1:return e.sent(),[3,3];case 2:return o=e.sent(),console.error(o),[3,3];case 3:return[2]}}))}))},c.sessionStart=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.SESSION_START,ts:Date.now(),d:s({},this.getCommonEventData())},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.pageView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PAGE_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{pt:this.getPageType(i)})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.productView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PRODUCT_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{pr:{id:i.product.id,vid:i.selectedVariant.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.addToCart=function(i,r,o){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ADD_TO_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:o.id,c:o.itemCount},crtItm:{id:i.id,c:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCart=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.VIEW_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:i.id,c:i.itemCount}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.orderSuccess=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ORDER_SUCCESS,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:"success"}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.beginCheckout=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BEGIN_CHECKOUT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.checkoutStep=function(i,r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CHECKOUT_STEP,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerRegister=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_REGISTER,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerLogin=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_LOGIN,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerVisit=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_VISIT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewBrand=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BRAND_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),br:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCategory=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CATEGORY_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),ctg:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.SESSION_ID_KEY="ikas_session_id",c.VISITOR_ID_KEY="ikas_visitor_id",c.EXPIRY_LENGTH=18e5,c}();export{c as default};
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as s}from'../ext/tslib/tslib.es6.js';import"../models/data/blog/index.js";import"../models/data/brand/index.js";import"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"mobx";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import"../models/data/raffle/index.js";import"../models/theme/theme.js";import{IkasThemePageType as i}from"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import{IkasStorefrontConfig as r}from"../storefront/index.js";import o from'../ext/uuid/dist/esm-browser/v4.js';var n,a;!function(t){t[t.SESSION_START=1]="SESSION_START",t[t.PAGE_VIEW=2]="PAGE_VIEW",t[t.PRODUCT_VIEW=3]="PRODUCT_VIEW",t[t.ADD_TO_CART=4]="ADD_TO_CART",t[t.VIEW_CART=5]="VIEW_CART",t[t.ORDER_SUCCESS=6]="ORDER_SUCCESS",t[t.BEGIN_CHECKOUT=7]="BEGIN_CHECKOUT",t[t.CHECKOUT_STEP=8]="CHECKOUT_STEP",t[t.CUSTOMER_REGISTER=9]="CUSTOMER_REGISTER",t[t.CUSTOMER_VISIT=10]="CUSTOMER_VISIT",t[t.CUSTOMER_LOGIN=11]="CUSTOMER_LOGIN",t[t.BRAND_VIEW=12]="BRAND_VIEW",t[t.CATEGORY_VIEW=13]="CATEGORY_VIEW"}(n||(n={})),function(t){t[t.INDEX=1]="INDEX",t[t.CATEGORY=2]="CATEGORY",t[t.BRAND=3]="BRAND",t[t.PRODUCT=4]="PRODUCT",t[t.CUSTOM=5]="CUSTOM",t[t.ACCOUNT=6]="ACCOUNT",t[t.ADDRESSES=7]="ADDRESSES",t[t.ORDERS=8]="ORDERS",t[t.ORDER_DETAIL=9]="ORDER_DETAIL",t[t.LOGIN=10]="LOGIN",t[t.REGISTER=11]="REGISTER",t[t.FORGOT_PASSWORD=12]="FORGOT_PASSWORD",t[t.RECOVER_PASSWORD=13]="RECOVER_PASSWORD",t[t.CART=14]="CART",t[t.FAVORITE_PRODUCTS=15]="FAVORITE_PRODUCTS",t[t.SEARCH=16]="SEARCH",t[t.NOT_FOUND=17]="NOT_FOUND",t[t.BLOG=18]="BLOG",t[t.BLOG_INDEX=19]="BLOG_INDEX",t[t.BLOG_CATEGORY=20]="BLOG_CATEGORY",t[t.CHECKOUT=21]="CHECKOUT"}(a||(a={}));var d=process.env.NEXT_PUBLIC_ANALYTICS_URL?"".concat(process.env.NEXT_PUBLIC_ANALYTICS_URL,"/sendEvent"):"https://0.myikas.com/sendEvent",c=function(){function c(){}return c.createSessionId=function(){try{var t={id:o(),expiry:Date.now()+this.EXPIRY_LENGTH};localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(t)),this.sessionId=t.id,this.sessionStart()}catch(t){console.error(t)}},c.checkSessionId=function(){try{var t=localStorage.getItem(this.SESSION_ID_KEY);if(t){var e=JSON.parse(t);e.expiry<Date.now()?this.createSessionId():(e.expiry=Date.now()+this.EXPIRY_LENGTH,localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(e)),this.sessionId=e.id)}else this.createSessionId()}catch(t){console.error(t)}},c.checkVisitorId=function(){try{var t=localStorage.getItem(this.VISITOR_ID_KEY);t?this.visitorId=t:(this.visitorId=o(),localStorage.setItem(this.VISITOR_ID_KEY,this.visitorId))}catch(t){console.error(t)}},c.getPageType=function(t){switch(t){case i.INDEX:return a.INDEX;case i.CATEGORY:return a.CATEGORY;case i.BRAND:return a.BRAND;case i.PRODUCT:return a.PRODUCT;case i.CUSTOM:return a.CUSTOM;case i.ACCOUNT:return a.ACCOUNT;case i.ADDRESSES:return a.ADDRESSES;case i.ORDERS:return a.ORDERS;case i.ORDER_DETAIL:return a.ORDER_DETAIL;case i.LOGIN:return a.LOGIN;case i.REGISTER:return a.REGISTER;case i.FORGOT_PASSWORD:return a.FORGOT_PASSWORD;case i.RECOVER_PASSWORD:return a.RECOVER_PASSWORD;case i.CART:return a.CART;case i.FAVORITE_PRODUCTS:return a.FAVORITE_PRODUCTS;case i.SEARCH:return a.SEARCH;case i.NOT_FOUND:return a.NOT_FOUND;case i.BLOG:return a.BLOG;case i.BLOG_INDEX:return a.BLOG_INDEX;case i.BLOG_CATEGORY:return a.BLOG_CATEGORY;case i.CHECKOUT:return a.CHECKOUT}},c.getCustomerData=function(){var t=r.store.customerStore.customer;return{id:null==t?void 0:t.id,e:null==t?void 0:t.email,c:r.store.customerStore.customerConsentGranted}},c.getCommonEventData=function(){return{u:window.location.href,r:document.referrer,pt:r.store.currentPageType?this.getPageType(r.store.currentPageType):void 0}},c.sendEvents=function(s){var i;return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this.checkSessionId(),this.checkVisitorId(),t={e:s,scid:r.salesChannelId,sfid:r.storefrontId,sid:this.sessionId,vid:this.visitorId,cid:null===(i=r.store.customerStore.customer)||void 0===i?void 0:i.id},[4,fetch(d,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","x-api-key":r.config.apiKey}})];case 1:return e.sent(),[3,3];case 2:return o=e.sent(),console.error(o),[3,3];case 3:return[2]}}))}))},c.sessionStart=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.SESSION_START,ts:Date.now(),d:s({},this.getCommonEventData())},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.pageView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PAGE_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{pt:this.getPageType(i)})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.productView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PRODUCT_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{pr:{id:i.product.id,vid:i.selectedVariant.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.addToCart=function(i,r,o){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ADD_TO_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:o.id,c:o.itemCount},crtItm:{id:i.id,c:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCart=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.VIEW_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:i.id,c:i.itemCount}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.orderSuccess=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ORDER_SUCCESS,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:"success"}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.beginCheckout=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BEGIN_CHECKOUT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.checkoutStep=function(i,r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CHECKOUT_STEP,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerRegister=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_REGISTER,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerLogin=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_LOGIN,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerVisit=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_VISIT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewBrand=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BRAND_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),br:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCategory=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CATEGORY_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),ctg:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.SESSION_ID_KEY="ikas_session_id",c.VISITOR_ID_KEY="ikas_visitor_id",c.EXPIRY_LENGTH=18e5,c}();export{c as default};
|
package/build/api/apollo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'../ext/tslib/tslib.es6.js';import{onError as e}from'../ext/@apollo/client/link/error/index.js';import{setContext as n}from'../ext/@apollo/client/link/context/index.js';import{IkasStorefrontConfig as
|
|
1
|
+
import{__assign as o}from'../ext/tslib/tslib.es6.js';import{onError as e}from'../ext/@apollo/client/link/error/index.js';import{setContext as n}from'../ext/@apollo/client/link/context/index.js';import{IkasStorefrontConfig as t}from"../storefront/index.js";import{createHttpLink as r}from'../ext/@apollo/client/link/http/createHttpLink.js';import{ApolloClient as i}from'../ext/@apollo/client/core/ApolloClient.js';import{InMemoryCache as c}from'../ext/@apollo/client/cache/inmemory/inMemoryCache.js';var l=new function l(){var a=this;this.createApolloClient=function(d){var s=e((function(o){var e=o.graphQLErrors,n=(o.networkError,o.operation);e&&console.log(e);var t=null==e?void 0:e.some((function(o){var e;return"UNAUTHORIZED"===(null===(e=o.extensions)||void 0===e?void 0:e.code)}));t&&"undefined"!=typeof window&&"refreshToken"!==n.operationName&&(window.location.href="/account/login?redirect="+encodeURIComponent(window.location.pathname))})),p=n((function(e,n){var r=n.headers,i=o(o({},r),{"x-api-key":d||t.config.apiKey,"x-sfid":t.storefrontId,"x-sfrid":t.storefrontRoutingId});return l.customerToken&&(i.Authorization="Bearer "+l.customerToken),{headers:i}})),f=r({uri:t.apiUrlOverride||process.env.NEXT_PUBLIC_GQL_URL,fetch:function(o,e){var n=JSON.parse(e.body).operationName;return fetch("".concat(o,"?op=").concat(n),e)}});a._client=new i({link:p.concat(s).concat(f),cache:new c({addTypename:!1}),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})},this.setCustomerToken=function(o){l.customerToken=o,a._client&&a.createApolloClient("undefined"!=typeof window?window.editorApiKey:void 0)},this.getClient=function(){return a._client||a.createApolloClient("undefined"!=typeof window?window.editorApiKey:void 0),a._client}};export{l as apollo};
|
|
@@ -68,33 +68,31 @@ export interface getBlog_listBlog_data {
|
|
|
68
68
|
export interface getBlog_listBlog {
|
|
69
69
|
__typename: "BlogPaginationResponse";
|
|
70
70
|
/**
|
|
71
|
-
* Returns the first three records of each page in the records returned as a
|
|
72
|
-
*
|
|
73
|
-
* records that will return as a response are the records
|
|
71
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
72
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
73
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
74
74
|
*/
|
|
75
75
|
count: number;
|
|
76
76
|
data: getBlog_listBlog_data[];
|
|
77
77
|
/**
|
|
78
|
-
* In the records returned as Response, it shows whether there are any more
|
|
79
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
80
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
81
|
-
* ```true``` despite these records, ***it means there are more records.*** If
|
|
82
|
-
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
78
|
+
* In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
|
|
83
79
|
*/
|
|
84
80
|
hasNext: boolean;
|
|
85
81
|
/**
|
|
86
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* given. If no value is entered, default 50 is accepted
|
|
82
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
83
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
84
|
+
* :::note
|
|
85
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
86
|
+
* :::
|
|
90
87
|
*/
|
|
91
88
|
limit: number;
|
|
92
89
|
/**
|
|
93
90
|
* The number of the page you want to see in the records that return as response.
|
|
94
|
-
* For example: We entered the page field as
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
91
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
92
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
93
|
+
* :::note
|
|
94
|
+
* If no value is entered, default 1 is accepted.
|
|
95
|
+
* :::
|
|
98
96
|
*/
|
|
99
97
|
page: number;
|
|
100
98
|
}
|
|
@@ -68,33 +68,31 @@ export interface listBlog_listBlog_data {
|
|
|
68
68
|
export interface listBlog_listBlog {
|
|
69
69
|
__typename: "BlogPaginationResponse";
|
|
70
70
|
/**
|
|
71
|
-
* Returns the first three records of each page in the records returned as a
|
|
72
|
-
*
|
|
73
|
-
* records that will return as a response are the records
|
|
71
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
72
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
73
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
74
74
|
*/
|
|
75
75
|
count: number;
|
|
76
76
|
data: listBlog_listBlog_data[];
|
|
77
77
|
/**
|
|
78
|
-
* In the records returned as Response, it shows whether there are any more
|
|
79
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
80
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
81
|
-
* ```true``` despite these records, ***it means there are more records.*** If
|
|
82
|
-
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
78
|
+
* In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
|
|
83
79
|
*/
|
|
84
80
|
hasNext: boolean;
|
|
85
81
|
/**
|
|
86
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* given. If no value is entered, default 50 is accepted
|
|
82
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
83
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
84
|
+
* :::note
|
|
85
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
86
|
+
* :::
|
|
90
87
|
*/
|
|
91
88
|
limit: number;
|
|
92
89
|
/**
|
|
93
90
|
* The number of the page you want to see in the records that return as response.
|
|
94
|
-
* For example: We entered the page field as
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
91
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
92
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
93
|
+
* :::note
|
|
94
|
+
* If no value is entered, default 1 is accepted.
|
|
95
|
+
* :::
|
|
98
96
|
*/
|
|
99
97
|
page: number;
|
|
100
98
|
}
|
|
@@ -24,33 +24,31 @@ export interface listBlogCategory_listBlogCategory_data {
|
|
|
24
24
|
export interface listBlogCategory_listBlogCategory {
|
|
25
25
|
__typename: "BlogCategoryPaginationResponse";
|
|
26
26
|
/**
|
|
27
|
-
* Returns the first three records of each page in the records returned as a
|
|
28
|
-
*
|
|
29
|
-
* records that will return as a response are the records
|
|
27
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
28
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
29
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
30
30
|
*/
|
|
31
31
|
count: number;
|
|
32
32
|
data: listBlogCategory_listBlogCategory_data[];
|
|
33
33
|
/**
|
|
34
|
-
* In the records returned as Response, it shows whether there are any more
|
|
35
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
36
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
37
|
-
* ```true``` despite these records, ***it means there are more records.*** If
|
|
38
|
-
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
34
|
+
* In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
|
|
39
35
|
*/
|
|
40
36
|
hasNext: boolean;
|
|
41
37
|
/**
|
|
42
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* given. If no value is entered, default 50 is accepted
|
|
38
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
39
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
40
|
+
* :::note
|
|
41
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
42
|
+
* :::
|
|
46
43
|
*/
|
|
47
44
|
limit: number;
|
|
48
45
|
/**
|
|
49
46
|
* The number of the page you want to see in the records that return as response.
|
|
50
|
-
* For example: We entered the page field as
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
47
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
48
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
49
|
+
* :::note
|
|
50
|
+
* If no value is entered, default 1 is accepted.
|
|
51
|
+
* :::
|
|
54
52
|
*/
|
|
55
53
|
page: number;
|
|
56
54
|
}
|
|
@@ -14,33 +14,31 @@ export interface listBlogMetaData_listBlogMetadata_data {
|
|
|
14
14
|
export interface listBlogMetaData_listBlogMetadata {
|
|
15
15
|
__typename: "BlogMetadataPaginationResponse";
|
|
16
16
|
/**
|
|
17
|
-
* Returns the first three records of each page in the records returned as a
|
|
18
|
-
*
|
|
19
|
-
* records that will return as a response are the records
|
|
17
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
18
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
19
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
20
20
|
*/
|
|
21
21
|
count: number;
|
|
22
22
|
data: listBlogMetaData_listBlogMetadata_data[];
|
|
23
23
|
/**
|
|
24
|
-
* In the records returned as Response, it shows whether there are any more
|
|
25
|
-
* records or not. For example, let's say our page field is three and our limit
|
|
26
|
-
* field is thirty. Records between 60 and 90 will be returned. If hasNext is
|
|
27
|
-
* ```true``` despite these records, ***it means there are more records.*** If
|
|
28
|
-
* hasNext is ```false```, it means there are a total of ***90 records.***
|
|
24
|
+
* In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
|
|
29
25
|
*/
|
|
30
26
|
hasNext: boolean;
|
|
31
27
|
/**
|
|
32
|
-
* The maximum number of data you want to see on a page in the records returned
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* given. If no value is entered, default 50 is accepted
|
|
28
|
+
* The maximum number of data you want to see on a page in the records returned as a response.
|
|
29
|
+
* For example, if the limit is **20**, the data will be displayed ** as 20 each. **
|
|
30
|
+
* :::note
|
|
31
|
+
* min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
|
|
32
|
+
* :::
|
|
36
33
|
*/
|
|
37
34
|
limit: number;
|
|
38
35
|
/**
|
|
39
36
|
* The number of the page you want to see in the records that return as response.
|
|
40
|
-
* For example: We entered the page field as
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
37
|
+
* For example: We entered the page field as **3**.And let our limit field be **30**.
|
|
38
|
+
* The records that will return as a response are the records **between 60-90.**
|
|
39
|
+
* :::note
|
|
40
|
+
* If no value is entered, default 1 is accepted.
|
|
41
|
+
* :::
|
|
44
42
|
*/
|
|
45
43
|
page: number;
|
|
46
44
|
}
|
|
@@ -71,9 +71,9 @@ export interface listProductBrand_listProductBrand {
|
|
|
71
71
|
__typename: "ProductBrandPaginationResponse";
|
|
72
72
|
data: listProductBrand_listProductBrand_data[];
|
|
73
73
|
/**
|
|
74
|
-
* Returns the first three records of each page in the records returned as a
|
|
75
|
-
*
|
|
76
|
-
* records that will return as a response are the records
|
|
74
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
75
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
76
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
77
77
|
*/
|
|
78
78
|
count: number;
|
|
79
79
|
}
|
|
@@ -105,8 +105,7 @@ export interface getCart_getCart_items {
|
|
|
105
105
|
*/
|
|
106
106
|
discountPrice: number | null;
|
|
107
107
|
/**
|
|
108
|
-
* It is the final price of the order line item. If the discount price is less
|
|
109
|
-
* than the sell price, the final price is equal to the discount price.
|
|
108
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
110
109
|
*/
|
|
111
110
|
finalPrice: number | null;
|
|
112
111
|
id: string;
|
|
@@ -115,8 +114,7 @@ export interface getCart_getCart_items {
|
|
|
115
114
|
*/
|
|
116
115
|
options: getCart_getCart_items_options[] | null;
|
|
117
116
|
/**
|
|
118
|
-
* It is the original order line item id of the line item. If the line item is
|
|
119
|
-
* derived from another line item, this field is filled.
|
|
117
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
120
118
|
*/
|
|
121
119
|
originalOrderLineItemId: string | null;
|
|
122
120
|
/**
|
|
@@ -117,8 +117,7 @@ export interface saveItemToCart_saveItemToCart_items {
|
|
|
117
117
|
*/
|
|
118
118
|
discountPrice: number | null;
|
|
119
119
|
/**
|
|
120
|
-
* It is the final price of the order line item. If the discount price is less
|
|
121
|
-
* than the sell price, the final price is equal to the discount price.
|
|
120
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
122
121
|
*/
|
|
123
122
|
finalPrice: number | null;
|
|
124
123
|
id: string;
|
|
@@ -127,8 +126,7 @@ export interface saveItemToCart_saveItemToCart_items {
|
|
|
127
126
|
*/
|
|
128
127
|
options: saveItemToCart_saveItemToCart_items_options[] | null;
|
|
129
128
|
/**
|
|
130
|
-
* It is the original order line item id of the line item. If the line item is
|
|
131
|
-
* derived from another line item, this field is filled.
|
|
129
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
132
130
|
*/
|
|
133
131
|
originalOrderLineItemId: string | null;
|
|
134
132
|
/**
|
|
@@ -82,9 +82,9 @@ export interface listCategory_listCategory {
|
|
|
82
82
|
__typename: "CategoryPaginationResponse";
|
|
83
83
|
data: listCategory_listCategory_data[];
|
|
84
84
|
/**
|
|
85
|
-
* Returns the first three records of each page in the records returned as a
|
|
86
|
-
*
|
|
87
|
-
* records that will return as a response are the records
|
|
85
|
+
* Returns the first three records of each page in the records returned as a response.
|
|
86
|
+
* For example, **let's say page = 3, limit = 30, count = 3.**
|
|
87
|
+
* The records that will return as a response are the records **between 60-62.**
|
|
88
88
|
*/
|
|
89
89
|
count: number;
|
|
90
90
|
}
|
|
@@ -425,14 +425,12 @@ export interface getCheckoutById_getCheckoutById_cart_items {
|
|
|
425
425
|
*/
|
|
426
426
|
discountPrice: number | null;
|
|
427
427
|
/**
|
|
428
|
-
* It is the final price of the order line item. If the discount price is less
|
|
429
|
-
* than the sell price, the final price is equal to the discount price.
|
|
428
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
430
429
|
*/
|
|
431
430
|
finalPrice: number | null;
|
|
432
431
|
id: string;
|
|
433
432
|
/**
|
|
434
|
-
* It is the original order line item id of the line item. If the line item is
|
|
435
|
-
* derived from another line item, this field is filled.
|
|
433
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
436
434
|
*/
|
|
437
435
|
originalOrderLineItemId: string | null;
|
|
438
436
|
/**
|
|
@@ -276,14 +276,12 @@ export interface getOrder_getOrder_orderLineItems {
|
|
|
276
276
|
*/
|
|
277
277
|
discountPrice: number | null;
|
|
278
278
|
/**
|
|
279
|
-
* It is the final price of the order line item. If the discount price is less
|
|
280
|
-
* than the sell price, the final price is equal to the discount price.
|
|
279
|
+
* It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
|
|
281
280
|
*/
|
|
282
281
|
finalPrice: number | null;
|
|
283
282
|
id: string;
|
|
284
283
|
/**
|
|
285
|
-
* It is the original order line item id of the line item. If the line item is
|
|
286
|
-
* derived from another line item, this field is filled.
|
|
284
|
+
* It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
|
|
287
285
|
*/
|
|
288
286
|
originalOrderLineItemId: string | null;
|
|
289
287
|
/**
|
|
@@ -331,8 +329,7 @@ export interface getOrder_getOrder_orderPackages_trackingInfo {
|
|
|
331
329
|
*/
|
|
332
330
|
trackingLink: string | null;
|
|
333
331
|
/**
|
|
334
|
-
* Indicates whether the notification is sent to the customer after the cargo is
|
|
335
|
-
* delivered. ***isSendNotification*** returns true if the notification is sent.
|
|
332
|
+
* Indicates whether the notification is sent to the customer after the cargo is delivered. **isSendNotification** returns true if the notification is sent.
|
|
336
333
|
*/
|
|
337
334
|
isSendNotification: boolean | null;
|
|
338
335
|
/**
|
|
@@ -537,8 +534,7 @@ export interface getOrder_getOrder {
|
|
|
537
534
|
*/
|
|
538
535
|
currencyRates: getOrder_getOrder_currencyRates[];
|
|
539
536
|
/**
|
|
540
|
-
* Information about the customer. The order does not have to be a customer
|
|
541
|
-
* information. If the order was created by ikasPOS, the customer information may be null.
|
|
537
|
+
* Information about the customer. The order does not have to be a customer information. If the order was created by ikasPOS, the customer information may be null.
|
|
542
538
|
*/
|
|
543
539
|
customer: getOrder_getOrder_customer | null;
|
|
544
540
|
deleted: boolean | null;
|
|
@@ -601,9 +597,7 @@ export interface getOrder_getOrder {
|
|
|
601
597
|
*/
|
|
602
598
|
taxLines: getOrder_getOrder_taxLines[] | null;
|
|
603
599
|
/**
|
|
604
|
-
* The total final price of the order resulting from the apply of
|
|
605
|
-
* ``orderAdjustments`` , ```shippingLines```, and ```giftPackageLines```
|
|
606
|
-
* pricing to the order total price.
|
|
600
|
+
* The total final price of the order resulting from the apply of `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the order total price.
|
|
607
601
|
*/
|
|
608
602
|
totalFinalPrice: number;
|
|
609
603
|
/**
|
|
@@ -24,7 +24,7 @@ export interface listCheckoutSettings_listCheckoutSettings {
|
|
|
24
24
|
updatedAt: any | null;
|
|
25
25
|
isGiftPackageEnabled: boolean | null;
|
|
26
26
|
giftPackagePriceList: listCheckoutSettings_listCheckoutSettings_giftPackagePriceList[] | null;
|
|
27
|
-
|
|
27
|
+
postalCodeRequirement: CheckoutRequirementEnum | null;
|
|
28
28
|
}
|
|
29
29
|
export interface listCheckoutSettings {
|
|
30
30
|
listCheckoutSettings: listCheckoutSettings_listCheckoutSettings[];
|