@ikas/storefront-api 6.1.0-beta.38 → 6.1.0-beta.381

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 (179) 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 +3 -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 +2 -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/ExternalAccountLink.d.ts +12 -0
  17. package/build/__api/models/GetCustomerReviewImageUploadUrlResponse.d.ts +11 -0
  18. package/build/__api/models/GetRefundableLineItemResponse.d.ts +14 -0
  19. package/build/__api/models/GetRefundableLinesInput.d.ts +10 -0
  20. package/build/__api/models/GetRefundableLinesResponse.d.ts +14 -0
  21. package/build/__api/models/HepsipayFrameInitResponse.d.ts +11 -0
  22. package/build/__api/models/ListOrderTransactionWithPricesResponse.d.ts +1 -0
  23. package/build/__api/models/LoyaltyCustomerInfo.d.ts +19 -0
  24. package/build/__api/models/LoyaltyProgram.d.ts +27 -0
  25. package/build/__api/models/LoyaltyProgramDiscountSettings.d.ts +12 -0
  26. package/build/__api/models/LoyaltyProgramEarningMethod.d.ts +34 -0
  27. package/build/__api/models/LoyaltyProgramEarningMethodOrderSettings.d.ts +12 -0
  28. package/build/__api/models/LoyaltyProgramEarningMethodProductSettings.d.ts +12 -0
  29. package/build/__api/models/LoyaltyProgramFilter.d.ts +11 -0
  30. package/build/__api/models/LoyaltyProgramMethodTranslation.d.ts +10 -0
  31. package/build/__api/models/LoyaltyProgramPeriod.d.ts +11 -0
  32. package/build/__api/models/LoyaltyProgramPointHistory.d.ts +26 -0
  33. package/build/__api/models/LoyaltyProgramPointHistoryTypeEnumFilterInput.d.ts +13 -0
  34. package/build/__api/models/LoyaltyProgramPointLimit.d.ts +10 -0
  35. package/build/__api/models/LoyaltyProgramSaleChannel.d.ts +13 -0
  36. package/build/__api/models/LoyaltyProgramSpendingMethod.d.ts +24 -0
  37. package/build/__api/models/LoyaltyProgramTier.d.ts +22 -0
  38. package/build/__api/models/LoyaltyProgramTierTranslation.d.ts +10 -0
  39. package/build/__api/models/LoyaltyWidgetSettings.d.ts +10 -0
  40. package/build/__api/models/MilesSmilesDetailsResponse.d.ts +12 -0
  41. package/build/__api/models/MilesSmilesPaymentInput.d.ts +9 -0
  42. package/build/__api/models/OrderAdjustment.d.ts +3 -1
  43. package/build/__api/models/OrderLineItem.d.ts +5 -0
  44. package/build/__api/models/OrderLineItemCustomerSubscriptionPlan.d.ts +9 -0
  45. package/build/__api/models/OrderLineItemSubscriptionPlan.d.ts +12 -0
  46. package/build/__api/models/OrderLineItemSubscriptionPlanPeriod.d.ts +19 -0
  47. package/build/__api/models/OrderLoyaltyLine.d.ts +14 -0
  48. package/build/__api/models/OrderRefundReason.d.ts +12 -0
  49. package/build/__api/models/OrderRefundReasonTranslation.d.ts +10 -0
  50. package/build/__api/models/OrderRefundRequestInput.d.ts +1 -0
  51. package/build/__api/models/OrderRefundSettingsTranslation.d.ts +10 -0
  52. package/build/__api/models/PaymentGateway.d.ts +1 -0
  53. package/build/__api/models/ProductSearchResponse.d.ts +2 -0
  54. package/build/__api/models/SearchInput.d.ts +2 -0
  55. package/build/__api/models/SearchSuggestion.d.ts +12 -0
  56. package/build/__api/models/StorefrontPopup.d.ts +1 -0
  57. package/build/__api/models/StorefrontPopupDisplayFilter.d.ts +3 -3
  58. package/build/__api/models/StorefrontWidgetSettings.d.ts +14 -0
  59. package/build/__api/models/StorefrontWidgetSettingsRouting.d.ts +10 -0
  60. package/build/__api/models/StripeExpressCheckoutAddressInput.d.ts +12 -0
  61. package/build/__api/models/StripeExpressCheckoutCustomerInput.d.ts +12 -0
  62. package/build/__api/models/StripeExpressCheckoutSessionContextResponse.d.ts +15 -0
  63. package/build/__api/models/SubscriptionPlanDiscount.d.ts +11 -0
  64. package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
  65. package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
  66. package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
  67. package/build/__api/models/UpdateStripeExpressCheckoutSessionInput.d.ts +17 -0
  68. package/build/__api/mutations/addItemToCart.d.ts +13 -0
  69. package/build/__api/mutations/addItemToCart.js +1 -1
  70. package/build/__api/mutations/createIyzicoCheckoutForm.d.ts +11 -0
  71. package/build/__api/mutations/createIyzicoCheckoutForm.js +1 -0
  72. package/build/__api/mutations/createOrderRefundRequest.d.ts +31 -0
  73. package/build/__api/mutations/createOrderRefundRequest.js +1 -1
  74. package/build/__api/mutations/createPayWithIkasSessionUrl.d.ts +11 -0
  75. package/build/__api/mutations/createPayWithIkasSessionUrl.js +1 -0
  76. package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
  77. package/build/__api/mutations/createPaypalOrder.js +1 -1
  78. package/build/__api/mutations/createStripeExpressCheckoutSession.d.ts +16 -0
  79. package/build/__api/mutations/createStripeExpressCheckoutSession.js +1 -0
  80. package/build/__api/mutations/createTkPayCheckoutForm.d.ts +11 -0
  81. package/build/__api/mutations/createTkPayCheckoutForm.js +1 -0
  82. package/build/__api/mutations/customerDeactivate.d.ts +1 -1
  83. package/build/__api/mutations/customerDeactivate.js +1 -1
  84. package/build/__api/mutations/customerLogin.d.ts +6 -2
  85. package/build/__api/mutations/customerLogin.js +1 -1
  86. package/build/__api/mutations/getCustomerReviewImageUploadUrl.d.ts +13 -0
  87. package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
  88. package/build/__api/mutations/getPaypalClientId.js +1 -1
  89. package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
  90. package/build/__api/mutations/hepsipayFrameInit.js +1 -0
  91. package/build/__api/mutations/registerCustomer.d.ts +8 -4
  92. package/build/__api/mutations/registerCustomer.js +1 -1
  93. package/build/__api/mutations/removeLoyaltyPointsFromCart.d.ts +535 -0
  94. package/build/__api/mutations/removeLoyaltyPointsFromCart.js +1 -0
  95. package/build/__api/mutations/resendCustomerPhoneVerificationCode.d.ts +2 -5
  96. package/build/__api/mutations/resendCustomerPhoneVerificationCode.js +1 -1
  97. package/build/__api/mutations/unlinkExternalAccount.d.ts +7 -0
  98. package/build/__api/mutations/unlinkExternalAccount.js +1 -0
  99. package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
  100. package/build/__api/mutations/updatePaypalOrder.js +1 -0
  101. package/build/__api/mutations/updateStripeExpressCheckoutSession.d.ts +16 -0
  102. package/build/__api/mutations/updateStripeExpressCheckoutSession.js +1 -0
  103. package/build/__api/mutations/useLoyaltyPoints.d.ts +534 -0
  104. package/build/__api/mutations/useLoyaltyPoints.js +1 -0
  105. package/build/__api/mutations/validateCustomerPhoneVerificationCode.d.ts +1 -0
  106. package/build/__api/mutations/validateCustomerPhoneVerificationCode.js +1 -1
  107. package/build/__api/mutations/validateOTPCode.d.ts +97 -0
  108. package/build/__api/mutations/validateOTPCode.js +1 -0
  109. package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
  110. package/build/__api/queries/getAvailableStockLocations.js +1 -1
  111. package/build/__api/queries/getCart.d.ts +13 -0
  112. package/build/__api/queries/getCartById.d.ts +23 -0
  113. package/build/__api/queries/getCartById.js +1 -1
  114. package/build/__api/queries/getCheckoutByCartId.d.ts +13 -0
  115. package/build/__api/queries/getCheckoutById.d.ts +13 -0
  116. package/build/__api/queries/getCustomerOrders.d.ts +19 -0
  117. package/build/__api/queries/getCustomerOrders.js +1 -1
  118. package/build/__api/queries/getExternalAccountLink.d.ts +12 -0
  119. package/build/__api/queries/getExternalAccountLink.js +1 -0
  120. package/build/__api/queries/getLoyaltyCustomerInfo.d.ts +38 -0
  121. package/build/__api/queries/getLoyaltyCustomerInfo.js +1 -0
  122. package/build/__api/queries/getLoyaltyProgram.d.ts +93 -0
  123. package/build/__api/queries/getLoyaltyProgram.js +1 -0
  124. package/build/__api/queries/getLoyaltyWidgetSettings.d.ts +9 -0
  125. package/build/__api/queries/getLoyaltyWidgetSettings.js +1 -0
  126. package/build/__api/queries/getMilesSmilesDetails.d.ts +10 -0
  127. package/build/__api/queries/getMilesSmilesDetails.js +1 -0
  128. package/build/__api/queries/getOrder.d.ts +19 -0
  129. package/build/__api/queries/getOrderInvoicePdfUrl.d.ts +7 -0
  130. package/build/__api/queries/getOrderInvoicePdfUrl.js +1 -0
  131. package/build/__api/queries/getRefundableLines.d.ts +23 -0
  132. package/build/__api/queries/getRefundableLines.js +1 -0
  133. package/build/__api/queries/getStoreCreditBalance.d.ts +25 -0
  134. package/build/__api/queries/getStoreCreditBalance.js +1 -0
  135. package/build/__api/queries/getStorefrontWidgetSettings.d.ts +14 -0
  136. package/build/__api/queries/getStorefrontWidgetSettings.js +1 -0
  137. package/build/__api/queries/listCheckoutSettings.d.ts +7 -0
  138. package/build/__api/queries/listCheckoutSettings.js +1 -1
  139. package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -0
  140. package/build/__api/queries/listCustomerReviews.d.ts +12 -0
  141. package/build/__api/queries/listCustomerReviews.js +1 -1
  142. package/build/__api/queries/listEarningMethods.d.ts +38 -0
  143. package/build/__api/queries/listEarningMethods.js +1 -0
  144. package/build/__api/queries/listLoyaltyProgramPointHistory.d.ts +30 -0
  145. package/build/__api/queries/listLoyaltyProgramPointHistory.js +1 -0
  146. package/build/__api/queries/listLoyaltyProgramTiers.d.ts +22 -0
  147. package/build/__api/queries/listLoyaltyProgramTiers.js +1 -0
  148. package/build/__api/queries/listOrderTransactionsWithPrices.d.ts +1 -0
  149. package/build/__api/queries/listOrderTransactionsWithPrices.js +1 -1
  150. package/build/__api/queries/listPaymentGateway.d.ts +1 -0
  151. package/build/__api/queries/listPaymentGateway.js +1 -1
  152. package/build/__api/queries/listSpendingMethodsByCartId.d.ts +29 -0
  153. package/build/__api/queries/listSpendingMethodsByCartId.js +1 -0
  154. package/build/__api/queries/listStorefrontPopup.d.ts +3 -0
  155. package/build/__api/queries/listStorefrontPopup.js +1 -1
  156. package/build/__api/queries/searchProducts.d.ts +21 -0
  157. package/build/__api/queries/searchProducts.js +1 -1
  158. package/build/__api/types/index.d.ts +588 -15
  159. package/build/__api/types/index.js +1 -1
  160. package/build/api/cart/index.d.ts +7 -1
  161. package/build/api/cart/index.js +1 -1
  162. package/build/api/checkout/index.d.ts +19 -4
  163. package/build/api/checkout/index.js +1 -1
  164. package/build/api/customer/index.d.ts +45 -7
  165. package/build/api/customer/index.js +1 -1
  166. package/build/api/loyalty/index.d.ts +15 -0
  167. package/build/api/loyalty/index.js +1 -0
  168. package/build/api/merchant/index.d.ts +2 -2
  169. package/build/api/merchant/index.js +1 -1
  170. package/build/api/miles-smiles/index.d.ts +21 -0
  171. package/build/api/miles-smiles/index.js +1 -0
  172. package/build/api/product/index.d.ts +2 -1
  173. package/build/api/product/index.js +1 -1
  174. package/build/api/storefront/index.d.ts +7 -1
  175. package/build/index.d.ts +5 -2
  176. package/build/index.js +1 -1
  177. package/build/index2.js +1 -1
  178. package/package.json +7 -7
  179. 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;
