@ikas/storefront-api 6.1.0-beta.4 → 6.1.0-beta.400

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.
Files changed (191) hide show
  1. package/build/__api/models/AddItemToCartInput.d.ts +2 -0
  2. package/build/__api/models/AddLoyaltyToCartInput.d.ts +12 -0
  3. package/build/__api/models/AddressFieldRestrictions.d.ts +14 -0
  4. package/build/__api/models/CartLoyaltyLine.d.ts +15 -0
  5. package/build/__api/models/CartV2.d.ts +7 -0
  6. package/build/__api/models/CheckoutSettings.d.ts +3 -0
  7. package/build/__api/models/CreateIyzicoCheckoutFormResponse.d.ts +10 -0
  8. package/build/__api/models/CreatePayWithIkasSessionUrlResponse.d.ts +10 -0
  9. package/build/__api/models/CreateSaleTransactionWithCartInput.d.ts +5 -0
  10. package/build/__api/models/CreateSaleTransactionWithCheckoutInput.d.ts +2 -0
  11. package/build/__api/models/CreateStripeExpressCheckoutSessionResponse.d.ts +15 -0
  12. package/build/__api/models/CreateTkPayCheckoutFormResponse.d.ts +10 -0
  13. package/build/__api/models/CustomerReview.d.ts +6 -0
  14. package/build/__api/models/CustomerReviewProductModel.d.ts +15 -0
  15. package/build/__api/models/CustomerReviewReplyInfo.d.ts +10 -0
  16. package/build/__api/models/DroppedLoyaltyLine.d.ts +14 -0
  17. package/build/__api/models/ExternalAccountLink.d.ts +12 -0
  18. package/build/__api/models/GetCustomerReviewImageUploadUrlResponse.d.ts +11 -0
  19. package/build/__api/models/GetRefundableLineItemResponse.d.ts +14 -0
  20. package/build/__api/models/GetRefundableLinesInput.d.ts +10 -0
  21. package/build/__api/models/GetRefundableLinesResponse.d.ts +14 -0
  22. package/build/__api/models/HepsipayFrameInitResponse.d.ts +11 -0
  23. package/build/__api/models/ListOrderTransactionWithPricesResponse.d.ts +1 -0
  24. package/build/__api/models/LoyaltyCustomerInfo.d.ts +19 -0
  25. package/build/__api/models/LoyaltyProgram.d.ts +27 -0
  26. package/build/__api/models/LoyaltyProgramDiscountSettings.d.ts +12 -0
  27. package/build/__api/models/LoyaltyProgramEarningMethod.d.ts +34 -0
  28. package/build/__api/models/LoyaltyProgramEarningMethodOrderSettings.d.ts +12 -0
  29. package/build/__api/models/LoyaltyProgramEarningMethodProductSettings.d.ts +12 -0
  30. package/build/__api/models/LoyaltyProgramFilter.d.ts +11 -0
  31. package/build/__api/models/LoyaltyProgramMethodTranslation.d.ts +10 -0
  32. package/build/__api/models/LoyaltyProgramPeriod.d.ts +11 -0
  33. package/build/__api/models/LoyaltyProgramPointHistory.d.ts +26 -0
  34. package/build/__api/models/LoyaltyProgramPointHistoryTypeEnumFilterInput.d.ts +13 -0
  35. package/build/__api/models/LoyaltyProgramPointLimit.d.ts +10 -0
  36. package/build/__api/models/LoyaltyProgramSaleChannel.d.ts +13 -0
  37. package/build/__api/models/LoyaltyProgramSpendingMethod.d.ts +25 -0
  38. package/build/__api/models/LoyaltyProgramTier.d.ts +22 -0
  39. package/build/__api/models/LoyaltyProgramTierTranslation.d.ts +10 -0
  40. package/build/__api/models/LoyaltyWidgetSettings.d.ts +10 -0
  41. package/build/__api/models/MilesSmilesDetailsResponse.d.ts +12 -0
  42. package/build/__api/models/MilesSmilesPaymentInput.d.ts +9 -0
  43. package/build/__api/models/OrderAdjustment.d.ts +3 -1
  44. package/build/__api/models/OrderGiftCardLine.d.ts +12 -0
  45. package/build/__api/models/OrderLineItem.d.ts +5 -0
  46. package/build/__api/models/OrderLineItemCustomerSubscriptionPlan.d.ts +9 -0
  47. package/build/__api/models/OrderLineItemSubscriptionPlan.d.ts +12 -0
  48. package/build/__api/models/OrderLineItemSubscriptionPlanPeriod.d.ts +19 -0
  49. package/build/__api/models/OrderLoyaltyLine.d.ts +14 -0
  50. package/build/__api/models/OrderRefundReason.d.ts +12 -0
  51. package/build/__api/models/OrderRefundReasonTranslation.d.ts +10 -0
  52. package/build/__api/models/OrderRefundRequestInput.d.ts +1 -0
  53. package/build/__api/models/OrderRefundSettingsTranslation.d.ts +10 -0
  54. package/build/__api/models/PaymentGateway.d.ts +1 -0
  55. package/build/__api/models/ProductSearchResponse.d.ts +2 -0
  56. package/build/__api/models/RetrieveInstallmentInfoInput.d.ts +2 -1
  57. package/build/__api/models/SaveCartInput.d.ts +1 -0
  58. package/build/__api/models/SaveCartInput.js +1 -1
  59. package/build/__api/models/SavedCardPaymentDetailInput.d.ts +12 -0
  60. package/build/__api/models/SearchInput.d.ts +2 -0
  61. package/build/__api/models/SearchSuggestion.d.ts +12 -0
  62. package/build/__api/models/StorefrontPopup.d.ts +1 -0
  63. package/build/__api/models/StorefrontPopupDisplayFilter.d.ts +3 -3
  64. package/build/__api/models/StorefrontWidgetSettings.d.ts +14 -0
  65. package/build/__api/models/StorefrontWidgetSettingsRouting.d.ts +10 -0
  66. package/build/__api/models/StripeExpressCheckoutAddressInput.d.ts +12 -0
  67. package/build/__api/models/StripeExpressCheckoutCustomerInput.d.ts +12 -0
  68. package/build/__api/models/StripeExpressCheckoutSessionContextResponse.d.ts +15 -0
  69. package/build/__api/models/SubscriptionPlanDiscount.d.ts +11 -0
  70. package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
  71. package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
  72. package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
  73. package/build/__api/models/UpdateStripeExpressCheckoutSessionInput.d.ts +17 -0
  74. package/build/__api/mutations/addItemToCart.d.ts +13 -0
  75. package/build/__api/mutations/addItemToCart.js +1 -1
  76. package/build/__api/mutations/createIyzicoCheckoutForm.d.ts +11 -0
  77. package/build/__api/mutations/createIyzicoCheckoutForm.js +1 -0
  78. package/build/__api/mutations/createOrderRefundRequest.d.ts +31 -0
  79. package/build/__api/mutations/createOrderRefundRequest.js +1 -1
  80. package/build/__api/mutations/createPayWithIkasSessionUrl.d.ts +11 -0
  81. package/build/__api/mutations/createPayWithIkasSessionUrl.js +1 -0
  82. package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
  83. package/build/__api/mutations/createPaypalOrder.js +1 -1
  84. package/build/__api/mutations/createStripeExpressCheckoutSession.d.ts +16 -0
  85. package/build/__api/mutations/createStripeExpressCheckoutSession.js +1 -0
  86. package/build/__api/mutations/createTkPayCheckoutForm.d.ts +11 -0
  87. package/build/__api/mutations/createTkPayCheckoutForm.js +1 -0
  88. package/build/__api/mutations/customerDeactivate.d.ts +1 -1
  89. package/build/__api/mutations/customerDeactivate.js +1 -1
  90. package/build/__api/mutations/customerLogin.d.ts +6 -2
  91. package/build/__api/mutations/customerLogin.js +1 -1
  92. package/build/__api/mutations/deletePaymentSavedCard.d.ts +6 -0
  93. package/build/__api/mutations/deletePaymentSavedCard.js +1 -0
  94. package/build/__api/mutations/getCustomerReviewImageUploadUrl.d.ts +13 -0
  95. package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
  96. package/build/__api/mutations/getPaypalClientId.js +1 -1
  97. package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
  98. package/build/__api/mutations/hepsipayFrameInit.js +1 -0
  99. package/build/__api/mutations/registerCustomer.d.ts +8 -4
  100. package/build/__api/mutations/registerCustomer.js +1 -1
  101. package/build/__api/mutations/removeGiftCardFromCart.d.ts +509 -0
  102. package/build/__api/mutations/removeGiftCardFromCart.js +1 -0
  103. package/build/__api/mutations/removeLoyaltyPointsFromCart.d.ts +540 -0
  104. package/build/__api/mutations/removeLoyaltyPointsFromCart.js +1 -0
  105. package/build/__api/mutations/resendCustomerPhoneVerificationCode.d.ts +2 -5
  106. package/build/__api/mutations/resendCustomerPhoneVerificationCode.js +1 -1
  107. package/build/__api/mutations/unlinkExternalAccount.d.ts +7 -0
  108. package/build/__api/mutations/unlinkExternalAccount.js +1 -0
  109. package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
  110. package/build/__api/mutations/updatePaypalOrder.js +1 -0
  111. package/build/__api/mutations/updateStripeExpressCheckoutSession.d.ts +16 -0
  112. package/build/__api/mutations/updateStripeExpressCheckoutSession.js +1 -0
  113. package/build/__api/mutations/useLoyaltyPoints.d.ts +539 -0
  114. package/build/__api/mutations/useLoyaltyPoints.js +1 -0
  115. package/build/__api/mutations/validateCustomerPhoneVerificationCode.d.ts +1 -0
  116. package/build/__api/mutations/validateCustomerPhoneVerificationCode.js +1 -1
  117. package/build/__api/mutations/validateOTPCode.d.ts +97 -0
  118. package/build/__api/mutations/validateOTPCode.js +1 -0
  119. package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
  120. package/build/__api/queries/getAvailableStockLocations.js +1 -1
  121. package/build/__api/queries/getCart.d.ts +13 -0
  122. package/build/__api/queries/getCartById.d.ts +30 -1
  123. package/build/__api/queries/getCartById.js +1 -1
  124. package/build/__api/queries/getCheckoutByCartId.d.ts +13 -0
  125. package/build/__api/queries/getCheckoutById.d.ts +13 -0
  126. package/build/__api/queries/getCustomerOrders.d.ts +19 -0
  127. package/build/__api/queries/getCustomerOrders.js +1 -1
  128. package/build/__api/queries/getExternalAccountLink.d.ts +12 -0
  129. package/build/__api/queries/getExternalAccountLink.js +1 -0
  130. package/build/__api/queries/getLoyaltyCustomerInfo.d.ts +38 -0
  131. package/build/__api/queries/getLoyaltyCustomerInfo.js +1 -0
  132. package/build/__api/queries/getLoyaltyProgram.d.ts +93 -0
  133. package/build/__api/queries/getLoyaltyProgram.js +1 -0
  134. package/build/__api/queries/getLoyaltyWidgetSettings.d.ts +9 -0
  135. package/build/__api/queries/getLoyaltyWidgetSettings.js +1 -0
  136. package/build/__api/queries/getMilesSmilesDetails.d.ts +10 -0
  137. package/build/__api/queries/getMilesSmilesDetails.js +1 -0
  138. package/build/__api/queries/getOrder.d.ts +19 -0
  139. package/build/__api/queries/getOrderInvoicePdfUrl.d.ts +7 -0
  140. package/build/__api/queries/getOrderInvoicePdfUrl.js +1 -0
  141. package/build/__api/queries/getRefundableLines.d.ts +23 -0
  142. package/build/__api/queries/getRefundableLines.js +1 -0
  143. package/build/__api/queries/getStoreCreditBalance.d.ts +25 -0
  144. package/build/__api/queries/getStoreCreditBalance.js +1 -0
  145. package/build/__api/queries/getStorefrontWidgetSettings.d.ts +14 -0
  146. package/build/__api/queries/getStorefrontWidgetSettings.js +1 -0
  147. package/build/__api/queries/listCheckoutSettings.d.ts +7 -0
  148. package/build/__api/queries/listCheckoutSettings.js +1 -1
  149. package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -0
  150. package/build/__api/queries/listCustomerReviews.d.ts +12 -0
  151. package/build/__api/queries/listCustomerReviews.js +1 -1
  152. package/build/__api/queries/listEarningMethods.d.ts +38 -0
  153. package/build/__api/queries/listEarningMethods.js +1 -0
  154. package/build/__api/queries/listLoyaltyProgramPointHistory.d.ts +30 -0
  155. package/build/__api/queries/listLoyaltyProgramPointHistory.js +1 -0
  156. package/build/__api/queries/listLoyaltyProgramTiers.d.ts +22 -0
  157. package/build/__api/queries/listLoyaltyProgramTiers.js +1 -0
  158. package/build/__api/queries/listOrderTransactionsWithPrices.d.ts +1 -0
  159. package/build/__api/queries/listOrderTransactionsWithPrices.js +1 -1
  160. package/build/__api/queries/listPaymentGateway.d.ts +1 -0
  161. package/build/__api/queries/listPaymentGateway.js +1 -1
  162. package/build/__api/queries/listPaymentSavedCard.d.ts +19 -0
  163. package/build/__api/queries/listPaymentSavedCard.js +1 -0
  164. package/build/__api/queries/listSpendingMethodsByCartId.d.ts +30 -0
  165. package/build/__api/queries/listSpendingMethodsByCartId.js +1 -0
  166. package/build/__api/queries/listStorefrontPopup.d.ts +3 -0
  167. package/build/__api/queries/listStorefrontPopup.js +1 -1
  168. package/build/__api/queries/searchProducts.d.ts +21 -0
  169. package/build/__api/queries/searchProducts.js +1 -1
  170. package/build/__api/types/index.d.ts +634 -16
  171. package/build/__api/types/index.js +1 -1
  172. package/build/api/cart/index.d.ts +9 -1
  173. package/build/api/cart/index.js +1 -1
  174. package/build/api/checkout/index.d.ts +21 -4
  175. package/build/api/checkout/index.js +1 -1
  176. package/build/api/customer/index.d.ts +47 -7
  177. package/build/api/customer/index.js +1 -1
  178. package/build/api/loyalty/index.d.ts +15 -0
  179. package/build/api/loyalty/index.js +1 -0
  180. package/build/api/merchant/index.d.ts +2 -2
  181. package/build/api/merchant/index.js +1 -1
  182. package/build/api/miles-smiles/index.d.ts +21 -0
  183. package/build/api/miles-smiles/index.js +1 -0
  184. package/build/api/product/index.d.ts +2 -1
  185. package/build/api/product/index.js +1 -1
  186. package/build/api/storefront/index.d.ts +7 -1
  187. package/build/index.d.ts +5 -2
  188. package/build/index.js +1 -1
  189. package/build/index2.js +1 -1
  190. package/package.json +7 -7
  191. package/build/__api/queries/checkOrderStocks.d.ts +0 -13
