@ikas/storefront 2.0.73 → 3.0.0-alpha.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/__generated__/global-types.d.ts +15 -72
- package/build/__generated__/global-types.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/analytics/analytics.d.ts +2 -3
- package/build/analytics/analytics.js +1 -1
- package/build/analytics/events.d.ts +1 -2
- package/build/analytics/events.js +1 -1
- package/build/analytics/googleTagManager.d.ts +0 -2
- 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/blog/__generated__/getBlog.d.ts +5 -1
- package/build/api/blog/__generated__/listBlog.d.ts +5 -1
- package/build/api/blog/__generated__/listBlogCategory.d.ts +5 -1
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +5 -3
- package/build/api/blog/index.js +1 -1
- package/build/api/brand/index.js +1 -1
- package/build/api/cart/__generated__/getCart.d.ts +4 -2
- package/build/api/cart/__generated__/saveItemToCart.d.ts +4 -25
- package/build/api/cart/index.d.ts +1 -3
- package/build/api/cart/index.js +1 -1
- package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -19
- package/build/api/category/index.js +1 -1
- package/build/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +1 -1
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -2
- package/build/api/checkout/__generated__/getOrder.d.ts +12 -6
- package/build/api/checkout/index.d.ts +1 -7
- package/build/api/checkout/index.js +1 -1
- package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -1
- package/build/api/contact-form/index.d.ts +1 -2
- package/build/api/contact-form/index.js +1 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +13 -7
- package/build/api/customer/__generated__/customerLogin.d.ts +2 -8
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +2 -8
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +12 -6
- package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -13
- package/build/api/customer/__generated__/registerCustomer.d.ts +3 -14
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +3 -13
- package/build/api/customer/index.d.ts +1 -3
- package/build/api/customer/index.js +1 -1
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +5 -1
- package/build/api/customer-review/index.js +1 -1
- package/build/api/favorite-product/index.js +1 -1
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +0 -8
- package/build/api/html-meta-data/index.js +1 -1
- package/build/api/index.d.ts +0 -1
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +0 -11
- package/build/api/merchant/index.js +1 -1
- package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +0 -6
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -1
- package/build/api/product-search/index.d.ts +1 -19
- package/build/api/product-search/index.js +1 -1
- package/build/api/raffle/__generated__/listRaffle.d.ts +5 -1
- package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +0 -2
- package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +6 -46
- package/build/api/raffle/index.d.ts +3 -7
- package/build/api/raffle/index.js +1 -1
- package/build/api/storefront/__generated__/getStorefront.d.ts +0 -3
- package/build/api/storefront/index.js +1 -1
- package/build/api/variant-type/__generated__/listVariantType.d.ts +6 -2
- package/build/assets/translations/checkout/en.js +1 -1
- package/build/assets/translations/checkout/tr.js +1 -1
- package/build/components/checkout/components/address-form/index.js +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +0 -3
- package/build/components/checkout/components/address-form/model.js +1 -1
- 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/cart-summary/style.module.scss.js +1 -1
- package/build/components/checkout/components/credit-card-form/index.js +1 -1
- package/build/components/checkout/components/customer-addresses/model.js +1 -1
- package/build/components/checkout/components/error/index.js +1 -1
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +5 -3
- package/build/components/checkout/components/error/no-shipping-error/index.js +1 -1
- package/build/components/checkout/components/form-item/index.js +1 -1
- package/build/components/checkout/components/form-item/model.js +1 -1
- package/build/components/checkout/components/form-item/style.module.scss.js +1 -1
- package/build/components/checkout/index.d.ts +0 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +3 -5
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/steps/step-info/index.js +1 -1
- package/build/components/checkout/steps/step-payment/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/image/index.d.ts +3 -29
- package/build/components/page/head.d.ts +0 -3
- package/build/components/page/head.js +1 -1
- package/build/components/page/index.d.ts +0 -3
- package/build/components/page/index.js +1 -1
- package/build/components/page-editor/ThemeComponentEditor.js +1 -1
- package/build/components/page-editor/model.js +1 -1
- package/build/ikas.js +7 -7
- package/build/index.js +1 -1
- package/build/models/data/blog/index.d.ts +0 -2
- package/build/models/data/blog/index.js +1 -1
- package/build/models/data/category/index.d.ts +0 -2
- package/build/models/data/category/index.js +1 -1
- package/build/models/data/checkout/index.d.ts +1 -1
- package/build/models/data/checkout/index.js +1 -1
- package/build/models/data/customer/index.d.ts +0 -2
- package/build/models/data/customer/index.js +1 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -2
- package/build/models/data/html-meta-data/index.js +1 -1
- package/build/models/data/image/index.d.ts +12 -3
- package/build/models/data/image/index.js +1 -1
- package/build/models/data/index.d.ts +1 -6
- package/build/models/data/merchant-settings/index.d.ts +0 -14
- package/build/models/data/merchant-settings/index.js +1 -1
- package/build/models/data/order/line-item/index.js +1 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -7
- package/build/models/data/order/line-item/variant/index.js +1 -1
- package/build/models/data/product/index.d.ts +1 -1
- package/build/models/data/product/index.js +1 -1
- package/build/models/data/product/variant/index.d.ts +1 -0
- package/build/models/data/product/variant/index.js +1 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -1
- package/build/models/data/product/variant-type/index.js +1 -1
- package/build/models/data/product-filter/index.d.ts +1 -3
- package/build/models/data/product-filter/index.js +1 -1
- package/build/models/data/product-option-set/index.js +1 -1
- package/build/models/data/raffle/index.d.ts +4 -12
- package/build/models/data/raffle/index.js +1 -1
- package/build/models/data/simple-product/index.d.ts +1 -1
- package/build/models/data/storefront/index.d.ts +0 -3
- package/build/models/data/storefront/index.js +1 -1
- package/build/models/data/storefront/theme-localization/index.js +1 -1
- package/build/models/theme/page/component/prop-value/product-list.d.ts +1 -2
- package/build/models/theme/page/component/prop-value/product-list.js +1 -1
- package/build/models/theme/page/index.d.ts +0 -2
- package/build/models/theme/page/index.js +1 -1
- package/build/models/theme/theme.js +1 -1
- package/build/models/ui/blog-category-list/index.js +1 -1
- package/build/models/ui/blog-list/index.js +1 -1
- package/build/models/ui/brand-list/index.js +1 -1
- package/build/models/ui/category-list/index.js +1 -1
- package/build/models/ui/customer-review-list/index.js +1 -1
- package/build/models/ui/index.d.ts +1 -2
- package/build/models/ui/product-detail/index.d.ts +3 -10
- package/build/models/ui/product-detail/index.js +1 -1
- package/build/models/ui/product-list/index.d.ts +1 -47
- package/build/models/ui/product-list/index.js +1 -1
- package/build/models/ui/raffle-list/index.js +1 -1
- package/build/models/ui/validator/form/account-info.d.ts +0 -2
- package/build/models/ui/validator/form/account-info.js +1 -1
- package/build/models/ui/validator/form/address.d.ts +0 -3
- package/build/models/ui/validator/form/address.js +1 -1
- package/build/models/ui/validator/form/contact-form.js +1 -1
- package/build/models/ui/validator/form/raffle-form.d.ts +0 -2
- package/build/models/ui/validator/form/raffle-form.js +1 -1
- package/build/models/ui/validator/form/register.d.ts +0 -4
- package/build/models/ui/validator/form/register.js +1 -1
- package/build/models/ui/validator/rules/index.d.ts +0 -5
- package/build/models/ui/validator/rules/index.js +1 -1
- package/build/pages/404.js +1 -1
- package/build/pages/_slug_/index.js +1 -1
- package/build/pages/account/addresses.js +1 -1
- package/build/pages/account/favorite-products.js +1 -1
- package/build/pages/account/forgot-password.js +1 -1
- package/build/pages/account/index.js +1 -1
- package/build/pages/account/login.js +1 -1
- package/build/pages/account/orders/_id_.js +1 -1
- package/build/pages/account/orders/index.js +1 -1
- package/build/pages/account/raffles.js +1 -1
- package/build/pages/account/recover-password.js +1 -1
- package/build/pages/account/register.js +1 -1
- package/build/pages/blog/_slug_.js +1 -1
- package/build/pages/blog/index.js +1 -1
- package/build/pages/cart.js +1 -1
- package/build/pages/checkout.js +1 -1
- package/build/pages/editor.js +1 -1
- package/build/pages/home.js +1 -1
- package/build/pages/pages/_slug_.js +1 -1
- package/build/pages/raffle/_slug_.js +1 -1
- package/build/pages/raffle/index.js +1 -1
- package/build/pages/search.js +1 -1
- package/build/providers/helpers/raffles.js +1 -1
- package/build/providers/page-data-get.d.ts +1 -9
- package/build/providers/page-data-get.js +1 -1
- package/build/providers/page-data-init.js +1 -1
- package/build/providers/page-data-next.d.ts +0 -36
- package/build/providers/page-data-next.js +1 -1
- package/build/providers/placeholders.js +1 -1
- package/build/providers/prop-value/attribute-list.js +1 -1
- package/build/providers/prop-value/attribute.js +1 -1
- package/build/providers/prop-value/blog-category-list.js +1 -1
- package/build/providers/prop-value/blog-category.js +1 -1
- package/build/providers/prop-value/blog-list.js +1 -1
- package/build/providers/prop-value/blog.js +1 -1
- package/build/providers/prop-value/brand-list.js +1 -1
- package/build/providers/prop-value/brand.js +1 -1
- package/build/providers/prop-value/category-list.js +1 -1
- package/build/providers/prop-value/category.js +1 -1
- package/build/providers/prop-value/custom.js +1 -1
- package/build/providers/prop-value/image-list.js +1 -1
- package/build/providers/prop-value/image.js +1 -1
- package/build/providers/prop-value/link.js +1 -1
- package/build/providers/prop-value/product-detail.js +1 -1
- package/build/providers/prop-value/product-list.d.ts +0 -6
- package/build/providers/prop-value/product-list.js +1 -1
- package/build/providers/prop-value/raffle-list.js +1 -1
- package/build/providers/prop-value/raffle.js +1 -1
- package/build/scripts/generators/types/index.js +1 -1
- package/build/store/base.d.ts +0 -2
- package/build/store/base.js +1 -1
- package/build/store/cart.d.ts +2 -24
- package/build/store/cart.js +1 -1
- package/build/store/customer.d.ts +3 -7
- package/build/store/customer.js +1 -1
- package/build/storefront/index.d.ts +2 -9
- package/build/storefront/index.js +1 -1
- package/build/utils/currency.d.ts +2 -2
- package/build/utils/currency.js +1 -1
- package/build/utils/helper.d.ts +0 -1
- package/build/utils/helper.js +1 -1
- package/build/utils/i18n.js +1 -1
- package/package.json +3 -1
- package/build/analytics/googleAnalytics.d.ts +0 -13
- package/build/analytics/googleAnalytics.js +0 -1
- package/build/analytics/googleUniversal.d.ts +0 -9
- package/build/analytics/googleUniversal.js +0 -1
- package/build/analytics/tiktokPixel.d.ts +0 -13
- package/build/analytics/tiktokPixel.js +0 -1
- package/build/api/customer/__generated__/getOrderByEmail.d.ts +0 -615
- package/build/api/customer-attribute/__generated__/listCustomerAttribute.d.ts +0 -44
- package/build/api/customer-attribute/index.d.ts +0 -4
- package/build/api/customer-attribute/index.js +0 -1
- package/build/api/customer-review-summary/__generated__/listCustomerReviewSummary.d.ts +0 -55
- package/build/api/customer-review-summary/index.d.ts +0 -21
- package/build/api/customer-review-summary/index.js +0 -1
- package/build/api/product-search/__generated__/getRelatedProducts.d.ts +0 -14
- package/build/api/raffle/__generated__/listRaffleParticipants.d.ts +0 -67
- package/build/api/raffle/__generated__/listStorefrontRaffle.d.ts +0 -82
- package/build/assets/translations/checkout/de.js +0 -1
- package/build/models/data/customer/attribute-value/index.d.ts +0 -9
- package/build/models/data/customer/attribute-value/index.js +0 -1
- package/build/models/data/customer-attribute/customer-attribute-option/index.d.ts +0 -5
- package/build/models/data/customer-attribute/customer-attribute-option/index.js +0 -1
- package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.d.ts +0 -17
- package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.js +0 -1
- package/build/models/data/customer-attribute/index.d.ts +0 -35
- package/build/models/data/customer-attribute/index.js +0 -1
- package/build/models/data/customer-review-summary/index.d.ts +0 -16
- package/build/models/data/customer-review-summary/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/utils/constants.d.ts +0 -2
- package/build/utils/constants.js +0 -1
|
@@ -114,10 +114,6 @@ export declare enum CheckoutStatusEnum {
|
|
|
114
114
|
KILLED = "KILLED",
|
|
115
115
|
OPEN = "OPEN"
|
|
116
116
|
}
|
|
117
|
-
export declare enum CurrencyFormatSymbolPosition {
|
|
118
|
-
LEFT = "LEFT",
|
|
119
|
-
RIGHT = "RIGHT"
|
|
120
|
-
}
|
|
121
117
|
/**
|
|
122
118
|
* Customer Account Statuses
|
|
123
119
|
*/
|
|
@@ -127,33 +123,6 @@ export declare enum CustomerAccountStatusEnum {
|
|
|
127
123
|
DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
|
|
128
124
|
INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT"
|
|
129
125
|
}
|
|
130
|
-
/**
|
|
131
|
-
* Customer Attribute Permission Types
|
|
132
|
-
*/
|
|
133
|
-
export declare enum CustomerAttributePermissionEnum {
|
|
134
|
-
INVISIBLE = "INVISIBLE",
|
|
135
|
-
READ = "READ",
|
|
136
|
-
WRITE = "WRITE"
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Customer Attribute Register Page Requirement Types
|
|
140
|
-
*/
|
|
141
|
-
export declare enum CustomerAttributeRegisterPageRequirementEnum {
|
|
142
|
-
INVISIBLE = "INVISIBLE",
|
|
143
|
-
MANDATORY = "MANDATORY",
|
|
144
|
-
OPTIONAL = "OPTIONAL"
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* CustomerAttribute Types
|
|
148
|
-
*/
|
|
149
|
-
export declare enum CustomerAttributeTypeEnum {
|
|
150
|
-
BOOLEAN = "BOOLEAN",
|
|
151
|
-
CHOICE = "CHOICE",
|
|
152
|
-
DATETIME = "DATETIME",
|
|
153
|
-
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
154
|
-
NUMERIC = "NUMERIC",
|
|
155
|
-
TEXT = "TEXT"
|
|
156
|
-
}
|
|
157
126
|
/**
|
|
158
127
|
* Customer Email Subscription Statuses
|
|
159
128
|
*/
|
|
@@ -201,8 +170,7 @@ export declare enum OrderPackageFulfillStatusEnum {
|
|
|
201
170
|
REFUNDED = "REFUNDED",
|
|
202
171
|
REFUND_REJECTED = "REFUND_REJECTED",
|
|
203
172
|
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
204
|
-
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED"
|
|
205
|
-
UNABLE_TO_DELIVER = "UNABLE_TO_DELIVER"
|
|
173
|
+
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED"
|
|
206
174
|
}
|
|
207
175
|
/**
|
|
208
176
|
* Order Package Status Enum
|
|
@@ -216,7 +184,6 @@ export declare enum OrderPackageStatusEnum {
|
|
|
216
184
|
PARTIALLY_CANCELLED = "PARTIALLY_CANCELLED",
|
|
217
185
|
PARTIALLY_DELIVERED = "PARTIALLY_DELIVERED",
|
|
218
186
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
219
|
-
PARTIALLY_READY_FOR_SHIPMENT = "PARTIALLY_READY_FOR_SHIPMENT",
|
|
220
187
|
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
221
188
|
READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
|
|
222
189
|
READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
|
|
@@ -281,7 +248,6 @@ export declare enum ProductAttributeTypeEnum {
|
|
|
281
248
|
CHOICE = "CHOICE",
|
|
282
249
|
DATETIME = "DATETIME",
|
|
283
250
|
HTML = "HTML",
|
|
284
|
-
IMAGE = "IMAGE",
|
|
285
251
|
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
286
252
|
NUMERIC = "NUMERIC",
|
|
287
253
|
PRODUCT = "PRODUCT",
|
|
@@ -348,12 +314,6 @@ export declare enum ProductSearchShowStockOptionEnum {
|
|
|
348
314
|
export declare enum RaffleMetadataTargetTypeEnum {
|
|
349
315
|
RAFFLE = "RAFFLE"
|
|
350
316
|
}
|
|
351
|
-
export declare enum RaffleParticipantStatusEnum {
|
|
352
|
-
COMPLETED = "COMPLETED",
|
|
353
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
354
|
-
LOSER = "LOSER",
|
|
355
|
-
WINNER = "WINNER"
|
|
356
|
-
}
|
|
357
317
|
/**
|
|
358
318
|
* Shipping Method Enum
|
|
359
319
|
*/
|
|
@@ -439,9 +399,12 @@ export interface AppliedProductInput {
|
|
|
439
399
|
}
|
|
440
400
|
export interface BlogMetadataTargetTypeEnumFilter {
|
|
441
401
|
eq?: BlogMetadataTargetTypeEnum | null;
|
|
442
|
-
in?:
|
|
443
|
-
|
|
444
|
-
|
|
402
|
+
in?: BlogMetadataTargetTypeEnum[] | null;
|
|
403
|
+
}
|
|
404
|
+
export interface CartCampaignOfferInput {
|
|
405
|
+
accepted: boolean;
|
|
406
|
+
campaignOfferId: string;
|
|
407
|
+
campaignOfferProductId: string;
|
|
445
408
|
}
|
|
446
409
|
export interface CartLineItemInput {
|
|
447
410
|
id?: string | null;
|
|
@@ -473,9 +436,7 @@ export interface CreateCustomerEmailSubscriptionInput {
|
|
|
473
436
|
createdAt?: any | null;
|
|
474
437
|
deleted?: boolean | null;
|
|
475
438
|
email: string;
|
|
476
|
-
firstName?: string | null;
|
|
477
439
|
id?: string | null;
|
|
478
|
-
lastName?: string | null;
|
|
479
440
|
updatedAt?: any | null;
|
|
480
441
|
}
|
|
481
442
|
export interface CreateCustomerReviewInput {
|
|
@@ -483,10 +444,7 @@ export interface CreateCustomerReviewInput {
|
|
|
483
444
|
createdAt?: any | null;
|
|
484
445
|
customerId?: string | null;
|
|
485
446
|
deleted?: boolean | null;
|
|
486
|
-
email?: string | null;
|
|
487
|
-
firstName?: string | null;
|
|
488
447
|
id?: string | null;
|
|
489
|
-
lastName?: string | null;
|
|
490
448
|
orderId?: string | null;
|
|
491
449
|
orderNumber?: string | null;
|
|
492
450
|
productId: string;
|
|
@@ -495,13 +453,8 @@ export interface CreateCustomerReviewInput {
|
|
|
495
453
|
title?: string | null;
|
|
496
454
|
updatedAt?: any | null;
|
|
497
455
|
}
|
|
498
|
-
export interface CreateSaleTransactionMasterPassPaymentMethodDetail {
|
|
499
|
-
phoneNumber?: string | null;
|
|
500
|
-
savedCardName?: string | null;
|
|
501
|
-
}
|
|
502
456
|
export interface CreateSaleTransactionWithCheckoutInput {
|
|
503
457
|
checkoutId: string;
|
|
504
|
-
masterPassDetail?: CreateSaleTransactionMasterPassPaymentMethodDetail | null;
|
|
505
458
|
paymentGatewayId: string;
|
|
506
459
|
paymentMethodDetail?: PaymentMethodDetailInput | null;
|
|
507
460
|
}
|
|
@@ -527,11 +480,6 @@ export interface CustomerAddressStateInput {
|
|
|
527
480
|
id?: string | null;
|
|
528
481
|
name?: string | null;
|
|
529
482
|
}
|
|
530
|
-
export interface CustomerAttributeValueInput {
|
|
531
|
-
customerAttributeId?: string | null;
|
|
532
|
-
customerAttributeOptionId?: string | null;
|
|
533
|
-
value?: string | null;
|
|
534
|
-
}
|
|
535
483
|
export interface DateFilterInput {
|
|
536
484
|
eq?: any | null;
|
|
537
485
|
gt?: any | null;
|
|
@@ -539,8 +487,6 @@ export interface DateFilterInput {
|
|
|
539
487
|
in?: any[] | null;
|
|
540
488
|
lt?: any | null;
|
|
541
489
|
lte?: any | null;
|
|
542
|
-
ne?: any | null;
|
|
543
|
-
nin?: any[] | null;
|
|
544
490
|
}
|
|
545
491
|
export interface GetOrderLineFile {
|
|
546
492
|
url: string;
|
|
@@ -552,9 +498,7 @@ export interface GetProductCampaignsInput {
|
|
|
552
498
|
}
|
|
553
499
|
export interface HTMLMetaDataTargetTypeEnumFilter {
|
|
554
500
|
eq?: HTMLMetaDataTargetTypeEnum | null;
|
|
555
|
-
in?:
|
|
556
|
-
ne?: HTMLMetaDataTargetTypeEnum | null;
|
|
557
|
-
nin?: (HTMLMetaDataTargetTypeEnum | null)[] | null;
|
|
501
|
+
in?: HTMLMetaDataTargetTypeEnum[] | null;
|
|
558
502
|
}
|
|
559
503
|
export interface ListCustomerReviewInput {
|
|
560
504
|
salesChannelId: string;
|
|
@@ -653,18 +597,20 @@ export interface ProductLastViewedInput {
|
|
|
653
597
|
}
|
|
654
598
|
export interface RaffleMetadataTargetTypeEnumFilter {
|
|
655
599
|
eq?: RaffleMetadataTargetTypeEnum | null;
|
|
656
|
-
in?:
|
|
657
|
-
ne?: RaffleMetadataTargetTypeEnum | null;
|
|
658
|
-
nin?: (RaffleMetadataTargetTypeEnum | null)[] | null;
|
|
600
|
+
in?: RaffleMetadataTargetTypeEnum[] | null;
|
|
659
601
|
}
|
|
660
602
|
export interface RaffleParticipantsInput {
|
|
661
603
|
appliedProduct: AppliedProductInput;
|
|
604
|
+
createdAt?: any | null;
|
|
605
|
+
deleted?: boolean | null;
|
|
662
606
|
email: string;
|
|
663
607
|
extraData?: any | null;
|
|
664
608
|
firstName: string;
|
|
609
|
+
id?: string | null;
|
|
665
610
|
lastName: string;
|
|
666
611
|
phone?: string | null;
|
|
667
612
|
raffleId: string;
|
|
613
|
+
updatedAt?: any | null;
|
|
668
614
|
}
|
|
669
615
|
export interface RetrieveInstallmentInfoInput {
|
|
670
616
|
binNumber: string;
|
|
@@ -672,6 +618,7 @@ export interface RetrieveInstallmentInfoInput {
|
|
|
672
618
|
price: number;
|
|
673
619
|
}
|
|
674
620
|
export interface SaveCheckoutInput {
|
|
621
|
+
adjustments?: OrderAdjustmentInput[] | null;
|
|
675
622
|
billingAddress?: OrderAddressInput | null;
|
|
676
623
|
cartId: string;
|
|
677
624
|
couponCode?: string | null;
|
|
@@ -682,7 +629,6 @@ export interface SaveCheckoutInput {
|
|
|
682
629
|
id?: string | null;
|
|
683
630
|
isGiftPackage?: boolean | null;
|
|
684
631
|
note?: string | null;
|
|
685
|
-
orderAdjustments?: OrderAdjustmentInput[] | null;
|
|
686
632
|
shippingAddress?: OrderAddressInput | null;
|
|
687
633
|
shippingMethod: ShippingMethodEnum;
|
|
688
634
|
shippingSettingsId?: string | null;
|
|
@@ -691,6 +637,7 @@ export interface SaveCheckoutInput {
|
|
|
691
637
|
updatedAt?: any | null;
|
|
692
638
|
}
|
|
693
639
|
export interface SaveItemToCartInput {
|
|
640
|
+
campaignOffer?: CartCampaignOfferInput | null;
|
|
694
641
|
cartId?: string | null;
|
|
695
642
|
customerId?: string | null;
|
|
696
643
|
item: CartLineItemInput;
|
|
@@ -725,11 +672,9 @@ export interface SaveMyCustomerAddressInput {
|
|
|
725
672
|
}
|
|
726
673
|
export interface SaveMyCustomerInput {
|
|
727
674
|
addresses?: SaveMyCustomerAddressInput[] | null;
|
|
728
|
-
attributes?: CustomerAttributeValueInput[] | null;
|
|
729
675
|
firstName: string;
|
|
730
676
|
lastName: string;
|
|
731
677
|
phone?: string | null;
|
|
732
|
-
subscriptionStatus?: CustomerEmailSubscriptionStatusesEnum | null;
|
|
733
678
|
}
|
|
734
679
|
export interface SearchDynamicCurrencySettings {
|
|
735
680
|
roundingFormat?: string | null;
|
|
@@ -776,6 +721,4 @@ export interface StringFilterInput {
|
|
|
776
721
|
eq?: string | null;
|
|
777
722
|
in?: string[] | null;
|
|
778
723
|
like?: string | null;
|
|
779
|
-
ne?: string | null;
|
|
780
|
-
nin?: string[] | null;
|
|
781
724
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,T,R,A,D,C,I,_,N,L,O,U,S,P,F,n,M,Y,H,B,V,o,t,c,f,i,u,G,W,K,X,
|
|
1
|
+
var E,T,R,A,D,C,I,_,N,L,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,d,g,h,j;!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.DISCOUNT_PRICE="DISCOUNT_PRICE",E.SELL_PRICE="SELL_PRICE"}(A||(A={})),function(E){E.ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",E.CART="CART",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW"}(D||(D={})),function(E){E.CATEGORY="CATEGORY",E.PRODUCT="PRODUCT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG",E.VARIANT="VARIANT"}(C||(C={})),function(E){E.BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(I||(I={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(_||(_={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(N||(N={})),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"}(L||(L={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(O||(O={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(U||(U={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(S||(S={})),function(E){E.COMPLETED="COMPLETED",E.FREEZE="FREEZE",E.KILLED="KILLED",E.OPEN="OPEN"}(P||(P={})),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"}(F||(F={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(n||(n={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(M||(M={})),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"}(Y||(Y={})),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"}(H||(H={})),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"}(B||(B={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(V||(V={})),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"}(o||(o={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(t||(t={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(c||(c={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(f||(f={})),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"}(i||(i={})),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"}(u||(u={})),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"}(G||(G={})),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"}(W||(W={})),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"}(K||(K={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(Q||(Q={})),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"}(X||(X={})),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"}(J||(J={})),function(E){E.RAFFLE="RAFFLE"}(Z||(Z={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(r||(r={})),function(E){E.ASC="ASC",E.DESC="DESC"}(a||(a={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE"}(e||(e={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(p||(p={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(v||(v={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(x||(x={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(b||(b={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(d||(d={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(g||(g={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(h||(h={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(j||(j={}));export{E as AdjustmentEnum,T as AmountTypeEnum,R as BlogMetadataTargetTypeEnum,A as CampaignApplicablePriceEnum,D as CampaignCreatedForEnum,C as CampaignFilterTypeEnum,I as CampaignTypeEnum,_ as CancelledReasonEnum,N as CartStatusEnum,L as CategoryProductsOrderTypeEnum,O as CheckoutRecoveryEmailStatusEnum,U as CheckoutRecoveryStatusEnum,S as CheckoutRequirementEnum,P as CheckoutStatusEnum,F as CustomerAccountStatusEnum,n as CustomerEmailSubscriptionStatusesEnum,M as HTMLMetaDataTargetTypeEnum,Y as OrderLineItemStatusEnum,H as OrderPackageFulfillStatusEnum,B as OrderPackageStatusEnum,V as OrderPaymentStatusEnum,o as OrderStatusEnum,t as PaymentGatewayAdditionalPriceTypeEnum,c as PaymentGatewayTransactionFeeTypeEnum,f as PaymentGatewayTypeEnum,i as PaymentMethodEnum,u as ProductAttributeTypeEnum,G as ProductFilterDisplayTypeEnum,W as ProductFilterSortTypeEnum,K as ProductFilterTypeEnum,Q as ProductOptionSelectTypeEnum,X as ProductOptionTypeEnum,J as ProductSearchShowStockOptionEnum,Z as RaffleMetadataTargetTypeEnum,r as ShippingMethodEnum,a as SortByDirectionEnum,e as SortByTypeEnum,p as StorefrontStatusTypes,v as StorefrontThemeStatus,x as TransactionCardAssociationEnum,b as TransactionCardTypeEnum,d as TransactionStatusEnum,g as TransactionTypeEnum,h as VariantSelectionTypeEnum,j as VerificationTypeEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from'../ext/split-on-first/index.js';export{default}from"../node_modules/split-on-first/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory, IkasThemePageType, IkasOrderTransaction, IkasBrand
|
|
1
|
+
import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory, IkasThemePageType, IkasOrderTransaction, IkasBrand } from "../models";
|
|
2
2
|
import { CheckoutStep } from "../components/checkout/model";
|
|
3
3
|
import { IkasCart } from "../models/data/cart";
|
|
4
4
|
import { IkasEventSubscriber } from "./events";
|
|
@@ -24,8 +24,7 @@ export declare class Analytics {
|
|
|
24
24
|
static disableHTML(): void;
|
|
25
25
|
static addToWishlist(productId: string): void;
|
|
26
26
|
static search(searchKeyword: string): void;
|
|
27
|
-
static completeRegistration(
|
|
28
|
-
static createEmailSubscripition(email: string): void;
|
|
27
|
+
static completeRegistration(email: string, customerId?: string): void;
|
|
29
28
|
static customerLogin(): Promise<void>;
|
|
30
29
|
static customerLogout(): Promise<void>;
|
|
31
30
|
static customerVisit(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__assign as r}from'../ext/tslib/tslib.es6.js';import{makeAutoObservable as o}from"mobx";import"../models/data/blog/index.js";import{IkasBrand as i}from"../models/data/brand/index.js";import{IkasCategory as s}from"../models/data/category/index.js";import{IkasCheckout as a}from"../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/
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as r}from'../ext/tslib/tslib.es6.js';import{makeAutoObservable as o}from"mobx";import"../models/data/blog/index.js";import{IkasBrand as i}from"../models/data/brand/index.js";import{IkasCategory as s}from"../models/data/category/index.js";import{IkasCheckout as a}from"../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"../api/product-option-file/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/data/product-campaing/campaign/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 c}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{FacebookPixel as n}from"./facebookPixel.js";import{GoogleTagManager as d}from"./googleTagManager.js";import{IkasCart as u}from"../models/data/cart/index.js";import{IkasEventType as l}from"./events.js";import{IkasStorefrontConfig as m}from"../storefront/index.js";import p from'../ext/lodash/cloneDeep.js';import{tryForEach as b}from"../utils/helper.js";import"../utils/i18n.js";import f from"./ikas.js";var h=function(){function h(){o(this)}return h.getCustomerInfo=function(){return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return[4,(t=m.store).customerStore.waitUntilInitialized()];case 1:return e.sent(),(o=t.customerStore.customer)?[2,r(r({},o.basicInfo),{consentGranted:t.customerStore.customerConsentGranted})]:[2,null]}}))}))},h.pageView=function(r){return t(this,void 0,void 0,(function(){var t,o,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=window.location.href,[4,h.getCustomerInfo()];case 1:return o=e.sent(),d.pageView(t),f.pageView(r),b(h.subscribers,(function(e){e.callback({type:l.PAGE_VIEW,data:{url:t,pageType:r,customer:o}})})),[3,3];case 2:return i=e.sent(),console.error(i),[3,3];case 3:return[2]}}))}))},h.productView=function(t){try{if(n.productView(t),d.productView(t),f.productView(t),h.subscribers.length){var e=p(t),r=new c(e.product,e.selectedVariantValues);b(h.subscribers,(function(t){t.callback({type:l.PRODUCT_VIEW,data:{productDetail:r}})}))}}catch(t){console.error(t)}},h.addToCart=function(t,e,r,o){try{if(n.addToCart(t,e,r),d.addToCart(t,e),f.addToCart(t,e,o),h.subscribers.length){var i=p(t),s=new u(p(o));b(h.subscribers,(function(t){t.callback({type:l.ADD_TO_CART,data:{item:i,quantity:e,cart:s}})}))}}catch(t){console.error(t)}},h.removeFromCart=function(t,e,r){try{if(d.removeFromCart(t,e),h.subscribers.length){var o=p(t),i=new u(p(r));b(h.subscribers,(function(t){t.callback({type:l.REMOVE_FROM_CART,data:{item:o,quantity:e,cart:i}})}))}}catch(t){console.error(t)}},h.beginCheckout=function(t){try{var e=localStorage.getItem("gtmBeginCheckout");if(e&&t.id===e)return;if(localStorage.setItem("gtmBeginCheckout",t.id),n.beginCheckout(t),d.beginCheckout(t),f.beginCheckout(t),h.subscribers.length){var r=new a(p(t));b(h.subscribers,(function(t){t.callback({type:l.BEGIN_CHECKOUT,data:{checkout:r}})}))}}catch(t){console.error(t)}},h.purchase=function(t,e){try{if(localStorage.removeItem("gtmBeginCheckout"),n.purchase(t,e.id||""),d.purchase(t,e.id||""),f.orderSuccess(t),h.subscribers.length){var r=new a(p(t)),o=p(e);b(h.subscribers,(function(t){t.callback({type:l.COMPLETE_CHECKOUT,data:{checkout:r,transaction:o}})}))}}catch(t){console.error(t)}},h.checkoutStep=function(t,e){try{if(d.checkoutStep(t,e),f.checkoutStep(t,e),h.subscribers.length){var r=new a(p(t));b(h.subscribers,(function(t){t.callback({type:l.CHECKOUT_STEP,data:{checkout:r,step:e}})}))}}catch(t){console.error(t)}},h.disableHTML=function(){try{d.disableHTML()}catch(t){console.error(t)}},h.addToWishlist=function(t){try{n.addToWishlist(t),h.subscribers.length&&b(h.subscribers,(function(e){e.callback({type:l.ADD_TO_WISHLIST,data:{productId:t}})}))}catch(t){console.error(t)}},h.search=function(t){try{n.search(t),d.search(t),h.subscribers.length&&b(h.subscribers,(function(e){e.callback({type:l.SEARCH,data:{searchKeyword:t}})}))}catch(t){console.error(t)}},h.completeRegistration=function(t,e){try{n.completeRegistration(),d.completeRegistration(),f.customerRegister(),h.subscribers.length&&b(h.subscribers,(function(e){e.callback({type:l.CUSTOMER_REGISTER,data:{email:t}})}))}catch(t){console.error(t)}},h.customerLogin=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,h.getCustomerInfo()];case 1:return(t=e.sent())&&t.email?(d.customerLogin(t.email),f.customerLogin(),h.subscribers.length&&b(h.subscribers,(function(e){e.callback({type:l.CUSTOMER_LOGIN,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))},h.customerLogout=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){try{h.subscribers.length&&b(h.subscribers,(function(t){t.callback({type:l.CUSTOMER_LOGOUT,data:{}})}))}catch(t){console.error(t)}return[2]}))}))},h.customerVisit=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,h.getCustomerInfo()];case 1:return(t=e.sent())&&t.email?(d.customerVisit(t.email),f.customerVisit(),h.subscribers.length&&b(h.subscribers,(function(e){e.callback({type:l.CUSTOMER_VISIT,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))},h.viewCart=function(t){try{if(t&&(n.viewCart(t),f.viewCart(t),h.subscribers.length)){var e=new u(p(t));b(h.subscribers,(function(t){t.callback({type:l.VIEW_CART,data:{cart:e}})}))}}catch(t){console.error(t)}},h.viewCategory=function(t,e){try{if(n.viewCategory(t),d.viewCategory(e,t),f.viewCategory(e),h.subscribers.length){var r=new s(p(e));b(h.subscribers,(function(e){e.callback({type:l.VIEW_CATEGORY,data:{categoryPath:t,category:r}})}))}}catch(t){console.error(t)}},h.viewBrand=function(t){try{if(f.viewBrand(t),h.subscribers.length){var e=new i(p(t));b(h.subscribers,(function(t){t.callback({type:l.VIEW_BRAND,data:{brand:e}})}))}}catch(t){console.error(t)}},h.viewSearchResults=function(t,e){try{if(h.subscribers.length){var r=p(e).map((function(t){return new c(t.product,t.selectedVariantValues)}));b(h.subscribers,(function(e){e.callback({type:l.VIEW_SEARCH_RESULTS,data:{searchKeyword:t,productDetails:r}})}))}}catch(t){console.error(t)}},h.viewListing=function(t){try{if(h.subscribers.length){var e=p(t).map((function(t){return new c(t.product,t.selectedVariantValues)}));b(h.subscribers,(function(t){t.callback({type:l.VIEW_LISTING,data:{productDetails:e}})}))}}catch(t){console.error(t)}},h.contactForm=function(t){try{if(n.contactForm(),h.subscribers.length){var e=p(t);b(h.subscribers,(function(t){t.callback({type:l.CONTACT_FORM,data:{form:e}})}))}}catch(t){console.error(t)}},h.subscribers=[],h}();export{h as Analytics};
|
|
@@ -24,8 +24,7 @@ export declare enum IkasEventType {
|
|
|
24
24
|
VIEW_BRAND = "VIEW_BRAND",
|
|
25
25
|
VIEW_SEARCH_RESULTS = "VIEW_SEARCH_RESULTS",
|
|
26
26
|
VIEW_LISTING = "VIEW_LISTING",
|
|
27
|
-
CONTACT_FORM = "CONTACT_FORM"
|
|
28
|
-
EMAIL_SUBSCRIPTION = "EMAIL_SUBSCRIPTION"
|
|
27
|
+
CONTACT_FORM = "CONTACT_FORM"
|
|
29
28
|
}
|
|
30
29
|
export declare type IkasEventSubscriber = {
|
|
31
30
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Analytics as s}from"./analytics.js";function
|
|
1
|
+
import{Analytics as s}from"./analytics.js";function r(r){var E=function(r){if(i(r)){var E=s.subscribers.findIndex((function(s){return s.id===r.id}));-1!==E?s.subscribers[E]=r:s.subscribers.push(r)}};return r.forEach(E),{subscribe:E,unsubscribe:function(r){var E=s.subscribers.findIndex((function(s){return s.id===r}));-1!==E&&s.subscribers.splice(E,1)}}}function E(){if("undefined"!=typeof window){var s=[];try{var E=window.IkasEvents;E&&E.subscribers&&E.subscribers.length&&(s=E.subscribers)}catch(s){}window.IkasEvents=r(s)}}function n(){return"<script>\n var subscribers = [];\n var subscribe = (subscriber) => { subscribers.push(subscriber); }; \n var unsubscribe = () => {};\n \n window.IkasEvents = {\n subscribers,\n subscribe,\n unsubscribe\n };\n <\/script>"}function i(s){return!!(s&&s.id&&"string"==typeof s.id&&s.callback&&"function"==typeof s.callback)}var T;!function(s){s.PAGE_VIEW="PAGE_VIEW",s.PRODUCT_VIEW="PRODUCT_VIEW",s.ADD_TO_CART="ADD_TO_CART",s.REMOVE_FROM_CART="REMOVE_FROM_CART",s.BEGIN_CHECKOUT="BEGIN_CHECKOUT",s.CHECKOUT_STEP="CHECKOUT_STEP",s.COMPLETE_CHECKOUT="COMPLETE_CHECKOUT",s.ADD_TO_WISHLIST="ADD_TO_WISHLIST",s.SEARCH="SEARCH",s.CUSTOMER_REGISTER="CUSTOMER_REGISTER",s.CUSTOMER_LOGIN="CUSTOMER_LOGIN",s.CUSTOMER_LOGOUT="CUSTOMER_LOGOUT",s.CUSTOMER_VISIT="CUSTOMER_VISIT",s.VIEW_CART="VIEW_CART",s.VIEW_CATEGORY="VIEW_CATEGORY",s.VIEW_BRAND="VIEW_BRAND",s.VIEW_SEARCH_RESULTS="VIEW_SEARCH_RESULTS",s.VIEW_LISTING="VIEW_LISTING",s.CONTACT_FORM="CONTACT_FORM"}(T||(T={}));export{T as IkasEventType,r as IkasEvents,n as getIkasEventsScript,E as initIkasEvents,i as isValidIkasEventSubscriber};
|
|
@@ -64,7 +64,6 @@ export declare class GoogleTagManager {
|
|
|
64
64
|
index: number;
|
|
65
65
|
quantity: number;
|
|
66
66
|
})[];
|
|
67
|
-
cart: import("../models/data/cart").IkasCart | null | undefined;
|
|
68
67
|
};
|
|
69
68
|
} | undefined;
|
|
70
69
|
static removeFromCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): {
|
|
@@ -99,7 +98,6 @@ export declare class GoogleTagManager {
|
|
|
99
98
|
index: number;
|
|
100
99
|
quantity: number;
|
|
101
100
|
})[];
|
|
102
|
-
cart: import("../models/data/cart").IkasCart | null | undefined;
|
|
103
101
|
};
|
|
104
102
|
} | undefined;
|
|
105
103
|
static beginCheckout(checkout: IkasCheckout): {
|
|
@@ -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/
|
|
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"../api/product-option-file/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/data/product-campaing/campaign/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 o}from"../components/checkout/model.js";var r="undefined"==typeof window,i=function(){function i(){e(this)}return i.pageView=function(e){try{var t={event:"page-view",page:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.productView=function(e){var t;try{var o={event:"view_item",ecommerce:{items:[a(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!r&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},i.addToCart=function(e,o){try{var i={event:"add_to_cart",ecommerce:{items:[e instanceof t?a(e,o):n(e,o)]}};return!r&&window.dataLayer&&window.dataLayer.push(i),i}catch(e){console.error(e)}},i.removeFromCart=function(e,o){try{var i={event:"remove_from_cart",ecommerce:{items:[e instanceof t?a(e,o):n(e,o)]}};return!r&&window.dataLayer&&window.dataLayer.push(i),i}catch(e){console.error(e)}},i.beginCheckout=function(e){var t;try{var o={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!r&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},i.purchase=function(e,t){var o,i,a;try{var d={event:"purchase",ecommerce:{purchase:{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+(null===(o=e.cart)||void 0===o?void 0:o.totalTax),shipping:""+e.shippingTotal,currency:null===(i=e.cart)||void 0===i?void 0:i.currencyCode,coupon:e.couponCode,items:null===(a=e.cart)||void 0===a?void 0:a.items.map((function(e){return n(e,e.quantity)}))}}};return!r&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},i.checkoutStep=function(e,t){var i,a="";t===o.INFO?a="checkout_info":t===o.SHIPPING?a="checkout_shipping":t===o.PAYMENT?a="checkout_payment":t===o.SUCCESS&&(a="checkout_success");try{var d={event:a,ecommerce:{items:null===(i=e.cart)||void 0===i?void 0:i.items.map((function(e){return n(e,e.quantity)}))}};return!r&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},i.disableHTML=function(){try{!r&&window.dataLayer&&window.dataLayer.push({"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts"]})}catch(e){console.error(e)}},i.completeRegistration=function(){try{var e={event:"customer_register"};return!r&&window.dataLayer&&window.dataLayer.push(e),e}catch(e){console.error(e)}},i.search=function(e){try{var t={event:"search",search_string:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.viewCategory=function(e,t){try{var o={event:"view_category",ecommerce:{category:[{id:e.id,name:e.name,metaData:e.metaData,href:e.href,image:e.image,path:t}]}};return!r&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},i.customerLogin=function(e){try{var t={event:"customer_login",email:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.customerVisit=function(e){try{var t={event:"customer_visit",email:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i}();function a(e,t){var o;return void 0===t&&(t=1),{item_name:e.product.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(o=e.product.brand)||void 0===o?void 0:o.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{i as GoogleTagManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
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"mobx";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/merchant-settings/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../api/product-option-file/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/data/product-campaing/campaign/index.js";import"../models/data/customer-attribute/index.js";import"../models/data/customer-attribute/customer-attribute-sales-channel/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/customer-review-summary-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 n from'../ext/uuid/dist/esm-browser/v4.js';var o,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"}(o||(o={})),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(){return t(this,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t={id:n(),expiry:Date.now()+this.EXPIRY_LENGTH},localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(t)),this.sessionId=t.id,[4,this.sessionStart()];case 1:return e.sent(),[3,3];case 2:return s=e.sent(),console.error(s),[3,3];case 3:return[2]}}))}))},c.checkSessionId=function(){return t(this,void 0,void 0,(function(){var t,s,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,7,,8]),(t=localStorage.getItem(this.SESSION_ID_KEY))?(s=JSON.parse(t)).expiry<Date.now()?[4,this.createSessionId()]:[3,2]:[3,4];case 1:return e.sent(),[3,3];case 2:s.expiry=Date.now()+this.EXPIRY_LENGTH,localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(s)),this.sessionId=s.id,e.label=3;case 3:return[3,6];case 4:return[4,this.createSessionId()];case 5:e.sent(),e.label=6;case 6:return[3,8];case 7:return i=e.sent(),console.error(i),[3,8];case 8:return[2]}}))}))},c.checkVisitorId=function(){try{var t=localStorage.getItem(this.VISITOR_ID_KEY);t?this.visitorId=t:(this.visitorId=n(),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,n;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,this.checkSessionId()];case 1:return e.sent(),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 2:return e.sent(),[3,4];case 3:return n=e.sent(),console.error(n),[3,4];case 4: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:o.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:o.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:o.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,n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:o.ADD_TO_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:n.id,c:n.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:o.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:o.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(),this.createSessionId(),[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:o.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:o.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:o.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:o.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:o.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:o.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:o.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"../api/product-option-file/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/data/product-campaing/campaign/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 n from'../ext/uuid/dist/esm-browser/v4.js';var o,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"}(o||(o={})),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(){return t(this,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t={id:n(),expiry:Date.now()+this.EXPIRY_LENGTH},localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(t)),this.sessionId=t.id,[4,this.sessionStart()];case 1:return e.sent(),[3,3];case 2:return s=e.sent(),console.error(s),[3,3];case 3:return[2]}}))}))},c.checkSessionId=function(){return t(this,void 0,void 0,(function(){var t,s,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,7,,8]),(t=localStorage.getItem(this.SESSION_ID_KEY))?(s=JSON.parse(t)).expiry<Date.now()?[4,this.createSessionId()]:[3,2]:[3,4];case 1:return e.sent(),[3,3];case 2:s.expiry=Date.now()+this.EXPIRY_LENGTH,localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(s)),this.sessionId=s.id,e.label=3;case 3:return[3,6];case 4:return[4,this.createSessionId()];case 5:e.sent(),e.label=6;case 6:return[3,8];case 7:return i=e.sent(),console.error(i),[3,8];case 8:return[2]}}))}))},c.checkVisitorId=function(){try{var t=localStorage.getItem(this.VISITOR_ID_KEY);t?this.visitorId=t:(this.visitorId=n(),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,n;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,this.checkSessionId()];case 1:return e.sent(),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 2:return e.sent(),[3,4];case 3:return n=e.sent(),console.error(n),[3,4];case 4: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:o.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:o.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:o.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,n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:o.ADD_TO_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:n.id,c:n.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:o.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:o.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(),this.createSessionId(),[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:o.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:o.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:o.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:o.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:o.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:o.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:o.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};
|
|
@@ -75,7 +75,11 @@ export interface getBlog_listBlog {
|
|
|
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
|
|
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 hasNext
|
|
82
|
+
* is `false`, it means there are a total of **90 records.**
|
|
79
83
|
*/
|
|
80
84
|
hasNext: boolean;
|
|
81
85
|
/**
|
|
@@ -75,7 +75,11 @@ export interface listBlog_listBlog {
|
|
|
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
|
|
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 hasNext
|
|
82
|
+
* is `false`, it means there are a total of **90 records.**
|
|
79
83
|
*/
|
|
80
84
|
hasNext: boolean;
|
|
81
85
|
/**
|
|
@@ -31,7 +31,11 @@ export interface listBlogCategory_listBlogCategory {
|
|
|
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
|
|
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 hasNext
|
|
38
|
+
* is `false`, it means there are a total of **90 records.**
|
|
35
39
|
*/
|
|
36
40
|
hasNext: boolean;
|
|
37
41
|
/**
|
|
@@ -10,8 +10,6 @@ export interface listBlogMetaData_listBlogMetadata_data {
|
|
|
10
10
|
targetId: string | null;
|
|
11
11
|
targetType: BlogMetadataTargetTypeEnum | null;
|
|
12
12
|
updatedAt: any | null;
|
|
13
|
-
canonicals: string[] | null;
|
|
14
|
-
disableIndex: boolean | null;
|
|
15
13
|
}
|
|
16
14
|
export interface listBlogMetaData_listBlogMetadata {
|
|
17
15
|
__typename: "BlogMetadataPaginationResponse";
|
|
@@ -23,7 +21,11 @@ export interface listBlogMetaData_listBlogMetadata {
|
|
|
23
21
|
count: number;
|
|
24
22
|
data: listBlogMetaData_listBlogMetadata_data[];
|
|
25
23
|
/**
|
|
26
|
-
* In the records returned as Response, it shows whether there are any more
|
|
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 hasNext
|
|
28
|
+
* is `false`, it means there are a total of **90 records.**
|
|
27
29
|
*/
|
|
28
30
|
hasNext: boolean;
|
|
29
31
|
/**
|