@@ -928,6 +980,7 @@ export interface CartV2 {
928
980
  customerId: string | null;
929
981
  deleted: boolean | null;
930
982
  dueDate: any | null;
983
+ edited: boolean | null;
931
984
  giftCardLines: OrderGiftCardLine[] | null;
932
985
  giftPackageLines: OrderGiftPackageLine[] | null;
933
986
  giftPackageNote: string | null;
@@ -935,6 +988,7 @@ export interface CartV2 {
935
988
  id: string;
936
989
  isGiftPackage: boolean | null;
937
990
  itemCount: number | null;
991
+ loyaltyLines: OrderLoyaltyLine[] | null;
938
992
  merchantId: string;
939
993
  note: string | null;
940
994
  orderAdjustments: OrderAdjustment[] | null;
@@ -1073,6 +1127,7 @@ export interface CheckoutOption {
1073
1127
  required: boolean;
1074
1128
  }
1075
1129
  export interface CheckoutSettings {
1130
+ addressFieldRestrictions: AddressFieldRestrictions | null;
1076
1131
  corporateInvoiceRequirement: CorporateInvoiceRequirementEnum | null;
1077
1132
  couponCodeRequirement: CouponCodeRequirementEnum | null;
1078
1133
  createdAt: any | null;
@@ -1088,6 +1143,7 @@ export interface CheckoutSettings {
1088
1143
  options: CheckoutOption[] | null;
1089
1144
  phoneRequirement: CheckoutRequirementEnum;
1090
1145
  postalCodeRequirement: CheckoutRequirementEnum | null;
1146
+ showBillingAddressOnShippingStep: boolean | null;
1091
1147
  showCheckoutNote: boolean | null;
1092
1148
  showCompanyInfoInShippingAddress: boolean | null;
1093
1149
  showTermsAndConditionsCheckbox: boolean;
@@ -1154,6 +1210,10 @@ export interface CreateAdyenSessionResponse {
1154
1210
  sessionData: string | null;
1155
1211
  sessionId: string;
1156
1212
  }
1213
+ export interface CreateIyzicoCheckoutFormResponse {
1214
+ checkoutFormContent: string;
1215
+ paymentPageUrl: string;
1216
+ }
1157
1217
  export interface CreateKlarnaTokenResponse {
1158
1218
  authorizeUrl: string | null;
1159
1219
  clientToken: string | null;
@@ -1167,6 +1227,19 @@ export interface CreatePaypalOrderResponse {
1167
1227
  sessionToken: string;
1168
1228
  transactionId: string;
1169
1229
  }
1230
+ export interface CreatePayWithIkasSessionUrlResponse {
1231
+ expiresAt: number;
1232
+ payUrl: string;
1233
+ }
1234
+ export interface CreateStripeExpressCheckoutSessionResponse {
1235
+ accountId: string;
1236
+ apiKey: string;
1237
+ callbackUrl: string;
1238
+ clientSecret: string;
1239
+ failUrl: string;
1240
+ sessionId: string;
1241
+ transactionId: string;
1242
+ }
1170
1243
  export interface CreateStripePaymentIntentResponse {
1171
1244
  accountId: string;
1172
1245
  apiKey: string;
@@ -1174,6 +1247,10 @@ export interface CreateStripePaymentIntentResponse {
1174
1247
  clientSecret: string;
1175
1248
  failUrl: string;
1176
1249
  }
1250
+ export interface CreateTkPayCheckoutFormResponse {
1251
+ callbackUrl: string;
1252
+ paymentPageUrl: string;
1253
+ }
1177
1254
  export interface CurrencyRate {
1178
1255
  baseCurrency: string;
1179
1256
  baseCurrencyCode: string | null;
@@ -1335,6 +1412,13 @@ export interface CustomerFavoriteProduct {
1335
1412
  productId: string;
1336
1413
  updatedAt: any | null;
1337
1414
  }
1415
+ export interface CustomerLoginResponse {
1416
+ customer: Customer | null;
1417
+ flowId: string | null;
1418
+ otpSend: boolean | null;
1419
+ token: string;
1420
+ tokenExpiry: number;
1421
+ }
1338
1422
  export interface CustomerPriceListRule {
1339
1423
  filters: CustomerPriceListRuleFilter[] | null;
1340
1424
  shouldMatchAllFilters: boolean | null;
@@ -1345,11 +1429,6 @@ export interface CustomerPriceListRuleFilter {
1345
1429
  type: CustomerPriceListRuleFilterTypeEnum;
1346
1430
  valueList: string[];
1347
1431
  }
1348
- export interface CustomerLoginResponse {
1349
- customer: Customer | null;
1350
- token: string;
1351
- tokenExpiry: number;
1352
- }
1353
1432
  export interface CustomerRefreshTokenResponse {
1354
1433
  token: string;
1355
1434
  tokenExpiry: number;
@@ -1358,16 +1437,20 @@ export interface CustomerReview {
1358
1437
  comment: string | null;
1359
1438
  createdAt: any | null;
1360
1439
  customerId: string | null;
1361
- deleted: boolean | null;
1440
+ deleted: boolean;
1362
1441
  email: string | null;
1363
1442
  firstName: string | null;
1364
1443
  id: string;
1365
1444
  imageIds: string[] | null;
1445
+ isPrivateReply: boolean | null;
1366
1446
  lastName: string | null;
1447
+ locale: string | null;
1367
1448
  orderId: string | null;
1368
1449
  orderNumber: string | null;
1450
+ product: CustomerReviewProductModel | null;
1369
1451
  productId: string;
1370
1452
  reply: string | null;
1453
+ replyInfo: CustomerReviewReplyInfo | null;
1371
1454
  salesChannelId: string | null;
1372
1455
  star: number;
1373
1456
  status: CustomerReviewStatusEnum | null;
@@ -1375,6 +1458,18 @@ export interface CustomerReview {
1375
1458
  title: string | null;
1376
1459
  updatedAt: any | null;
1377
1460
  }
1461
+ export interface CustomerReviewProductModel {
1462
+ brandId: string | null;
1463
+ categoryIds: string[] | null;
1464
+ id: string | null;
1465
+ tagIds: string | null;
1466
+ type: ProductTypeEnum | null;
1467
+ vendorId: string | null;
1468
+ }
1469
+ export interface CustomerReviewReplyInfo {
1470
+ createdAt: any | null;
1471
+ staffId: string | null;
1472
+ }
1378
1473
  export interface CustomerReviewSFPaginationResponse {
1379
1474
  count: number;
1380
1475
  data: CustomerReview[];
@@ -1385,7 +1480,7 @@ export interface CustomerReviewSFPaginationResponse {
1385
1480
  export interface CustomerReviewSummary {
1386
1481
  averageStar: number;
1387
1482
  createdAt: any | null;
1388
- deleted: boolean | null;
1483
+ deleted: boolean;
1389
1484
  id: string;
1390
1485
  productId: string;
1391
1486
  stars: CustomerReviewSummaryStar[];
@@ -1468,6 +1563,11 @@ export interface GetAvailableStockLocationAddressCountry {
1468
1563
  export interface GetAvailableStockLocationsResponse {
1469
1564
  stockLocations: GetAvailableStockLocation[];
1470
1565
  }
1566
+ export interface GetCustomerReviewImageUploadUrlResponse {
1567
+ fields: any;
1568
+ imageId: string;
1569
+ uploadUrl: string;
1570
+ }
1471
1571
  export interface GetPaypalClientIdResponse {
1472
1572
  clientId: string;
1473
1573
  merchantClientId: string | null;
@@ -1482,6 +1582,22 @@ export interface GetProductOptionFileUrl {
1482
1582
  optionUrl: string;
1483
1583
  url: string;
1484
1584
  }
1585
+ export interface GetRefundableLineItemResponse {
1586
+ autoApprove: boolean;
1587
+ flow: OrderRefundFlowEnum | null;
1588
+ isCancellable: boolean;
1589
+ isRefundable: boolean;
1590
+ orderLineItemId: string;
1591
+ }
1592
+ export interface GetRefundableLinesResponse {
1593
+ orderLineItems: GetRefundableLineItemResponse[];
1594
+ refundReasons: OrderRefundReason[];
1595
+ translations: OrderRefundSettingsTranslation[];
1596
+ }
1597
+ export interface OrderRefundSettingsTranslation {
1598
+ locale: string;
1599
+ returnMethodDescription: string | null;
1600
+ }
1485
1601
  export interface GetVariantStockLocation {
1486
1602
  stockCount: number;
1487
1603
  stockLocation: GetAvailableStockLocation;
@@ -1496,6 +1612,28 @@ export interface GetY {
1496
1612
  discountRatio: number;
1497
1613
  filter: CampaignFilter;
1498
1614
  }
1615
+ export interface GiftCard {
1616
+ active: boolean;
1617
+ amount: number;
1618
+ code: string;
1619
+ createdAt: any | null;
1620
+ customerId: string | null;
1621
+ deleted: boolean;
1622
+ endDate: any | null;
1623
+ id: string;
1624
+ minimumRequiredCartAmount: number | null;
1625
+ salesChannels: GiftCardSalesChannel[] | null;
1626
+ startDate: any | null;
1627
+ type: GiftCardTypeEnum;
1628
+ updatedAt: any | null;
1629
+ usedAllAmount: boolean | null;
1630
+ usedAmount: number;
1631
+ }
1632
+ export interface GiftCardSalesChannel {
1633
+ salesChannelId: string;
1634
+ storefrontId: string | null;
1635
+ storefrontRoutingId: string | null;
1636
+ }
1499
1637
  export interface HTMLMetaData {
1500
1638
  canonicals: string[] | null;
1501
1639
  createdAt: any | null;
@@ -1556,6 +1694,7 @@ export interface ListOrderTransactionWithPricesRefundableTransaction {
1556
1694
  export interface ListOrderTransactionWithPricesResponse {
1557
1695
  chargedAmount: number;
1558
1696
  orderFinalPrice: number;
1697
+ pendingAmount: number;
1559
1698
  refundableTransactions: ListOrderTransactionWithPricesRefundableTransaction[];
1560
1699
  refundedAmount: number;
1561
1700
  remainingBalance: number;
@@ -1636,6 +1775,17 @@ export interface MerchantSettingsCurrencyFormat {
1636
1775
  symbolPosition: CurrencyFormatSymbolPosition;
1637
1776
  thousandSeparator: string;
1638
1777
  }
1778
+ export interface ExternalAccountLink {
1779
+ externalId: string;
1780
+ linkedAt: any;
1781
+ provider: CustomerExternalAccountLinkProviderEnum;
1782
+ }
1783
+ export interface MilesSmilesDetailsResponse {
1784
+ availableMiles: number;
1785
+ firstName: string | null;
1786
+ lastName: string | null;
1787
+ memberId: string;
1788
+ }
1639
1789
  export interface OrderAddress {
1640
1790
  addressLine1: string;
1641
1791
  addressLine2: string | null;
@@ -1691,9 +1841,11 @@ export interface OrderAdjustment {
1691
1841
  campaignId: string | null;
1692
1842
  campaignType: CampaignTypeEnum | null;
1693
1843
  couponId: string | null;
1844
+ createdFor: CampaignCreatedForEnum | null;
1694
1845
  name: string;
1695
1846
  order: number;
1696
1847
  type: OrderAdjustmentEnum;
1848
+ usedLoyaltyPoints: number | null;
1697
1849
  }
1698
1850
  export interface OrderAdjustmentAppliedOrderLine {
1699
1851
  amount: number;
@@ -1726,6 +1878,7 @@ export interface OrderGiftCardLine {
1726
1878
  code: string;
1727
1879
  giftCardId: string;
1728
1880
  id: string;
1881
+ type: GiftCardTypeEnum | null;
1729
1882
  }
1730
1883
  export interface OrderGiftPackageLine {
1731
1884
  price: number;
@@ -1783,11 +1936,31 @@ export interface OrderLineItem {
1783
1936
  status: OrderLineItemStatusEnum;
1784
1937
  statusUpdatedAt: any | null;
1785
1938
  stockLocationId: string | null;
1939
+ subscriptionPlan: OrderLineItemSubscriptionPlan | null;
1786
1940
  taxValue: number | null;
1787
1941
  unitPrice: number | null;
1788
1942
  updatedAt: any | null;
1789
1943
  variant: OrderLineVariant;
1790
1944
  }
1945
+ export interface OrderLineItemCustomerSubscriptionPlan {
1946
+ id: string;
1947
+ }
1948
+ export interface OrderLineItemSubscriptionPlan {
1949
+ id: string;
1950
+ name: string;
1951
+ period: OrderLineItemSubscriptionPlanPeriod;
1952
+ }
1953
+ export interface OrderLineItemSubscriptionPlanPeriod {
1954
+ cutOffDay: number | null;
1955
+ discount: SubscriptionPlanDiscount | null;
1956
+ durationUnit: SubscriptionPlanDurationUnitTypeEnum;
1957
+ durationValue: number;
1958
+ id: string;
1959
+ maxOrders: number | null;
1960
+ paymentType: SubscriptionPlanPaymentTypeEnum;
1961
+ scheduledOrderDay: number | null;
1962
+ title: string;
1963
+ }
1791
1964
  export interface OrderLineOption {
1792
1965
  name: string;
1793
1966
  productOptionId: string;
@@ -1896,6 +2069,18 @@ export interface OrderPaymentMethod {
1896
2069
  price: number;
1897
2070
  type: PaymentMethodTypeEnum;
1898
2071
  }
2072
+ export interface OrderRefundReason {
2073
+ createdAt: any | null;
2074
+ deleted: boolean;
2075
+ id: string;
2076
+ title: string;
2077
+ translations: OrderRefundReasonTranslation[] | null;
2078
+ updatedAt: any | null;
2079
+ }
2080
+ export interface OrderRefundReasonTranslation {
2081
+ locale: string;
2082
+ title: string | null;
2083
+ }
1899
2084
  export interface OrderRefundSettings {
1900
2085
  autoApprove: boolean;
1901
2086
  createdAt: any | null;
@@ -1967,6 +2152,7 @@ export interface OrderTaxLine {
1967
2152
  rate: number;
1968
2153
  }
1969
2154
  export interface PaymentGateway {
2155
+ milesSmilesEnabled: boolean | null;
1970
2156
  additionalPrices: AdditionalPrice[] | null;
1971
2157
  availableCountries: string[] | null;
1972
2158
  code: string;
@@ -2233,6 +2419,7 @@ export interface ProductSearchResponse {
2233
2419
  limit: number;
2234
2420
  page: number;
2235
2421
  results: SearchProduct[];
2422
+ suggestions: SearchSuggestion[] | null;
2236
2423
  totalCount: number;
2237
2424
  }
2238
2425
  export interface ProductTagTranslation {
@@ -2544,6 +2731,29 @@ export interface SearchProductStockLocation {
2544
2731
  stockCount: number;
2545
2732
  stockLocationId: string;
2546
2733
  }
2734
+ export interface SearchProductSubscriptionPlan {
2735
+ name: string;
2736
+ periods: SearchProductSubscriptionPlanPeriod[];
2737
+ status: SubscriptionPlanStatusEnum;
2738
+ subscriptionPlanId: string;
2739
+ translations: SubscriptionPlanTranslation[] | null;
2740
+ }
2741
+ export interface SearchProductSubscriptionPlanDiscount {
2742
+ amount: number;
2743
+ type: OrderAmountTypeEnum;
2744
+ }
2745
+ export interface SearchProductSubscriptionPlanPeriod {
2746
+ cutOffDay: number | null;
2747
+ discount: SearchProductSubscriptionPlanDiscount | null;
2748
+ durationUnit: SubscriptionPlanDurationUnitTypeEnum;
2749
+ durationValue: number;
2750
+ id: string;
2751
+ maxOrders: number | null;
2752
+ paymentType: SubscriptionPlanPaymentTypeEnum;
2753
+ scheduledOrderDay: number | null;
2754
+ status: SubscriptionPlanStatusEnum;
2755
+ title: string;
2756
+ }
2547
2757
  export interface SearchProductTag {
2548
2758
  id: string;
2549
2759
  name: string;
@@ -2554,6 +2764,12 @@ export interface SearchProductVariantType {
2554
2764
  variantType: SearchVariantType;
2555
2765
  variantValueIds: string[];
2556
2766
  }
2767
+ export interface SearchSuggestion {
2768
+ brandId: string | null;
2769
+ categoryId: string | null;
2770
+ id: string;
2771
+ term: string;
2772
+ }
2557
2773
  export interface SearchVariant {
2558
2774
  attributes: SearchProductAttributeValue[] | null;
2559
2775
  barcodeList: string[] | null;
@@ -2567,6 +2783,7 @@ export interface SearchVariant {
2567
2783
  sellIfOutOfStock: boolean | null;
2568
2784
  sku: string | null;
2569
2785
  stocks: SearchProductStockLocation[] | null;
2786
+ subscriptionPlan: SearchProductSubscriptionPlan | null;
2570
2787
  unit: VariantUnitModel | null;
2571
2788
  variantValues: SearchVariationValueRelation[] | null;
2572
2789
  weight: number | null;
@@ -2650,6 +2867,10 @@ export interface StockLocationAddressState {
2650
2867
  id: string | null;
2651
2868
  name: string | null;
2652
2869
  }
2870
+ export interface StoreCreditBalanceResponse {
2871
+ amount: number;
2872
+ storeCredits: GiftCard[];
2873
+ }
2653
2874
  export interface Storefront {
2654
2875
  analytics4Id: string | null;
2655
2876
  createdAt: any | null;
@@ -2890,6 +3111,15 @@ export interface StorefrontTransaction {
2890
3111
  type: TransactionTypeEnum;
2891
3112
  updatedAt: any | null;
2892
3113
  }
3114
+ export interface SubscriptionPlanDiscount {
3115
+ amount: number;
3116
+ type: OrderAmountTypeEnum;
3117
+ }
3118
+ export interface SubscriptionPlanTranslation {
3119
+ description: string | null;
3120
+ locale: string;
3121
+ title: string;
3122
+ }
2893
3123
  export interface Town {
2894
3124
  createdAt: any | null;
2895
3125
  deleted: boolean | null;
@@ -3066,6 +3296,8 @@ export interface AddItemToCartInput {
3066
3296
  priceListId?: string | null;
3067
3297
  salesChannelId: string;
3068
3298
  storefrontThemeId: string;
3299
+ subscriptionPlanId?: string | null;
3300
+ subscriptionPlanPeriodId?: string | null;
3069
3301
  }
3070
3302
  export interface AppliedProductInput {
3071
3303
  productId?: string | null;
@@ -3177,6 +3409,7 @@ export interface CreateSaleTransactionWithCartInput {
3177
3409
  metadata?: any | null;
3178
3410
  paymentGatewayId: string;
3179
3411
  paymentMethodDetail?: PaymentMethodDetailInput | null;
3412
+ milesSmiles?: MilesSmilesPaymentInput | null;
3180
3413
  }
3181
3414
  export interface CreateSaleTransactionWithCheckoutInput {
3182
3415
  checkoutId: string;
@@ -3184,6 +3417,7 @@ export interface CreateSaleTransactionWithCheckoutInput {
3184
3417
  metadata?: any | null;
3185
3418
  paymentGatewayId: string;
3186
3419
  paymentMethodDetail?: PaymentMethodDetailInput | null;
3420
+ milesSmiles?: MilesSmilesPaymentInput | null;
3187
3421
  }
3188
3422
  export interface CustomerAddressCityInput {
3189
3423
  code?: string | null;
@@ -3216,6 +3450,16 @@ export interface CustomerAttributeValueInput {
3216
3450
  customerAttributeOptionId?: string | null;
3217
3451
  value?: string | null;
3218
3452
  }
3453
+ export interface CustomerRegisterSubscriptionInput {
3454
+ email: boolean;
3455
+ phone: boolean;
3456
+ sms: boolean;
3457
+ }
3458
+ export interface CustomerAttributeValueInput {
3459
+ customerAttributeId?: string | null;
3460
+ customerAttributeOptionId?: string | null;
3461
+ value?: string | null;
3462
+ }
3219
3463
  export interface DateFilterInput {
3220
3464
  eq?: any | null;
3221
3465
  gt?: any | null;
@@ -3229,11 +3473,22 @@ export interface DateFilterInput {
3229
3473
  export interface GetOrderLineFile {
3230
3474
  url: string;
3231
3475
  }
3476
+ export interface GetOrderInvoicePdfUrlInput {
3477
+ invoiceId: string;
3478
+ orderId: string;
3479
+ }
3480
+ export interface GetOrderLineFile {
3481
+ url: string;
3482
+ }
3232
3483
  export interface GetProductCampaignsInput {
3233
3484
  customerGroupIds?: string[] | null;
3234
3485
  salesChannelId: string;
3235
3486
  variantIds: string[];
3236
3487
  }
3488
+ export interface GetRefundableLinesInput {
3489
+ email?: string | null;
3490
+ orderId: string;
3491
+ }
3237
3492
  export interface HTMLMetaDataTargetTypeEnumFilter {
3238
3493
  eq?: HTMLMetaDataTargetTypeEnum | null;
3239
3494
  in?: HTMLMetaDataTargetTypeEnum[] | null;
@@ -3314,6 +3569,7 @@ export interface OrderRefundRequestInput {
3314
3569
  orderId: string;
3315
3570
  orderLineItems: OrderRefundOrderLineInput[];
3316
3571
  reason?: string | null;
3572
+ refundReasonId?: string | null;
3317
3573
  }
3318
3574
  export interface PaginationInput {
3319
3575
  limit?: number | null;
@@ -3364,6 +3620,9 @@ export interface RaffleParticipantsInput {
3364
3620
  phone?: string | null;
3365
3621
  raffleId: string;
3366
3622
  }
3623
+ export interface MilesSmilesPaymentInput {
3624
+ miles: number;
3625
+ }
3367
3626
  export interface RetrieveInstallmentInfoInput {
3368
3627
  binNumber: string;
3369
3628
  currencyCode?: string | null;
@@ -3460,10 +3719,12 @@ export interface SearchDynamicCurrencySettings {
3460
3719
  }
3461
3720
  export interface SearchInput {
3462
3721
  barcodeList?: string[] | null;
3722
+ baseCategoryIdList?: string[] | null;
3463
3723
  brandId?: string | null;
3464
3724
  brandIdList?: string[] | null;
3465
3725
  categoryIdList?: string[] | null;
3466
3726
  dynamicCurrencySettings?: SearchDynamicCurrencySettings | null;
3727
+ enableSuggestions?: boolean | null;
3467
3728
  facetList?: SearchInputFacetListInput[] | null;
3468
3729
  filterList?: SearchInputFilterListInput[] | null;
3469
3730
  locale?: string | null;
@@ -3505,6 +3766,18 @@ export interface StringFilterInput {
3505
3766
  ne?: string | null;
3506
3767
  nin?: string[] | null;
3507
3768
  }
3769
+ export interface StripeExpressCheckoutAddressInput {
3770
+ city?: string | null;
3771
+ country?: string | null;
3772
+ postalCode?: string | null;
3773
+ state?: string | null;
3774
+ }
3775
+ export interface StripeExpressCheckoutCustomerInput {
3776
+ email?: string | null;
3777
+ firstName?: string | null;
3778
+ id?: string | null;
3779
+ lastName?: string | null;
3780
+ }
3508
3781
  export interface SubscribeToMarketingNotificationsInput {
3509
3782
  captchaToken?: string | null;
3510
3783
  email: string;
@@ -3521,14 +3794,63 @@ export interface UpdateCartCampaignOfferInput {
3521
3794
  quantity?: number | null;
3522
3795
  variantId: string;
3523
3796
  }
3797
+ export interface UpdatePaypalOrderAddressInput {
3798
+ city?: string | null;
3799
+ country?: string | null;
3800
+ postalCode?: string | null;
3801
+ state?: string | null;
3802
+ }
3803
+ export interface UpdatePaypalOrderCustomerInput {
3804
+ email?: string | null;
3805
+ firstName?: string | null;
3806
+ id?: string | null;
3807
+ lastName?: string | null;
3808
+ }
3809
+ export interface UpdatePaypalOrderInput {
3810
+ address?: UpdatePaypalOrderAddressInput | null;
3811
+ cartId: string;
3812
+ customer?: UpdatePaypalOrderCustomerInput | null;
3813
+ shippingSettingsId?: string | null;
3814
+ shippingZoneRateId?: string | null;
3815
+ transactionId: string;
3816
+ }
3817
+ export interface UpdateStripeExpressCheckoutSessionInput {
3818
+ address?: StripeExpressCheckoutAddressInput | null;
3819
+ cartId: string;
3820
+ customer?: StripeExpressCheckoutCustomerInput | null;
3821
+ sessionId: string;
3822
+ shippingSettingsId?: string | null;
3823
+ shippingZoneRateId?: string | null;
3824
+ transactionId: string;
3825
+ }
3524
3826
  export declare enum StorefrontPopupDeviceTypeEnum {
3525
3827
  ALL = "ALL",
3526
3828
  DESKTOP = "DESKTOP",
3527
3829
  MOBILE = "MOBILE"
3528
3830
  }
3529
3831
  export declare enum StorefrontPopupDisplayFilterTypeEnum {
3832
+ APPLIED_CAMPAIGN = "APPLIED_CAMPAIGN",
3833
+ BRAND_IN_CART = "BRAND_IN_CART",
3834
+ CART_ITEM_COUNT = "CART_ITEM_COUNT",
3530
3835
  CART_TOTAL = "CART_TOTAL",
3531
- CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT"
3836
+ CATEGORY_IN_CART = "CATEGORY_IN_CART",
3837
+ CUSTOMER_AUTH_STATUS = "CUSTOMER_AUTH_STATUS",
3838
+ CUSTOMER_GENDER = "CUSTOMER_GENDER",
3839
+ CUSTOMER_GROUP = "CUSTOMER_GROUP",
3840
+ CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
3841
+ CUSTOMER_SUBSCRIPTION = "CUSTOMER_SUBSCRIPTION",
3842
+ PRODUCT_IN_CART = "PRODUCT_IN_CART"
3843
+ }
3844
+ export declare enum StorefrontPopupDisplayFilterOperatorEnum {
3845
+ ANY_OF = "ANY_OF",
3846
+ BETWEEN = "BETWEEN",
3847
+ EQUALS = "EQUALS",
3848
+ GREATER_THAN = "GREATER_THAN",
3849
+ GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
3850
+ LESS_THAN = "LESS_THAN",
3851
+ LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
3852
+ NONE_OF = "NONE_OF",
3853
+ NOT_EQUALS = "NOT_EQUALS"
3532
3854
  }
3533
3855
  export declare enum StorefrontPopupDisplayFrequencyEnum {
3534
3856
  EVERY_TIME = "EVERY_TIME",
@@ -3576,6 +3898,7 @@ export interface StorefrontPopup {
3576
3898
  deleted: boolean;
3577
3899
  displayFilters: StorefrontPopupDisplayFilter[] | null;
3578
3900
  displaySettings: StorefrontPopupDisplaySettings;
3901
+ hideFilters: StorefrontPopupDisplayFilter[] | null;
3579
3902
  id: string;
3580
3903
  name: string;
3581
3904
  pageFilters: StorefrontPopupPageFilter[] | null;
@@ -3595,9 +3918,9 @@ export interface StorefrontPopupDateFilter {
3595
3918
  startDate: any | null;
3596
3919
  }
3597
3920
  export interface StorefrontPopupDisplayFilter {
3598
- operator: string;
3921
+ operator: StorefrontPopupDisplayFilterOperatorEnum;
3599
3922
  type: StorefrontPopupDisplayFilterTypeEnum;
3600
- value: string;
3923
+ value: string[];
3601
3924
  }
3602
3925
  export interface StorefrontPopupDisplaySettings {
3603
3926
  frequency: StorefrontPopupDisplayFrequencyEnum;
@@ -3632,8 +3955,258 @@ export interface SaveCustomerFormDataInput {
3632
3955
  storefrontPopupId?: string | null;
3633
3956
  subscriptions?: CustomerRegisterSubscriptionInput | null;
3634
3957
  }
3635
- export declare enum CustomerGenderTypeEnum {
3636
- FEMALE = "FEMALE",
3637
- MALE = "MALE",
3638
- OTHER = "OTHER"
3958
+ export interface AddLoyaltyToCartInput {
3959
+ amount?: number | null;
3960
+ cartId: string;
3961
+ loyaltyProgramId: string;
3962
+ loyaltySpendingMethodId: string;
3963
+ }
3964
+ export interface CartLoyaltyLine {
3965
+ campaignType: CampaignTypeEnum | null;
3966
+ discountAmount: number;
3967
+ discountAmountType: OrderAmountTypeEnum;
3968
+ discountPercentage: number | null;
3969
+ loyaltySpendingMethodId: string;
3970
+ pointUsed: number;
3971
+ }
3972
+ export interface LoyaltyCustomerInfo {
3973
+ availablePoint: number;
3974
+ cartLoyaltyLines: CartLoyaltyLine[] | null;
3975
+ cumulativeEarnedPoints: number;
3976
+ customerTier: LoyaltyProgramTier | null;
3977
+ loyaltyProgramCustomerId: string;
3978
+ loyaltyProgramId: string;
3979
+ nextAvailableDate: any | null;
3980
+ nextTierRequiredPoint: number | null;
3981
+ totalPoint: number;
3982
+ }
3983
+ export interface LoyaltyProgram {
3984
+ createdAt: any | null;
3985
+ deleted: boolean;
3986
+ earningMethods: LoyaltyProgramEarningMethod[] | null;
3987
+ id: string;
3988
+ isPassive: boolean | null;
3989
+ name: string;
3990
+ orderStatusToWinPoints: LoyaltyProgramOrderStatusToWinPointsEnum;
3991
+ previousOrderStartDate: any | null;
3992
+ refillPointsOnRefund: boolean | null;
3993
+ salesChannels: LoyaltyProgramSaleChannel[] | null;
3994
+ spendingMethods: LoyaltyProgramSpendingMethod[] | null;
3995
+ tiers: LoyaltyProgramTier[] | null;
3996
+ tokenName: string | null;
3997
+ updatedAt: any | null;
3998
+ validityPeriod: LoyaltyProgramPeriod | null;
3999
+ waitingPeriodDays: number | null;
4000
+ }
4001
+ export interface LoyaltyProgramDiscountSettings {
4002
+ discountAmount: number | null;
4003
+ freeProductId: string | null;
4004
+ freeProductVariantId: string | null;
4005
+ point: number;
4006
+ }
4007
+ export interface LoyaltyProgramEarningMethod {
4008
+ activatedAt: any | null;
4009
+ amountPerPointsEarned: number | null;
4010
+ createdAt: any | null;
4011
+ deleted: boolean;
4012
+ description: string | null;
4013
+ earnedPointLimit: LoyaltyProgramPointLimit | null;
4014
+ id: string;
4015
+ isActive: boolean;
4016
+ lastValidityDate: any | null;
4017
+ loyaltyProgramId: string;
4018
+ methodType: EarningMethodTypeEnum;
4019
+ orderSettings: LoyaltyProgramEarningMethodOrderSettings | null;
4020
+ pointEarningType: LoyaltyProgramPointEarningTypeEnum;
4021
+ pointsEarned: number;
4022
+ productSettings: LoyaltyProgramEarningMethodProductSettings | null;
4023
+ quantityPerPointsEarned: number | null;
4024
+ requireImageForCustomerReview: boolean | null;
4025
+ segmentId: string | null;
4026
+ tierIds: string[] | null;
4027
+ translations: LoyaltyProgramMethodTranslation[] | null;
4028
+ updatedAt: any | null;
4029
+ validityPeriod: LoyaltyProgramPeriod | null;
4030
+ waitingPeriodDays: number | null;
4031
+ }
4032
+ export interface LoyaltyProgramEarningMethodOrderSettings {
4033
+ maxOrderAmount: number | null;
4034
+ minOrderAmount: number | null;
4035
+ productFilters: LoyaltyProgramFilter[] | null;
4036
+ }
4037
+ export interface LoyaltyProgramEarningMethodProductSettings {
4038
+ maxProductQuantity: number | null;
4039
+ minProductQuantity: number | null;
4040
+ productFilters: LoyaltyProgramFilter[] | null;
4041
+ }
4042
+ export interface LoyaltyProgramFilter {
4043
+ idList: string[];
4044
+ type: LoyaltyProgramFilterTypeEnum;
4045
+ }
4046
+ export interface LoyaltyProgramMethodTranslation {
4047
+ description: string;
4048
+ locale: string;
4049
+ }
4050
+ export interface LoyaltyProgramPeriod {
4051
+ period: string | null;
4052
+ periodType: PeriodTypeEnum | null;
4053
+ }
4054
+ export interface LoyaltyProgramPointHistory {
4055
+ amount: number;
4056
+ availableDate: any | null;
4057
+ baseAmount: number | null;
4058
+ baseQuantity: number | null;
4059
+ createdAt: any | null;
4060
+ customerId: string;
4061
+ customerReviewId: string | null;
4062
+ deleted: boolean;
4063
+ expireDate: any | null;
4064
+ id: string;
4065
+ loyaltyProgramCustomerId: string;
4066
+ loyaltyProgramEarningMethodId: string | null;
4067
+ loyaltyProgramId: string;
4068
+ loyaltyProgramSpendingMethodId: string | null;
4069
+ orderId: string | null;
4070
+ productVariantId: string | null;
4071
+ refundTransactionId: string | null;
4072
+ retroactiveCalculationId: string | null;
4073
+ type: LoyaltyProgramPointHistoryTypeEnum;
4074
+ updatedAt: any | null;
4075
+ }
4076
+ export interface LoyaltyProgramPointLimit {
4077
+ maxPointLimit: number | null;
4078
+ minPointLimit: number | null;
4079
+ }
4080
+ export interface LoyaltyProgramSaleChannel {
4081
+ pageFilters: StorefrontPopupPageFilter[] | null;
4082
+ routingIds: string[] | null;
4083
+ salesChannelId: string;
4084
+ storefrontId: string | null;
4085
+ }
4086
+ export interface LoyaltyProgramSpendingMethod {
4087
+ createdAt: any | null;
4088
+ deleted: boolean;
4089
+ description: string | null;
4090
+ discountSettings: LoyaltyProgramDiscountSettings | null;
4091
+ id: string;
4092
+ isActive: boolean;
4093
+ isAvailable: boolean | null;
4094
+ isDynamic: boolean;
4095
+ loyaltyProgramId: string;
4096
+ pointUsageLimit: LoyaltyProgramPointLimit | null;
4097
+ productFilters: LoyaltyProgramFilter[] | null;
4098
+ translations: LoyaltyProgramMethodTranslation[] | null;
4099
+ type: LoyaltyProgramMethodSpendingTypeEnum;
4100
+ updatedAt: any | null;
4101
+ }
4102
+ export interface LoyaltyProgramTier {
4103
+ createdAt: any | null;
4104
+ customerSegmentId: string | null;
4105
+ deleted: boolean;
4106
+ id: string;
4107
+ isActive: boolean;
4108
+ loyaltyProgramId: string;
4109
+ maintenanceType: LoyaltyTierMaintenanceTypeEnum | null;
4110
+ maintenanceTypeEffectiveAt: any | null;
4111
+ name: string;
4112
+ period: LoyaltyProgramPeriod | null;
4113
+ pointsRequired: number | null;
4114
+ tierPointMultiplier: number | null;
4115
+ translations: LoyaltyProgramTierTranslation[] | null;
4116
+ updatedAt: any | null;
4117
+ }
4118
+ export interface LoyaltyProgramTierTranslation {
4119
+ locale: string;
4120
+ name: string;
4121
+ }
4122
+ export interface LoyaltyWidgetSettings {
4123
+ pageFilters: StorefrontPopupPageFilter[] | null;
4124
+ }
4125
+ export declare enum LoyaltyProgramFilterTypeEnum {
4126
+ CATEGORY = "CATEGORY",
4127
+ DYNAMIC_CATEGORY = "DYNAMIC_CATEGORY",
4128
+ PRODUCT_AND_VARIANT = "PRODUCT_AND_VARIANT",
4129
+ PRODUCT_BRAND = "PRODUCT_BRAND",
4130
+ PRODUCT_TAG = "PRODUCT_TAG"
4131
+ }
4132
+ export declare enum LoyaltyProgramMethodSpendingTypeEnum {
4133
+ FIXED_AMOUNT = "FIXED_AMOUNT",
4134
+ FREE_PRODUCT = "FREE_PRODUCT",
4135
+ FREE_SHIPPING = "FREE_SHIPPING",
4136
+ RATIO = "RATIO"
4137
+ }
4138
+ export declare enum LoyaltyProgramOrderStatusToWinPointsEnum {
4139
+ ORDER_CREATED = "ORDER_CREATED",
4140
+ ORDER_DELIVERED = "ORDER_DELIVERED",
4141
+ PAYMENT_COMPLETED = "PAYMENT_COMPLETED"
4142
+ }
4143
+ export declare enum LoyaltyProgramPointEarningTypeEnum {
4144
+ DYNAMIC_ORDER_AMOUNT = "DYNAMIC_ORDER_AMOUNT",
4145
+ DYNAMIC_ORDER_QUANTITY = "DYNAMIC_ORDER_QUANTITY",
4146
+ STATIC = "STATIC"
4147
+ }
4148
+ export declare enum LoyaltyProgramPointHistoryTypeEnum {
4149
+ EARN = "EARN",
4150
+ MANUAL_DEDUCT = "MANUAL_DEDUCT",
4151
+ MANUAL_EARN = "MANUAL_EARN",
4152
+ REFILL = "REFILL",
4153
+ REFUND = "REFUND",
4154
+ SPEND = "SPEND"
4155
+ }
4156
+ export interface OrderLoyaltyLine {
4157
+ amount: number;
4158
+ id: string;
4159
+ loyaltyProgramCustomerId: string;
4160
+ loyaltyProgramId: string;
4161
+ loyaltyProgramSpendingMethodType: string | null;
4162
+ loyaltySpendingMethodId: string;
4163
+ }
4164
+ export declare enum EarningMethodTypeEnum {
4165
+ BUY_PRODUCT = "BUY_PRODUCT",
4166
+ CUSTOMER_REGISTER = "CUSTOMER_REGISTER",
4167
+ CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
4168
+ CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
4169
+ ENABLE_SUBSCRIPTION = "ENABLE_SUBSCRIPTION",
4170
+ ORDER_CREATE = "ORDER_CREATE"
4171
+ }
4172
+ export declare enum PeriodTypeEnum {
4173
+ MONTH = "MONTH",
4174
+ WEEK = "WEEK",
4175
+ YEAR = "YEAR"
4176
+ }
4177
+ export interface LoyaltyProgramPointHistoryTypeEnumFilterInput {
4178
+ eq?: LoyaltyProgramPointHistoryTypeEnum | null;
4179
+ in?: LoyaltyProgramPointHistoryTypeEnum[] | null;
4180
+ ne?: LoyaltyProgramPointHistoryTypeEnum | null;
4181
+ nin?: LoyaltyProgramPointHistoryTypeEnum[] | null;
4182
+ }
4183
+ export declare enum StorefrontWidgetSettingsStatusEnum {
4184
+ ACTIVE = "ACTIVE",
4185
+ PASSIVE = "PASSIVE"
4186
+ }
4187
+ export interface StorefrontWidgetSettings {
4188
+ createdAt: any | null;
4189
+ deleted: boolean;
4190
+ id: string;
4191
+ status: StorefrontWidgetSettingsStatusEnum;
4192
+ storefrontRoutings: StorefrontWidgetSettingsRouting[];
4193
+ themeSettingsJson: any | null;
4194
+ updatedAt: any | null;
4195
+ }
4196
+ export interface StorefrontWidgetSettingsRouting {
4197
+ storefrontId: string;
4198
+ storefrontRoutingId: string;
4199
+ }
4200
+ export interface StripeExpressCheckoutSessionContextResponse {
4201
+ amountTotal: number | null;
4202
+ currency: string | null;
4203
+ lineItemsJson: string | null;
4204
+ paymentStatus: string | null;
4205
+ sessionId: string;
4206
+ shippingOptionsJson: string | null;
4207
+ transactionId: string;
4208
+ }
4209
+ export declare enum LoyaltyTierMaintenanceTypeEnum {
4210
+ AUTO_MAINTENANCE = "AUTO_MAINTENANCE",
4211
+ NO_MAINTENANCE = "NO_MAINTENANCE"
3639
4212
  }