@@ -13,7 +13,9 @@ export declare enum CampaignApplicablePriceEnum {
13
13
  export declare enum CampaignCreatedForEnum {
14
14
  ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
15
15
  CART = "CART",
16
- CUSTOMER_REVIEW = "CUSTOMER_REVIEW"
16
+ CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
17
+ LOYALTY_SPEND = "LOYALTY_SPEND",
18
+ MARKETING_CAMPAIGN = "MARKETING_CAMPAIGN"
17
19
  }
18
20
  export declare enum CampaignFilterTypeEnum {
19
21
  CATEGORY = "CATEGORY",
@@ -167,6 +169,11 @@ export declare enum CustomerEmailSubscriptionStatusesEnum {
167
169
  PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
168
170
  SUBSCRIBED = "SUBSCRIBED"
169
171
  }
172
+ export declare enum CustomerGenderTypeEnum {
173
+ FEMALE = "FEMALE",
174
+ MALE = "MALE",
175
+ OTHER = "OTHER"
176
+ }
170
177
  export declare enum CustomerPriceListRuleFilterTypeEnum {
171
178
  CATEGORY = "CATEGORY",
172
179
  PRODUCT = "PRODUCT",
@@ -189,6 +196,9 @@ export declare enum CustomerReviewStatusEnum {
189
196
  REJECTED = "REJECTED",
190
197
  WAITING = "WAITING"
191
198
  }
199
+ export declare enum CustomerExternalAccountLinkProviderEnum {
200
+ miles_smiles = "miles_smiles"
201
+ }
192
202
  export declare enum CustomerSocialLoginProviderEnum {
193
203
  facebook = "facebook",
194
204
  google = "google"
@@ -198,6 +208,10 @@ export declare enum GetSuggestedProductsMethodEnum {
198
208
  SAMPLING = "SAMPLING",
199
209
  VIEWED_TOGETHER = "VIEWED_TOGETHER"
200
210
  }
211
+ export declare enum GiftCardTypeEnum {
212
+ GIFT_CARD = "GIFT_CARD",
213
+ STORE_CREDIT = "STORE_CREDIT"
214
+ }
201
215
  export declare enum HTMLMetaDataTargetTypeEnum {
202
216
  BRAND = "BRAND",
203
217
  CATEGORY = "CATEGORY",
@@ -293,6 +307,10 @@ export declare enum OrderPaymentStatusEnum {
293
307
  PARTIALLY_PAID = "PARTIALLY_PAID",
294
308
  WAITING = "WAITING"
295
309
  }
310
+ export declare enum OrderRefundFlowEnum {
311
+ CANCEL = "CANCEL",
312
+ RETURN = "RETURN"
313
+ }
296
314
  export declare enum OrderShippingMethodEnum {
297
315
  CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
298
316
  DIGITAL_DELIVERY = "DIGITAL_DELIVERY",
@@ -406,6 +424,13 @@ export declare enum ProductSearchShowStockOptionEnum {
406
424
  SHOW_ALL = "SHOW_ALL",
407
425
  SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END"
408
426
  }
427
+ export declare enum ProductTypeEnum {
428
+ BUNDLE = "BUNDLE",
429
+ DIGITAL = "DIGITAL",
430
+ MEMBERSHIP = "MEMBERSHIP",
431
+ PHYSICAL = "PHYSICAL",
432
+ SUBSCRIPTION = "SUBSCRIPTION"
433
+ }
409
434
  export declare enum ProductUnitTypeEnum {
410
435
  CENTILITER = "CENTILITER",
411
436
  CENTIMETER = "CENTIMETER",
@@ -515,6 +540,20 @@ export declare enum StorefrontTypeEnum {
515
540
  B2B_STOREFRONT = "B2B_STOREFRONT",
516
541
  STOREFRONT = "STOREFRONT"
517
542
  }
543
+ export declare enum SubscriptionPlanDurationUnitTypeEnum {
544
+ DAY = "DAY",
545
+ MONTH = "MONTH",
546
+ WEEK = "WEEK",
547
+ YEAR = "YEAR"
548
+ }
549
+ export declare enum SubscriptionPlanPaymentTypeEnum {
550
+ POST_PAID = "POST_PAID",
551
+ PRE_PAID = "PRE_PAID"
552
+ }
553
+ export declare enum SubscriptionPlanStatusEnum {
554
+ ACTIVE = "ACTIVE",
555
+ PASSIVE = "PASSIVE"
556
+ }
518
557
  export declare enum TemplateEnum {
519
558
  ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
520
559
  CONTACT_FORM_MERCHANT = "CONTACT_FORM_MERCHANT",
@@ -634,6 +673,14 @@ export interface AdditionalPrice {
634
673
  name: string;
635
674
  type: PaymentGatewayAdditionalPriceTypeEnum;
636
675
  }
676
+ export interface AddressFieldRestrictions {
677
+ addressLine1: string | null;
678
+ addressLine2: string | null;
679
+ companyName: string | null;
680
+ firstName: string | null;
681
+ lastName: string | null;
682
+ taxOffice: string | null;
683
+ }
637
684
  export interface ApplicableProductFilterValue {
638
685
  colorCode: string | null;
639
686
  id: string;
@@ -764,6 +811,11 @@ export interface BuyXThenGetY {
764
811
  getY: GetY;
765
812
  maxUsagePerOrder: number | null;
766
813
  }
814
+ export interface HepsipayFrameInitResponse {
815
+ frameToken: string | null;
816
+ frameUrl: string | null;
817
+ transactionId: string;
818
+ }
767
819
  export interface Campaign {
768
820
  applicableCustomerGroupIds: string[] | null;
769
821
  applicableCustomerIds: string[] | null;
@@ -927,13 +979,17 @@ export interface CartV2 {
927
979
  customer: OrderCustomer | null;
928
980
  customerId: string | null;
929
981
  deleted: boolean | null;
982
+ droppedLoyaltyLines: DroppedLoyaltyLine[] | null;
930
983
  dueDate: any | null;
984
+ edited: boolean | null;
985
+ giftCardLines: OrderGiftCardLine[] | null;
931
986
  giftPackageLines: OrderGiftPackageLine[] | null;
932
987
  giftPackageNote: string | null;
933
988
  host: string | null;
934
989
  id: string;
935
990
  isGiftPackage: boolean | null;
936
991
  itemCount: number | null;
992
+ loyaltyLines: OrderLoyaltyLine[] | null;
937
993
  merchantId: string;
938
994
  note: string | null;
939
995
  orderAdjustments: OrderAdjustment[] | null;
@@ -1072,6 +1128,7 @@ export interface CheckoutOption {
1072
1128
  required: boolean;
1073
1129
  }
1074
1130
  export interface CheckoutSettings {
1131
+ addressFieldRestrictions: AddressFieldRestrictions | null;
1075
1132
  corporateInvoiceRequirement: CorporateInvoiceRequirementEnum | null;
1076
1133
  couponCodeRequirement: CouponCodeRequirementEnum | null;
1077
1134
  createdAt: any | null;
@@ -1087,6 +1144,7 @@ export interface CheckoutSettings {
1087
1144
  options: CheckoutOption[] | null;
1088
1145
  phoneRequirement: CheckoutRequirementEnum;
1089
1146
  postalCodeRequirement: CheckoutRequirementEnum | null;
1147
+ showBillingAddressOnShippingStep: boolean | null;
1090
1148
  showCheckoutNote: boolean | null;
1091
1149
  showCompanyInfoInShippingAddress: boolean | null;
1092
1150
  showTermsAndConditionsCheckbox: boolean;
@@ -1153,6 +1211,10 @@ export interface CreateAdyenSessionResponse {
1153
1211
  sessionData: string | null;
1154
1212
  sessionId: string;
1155
1213
  }
1214
+ export interface CreateIyzicoCheckoutFormResponse {
1215
+ checkoutFormContent: string;
1216
+ paymentPageUrl: string;
1217
+ }
1156
1218
  export interface CreateKlarnaTokenResponse {
1157
1219
  authorizeUrl: string | null;
1158
1220
  clientToken: string | null;
@@ -1166,6 +1228,19 @@ export interface CreatePaypalOrderResponse {
1166
1228
  sessionToken: string;
1167
1229
  transactionId: string;
1168
1230
  }
1231
+ export interface CreatePayWithIkasSessionUrlResponse {
1232
+ expiresAt: number;
1233
+ payUrl: string;
1234
+ }
1235
+ export interface CreateStripeExpressCheckoutSessionResponse {
1236
+ accountId: string;
1237
+ apiKey: string;
1238
+ callbackUrl: string;
1239
+ clientSecret: string;
1240
+ failUrl: string;
1241
+ sessionId: string;
1242
+ transactionId: string;
1243
+ }
1169
1244
  export interface CreateStripePaymentIntentResponse {
1170
1245
  accountId: string;
1171
1246
  apiKey: string;
@@ -1173,6 +1248,10 @@ export interface CreateStripePaymentIntentResponse {
1173
1248
  clientSecret: string;
1174
1249
  failUrl: string;
1175
1250
  }
1251
+ export interface CreateTkPayCheckoutFormResponse {
1252
+ callbackUrl: string;
1253
+ paymentPageUrl: string;
1254
+ }
1176
1255
  export interface CurrencyRate {
1177
1256
  baseCurrency: string;
1178
1257
  baseCurrencyCode: string | null;
@@ -1334,6 +1413,13 @@ export interface CustomerFavoriteProduct {
1334
1413
  productId: string;
1335
1414
  updatedAt: any | null;
1336
1415
  }
1416
+ export interface CustomerLoginResponse {
1417
+ customer: Customer | null;
1418
+ flowId: string | null;
1419
+ otpSend: boolean | null;
1420
+ token: string;
1421
+ tokenExpiry: number;
1422
+ }
1337
1423
  export interface CustomerPriceListRule {
1338
1424
  filters: CustomerPriceListRuleFilter[] | null;
1339
1425
  shouldMatchAllFilters: boolean | null;
@@ -1344,11 +1430,6 @@ export interface CustomerPriceListRuleFilter {
1344
1430
  type: CustomerPriceListRuleFilterTypeEnum;
1345
1431
  valueList: string[];
1346
1432
  }
1347
- export interface CustomerLoginResponse {
1348
- customer: Customer | null;
1349
- token: string;
1350
- tokenExpiry: number;
1351
- }
1352
1433
  export interface CustomerRefreshTokenResponse {
1353
1434
  token: string;
1354
1435
  tokenExpiry: number;
@@ -1357,16 +1438,20 @@ export interface CustomerReview {
1357
1438
  comment: string | null;
1358
1439
  createdAt: any | null;
1359
1440
  customerId: string | null;
1360
- deleted: boolean | null;
1441
+ deleted: boolean;
1361
1442
  email: string | null;
1362
1443
  firstName: string | null;
1363
1444
  id: string;
1364
1445
  imageIds: string[] | null;
1446
+ isPrivateReply: boolean | null;
1365
1447
  lastName: string | null;
1448
+ locale: string | null;
1366
1449
  orderId: string | null;
1367
1450
  orderNumber: string | null;
1451
+ product: CustomerReviewProductModel | null;
1368
1452
  productId: string;
1369
1453
  reply: string | null;
1454
+ replyInfo: CustomerReviewReplyInfo | null;
1370
1455
  salesChannelId: string | null;
1371
1456
  star: number;
1372
1457
  status: CustomerReviewStatusEnum | null;
@@ -1374,6 +1459,18 @@ export interface CustomerReview {
1374
1459
  title: string | null;
1375
1460
  updatedAt: any | null;
1376
1461
  }
1462
+ export interface CustomerReviewProductModel {
1463
+ brandId: string | null;
1464
+ categoryIds: string[] | null;
1465
+ id: string | null;
1466
+ tagIds: string | null;
1467
+ type: ProductTypeEnum | null;
1468
+ vendorId: string | null;
1469
+ }
1470
+ export interface CustomerReviewReplyInfo {
1471
+ createdAt: any | null;
1472
+ staffId: string | null;
1473
+ }
1377
1474
  export interface CustomerReviewSFPaginationResponse {
1378
1475
  count: number;
1379
1476
  data: CustomerReview[];
@@ -1384,7 +1481,7 @@ export interface CustomerReviewSFPaginationResponse {
1384
1481
  export interface CustomerReviewSummary {
1385
1482
  averageStar: number;
1386
1483
  createdAt: any | null;
1387
- deleted: boolean | null;
1484
+ deleted: boolean;
1388
1485
  id: string;
1389
1486
  productId: string;
1390
1487
  stars: CustomerReviewSummaryStar[];
@@ -1418,6 +1515,13 @@ export interface CustomerSettingsPhoneValidationSettings {
1418
1515
  requirePhoneValidation: boolean;
1419
1516
  smsGatewayId: string;
1420
1517
  }
1518
+ export interface DroppedLoyaltyLine {
1519
+ amount: number;
1520
+ code: LoyaltyLineErrorCodeEnum;
1521
+ loyaltyProgramId: string;
1522
+ loyaltyProgramSpendingMethodType: string | null;
1523
+ loyaltySpendingMethodId: string;
1524
+ }
1421
1525
  export interface District {
1422
1526
  cityId: string;
1423
1527
  countryId: string;
@@ -1467,6 +1571,11 @@ export interface GetAvailableStockLocationAddressCountry {
1467
1571
  export interface GetAvailableStockLocationsResponse {
1468
1572
  stockLocations: GetAvailableStockLocation[];
1469
1573
  }
1574
+ export interface GetCustomerReviewImageUploadUrlResponse {
1575
+ fields: any;
1576
+ imageId: string;
1577
+ uploadUrl: string;
1578
+ }
1470
1579
  export interface GetPaypalClientIdResponse {
1471
1580
  clientId: string;
1472
1581
  merchantClientId: string | null;
@@ -1481,6 +1590,22 @@ export interface GetProductOptionFileUrl {
1481
1590
  optionUrl: string;
1482
1591
  url: string;
1483
1592
  }
1593
+ export interface GetRefundableLineItemResponse {
1594
+ autoApprove: boolean;
1595
+ flow: OrderRefundFlowEnum | null;
1596
+ isCancellable: boolean;
1597
+ isRefundable: boolean;
1598
+ orderLineItemId: string;
1599
+ }
1600
+ export interface GetRefundableLinesResponse {
1601
+ orderLineItems: GetRefundableLineItemResponse[];
1602
+ refundReasons: OrderRefundReason[];
1603
+ translations: OrderRefundSettingsTranslation[];
1604
+ }
1605
+ export interface OrderRefundSettingsTranslation {
1606
+ locale: string;
1607
+ returnMethodDescription: string | null;
1608
+ }
1484
1609
  export interface GetVariantStockLocation {
1485
1610
  stockCount: number;
1486
1611
  stockLocation: GetAvailableStockLocation;
@@ -1495,6 +1620,28 @@ export interface GetY {
1495
1620
  discountRatio: number;
1496
1621
  filter: CampaignFilter;
1497
1622
  }
1623
+ export interface GiftCard {
1624
+ active: boolean;
1625
+ amount: number;
1626
+ code: string;
1627
+ createdAt: any | null;
1628
+ customerId: string | null;
1629
+ deleted: boolean;
1630
+ endDate: any | null;
1631
+ id: string;
1632
+ minimumRequiredCartAmount: number | null;
1633
+ salesChannels: GiftCardSalesChannel[] | null;
1634
+ startDate: any | null;
1635
+ type: GiftCardTypeEnum;
1636
+ updatedAt: any | null;
1637
+ usedAllAmount: boolean | null;
1638
+ usedAmount: number;
1639
+ }
1640
+ export interface GiftCardSalesChannel {
1641
+ salesChannelId: string;
1642
+ storefrontId: string | null;
1643
+ storefrontRoutingId: string | null;
1644
+ }
1498
1645
  export interface HTMLMetaData {
1499
1646
  canonicals: string[] | null;
1500
1647
  createdAt: any | null;
@@ -1555,6 +1702,7 @@ export interface ListOrderTransactionWithPricesRefundableTransaction {
1555
1702
  export interface ListOrderTransactionWithPricesResponse {
1556
1703
  chargedAmount: number;
1557
1704
  orderFinalPrice: number;
1705
+ pendingAmount: number;
1558
1706
  refundableTransactions: ListOrderTransactionWithPricesRefundableTransaction[];
1559
1707
  refundedAmount: number;
1560
1708
  remainingBalance: number;
@@ -1635,6 +1783,17 @@ export interface MerchantSettingsCurrencyFormat {
1635
1783
  symbolPosition: CurrencyFormatSymbolPosition;
1636
1784
  thousandSeparator: string;
1637
1785
  }
1786
+ export interface ExternalAccountLink {
1787
+ externalId: string;
1788
+ linkedAt: any;
1789
+ provider: CustomerExternalAccountLinkProviderEnum;
1790
+ }
1791
+ export interface MilesSmilesDetailsResponse {
1792
+ availableMiles: number;
1793
+ firstName: string | null;
1794
+ lastName: string | null;
1795
+ memberId: string;
1796
+ }
1638
1797
  export interface OrderAddress {
1639
1798
  addressLine1: string;
1640
1799
  addressLine2: string | null;
@@ -1690,9 +1849,11 @@ export interface OrderAdjustment {
1690
1849
  campaignId: string | null;
1691
1850
  campaignType: CampaignTypeEnum | null;
1692
1851
  couponId: string | null;
1852
+ createdFor: CampaignCreatedForEnum | null;
1693
1853
  name: string;
1694
1854
  order: number;
1695
1855
  type: OrderAdjustmentEnum;
1856
+ usedLoyaltyPoints: number | null;
1696
1857
  }
1697
1858
  export interface OrderAdjustmentAppliedOrderLine {
1698
1859
  amount: number;
@@ -1720,6 +1881,13 @@ export interface OrderCustomer {
1720
1881
  notificationsAccepted: boolean | null;
1721
1882
  phone: string | null;
1722
1883
  }
1884
+ export interface OrderGiftCardLine {
1885
+ amount: number;
1886
+ code: string;
1887
+ giftCardId: string;
1888
+ id: string;
1889
+ type: GiftCardTypeEnum | null;
1890
+ }
1723
1891
  export interface OrderGiftPackageLine {
1724
1892
  price: number;
1725
1893
  taxValue: number | null;
@@ -1776,11 +1944,31 @@ export interface OrderLineItem {
1776
1944
  status: OrderLineItemStatusEnum;
1777
1945
  statusUpdatedAt: any | null;
1778
1946
  stockLocationId: string | null;
1947
+ subscriptionPlan: OrderLineItemSubscriptionPlan | null;
1779
1948
  taxValue: number | null;
1780
1949
  unitPrice: number | null;
1781
1950
  updatedAt: any | null;
1782
1951
  variant: OrderLineVariant;
1783
1952
  }
1953
+ export interface OrderLineItemCustomerSubscriptionPlan {
1954
+ id: string;
1955
+ }
1956
+ export interface OrderLineItemSubscriptionPlan {
1957
+ id: string;
1958
+ name: string;
1959
+ period: OrderLineItemSubscriptionPlanPeriod;
1960
+ }
1961
+ export interface OrderLineItemSubscriptionPlanPeriod {
1962
+ cutOffDay: number | null;
1963
+ discount: SubscriptionPlanDiscount | null;
1964
+ durationUnit: SubscriptionPlanDurationUnitTypeEnum;
1965
+ durationValue: number;
1966
+ id: string;
1967
+ maxOrders: number | null;
1968
+ paymentType: SubscriptionPlanPaymentTypeEnum;
1969
+ scheduledOrderDay: number | null;
1970
+ title: string;
1971
+ }
1784
1972
  export interface OrderLineOption {
1785
1973
  name: string;
1786
1974
  productOptionId: string;
@@ -1889,6 +2077,18 @@ export interface OrderPaymentMethod {
1889
2077
  price: number;
1890
2078
  type: PaymentMethodTypeEnum;
1891
2079
  }
2080
+ export interface OrderRefundReason {
2081
+ createdAt: any | null;
2082
+ deleted: boolean;
2083
+ id: string;
2084
+ title: string;
2085
+ translations: OrderRefundReasonTranslation[] | null;
2086
+ updatedAt: any | null;
2087
+ }
2088
+ export interface OrderRefundReasonTranslation {
2089
+ locale: string;
2090
+ title: string | null;
2091
+ }
1892
2092
  export interface OrderRefundSettings {
1893
2093
  autoApprove: boolean;
1894
2094
  createdAt: any | null;
@@ -1960,6 +2160,7 @@ export interface OrderTaxLine {
1960
2160
  rate: number;
1961
2161
  }
1962
2162
  export interface PaymentGateway {
2163
+ milesSmilesEnabled: boolean | null;
1963
2164
  additionalPrices: AdditionalPrice[] | null;
1964
2165
  availableCountries: string[] | null;
1965
2166
  code: string;
@@ -2226,6 +2427,7 @@ export interface ProductSearchResponse {
2226
2427
  limit: number;
2227
2428
  page: number;
2228
2429
  results: SearchProduct[];
2430
+ suggestions: SearchSuggestion[] | null;
2229
2431
  totalCount: number;
2230
2432
  }
2231
2433
  export interface ProductTagTranslation {
@@ -2537,6 +2739,29 @@ export interface SearchProductStockLocation {
2537
2739
  stockCount: number;
2538
2740
  stockLocationId: string;
2539
2741
  }
2742
+ export interface SearchProductSubscriptionPlan {
2743
+ name: string;
2744
+ periods: SearchProductSubscriptionPlanPeriod[];
2745
+ status: SubscriptionPlanStatusEnum;
2746
+ subscriptionPlanId: string;
2747
+ translations: SubscriptionPlanTranslation[] | null;
2748
+ }
2749
+ export interface SearchProductSubscriptionPlanDiscount {
2750
+ amount: number;
2751
+ type: OrderAmountTypeEnum;
2752
+ }
2753
+ export interface SearchProductSubscriptionPlanPeriod {
2754
+ cutOffDay: number | null;
2755
+ discount: SearchProductSubscriptionPlanDiscount | null;
2756
+ durationUnit: SubscriptionPlanDurationUnitTypeEnum;
2757
+ durationValue: number;
2758
+ id: string;
2759
+ maxOrders: number | null;
2760
+ paymentType: SubscriptionPlanPaymentTypeEnum;
2761
+ scheduledOrderDay: number | null;
2762
+ status: SubscriptionPlanStatusEnum;
2763
+ title: string;
2764
+ }
2540
2765
  export interface SearchProductTag {
2541
2766
  id: string;
2542
2767
  name: string;
@@ -2547,6 +2772,12 @@ export interface SearchProductVariantType {
2547
2772
  variantType: SearchVariantType;
2548
2773
  variantValueIds: string[];
2549
2774
  }
2775
+ export interface SearchSuggestion {
2776
+ brandId: string | null;
2777
+ categoryId: string | null;
2778
+ id: string;
2779
+ term: string;
2780
+ }
2550
2781
  export interface SearchVariant {
2551
2782
  attributes: SearchProductAttributeValue[] | null;
2552
2783
  barcodeList: string[] | null;
@@ -2560,6 +2791,7 @@ export interface SearchVariant {
2560
2791
  sellIfOutOfStock: boolean | null;
2561
2792
  sku: string | null;
2562
2793
  stocks: SearchProductStockLocation[] | null;
2794
+ subscriptionPlan: SearchProductSubscriptionPlan | null;
2563
2795
  unit: VariantUnitModel | null;
2564
2796
  variantValues: SearchVariationValueRelation[] | null;
2565
2797
  weight: number | null;
@@ -2643,6 +2875,10 @@ export interface StockLocationAddressState {
2643
2875
  id: string | null;
2644
2876
  name: string | null;
2645
2877
  }
2878
+ export interface StoreCreditBalanceResponse {
2879
+ amount: number;
2880
+ storeCredits: GiftCard[];
2881
+ }
2646
2882
  export interface Storefront {
2647
2883
  analytics4Id: string | null;
2648
2884
  createdAt: any | null;
@@ -2883,6 +3119,15 @@ export interface StorefrontTransaction {
2883
3119
  type: TransactionTypeEnum;
2884
3120
  updatedAt: any | null;
2885
3121
  }
3122
+ export interface SubscriptionPlanDiscount {
3123
+ amount: number;
3124
+ type: OrderAmountTypeEnum;
3125
+ }
3126
+ export interface SubscriptionPlanTranslation {
3127
+ description: string | null;
3128
+ locale: string;
3129
+ title: string;
3130
+ }
2886
3131
  export interface Town {
2887
3132
  createdAt: any | null;
2888
3133
  deleted: boolean | null;
@@ -3059,6 +3304,8 @@ export interface AddItemToCartInput {
3059
3304
  priceListId?: string | null;
3060
3305
  salesChannelId: string;
3061
3306
  storefrontThemeId: string;
3307
+ subscriptionPlanId?: string | null;
3308
+ subscriptionPlanPeriodId?: string | null;
3062
3309
  }
3063
3310
  export interface AppliedProductInput {
3064
3311
  productId?: string | null;
@@ -3170,6 +3417,9 @@ export interface CreateSaleTransactionWithCartInput {
3170
3417
  metadata?: any | null;
3171
3418
  paymentGatewayId: string;
3172
3419
  paymentMethodDetail?: PaymentMethodDetailInput | null;
3420
+ milesSmiles?: MilesSmilesPaymentInput | null;
3421
+ savedCardDetail?: SavedCardPaymentDetailInput | null;
3422
+ storeCard?: boolean | null;
3173
3423
  }
3174
3424
  export interface CreateSaleTransactionWithCheckoutInput {
3175
3425
  checkoutId: string;
@@ -3177,6 +3427,7 @@ export interface CreateSaleTransactionWithCheckoutInput {
3177
3427
  metadata?: any | null;
3178
3428
  paymentGatewayId: string;
3179
3429
  paymentMethodDetail?: PaymentMethodDetailInput | null;
3430
+ milesSmiles?: MilesSmilesPaymentInput | null;
3180
3431
  }
3181
3432
  export interface CustomerAddressCityInput {
3182
3433
  code?: string | null;
@@ -3209,6 +3460,16 @@ export interface CustomerAttributeValueInput {
3209
3460
  customerAttributeOptionId?: string | null;
3210
3461
  value?: string | null;
3211
3462
  }
3463
+ export interface CustomerRegisterSubscriptionInput {
3464
+ email: boolean;
3465
+ phone: boolean;
3466
+ sms: boolean;
3467
+ }
3468
+ export interface CustomerAttributeValueInput {
3469
+ customerAttributeId?: string | null;
3470
+ customerAttributeOptionId?: string | null;
3471
+ value?: string | null;
3472
+ }
3212
3473
  export interface DateFilterInput {
3213
3474
  eq?: any | null;
3214
3475
  gt?: any | null;
@@ -3222,11 +3483,22 @@ export interface DateFilterInput {
3222
3483
  export interface GetOrderLineFile {
3223
3484
  url: string;
3224
3485
  }
3486
+ export interface GetOrderInvoicePdfUrlInput {
3487
+ invoiceId: string;
3488
+ orderId: string;
3489
+ }
3490
+ export interface GetOrderLineFile {
3491
+ url: string;
3492
+ }
3225
3493
  export interface GetProductCampaignsInput {
3226
3494
  customerGroupIds?: string[] | null;
3227
3495
  salesChannelId: string;
3228
3496
  variantIds: string[];
3229
3497
  }
3498
+ export interface GetRefundableLinesInput {
3499
+ email?: string | null;
3500
+ orderId: string;
3501
+ }
3230
3502
  export interface HTMLMetaDataTargetTypeEnumFilter {
3231
3503
  eq?: HTMLMetaDataTargetTypeEnum | null;
3232
3504
  in?: HTMLMetaDataTargetTypeEnum[] | null;
@@ -3307,6 +3579,7 @@ export interface OrderRefundRequestInput {
3307
3579
  orderId: string;
3308
3580
  orderLineItems: OrderRefundOrderLineInput[];
3309
3581
  reason?: string | null;
3582
+ refundReasonId?: string | null;
3310
3583
  }
3311
3584
  export interface PaginationInput {
3312
3585
  limit?: number | null;
@@ -3357,12 +3630,36 @@ export interface RaffleParticipantsInput {
3357
3630
  phone?: string | null;
3358
3631
  raffleId: string;
3359
3632
  }
3633
+ export interface MilesSmilesPaymentInput {
3634
+ miles: number;
3635
+ }
3636
+ /** PayTR saved card (DEV-3623). Carries no card tokens. */
3637
+ export interface SavedCard {
3638
+ cardAssociation: TransactionCardAssociationEnum | null;
3639
+ cardBankName: string | null;
3640
+ cardFamily: string | null;
3641
+ cardType: TransactionCardTypeEnum | null;
3642
+ expiryMonth: string | null;
3643
+ expiryYear: string | null;
3644
+ id: string;
3645
+ lastFourDigits: string | null;
3646
+ paymentGatewayId: string;
3647
+ requireCvv: boolean;
3648
+ }
3649
+ export interface SavedCardPaymentDetailInput {
3650
+ cvv?: string | null;
3651
+ installmentCount: number;
3652
+ savedCardId: string;
3653
+ threeDSecure?: boolean | null;
3654
+ }
3360
3655
  export interface RetrieveInstallmentInfoInput {
3361
- binNumber: string;
3656
+ /** Send either this or savedCardId, not both. */
3657
+ binNumber?: string | null;
3362
3658
  currencyCode?: string | null;
3363
3659
  orderId?: string | null;
3364
3660
  paymentGatewayId: string;
3365
3661
  price: number;
3662
+ savedCardId?: string | null;
3366
3663
  }
3367
3664
  export interface SaveCartInput {
3368
3665
  attributes?: OrderAttributeValueInput[] | null;
@@ -3374,6 +3671,7 @@ export interface SaveCartInput {
3374
3671
  giftPackageNote?: string | null;
3375
3672
  id?: string | null;
3376
3673
  isGiftPackage?: boolean | null;
3674
+ metadata?: any | null;
3377
3675
  note?: string | null;
3378
3676
  shippingAddress?: OrderAddressInput | null;
3379
3677
  shippingSettingsId?: string | null;
@@ -3453,10 +3751,12 @@ export interface SearchDynamicCurrencySettings {
3453
3751
  }
3454
3752
  export interface SearchInput {
3455
3753
  barcodeList?: string[] | null;
3754
+ baseCategoryIdList?: string[] | null;
3456
3755
  brandId?: string | null;
3457
3756
  brandIdList?: string[] | null;
3458
3757
  categoryIdList?: string[] | null;
3459
3758
  dynamicCurrencySettings?: SearchDynamicCurrencySettings | null;
3759
+ enableSuggestions?: boolean | null;
3460
3760
  facetList?: SearchInputFacetListInput[] | null;
3461
3761
  filterList?: SearchInputFilterListInput[] | null;
3462
3762
  locale?: string | null;
@@ -3498,6 +3798,18 @@ export interface StringFilterInput {
3498
3798
  ne?: string | null;
3499
3799
  nin?: string[] | null;
3500
3800
  }
3801
+ export interface StripeExpressCheckoutAddressInput {
3802
+ city?: string | null;
3803
+ country?: string | null;
3804
+ postalCode?: string | null;
3805
+ state?: string | null;
3806
+ }
3807
+ export interface StripeExpressCheckoutCustomerInput {
3808
+ email?: string | null;
3809
+ firstName?: string | null;
3810
+ id?: string | null;
3811
+ lastName?: string | null;
3812
+ }
3501
3813
  export interface SubscribeToMarketingNotificationsInput {
3502
3814
  captchaToken?: string | null;
3503
3815
  email: string;
@@ -3514,14 +3826,63 @@ export interface UpdateCartCampaignOfferInput {
3514
3826
  quantity?: number | null;
3515
3827
  variantId: string;
3516
3828
  }
3829
+ export interface UpdatePaypalOrderAddressInput {
3830
+ city?: string | null;
3831
+ country?: string | null;
3832
+ postalCode?: string | null;
3833
+ state?: string | null;
3834
+ }
3835
+ export interface UpdatePaypalOrderCustomerInput {
3836
+ email?: string | null;
3837
+ firstName?: string | null;
3838
+ id?: string | null;
3839
+ lastName?: string | null;
3840
+ }
3841
+ export interface UpdatePaypalOrderInput {
3842
+ address?: UpdatePaypalOrderAddressInput | null;
3843
+ cartId: string;
3844
+ customer?: UpdatePaypalOrderCustomerInput | null;
3845
+ shippingSettingsId?: string | null;
3846
+ shippingZoneRateId?: string | null;
3847
+ transactionId: string;
3848
+ }
3849
+ export interface UpdateStripeExpressCheckoutSessionInput {
3850
+ address?: StripeExpressCheckoutAddressInput | null;
3851
+ cartId: string;
3852
+ customer?: StripeExpressCheckoutCustomerInput | null;
3853
+ sessionId: string;
3854
+ shippingSettingsId?: string | null;
3855
+ shippingZoneRateId?: string | null;
3856
+ transactionId: string;
3857
+ }
3517
3858
  export declare enum StorefrontPopupDeviceTypeEnum {
3518
3859
  ALL = "ALL",
3519
3860
  DESKTOP = "DESKTOP",
3520
3861
  MOBILE = "MOBILE"
3521
3862
  }
3522
3863
  export declare enum StorefrontPopupDisplayFilterTypeEnum {
3864
+ APPLIED_CAMPAIGN = "APPLIED_CAMPAIGN",
3865
+ BRAND_IN_CART = "BRAND_IN_CART",
3866
+ CART_ITEM_COUNT = "CART_ITEM_COUNT",
3523
3867
  CART_TOTAL = "CART_TOTAL",
3524
- CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT"
3868
+ CATEGORY_IN_CART = "CATEGORY_IN_CART",
3869
+ CUSTOMER_AUTH_STATUS = "CUSTOMER_AUTH_STATUS",
3870
+ CUSTOMER_GENDER = "CUSTOMER_GENDER",
3871
+ CUSTOMER_GROUP = "CUSTOMER_GROUP",
3872
+ CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
3873
+ CUSTOMER_SUBSCRIPTION = "CUSTOMER_SUBSCRIPTION",
3874
+ PRODUCT_IN_CART = "PRODUCT_IN_CART"
3875
+ }
3876
+ export declare enum StorefrontPopupDisplayFilterOperatorEnum {
3877
+ ANY_OF = "ANY_OF",
3878
+ BETWEEN = "BETWEEN",
3879
+ EQUALS = "EQUALS",
3880
+ GREATER_THAN = "GREATER_THAN",
3881
+ GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
3882
+ LESS_THAN = "LESS_THAN",
3883
+ LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
3884
+ NONE_OF = "NONE_OF",
3885
+ NOT_EQUALS = "NOT_EQUALS"
3525
3886
  }
3526
3887
  export declare enum StorefrontPopupDisplayFrequencyEnum {
3527
3888
  EVERY_TIME = "EVERY_TIME",
@@ -3569,6 +3930,7 @@ export interface StorefrontPopup {
3569
3930
  deleted: boolean;
3570
3931
  displayFilters: StorefrontPopupDisplayFilter[] | null;
3571
3932
  displaySettings: StorefrontPopupDisplaySettings;
3933
+ hideFilters: StorefrontPopupDisplayFilter[] | null;
3572
3934
  id: string;
3573
3935
  name: string;
3574
3936
  pageFilters: StorefrontPopupPageFilter[] | null;
@@ -3588,9 +3950,9 @@ export interface StorefrontPopupDateFilter {
3588
3950
  startDate: any | null;
3589
3951
  }
3590
3952
  export interface StorefrontPopupDisplayFilter {
3591
- operator: string;
3953
+ operator: StorefrontPopupDisplayFilterOperatorEnum;
3592
3954
  type: StorefrontPopupDisplayFilterTypeEnum;
3593
- value: string;
3955
+ value: string[];
3594
3956
  }
3595
3957
  export interface StorefrontPopupDisplaySettings {
3596
3958
  frequency: StorefrontPopupDisplayFrequencyEnum;
@@ -3625,8 +3987,264 @@ export interface SaveCustomerFormDataInput {
3625
3987
  storefrontPopupId?: string | null;
3626
3988
  subscriptions?: CustomerRegisterSubscriptionInput | null;
3627
3989
  }
3628
- export declare enum CustomerGenderTypeEnum {
3629
- FEMALE = "FEMALE",
3630
- MALE = "MALE",
3631
- OTHER = "OTHER"
3990
+ export interface AddLoyaltyToCartInput {
3991
+ amount?: number | null;
3992
+ cartId: string;
3993
+ loyaltyProgramId: string;
3994
+ loyaltySpendingMethodId: string;
3995
+ }
3996
+ export interface CartLoyaltyLine {
3997
+ campaignType: CampaignTypeEnum | null;
3998
+ discountAmount: number;
3999
+ discountAmountType: OrderAmountTypeEnum;
4000
+ discountPercentage: number | null;
4001
+ loyaltySpendingMethodId: string;
4002
+ pointUsed: number;
4003
+ }
4004
+ export interface LoyaltyCustomerInfo {
4005
+ availablePoint: number;
4006
+ cartLoyaltyLines: CartLoyaltyLine[] | null;
4007
+ cumulativeEarnedPoints: number;
4008
+ customerTier: LoyaltyProgramTier | null;
4009
+ loyaltyProgramCustomerId: string;
4010
+ loyaltyProgramId: string;
4011
+ nextAvailableDate: any | null;
4012
+ nextTierRequiredPoint: number | null;
4013
+ totalPoint: number;
4014
+ }
4015
+ export interface LoyaltyProgram {
4016
+ createdAt: any | null;
4017
+ deleted: boolean;
4018
+ earningMethods: LoyaltyProgramEarningMethod[] | null;
4019
+ id: string;
4020
+ isPassive: boolean | null;
4021
+ name: string;
4022
+ orderStatusToWinPoints: LoyaltyProgramOrderStatusToWinPointsEnum;
4023
+ previousOrderStartDate: any | null;
4024
+ refillPointsOnRefund: boolean | null;
4025
+ salesChannels: LoyaltyProgramSaleChannel[] | null;
4026
+ spendingMethods: LoyaltyProgramSpendingMethod[] | null;
4027
+ tiers: LoyaltyProgramTier[] | null;
4028
+ tokenName: string | null;
4029
+ updatedAt: any | null;
4030
+ validityPeriod: LoyaltyProgramPeriod | null;
4031
+ waitingPeriodDays: number | null;
4032
+ }
4033
+ export interface LoyaltyProgramDiscountSettings {
4034
+ discountAmount: number | null;
4035
+ freeProductId: string | null;
4036
+ freeProductVariantId: string | null;
4037
+ point: number;
4038
+ }
4039
+ export interface LoyaltyProgramEarningMethod {
4040
+ activatedAt: any | null;
4041
+ amountPerPointsEarned: number | null;
4042
+ createdAt: any | null;
4043
+ deleted: boolean;
4044
+ description: string | null;
4045
+ earnedPointLimit: LoyaltyProgramPointLimit | null;
4046
+ id: string;
4047
+ isActive: boolean;
4048
+ lastValidityDate: any | null;
4049
+ loyaltyProgramId: string;
4050
+ methodType: EarningMethodTypeEnum;
4051
+ orderSettings: LoyaltyProgramEarningMethodOrderSettings | null;
4052
+ pointEarningType: LoyaltyProgramPointEarningTypeEnum;
4053
+ pointsEarned: number;
4054
+ productSettings: LoyaltyProgramEarningMethodProductSettings | null;
4055
+ quantityPerPointsEarned: number | null;
4056
+ requireImageForCustomerReview: boolean | null;
4057
+ segmentId: string | null;
4058
+ tierIds: string[] | null;
4059
+ translations: LoyaltyProgramMethodTranslation[] | null;
4060
+ updatedAt: any | null;
4061
+ validityPeriod: LoyaltyProgramPeriod | null;
4062
+ waitingPeriodDays: number | null;
4063
+ }
4064
+ export interface LoyaltyProgramEarningMethodOrderSettings {
4065
+ maxOrderAmount: number | null;
4066
+ minOrderAmount: number | null;
4067
+ productFilters: LoyaltyProgramFilter[] | null;
4068
+ }
4069
+ export interface LoyaltyProgramEarningMethodProductSettings {
4070
+ maxProductQuantity: number | null;
4071
+ minProductQuantity: number | null;
4072
+ productFilters: LoyaltyProgramFilter[] | null;
4073
+ }
4074
+ export interface LoyaltyProgramFilter {
4075
+ idList: string[];
4076
+ type: LoyaltyProgramFilterTypeEnum;
4077
+ }
4078
+ export interface LoyaltyProgramMethodTranslation {
4079
+ description: string;
4080
+ locale: string;
4081
+ }
4082
+ export interface LoyaltyProgramPeriod {
4083
+ period: string | null;
4084
+ periodType: PeriodTypeEnum | null;
4085
+ }
4086
+ export interface LoyaltyProgramPointHistory {
4087
+ amount: number;
4088
+ availableDate: any | null;
4089
+ baseAmount: number | null;
4090
+ baseQuantity: number | null;
4091
+ createdAt: any | null;
4092
+ customerId: string;
4093
+ customerReviewId: string | null;
4094
+ deleted: boolean;
4095
+ expireDate: any | null;
4096
+ id: string;
4097
+ loyaltyProgramCustomerId: string;
4098
+ loyaltyProgramEarningMethodId: string | null;
4099
+ loyaltyProgramId: string;
4100
+ loyaltyProgramSpendingMethodId: string | null;
4101
+ orderId: string | null;
4102
+ productVariantId: string | null;
4103
+ refundTransactionId: string | null;
4104
+ retroactiveCalculationId: string | null;
4105
+ type: LoyaltyProgramPointHistoryTypeEnum;
4106
+ updatedAt: any | null;
4107
+ }
4108
+ export interface LoyaltyProgramPointLimit {
4109
+ maxPointLimit: number | null;
4110
+ minPointLimit: number | null;
4111
+ }
4112
+ export interface LoyaltyProgramSaleChannel {
4113
+ pageFilters: StorefrontPopupPageFilter[] | null;
4114
+ routingIds: string[] | null;
4115
+ salesChannelId: string;
4116
+ storefrontId: string | null;
4117
+ }
4118
+ export interface LoyaltyProgramSpendingMethod {
4119
+ createdAt: any | null;
4120
+ deleted: boolean;
4121
+ description: string | null;
4122
+ discountSettings: LoyaltyProgramDiscountSettings | null;
4123
+ id: string;
4124
+ isActive: boolean;
4125
+ isAvailable: boolean | null;
4126
+ isDynamic: boolean;
4127
+ loyaltyProgramId: string;
4128
+ pointUsageLimit: LoyaltyProgramPointLimit | null;
4129
+ productFilters: LoyaltyProgramFilter[] | null;
4130
+ translations: LoyaltyProgramMethodTranslation[] | null;
4131
+ type: LoyaltyProgramMethodSpendingTypeEnum;
4132
+ unavailableReason: LoyaltyLineErrorCodeEnum | null;
4133
+ updatedAt: any | null;
4134
+ }
4135
+ export interface LoyaltyProgramTier {
4136
+ createdAt: any | null;
4137
+ customerSegmentId: string | null;
4138
+ deleted: boolean;
4139
+ id: string;
4140
+ isActive: boolean;
4141
+ loyaltyProgramId: string;
4142
+ maintenanceType: LoyaltyTierMaintenanceTypeEnum | null;
4143
+ maintenanceTypeEffectiveAt: any | null;
4144
+ name: string;
4145
+ period: LoyaltyProgramPeriod | null;
4146
+ pointsRequired: number | null;
4147
+ tierPointMultiplier: number | null;
4148
+ translations: LoyaltyProgramTierTranslation[] | null;
4149
+ updatedAt: any | null;
4150
+ }
4151
+ export interface LoyaltyProgramTierTranslation {
4152
+ locale: string;
4153
+ name: string;
4154
+ }
4155
+ export interface LoyaltyWidgetSettings {
4156
+ pageFilters: StorefrontPopupPageFilter[] | null;
4157
+ }
4158
+ export declare enum LoyaltyProgramFilterTypeEnum {
4159
+ CATEGORY = "CATEGORY",
4160
+ DYNAMIC_CATEGORY = "DYNAMIC_CATEGORY",
4161
+ PRODUCT_AND_VARIANT = "PRODUCT_AND_VARIANT",
4162
+ PRODUCT_BRAND = "PRODUCT_BRAND",
4163
+ PRODUCT_TAG = "PRODUCT_TAG"
4164
+ }
4165
+ export declare enum LoyaltyLineErrorCodeEnum {
4166
+ LOYALTY_NOT_APPLICABLE = "LOYALTY_NOT_APPLICABLE",
4167
+ LOYALTY_NOT_COMBINABLE_WITH_CAMPAIGN = "LOYALTY_NOT_COMBINABLE_WITH_CAMPAIGN",
4168
+ NOT_ENOUGH_LOYALTY_POINTS = "NOT_ENOUGH_LOYALTY_POINTS"
4169
+ }
4170
+ export declare enum LoyaltyProgramMethodSpendingTypeEnum {
4171
+ FIXED_AMOUNT = "FIXED_AMOUNT",
4172
+ FREE_PRODUCT = "FREE_PRODUCT",
4173
+ FREE_SHIPPING = "FREE_SHIPPING",
4174
+ RATIO = "RATIO"
4175
+ }
4176
+ export declare enum LoyaltyProgramOrderStatusToWinPointsEnum {
4177
+ ORDER_CREATED = "ORDER_CREATED",
4178
+ ORDER_DELIVERED = "ORDER_DELIVERED",
4179
+ PAYMENT_COMPLETED = "PAYMENT_COMPLETED"
4180
+ }
4181
+ export declare enum LoyaltyProgramPointEarningTypeEnum {
4182
+ DYNAMIC_ORDER_AMOUNT = "DYNAMIC_ORDER_AMOUNT",
4183
+ DYNAMIC_ORDER_QUANTITY = "DYNAMIC_ORDER_QUANTITY",
4184
+ STATIC = "STATIC"
4185
+ }
4186
+ export declare enum LoyaltyProgramPointHistoryTypeEnum {
4187
+ EARN = "EARN",
4188
+ MANUAL_DEDUCT = "MANUAL_DEDUCT",
4189
+ MANUAL_EARN = "MANUAL_EARN",
4190
+ REFILL = "REFILL",
4191
+ REFUND = "REFUND",
4192
+ SPEND = "SPEND"
4193
+ }
4194
+ export interface OrderLoyaltyLine {
4195
+ amount: number;
4196
+ id: string;
4197
+ loyaltyProgramCustomerId: string;
4198
+ loyaltyProgramId: string;
4199
+ loyaltyProgramSpendingMethodType: string | null;
4200
+ loyaltySpendingMethodId: string;
4201
+ }
4202
+ export declare enum EarningMethodTypeEnum {
4203
+ BUY_PRODUCT = "BUY_PRODUCT",
4204
+ CUSTOMER_REGISTER = "CUSTOMER_REGISTER",
4205
+ CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
4206
+ CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
4207
+ ENABLE_SUBSCRIPTION = "ENABLE_SUBSCRIPTION",
4208
+ ORDER_CREATE = "ORDER_CREATE"
4209
+ }
4210
+ export declare enum PeriodTypeEnum {
4211
+ MONTH = "MONTH",
4212
+ WEEK = "WEEK",
4213
+ YEAR = "YEAR"
4214
+ }
4215
+ export interface LoyaltyProgramPointHistoryTypeEnumFilterInput {
4216
+ eq?: LoyaltyProgramPointHistoryTypeEnum | null;
4217
+ in?: LoyaltyProgramPointHistoryTypeEnum[] | null;
4218
+ ne?: LoyaltyProgramPointHistoryTypeEnum | null;
4219
+ nin?: LoyaltyProgramPointHistoryTypeEnum[] | null;
4220
+ }
4221
+ export declare enum StorefrontWidgetSettingsStatusEnum {
4222
+ ACTIVE = "ACTIVE",
4223
+ PASSIVE = "PASSIVE"
4224
+ }
4225
+ export interface StorefrontWidgetSettings {
4226
+ createdAt: any | null;
4227
+ deleted: boolean;
4228
+ id: string;
4229
+ status: StorefrontWidgetSettingsStatusEnum;
4230
+ storefrontRoutings: StorefrontWidgetSettingsRouting[];
4231
+ themeSettingsJson: any | null;
4232
+ updatedAt: any | null;
4233
+ }
4234
+ export interface StorefrontWidgetSettingsRouting {
4235
+ storefrontId: string;
4236
+ storefrontRoutingId: string;
4237
+ }
4238
+ export interface StripeExpressCheckoutSessionContextResponse {
4239
+ amountTotal: number | null;
4240
+ currency: string | null;
4241
+ lineItemsJson: string | null;
4242
+ paymentStatus: string | null;
4243
+ sessionId: string;
4244
+ shippingOptionsJson: string | null;
4245
+ transactionId: string;
4246
+ }
4247
+ export declare enum LoyaltyTierMaintenanceTypeEnum {
4248
+ AUTO_MAINTENANCE = "AUTO_MAINTENANCE",
4249
+ NO_MAINTENANCE = "NO_MAINTENANCE"
3632
4250
  }