@ikas/storefront-api 6.1.0-beta.21 → 6.1.0-beta.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/__api/models/AddItemToCartInput.d.ts +2 -0
- package/build/__api/models/AddLoyaltyToCartInput.d.ts +12 -0
- package/build/__api/models/CartV2.d.ts +1 -0
- package/build/__api/models/CheckoutSettings.d.ts +1 -0
- package/build/__api/models/CustomerReview.d.ts +6 -0
- package/build/__api/models/CustomerReviewProductModel.d.ts +15 -0
- package/build/__api/models/CustomerReviewReplyInfo.d.ts +10 -0
- package/build/__api/models/GetCustomerReviewImageUploadUrlResponse.d.ts +11 -0
- package/build/__api/models/HepsipayFrameInitResponse.d.ts +11 -0
- package/build/__api/models/ListOrderTransactionWithPricesResponse.d.ts +1 -0
- package/build/__api/models/LoyaltyCustomerInfo.d.ts +13 -0
- package/build/__api/models/LoyaltyProgram.d.ts +26 -0
- package/build/__api/models/LoyaltyProgramDiscountSettings.d.ts +11 -0
- package/build/__api/models/LoyaltyProgramEarningMethod.d.ts +31 -0
- package/build/__api/models/LoyaltyProgramEarningMethodOrderSettings.d.ts +12 -0
- package/build/__api/models/LoyaltyProgramEarningMethodProductSettings.d.ts +12 -0
- package/build/__api/models/LoyaltyProgramFilter.d.ts +11 -0
- package/build/__api/models/LoyaltyProgramMethodTranslation.d.ts +10 -0
- package/build/__api/models/LoyaltyProgramPeriod.d.ts +11 -0
- package/build/__api/models/LoyaltyProgramPointHistory.d.ts +19 -0
- package/build/__api/models/LoyaltyProgramPointHistoryTypeEnumFilterInput.d.ts +13 -0
- package/build/__api/models/LoyaltyProgramPointLimit.d.ts +10 -0
- package/build/__api/models/LoyaltyProgramSaleChannel.d.ts +11 -0
- package/build/__api/models/LoyaltyProgramSpendingMethod.d.ts +24 -0
- package/build/__api/models/LoyaltyProgramTier.d.ts +19 -0
- package/build/__api/models/LoyaltyProgramTierTranslation.d.ts +10 -0
- package/build/__api/models/OrderLineItem.d.ts +5 -0
- package/build/__api/models/OrderLineItemCustomerSubscriptionPlan.d.ts +9 -0
- package/build/__api/models/OrderLineItemSubscriptionPlan.d.ts +12 -0
- package/build/__api/models/OrderLineItemSubscriptionPlanPeriod.d.ts +19 -0
- package/build/__api/models/OrderLoyaltyLine.d.ts +13 -0
- package/build/__api/models/ProductSearchResponse.d.ts +2 -0
- package/build/__api/models/SearchInput.d.ts +2 -0
- package/build/__api/models/SearchSuggestion.d.ts +12 -0
- package/build/__api/models/StorefrontWidgetSettings.d.ts +14 -0
- package/build/__api/models/StorefrontWidgetSettingsRouting.d.ts +10 -0
- package/build/__api/models/SubscriptionPlanDiscount.d.ts +11 -0
- package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
- package/build/__api/mutations/addItemToCart.d.ts +13 -0
- package/build/__api/mutations/addItemToCart.js +1 -1
- package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
- package/build/__api/mutations/createPaypalOrder.js +1 -1
- package/build/__api/mutations/customerLogin.d.ts +6 -2
- package/build/__api/mutations/customerLogin.js +1 -1
- package/build/__api/mutations/getCustomerReviewImageUploadUrl.d.ts +13 -0
- package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
- package/build/__api/mutations/getPaypalClientId.js +1 -1
- package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
- package/build/__api/mutations/hepsipayFrameInit.js +1 -0
- package/build/__api/mutations/registerCustomer.d.ts +8 -4
- package/build/__api/mutations/registerCustomer.js +1 -1
- package/build/__api/mutations/removeLoyaltyPointsFromCart.d.ts +531 -0
- package/build/__api/mutations/removeLoyaltyPointsFromCart.js +1 -0
- package/build/__api/mutations/resendCustomerPhoneVerificationCode.d.ts +2 -5
- package/build/__api/mutations/resendCustomerPhoneVerificationCode.js +1 -1
- package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
- package/build/__api/mutations/updatePaypalOrder.js +1 -0
- package/build/__api/mutations/useLoyaltyPoints.d.ts +530 -0
- package/build/__api/mutations/useLoyaltyPoints.js +1 -0
- package/build/__api/mutations/validateCustomerPhoneVerificationCode.d.ts +1 -0
- package/build/__api/mutations/validateCustomerPhoneVerificationCode.js +1 -1
- package/build/__api/mutations/validateOTPCode.d.ts +97 -0
- package/build/__api/mutations/validateOTPCode.js +1 -0
- package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -1
- package/build/__api/queries/getCart.d.ts +13 -0
- package/build/__api/queries/getCartById.d.ts +18 -1
- package/build/__api/queries/getCartById.js +1 -1
- package/build/__api/queries/getCheckoutByCartId.d.ts +13 -0
- package/build/__api/queries/getCheckoutById.d.ts +13 -0
- package/build/__api/queries/getCustomerOrders.d.ts +19 -0
- package/build/__api/queries/getCustomerOrders.js +1 -1
- package/build/__api/queries/getLoyaltyCustomerInfo.d.ts +26 -0
- package/build/__api/queries/getLoyaltyCustomerInfo.js +1 -0
- package/build/__api/queries/getLoyaltyProgram.d.ts +82 -0
- package/build/__api/queries/getLoyaltyProgram.js +1 -0
- package/build/__api/queries/getOrder.d.ts +19 -0
- package/build/__api/queries/getStoreCreditBalance.d.ts +25 -0
- package/build/__api/queries/getStoreCreditBalance.js +1 -0
- package/build/__api/queries/getStorefrontWidgetSettings.d.ts +14 -0
- package/build/__api/queries/getStorefrontWidgetSettings.js +1 -0
- package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
- package/build/__api/queries/listCheckoutSettings.js +1 -1
- package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -0
- package/build/__api/queries/listCustomerReviews.d.ts +12 -0
- package/build/__api/queries/listCustomerReviews.js +1 -1
- package/build/__api/queries/listEarningMethods.d.ts +35 -0
- package/build/__api/queries/listEarningMethods.js +1 -0
- package/build/__api/queries/listLoyaltyProgramPointHistory.d.ts +22 -0
- package/build/__api/queries/listLoyaltyProgramPointHistory.js +1 -0
- package/build/__api/queries/listLoyaltyProgramTiers.d.ts +20 -0
- package/build/__api/queries/listLoyaltyProgramTiers.js +1 -0
- package/build/__api/queries/listOrderTransactionsWithPrices.d.ts +1 -0
- package/build/__api/queries/listOrderTransactionsWithPrices.js +1 -1
- package/build/__api/queries/listSpendingMethodsByCartId.d.ts +28 -0
- package/build/__api/queries/listSpendingMethodsByCartId.js +1 -0
- package/build/__api/queries/searchProducts.d.ts +21 -0
- package/build/__api/queries/searchProducts.js +1 -1
- package/build/__api/types/index.d.ts +394 -11
- package/build/__api/types/index.js +1 -1
- package/build/api/cart/index.d.ts +5 -1
- package/build/api/cart/index.js +1 -1
- package/build/api/checkout/index.d.ts +7 -2
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/index.d.ts +37 -6
- package/build/api/customer/index.js +1 -1
- package/build/api/loyalty/index.d.ts +14 -0
- package/build/api/loyalty/index.js +1 -0
- package/build/api/product/index.d.ts +2 -1
- package/build/api/product/index.js +1 -1
- package/build/api/storefront/index.d.ts +5 -0
- package/build/index.d.ts +4 -2
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +7 -7
- package/build/__api/queries/checkOrderStocks.d.ts +0 -13
|
@@ -167,6 +167,11 @@ export declare enum CustomerEmailSubscriptionStatusesEnum {
|
|
|
167
167
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
168
168
|
SUBSCRIBED = "SUBSCRIBED"
|
|
169
169
|
}
|
|
170
|
+
export declare enum CustomerGenderTypeEnum {
|
|
171
|
+
FEMALE = "FEMALE",
|
|
172
|
+
MALE = "MALE",
|
|
173
|
+
OTHER = "OTHER"
|
|
174
|
+
}
|
|
170
175
|
export declare enum CustomerPriceListRuleFilterTypeEnum {
|
|
171
176
|
CATEGORY = "CATEGORY",
|
|
172
177
|
PRODUCT = "PRODUCT",
|
|
@@ -198,6 +203,10 @@ export declare enum GetSuggestedProductsMethodEnum {
|
|
|
198
203
|
SAMPLING = "SAMPLING",
|
|
199
204
|
VIEWED_TOGETHER = "VIEWED_TOGETHER"
|
|
200
205
|
}
|
|
206
|
+
export declare enum GiftCardTypeEnum {
|
|
207
|
+
GIFT_CARD = "GIFT_CARD",
|
|
208
|
+
STORE_CREDIT = "STORE_CREDIT"
|
|
209
|
+
}
|
|
201
210
|
export declare enum HTMLMetaDataTargetTypeEnum {
|
|
202
211
|
BRAND = "BRAND",
|
|
203
212
|
CATEGORY = "CATEGORY",
|
|
@@ -406,6 +415,13 @@ export declare enum ProductSearchShowStockOptionEnum {
|
|
|
406
415
|
SHOW_ALL = "SHOW_ALL",
|
|
407
416
|
SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END"
|
|
408
417
|
}
|
|
418
|
+
export declare enum ProductTypeEnum {
|
|
419
|
+
BUNDLE = "BUNDLE",
|
|
420
|
+
DIGITAL = "DIGITAL",
|
|
421
|
+
MEMBERSHIP = "MEMBERSHIP",
|
|
422
|
+
PHYSICAL = "PHYSICAL",
|
|
423
|
+
SUBSCRIPTION = "SUBSCRIPTION"
|
|
424
|
+
}
|
|
409
425
|
export declare enum ProductUnitTypeEnum {
|
|
410
426
|
CENTILITER = "CENTILITER",
|
|
411
427
|
CENTIMETER = "CENTIMETER",
|
|
@@ -515,6 +531,20 @@ export declare enum StorefrontTypeEnum {
|
|
|
515
531
|
B2B_STOREFRONT = "B2B_STOREFRONT",
|
|
516
532
|
STOREFRONT = "STOREFRONT"
|
|
517
533
|
}
|
|
534
|
+
export declare enum SubscriptionPlanDurationUnitTypeEnum {
|
|
535
|
+
DAY = "DAY",
|
|
536
|
+
MONTH = "MONTH",
|
|
537
|
+
WEEK = "WEEK",
|
|
538
|
+
YEAR = "YEAR"
|
|
539
|
+
}
|
|
540
|
+
export declare enum SubscriptionPlanPaymentTypeEnum {
|
|
541
|
+
POST_PAID = "POST_PAID",
|
|
542
|
+
PRE_PAID = "PRE_PAID"
|
|
543
|
+
}
|
|
544
|
+
export declare enum SubscriptionPlanStatusEnum {
|
|
545
|
+
ACTIVE = "ACTIVE",
|
|
546
|
+
PASSIVE = "PASSIVE"
|
|
547
|
+
}
|
|
518
548
|
export declare enum TemplateEnum {
|
|
519
549
|
ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
|
|
520
550
|
CONTACT_FORM_MERCHANT = "CONTACT_FORM_MERCHANT",
|
|
@@ -764,6 +794,11 @@ export interface BuyXThenGetY {
|
|
|
764
794
|
getY: GetY;
|
|
765
795
|
maxUsagePerOrder: number | null;
|
|
766
796
|
}
|
|
797
|
+
export interface HepsipayFrameInitResponse {
|
|
798
|
+
frameToken: string | null;
|
|
799
|
+
frameUrl: string | null;
|
|
800
|
+
transactionId: string;
|
|
801
|
+
}
|
|
767
802
|
export interface Campaign {
|
|
768
803
|
applicableCustomerGroupIds: string[] | null;
|
|
769
804
|
applicableCustomerIds: string[] | null;
|
|
@@ -928,6 +963,7 @@ export interface CartV2 {
|
|
|
928
963
|
customerId: string | null;
|
|
929
964
|
deleted: boolean | null;
|
|
930
965
|
dueDate: any | null;
|
|
966
|
+
edited: boolean | null;
|
|
931
967
|
giftCardLines: OrderGiftCardLine[] | null;
|
|
932
968
|
giftPackageLines: OrderGiftPackageLine[] | null;
|
|
933
969
|
giftPackageNote: string | null;
|
|
@@ -1088,6 +1124,7 @@ export interface CheckoutSettings {
|
|
|
1088
1124
|
options: CheckoutOption[] | null;
|
|
1089
1125
|
phoneRequirement: CheckoutRequirementEnum;
|
|
1090
1126
|
postalCodeRequirement: CheckoutRequirementEnum | null;
|
|
1127
|
+
showBillingAddressOnShippingStep: boolean | null;
|
|
1091
1128
|
showCheckoutNote: boolean | null;
|
|
1092
1129
|
showCompanyInfoInShippingAddress: boolean | null;
|
|
1093
1130
|
showTermsAndConditionsCheckbox: boolean;
|
|
@@ -1335,6 +1372,13 @@ export interface CustomerFavoriteProduct {
|
|
|
1335
1372
|
productId: string;
|
|
1336
1373
|
updatedAt: any | null;
|
|
1337
1374
|
}
|
|
1375
|
+
export interface CustomerLoginResponse {
|
|
1376
|
+
customer: Customer | null;
|
|
1377
|
+
flowId: string | null;
|
|
1378
|
+
otpSend: boolean | null;
|
|
1379
|
+
token: string;
|
|
1380
|
+
tokenExpiry: number;
|
|
1381
|
+
}
|
|
1338
1382
|
export interface CustomerPriceListRule {
|
|
1339
1383
|
filters: CustomerPriceListRuleFilter[] | null;
|
|
1340
1384
|
shouldMatchAllFilters: boolean | null;
|
|
@@ -1345,11 +1389,6 @@ export interface CustomerPriceListRuleFilter {
|
|
|
1345
1389
|
type: CustomerPriceListRuleFilterTypeEnum;
|
|
1346
1390
|
valueList: string[];
|
|
1347
1391
|
}
|
|
1348
|
-
export interface CustomerLoginResponse {
|
|
1349
|
-
customer: Customer | null;
|
|
1350
|
-
token: string;
|
|
1351
|
-
tokenExpiry: number;
|
|
1352
|
-
}
|
|
1353
1392
|
export interface CustomerRefreshTokenResponse {
|
|
1354
1393
|
token: string;
|
|
1355
1394
|
tokenExpiry: number;
|
|
@@ -1358,16 +1397,20 @@ export interface CustomerReview {
|
|
|
1358
1397
|
comment: string | null;
|
|
1359
1398
|
createdAt: any | null;
|
|
1360
1399
|
customerId: string | null;
|
|
1361
|
-
deleted: boolean
|
|
1400
|
+
deleted: boolean;
|
|
1362
1401
|
email: string | null;
|
|
1363
1402
|
firstName: string | null;
|
|
1364
1403
|
id: string;
|
|
1365
1404
|
imageIds: string[] | null;
|
|
1405
|
+
isPrivateReply: boolean | null;
|
|
1366
1406
|
lastName: string | null;
|
|
1407
|
+
locale: string | null;
|
|
1367
1408
|
orderId: string | null;
|
|
1368
1409
|
orderNumber: string | null;
|
|
1410
|
+
product: CustomerReviewProductModel | null;
|
|
1369
1411
|
productId: string;
|
|
1370
1412
|
reply: string | null;
|
|
1413
|
+
replyInfo: CustomerReviewReplyInfo | null;
|
|
1371
1414
|
salesChannelId: string | null;
|
|
1372
1415
|
star: number;
|
|
1373
1416
|
status: CustomerReviewStatusEnum | null;
|
|
@@ -1375,6 +1418,18 @@ export interface CustomerReview {
|
|
|
1375
1418
|
title: string | null;
|
|
1376
1419
|
updatedAt: any | null;
|
|
1377
1420
|
}
|
|
1421
|
+
export interface CustomerReviewProductModel {
|
|
1422
|
+
brandId: string | null;
|
|
1423
|
+
categoryIds: string[] | null;
|
|
1424
|
+
id: string | null;
|
|
1425
|
+
tagIds: string | null;
|
|
1426
|
+
type: ProductTypeEnum | null;
|
|
1427
|
+
vendorId: string | null;
|
|
1428
|
+
}
|
|
1429
|
+
export interface CustomerReviewReplyInfo {
|
|
1430
|
+
createdAt: any | null;
|
|
1431
|
+
staffId: string | null;
|
|
1432
|
+
}
|
|
1378
1433
|
export interface CustomerReviewSFPaginationResponse {
|
|
1379
1434
|
count: number;
|
|
1380
1435
|
data: CustomerReview[];
|
|
@@ -1385,7 +1440,7 @@ export interface CustomerReviewSFPaginationResponse {
|
|
|
1385
1440
|
export interface CustomerReviewSummary {
|
|
1386
1441
|
averageStar: number;
|
|
1387
1442
|
createdAt: any | null;
|
|
1388
|
-
deleted: boolean
|
|
1443
|
+
deleted: boolean;
|
|
1389
1444
|
id: string;
|
|
1390
1445
|
productId: string;
|
|
1391
1446
|
stars: CustomerReviewSummaryStar[];
|
|
@@ -1468,6 +1523,11 @@ export interface GetAvailableStockLocationAddressCountry {
|
|
|
1468
1523
|
export interface GetAvailableStockLocationsResponse {
|
|
1469
1524
|
stockLocations: GetAvailableStockLocation[];
|
|
1470
1525
|
}
|
|
1526
|
+
export interface GetCustomerReviewImageUploadUrlResponse {
|
|
1527
|
+
fields: any;
|
|
1528
|
+
imageId: string;
|
|
1529
|
+
uploadUrl: string;
|
|
1530
|
+
}
|
|
1471
1531
|
export interface GetPaypalClientIdResponse {
|
|
1472
1532
|
clientId: string;
|
|
1473
1533
|
merchantClientId: string | null;
|
|
@@ -1496,6 +1556,28 @@ export interface GetY {
|
|
|
1496
1556
|
discountRatio: number;
|
|
1497
1557
|
filter: CampaignFilter;
|
|
1498
1558
|
}
|
|
1559
|
+
export interface GiftCard {
|
|
1560
|
+
active: boolean;
|
|
1561
|
+
amount: number;
|
|
1562
|
+
code: string;
|
|
1563
|
+
createdAt: any | null;
|
|
1564
|
+
customerId: string | null;
|
|
1565
|
+
deleted: boolean;
|
|
1566
|
+
endDate: any | null;
|
|
1567
|
+
id: string;
|
|
1568
|
+
minimumRequiredCartAmount: number | null;
|
|
1569
|
+
salesChannels: GiftCardSalesChannel[] | null;
|
|
1570
|
+
startDate: any | null;
|
|
1571
|
+
type: GiftCardTypeEnum;
|
|
1572
|
+
updatedAt: any | null;
|
|
1573
|
+
usedAllAmount: boolean | null;
|
|
1574
|
+
usedAmount: number;
|
|
1575
|
+
}
|
|
1576
|
+
export interface GiftCardSalesChannel {
|
|
1577
|
+
salesChannelId: string;
|
|
1578
|
+
storefrontId: string | null;
|
|
1579
|
+
storefrontRoutingId: string | null;
|
|
1580
|
+
}
|
|
1499
1581
|
export interface HTMLMetaData {
|
|
1500
1582
|
canonicals: string[] | null;
|
|
1501
1583
|
createdAt: any | null;
|
|
@@ -1556,6 +1638,7 @@ export interface ListOrderTransactionWithPricesRefundableTransaction {
|
|
|
1556
1638
|
export interface ListOrderTransactionWithPricesResponse {
|
|
1557
1639
|
chargedAmount: number;
|
|
1558
1640
|
orderFinalPrice: number;
|
|
1641
|
+
pendingAmount: number;
|
|
1559
1642
|
refundableTransactions: ListOrderTransactionWithPricesRefundableTransaction[];
|
|
1560
1643
|
refundedAmount: number;
|
|
1561
1644
|
remainingBalance: number;
|
|
@@ -1726,6 +1809,7 @@ export interface OrderGiftCardLine {
|
|
|
1726
1809
|
code: string;
|
|
1727
1810
|
giftCardId: string;
|
|
1728
1811
|
id: string;
|
|
1812
|
+
type: GiftCardTypeEnum | null;
|
|
1729
1813
|
}
|
|
1730
1814
|
export interface OrderGiftPackageLine {
|
|
1731
1815
|
price: number;
|
|
@@ -1783,11 +1867,31 @@ export interface OrderLineItem {
|
|
|
1783
1867
|
status: OrderLineItemStatusEnum;
|
|
1784
1868
|
statusUpdatedAt: any | null;
|
|
1785
1869
|
stockLocationId: string | null;
|
|
1870
|
+
subscriptionPlan: OrderLineItemSubscriptionPlan | null;
|
|
1786
1871
|
taxValue: number | null;
|
|
1787
1872
|
unitPrice: number | null;
|
|
1788
1873
|
updatedAt: any | null;
|
|
1789
1874
|
variant: OrderLineVariant;
|
|
1790
1875
|
}
|
|
1876
|
+
export interface OrderLineItemCustomerSubscriptionPlan {
|
|
1877
|
+
id: string;
|
|
1878
|
+
}
|
|
1879
|
+
export interface OrderLineItemSubscriptionPlan {
|
|
1880
|
+
id: string;
|
|
1881
|
+
name: string;
|
|
1882
|
+
period: OrderLineItemSubscriptionPlanPeriod;
|
|
1883
|
+
}
|
|
1884
|
+
export interface OrderLineItemSubscriptionPlanPeriod {
|
|
1885
|
+
cutOffDay: number | null;
|
|
1886
|
+
discount: SubscriptionPlanDiscount | null;
|
|
1887
|
+
durationUnit: SubscriptionPlanDurationUnitTypeEnum;
|
|
1888
|
+
durationValue: number;
|
|
1889
|
+
id: string;
|
|
1890
|
+
maxOrders: number | null;
|
|
1891
|
+
paymentType: SubscriptionPlanPaymentTypeEnum;
|
|
1892
|
+
scheduledOrderDay: number | null;
|
|
1893
|
+
title: string;
|
|
1894
|
+
}
|
|
1791
1895
|
export interface OrderLineOption {
|
|
1792
1896
|
name: string;
|
|
1793
1897
|
productOptionId: string;
|
|
@@ -2233,6 +2337,7 @@ export interface ProductSearchResponse {
|
|
|
2233
2337
|
limit: number;
|
|
2234
2338
|
page: number;
|
|
2235
2339
|
results: SearchProduct[];
|
|
2340
|
+
suggestions: SearchSuggestion[] | null;
|
|
2236
2341
|
totalCount: number;
|
|
2237
2342
|
}
|
|
2238
2343
|
export interface ProductTagTranslation {
|
|
@@ -2544,6 +2649,29 @@ export interface SearchProductStockLocation {
|
|
|
2544
2649
|
stockCount: number;
|
|
2545
2650
|
stockLocationId: string;
|
|
2546
2651
|
}
|
|
2652
|
+
export interface SearchProductSubscriptionPlan {
|
|
2653
|
+
name: string;
|
|
2654
|
+
periods: SearchProductSubscriptionPlanPeriod[];
|
|
2655
|
+
status: SubscriptionPlanStatusEnum;
|
|
2656
|
+
subscriptionPlanId: string;
|
|
2657
|
+
translations: SubscriptionPlanTranslation[] | null;
|
|
2658
|
+
}
|
|
2659
|
+
export interface SearchProductSubscriptionPlanDiscount {
|
|
2660
|
+
amount: number;
|
|
2661
|
+
type: OrderAmountTypeEnum;
|
|
2662
|
+
}
|
|
2663
|
+
export interface SearchProductSubscriptionPlanPeriod {
|
|
2664
|
+
cutOffDay: number | null;
|
|
2665
|
+
discount: SearchProductSubscriptionPlanDiscount | null;
|
|
2666
|
+
durationUnit: SubscriptionPlanDurationUnitTypeEnum;
|
|
2667
|
+
durationValue: number;
|
|
2668
|
+
id: string;
|
|
2669
|
+
maxOrders: number | null;
|
|
2670
|
+
paymentType: SubscriptionPlanPaymentTypeEnum;
|
|
2671
|
+
scheduledOrderDay: number | null;
|
|
2672
|
+
status: SubscriptionPlanStatusEnum;
|
|
2673
|
+
title: string;
|
|
2674
|
+
}
|
|
2547
2675
|
export interface SearchProductTag {
|
|
2548
2676
|
id: string;
|
|
2549
2677
|
name: string;
|
|
@@ -2554,6 +2682,12 @@ export interface SearchProductVariantType {
|
|
|
2554
2682
|
variantType: SearchVariantType;
|
|
2555
2683
|
variantValueIds: string[];
|
|
2556
2684
|
}
|
|
2685
|
+
export interface SearchSuggestion {
|
|
2686
|
+
brandId: string | null;
|
|
2687
|
+
categoryId: string | null;
|
|
2688
|
+
id: string;
|
|
2689
|
+
term: string;
|
|
2690
|
+
}
|
|
2557
2691
|
export interface SearchVariant {
|
|
2558
2692
|
attributes: SearchProductAttributeValue[] | null;
|
|
2559
2693
|
barcodeList: string[] | null;
|
|
@@ -2567,6 +2701,7 @@ export interface SearchVariant {
|
|
|
2567
2701
|
sellIfOutOfStock: boolean | null;
|
|
2568
2702
|
sku: string | null;
|
|
2569
2703
|
stocks: SearchProductStockLocation[] | null;
|
|
2704
|
+
subscriptionPlan: SearchProductSubscriptionPlan | null;
|
|
2570
2705
|
unit: VariantUnitModel | null;
|
|
2571
2706
|
variantValues: SearchVariationValueRelation[] | null;
|
|
2572
2707
|
weight: number | null;
|
|
@@ -2650,6 +2785,10 @@ export interface StockLocationAddressState {
|
|
|
2650
2785
|
id: string | null;
|
|
2651
2786
|
name: string | null;
|
|
2652
2787
|
}
|
|
2788
|
+
export interface StoreCreditBalanceResponse {
|
|
2789
|
+
amount: number;
|
|
2790
|
+
storeCredits: GiftCard[];
|
|
2791
|
+
}
|
|
2653
2792
|
export interface Storefront {
|
|
2654
2793
|
analytics4Id: string | null;
|
|
2655
2794
|
createdAt: any | null;
|
|
@@ -2890,6 +3029,15 @@ export interface StorefrontTransaction {
|
|
|
2890
3029
|
type: TransactionTypeEnum;
|
|
2891
3030
|
updatedAt: any | null;
|
|
2892
3031
|
}
|
|
3032
|
+
export interface SubscriptionPlanDiscount {
|
|
3033
|
+
amount: number;
|
|
3034
|
+
type: OrderAmountTypeEnum;
|
|
3035
|
+
}
|
|
3036
|
+
export interface SubscriptionPlanTranslation {
|
|
3037
|
+
description: string | null;
|
|
3038
|
+
locale: string;
|
|
3039
|
+
title: string;
|
|
3040
|
+
}
|
|
2893
3041
|
export interface Town {
|
|
2894
3042
|
createdAt: any | null;
|
|
2895
3043
|
deleted: boolean | null;
|
|
@@ -3066,6 +3214,8 @@ export interface AddItemToCartInput {
|
|
|
3066
3214
|
priceListId?: string | null;
|
|
3067
3215
|
salesChannelId: string;
|
|
3068
3216
|
storefrontThemeId: string;
|
|
3217
|
+
subscriptionPlanId?: string | null;
|
|
3218
|
+
subscriptionPlanPeriodId?: string | null;
|
|
3069
3219
|
}
|
|
3070
3220
|
export interface AppliedProductInput {
|
|
3071
3221
|
productId?: string | null;
|
|
@@ -3216,6 +3366,16 @@ export interface CustomerAttributeValueInput {
|
|
|
3216
3366
|
customerAttributeOptionId?: string | null;
|
|
3217
3367
|
value?: string | null;
|
|
3218
3368
|
}
|
|
3369
|
+
export interface CustomerRegisterSubscriptionInput {
|
|
3370
|
+
email: boolean;
|
|
3371
|
+
phone: boolean;
|
|
3372
|
+
sms: boolean;
|
|
3373
|
+
}
|
|
3374
|
+
export interface CustomerAttributeValueInput {
|
|
3375
|
+
customerAttributeId?: string | null;
|
|
3376
|
+
customerAttributeOptionId?: string | null;
|
|
3377
|
+
value?: string | null;
|
|
3378
|
+
}
|
|
3219
3379
|
export interface DateFilterInput {
|
|
3220
3380
|
eq?: any | null;
|
|
3221
3381
|
gt?: any | null;
|
|
@@ -3460,10 +3620,12 @@ export interface SearchDynamicCurrencySettings {
|
|
|
3460
3620
|
}
|
|
3461
3621
|
export interface SearchInput {
|
|
3462
3622
|
barcodeList?: string[] | null;
|
|
3623
|
+
baseCategoryIdList?: string[] | null;
|
|
3463
3624
|
brandId?: string | null;
|
|
3464
3625
|
brandIdList?: string[] | null;
|
|
3465
3626
|
categoryIdList?: string[] | null;
|
|
3466
3627
|
dynamicCurrencySettings?: SearchDynamicCurrencySettings | null;
|
|
3628
|
+
enableSuggestions?: boolean | null;
|
|
3467
3629
|
facetList?: SearchInputFacetListInput[] | null;
|
|
3468
3630
|
filterList?: SearchInputFilterListInput[] | null;
|
|
3469
3631
|
locale?: string | null;
|
|
@@ -3521,6 +3683,26 @@ export interface UpdateCartCampaignOfferInput {
|
|
|
3521
3683
|
quantity?: number | null;
|
|
3522
3684
|
variantId: string;
|
|
3523
3685
|
}
|
|
3686
|
+
export interface UpdatePaypalOrderAddressInput {
|
|
3687
|
+
city?: string | null;
|
|
3688
|
+
country?: string | null;
|
|
3689
|
+
postalCode?: string | null;
|
|
3690
|
+
state?: string | null;
|
|
3691
|
+
}
|
|
3692
|
+
export interface UpdatePaypalOrderCustomerInput {
|
|
3693
|
+
email?: string | null;
|
|
3694
|
+
firstName?: string | null;
|
|
3695
|
+
id?: string | null;
|
|
3696
|
+
lastName?: string | null;
|
|
3697
|
+
}
|
|
3698
|
+
export interface UpdatePaypalOrderInput {
|
|
3699
|
+
address?: UpdatePaypalOrderAddressInput | null;
|
|
3700
|
+
cartId: string;
|
|
3701
|
+
customer?: UpdatePaypalOrderCustomerInput | null;
|
|
3702
|
+
shippingSettingsId?: string | null;
|
|
3703
|
+
shippingZoneRateId?: string | null;
|
|
3704
|
+
transactionId: string;
|
|
3705
|
+
}
|
|
3524
3706
|
export declare enum StorefrontPopupDeviceTypeEnum {
|
|
3525
3707
|
ALL = "ALL",
|
|
3526
3708
|
DESKTOP = "DESKTOP",
|
|
@@ -3632,8 +3814,209 @@ export interface SaveCustomerFormDataInput {
|
|
|
3632
3814
|
storefrontPopupId?: string | null;
|
|
3633
3815
|
subscriptions?: CustomerRegisterSubscriptionInput | null;
|
|
3634
3816
|
}
|
|
3635
|
-
export
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3817
|
+
export interface AddLoyaltyToCartInput {
|
|
3818
|
+
amount?: number | null;
|
|
3819
|
+
cartId: string;
|
|
3820
|
+
loyaltyProgramId: string;
|
|
3821
|
+
loyaltySpendingMethodId: string;
|
|
3822
|
+
}
|
|
3823
|
+
export interface LoyaltyCustomerInfo {
|
|
3824
|
+
customerTierId: LoyaltyProgramTier | null;
|
|
3825
|
+
loyaltyProgramCustomerId: string;
|
|
3826
|
+
loyaltyProgramId: string;
|
|
3827
|
+
totalPoint: number;
|
|
3828
|
+
}
|
|
3829
|
+
export interface LoyaltyProgram {
|
|
3830
|
+
createdAt: any | null;
|
|
3831
|
+
deleted: boolean;
|
|
3832
|
+
earningMethods: LoyaltyProgramEarningMethod[] | null;
|
|
3833
|
+
id: string;
|
|
3834
|
+
isPassive: boolean | null;
|
|
3835
|
+
name: string;
|
|
3836
|
+
orderStatusToWinPoints: LoyaltyProgramOrderStatusToWinPointsEnum;
|
|
3837
|
+
previousOrderStartDate: any | null;
|
|
3838
|
+
refillPointsOnRefund: boolean;
|
|
3839
|
+
salesChannels: LoyaltyProgramSaleChannel[] | null;
|
|
3840
|
+
spendingMethods: LoyaltyProgramSpendingMethod[] | null;
|
|
3841
|
+
tiers: LoyaltyProgramTier[] | null;
|
|
3842
|
+
tokenName: string | null;
|
|
3843
|
+
updatedAt: any | null;
|
|
3844
|
+
validityPeriod: LoyaltyProgramPeriod | null;
|
|
3845
|
+
}
|
|
3846
|
+
export interface LoyaltyProgramDiscountSettings {
|
|
3847
|
+
discountAmount: number | null;
|
|
3848
|
+
freeProductId: string | null;
|
|
3849
|
+
point: number;
|
|
3850
|
+
}
|
|
3851
|
+
export interface LoyaltyProgramEarningMethod {
|
|
3852
|
+
amountPerPointsEarned: number | null;
|
|
3853
|
+
createdAt: any | null;
|
|
3854
|
+
deleted: boolean;
|
|
3855
|
+
description: string | null;
|
|
3856
|
+
earnedPointLimit: LoyaltyProgramPointLimit | null;
|
|
3857
|
+
id: string;
|
|
3858
|
+
isActive: boolean;
|
|
3859
|
+
lastValidityDate: any | null;
|
|
3860
|
+
loyaltyProgramId: string;
|
|
3861
|
+
methodType: EarningMethodTypeEnum;
|
|
3862
|
+
orderSettings: LoyaltyProgramEarningMethodOrderSettings | null;
|
|
3863
|
+
pointEarningType: LoyaltyProgramPointEarningTypeEnum;
|
|
3864
|
+
pointsEarned: number;
|
|
3865
|
+
productSettings: LoyaltyProgramEarningMethodProductSettings | null;
|
|
3866
|
+
quantityPerPointsEarned: number | null;
|
|
3867
|
+
segmentId: string | null;
|
|
3868
|
+
tierIds: string[] | null;
|
|
3869
|
+
translations: LoyaltyProgramMethodTranslation[] | null;
|
|
3870
|
+
updatedAt: any | null;
|
|
3871
|
+
validityPeriod: LoyaltyProgramPeriod | null;
|
|
3872
|
+
}
|
|
3873
|
+
export interface LoyaltyProgramEarningMethodOrderSettings {
|
|
3874
|
+
maxOrderAmount: number | null;
|
|
3875
|
+
minOrderAmount: number;
|
|
3876
|
+
productFilters: LoyaltyProgramFilter[] | null;
|
|
3877
|
+
}
|
|
3878
|
+
export interface LoyaltyProgramEarningMethodProductSettings {
|
|
3879
|
+
maxProductQuantity: number | null;
|
|
3880
|
+
minProductQuantity: number | null;
|
|
3881
|
+
productFilters: LoyaltyProgramFilter[] | null;
|
|
3882
|
+
}
|
|
3883
|
+
export interface LoyaltyProgramFilter {
|
|
3884
|
+
idList: string[];
|
|
3885
|
+
type: LoyaltyProgramFilterTypeEnum;
|
|
3886
|
+
}
|
|
3887
|
+
export interface LoyaltyProgramMethodTranslation {
|
|
3888
|
+
description: string;
|
|
3889
|
+
locale: string;
|
|
3890
|
+
}
|
|
3891
|
+
export interface LoyaltyProgramPeriod {
|
|
3892
|
+
period: string | null;
|
|
3893
|
+
periodType: PeriodTypeEnum | null;
|
|
3894
|
+
}
|
|
3895
|
+
export interface LoyaltyProgramPointHistory {
|
|
3896
|
+
amount: number;
|
|
3897
|
+
createdAt: any | null;
|
|
3898
|
+
customerId: string;
|
|
3899
|
+
deleted: boolean;
|
|
3900
|
+
expireDate: any | null;
|
|
3901
|
+
id: string;
|
|
3902
|
+
loyaltyProgramCustomerId: string;
|
|
3903
|
+
loyaltyProgramEarningMethodId: string | null;
|
|
3904
|
+
loyaltyProgramId: string;
|
|
3905
|
+
loyaltyProgramSpendingMethodId: string | null;
|
|
3906
|
+
orderId: string | null;
|
|
3907
|
+
type: LoyaltyProgramPointHistoryTypeEnum;
|
|
3908
|
+
updatedAt: any | null;
|
|
3909
|
+
}
|
|
3910
|
+
export interface LoyaltyProgramPointLimit {
|
|
3911
|
+
maxPointLimit: number | null;
|
|
3912
|
+
minPointLimit: number | null;
|
|
3913
|
+
}
|
|
3914
|
+
export interface LoyaltyProgramSaleChannel {
|
|
3915
|
+
routingIds: string[] | null;
|
|
3916
|
+
salesChannelId: string;
|
|
3917
|
+
storefrontId: string | null;
|
|
3918
|
+
}
|
|
3919
|
+
export interface LoyaltyProgramSpendingMethod {
|
|
3920
|
+
createdAt: any | null;
|
|
3921
|
+
deleted: boolean;
|
|
3922
|
+
description: string | null;
|
|
3923
|
+
discountSettings: LoyaltyProgramDiscountSettings | null;
|
|
3924
|
+
id: string;
|
|
3925
|
+
isActive: boolean;
|
|
3926
|
+
isAvailable: boolean | null;
|
|
3927
|
+
isDynamic: boolean;
|
|
3928
|
+
loyaltyProgramId: string;
|
|
3929
|
+
pointUsageLimit: LoyaltyProgramPointLimit | null;
|
|
3930
|
+
productFilters: LoyaltyProgramFilter[] | null;
|
|
3931
|
+
translations: LoyaltyProgramMethodTranslation[] | null;
|
|
3932
|
+
type: LoyaltyProgramMethodSpendingTypeEnum;
|
|
3933
|
+
updatedAt: any | null;
|
|
3934
|
+
}
|
|
3935
|
+
export interface LoyaltyProgramTier {
|
|
3936
|
+
createdAt: any | null;
|
|
3937
|
+
customerSegmentId: string | null;
|
|
3938
|
+
deleted: boolean;
|
|
3939
|
+
id: string;
|
|
3940
|
+
isActive: boolean;
|
|
3941
|
+
loyaltyProgramId: string;
|
|
3942
|
+
name: string;
|
|
3943
|
+
period: LoyaltyProgramPeriod | null;
|
|
3944
|
+
pointsRequired: number | null;
|
|
3945
|
+
tierPointMultiplier: number | null;
|
|
3946
|
+
translations: LoyaltyProgramTierTranslation[] | null;
|
|
3947
|
+
updatedAt: any | null;
|
|
3948
|
+
}
|
|
3949
|
+
export interface LoyaltyProgramTierTranslation {
|
|
3950
|
+
locale: string;
|
|
3951
|
+
name: string;
|
|
3952
|
+
}
|
|
3953
|
+
export declare enum LoyaltyProgramFilterTypeEnum {
|
|
3954
|
+
CATEGORY = "CATEGORY",
|
|
3955
|
+
DYNAMIC_CATEGORY = "DYNAMIC_CATEGORY",
|
|
3956
|
+
PRODUCT_AND_VARIANT = "PRODUCT_AND_VARIANT",
|
|
3957
|
+
PRODUCT_BRAND = "PRODUCT_BRAND",
|
|
3958
|
+
PRODUCT_TAG = "PRODUCT_TAG"
|
|
3959
|
+
}
|
|
3960
|
+
export declare enum LoyaltyProgramMethodSpendingTypeEnum {
|
|
3961
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
3962
|
+
FREE_PRODUCT = "FREE_PRODUCT",
|
|
3963
|
+
FREE_SHIPPING = "FREE_SHIPPING",
|
|
3964
|
+
RATIO = "RATIO"
|
|
3965
|
+
}
|
|
3966
|
+
export declare enum LoyaltyProgramOrderStatusToWinPointsEnum {
|
|
3967
|
+
ORDER_CREATED = "ORDER_CREATED",
|
|
3968
|
+
ORDER_DELIVERED = "ORDER_DELIVERED",
|
|
3969
|
+
PAYMENT_COMPLETED = "PAYMENT_COMPLETED"
|
|
3970
|
+
}
|
|
3971
|
+
export declare enum LoyaltyProgramPointEarningTypeEnum {
|
|
3972
|
+
DYNAMIC_ORDER_AMOUNT = "DYNAMIC_ORDER_AMOUNT",
|
|
3973
|
+
DYNAMIC_ORDER_QUANTITY = "DYNAMIC_ORDER_QUANTITY",
|
|
3974
|
+
STATIC = "STATIC"
|
|
3975
|
+
}
|
|
3976
|
+
export declare enum LoyaltyProgramPointHistoryTypeEnum {
|
|
3977
|
+
EARN = "EARN",
|
|
3978
|
+
SPEND = "SPEND"
|
|
3979
|
+
}
|
|
3980
|
+
export interface OrderLoyaltyLine {
|
|
3981
|
+
amount: number;
|
|
3982
|
+
id: string;
|
|
3983
|
+
loyaltyProgramCustomerId: string;
|
|
3984
|
+
loyaltyProgramId: string;
|
|
3985
|
+
loyaltySpendingMethodId: string;
|
|
3986
|
+
}
|
|
3987
|
+
export declare enum EarningMethodTypeEnum {
|
|
3988
|
+
BUY_PRODUCT = "BUY_PRODUCT",
|
|
3989
|
+
CUSTOMER_REGISTER = "CUSTOMER_REGISTER",
|
|
3990
|
+
CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
|
|
3991
|
+
CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
|
|
3992
|
+
ENABLE_SUBSCRIPTION = "ENABLE_SUBSCRIPTION",
|
|
3993
|
+
ORDER_CREATE = "ORDER_CREATE"
|
|
3994
|
+
}
|
|
3995
|
+
export declare enum PeriodTypeEnum {
|
|
3996
|
+
MONTH = "MONTH",
|
|
3997
|
+
WEEK = "WEEK",
|
|
3998
|
+
YEAR = "YEAR"
|
|
3999
|
+
}
|
|
4000
|
+
export interface LoyaltyProgramPointHistoryTypeEnumFilterInput {
|
|
4001
|
+
eq?: LoyaltyProgramPointHistoryTypeEnum | null;
|
|
4002
|
+
in?: LoyaltyProgramPointHistoryTypeEnum[] | null;
|
|
4003
|
+
ne?: LoyaltyProgramPointHistoryTypeEnum | null;
|
|
4004
|
+
nin?: LoyaltyProgramPointHistoryTypeEnum[] | null;
|
|
4005
|
+
}
|
|
4006
|
+
export declare enum StorefrontWidgetSettingsStatusEnum {
|
|
4007
|
+
ACTIVE = "ACTIVE",
|
|
4008
|
+
PASSIVE = "PASSIVE"
|
|
4009
|
+
}
|
|
4010
|
+
export interface StorefrontWidgetSettings {
|
|
4011
|
+
createdAt: any | null;
|
|
4012
|
+
deleted: boolean;
|
|
4013
|
+
id: string;
|
|
4014
|
+
status: StorefrontWidgetSettingsStatusEnum;
|
|
4015
|
+
storefrontRoutings: StorefrontWidgetSettingsRouting[];
|
|
4016
|
+
themeSettingsJson: any | null;
|
|
4017
|
+
updatedAt: any | null;
|
|
4018
|
+
}
|
|
4019
|
+
export interface StorefrontWidgetSettingsRouting {
|
|
4020
|
+
storefrontId: string;
|
|
4021
|
+
storefrontRoutingId: string;
|
|
3639
4022
|
}
|