@ikas/storefront 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/__generated__/global-types.d.ts +343 -0
- package/build/api/apollo.d.ts +10 -0
- package/build/api/brand/__generated__/listProductBrand.d.ts +30 -0
- package/build/api/brand/index.d.ts +15 -0
- package/build/api/cart/__generated__/getCart.d.ts +67 -0
- package/build/api/cart/__generated__/saveItemToCart.d.ts +65 -0
- package/build/api/cart/index.d.ts +5 -0
- package/build/api/category/__generated__/listCategory.d.ts +34 -0
- package/build/api/category/index.d.ts +15 -0
- package/build/api/checkout/__generated__/checkStocks.d.ts +18 -0
- package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +22 -0
- package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +10 -0
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +206 -0
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +17 -0
- package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +23 -0
- package/build/api/checkout/__generated__/saveCheckout.d.ts +11 -0
- package/build/api/checkout/index.d.ts +19 -0
- package/build/api/city/__generated__/listCity.d.ts +14 -0
- package/build/api/city/index.d.ts +4 -0
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
- package/build/api/country/__generated__/listCountry.d.ts +16 -0
- package/build/api/country/index.d.ts +5 -0
- package/build/api/customer/__generated__/checkCustomerEmail.d.ts +10 -0
- package/build/api/customer/__generated__/customerForgotPassword.d.ts +6 -0
- package/build/api/customer/__generated__/customerLogin.d.ts +68 -0
- package/build/api/customer/__generated__/customerRecoverPassword.d.ts +8 -0
- package/build/api/customer/__generated__/customerRefreshToken.d.ts +11 -0
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +216 -0
- package/build/api/customer/__generated__/getMyCustomer.d.ts +58 -0
- package/build/api/customer/__generated__/listOrderTransactions.d.ts +53 -0
- package/build/api/customer/__generated__/registerCustomer.d.ts +70 -0
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +61 -0
- package/build/api/customer/index.d.ts +28 -0
- package/build/api/district/__generated__/listDistrict.d.ts +13 -0
- package/build/api/district/index.d.ts +4 -0
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +17 -0
- package/build/api/html-meta-data/index.d.ts +4 -0
- package/build/api/index.d.ts +17 -0
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +13 -0
- package/build/api/merchant/index.d.ts +4 -0
- package/build/api/product/__generated__/listProduct.d.ts +91 -0
- package/build/api/product/index.d.ts +15 -0
- package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +26 -0
- package/build/api/product-attribute/index.d.ts +4 -0
- package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
- package/build/api/product-stock-location/index.d.ts +4 -0
- package/build/api/state/__generated__/listState.d.ts +13 -0
- package/build/api/state/index.d.ts +4 -0
- package/build/api/stock-location/__generated__/listStockLocation.d.ts +7 -0
- package/build/api/stock-location/index.d.ts +4 -0
- package/build/api/storefront/__generated__/getStorefront.d.ts +23 -0
- package/build/api/storefront/index.d.ts +4 -0
- package/build/api/theme/index.d.ts +4 -0
- package/build/api/variant-type/__generated__/listVariantType.d.ts +27 -0
- package/build/api/variant-type/index.d.ts +4 -0
- package/build/components/checkout/components/address-form/index.d.ts +12 -0
- package/build/components/checkout/components/address-form/model.d.ts +76 -0
- package/build/components/checkout/components/arrow-left.d.ts +6 -0
- package/build/components/checkout/components/breadcrumbs/index.d.ts +7 -0
- package/build/components/checkout/components/button/index.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/arrow-down.d.ts +6 -0
- package/build/components/checkout/components/cart-summary/arrow-right.d.ts +6 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/shopping-cart.d.ts +6 -0
- package/build/components/checkout/components/checkbox/check.d.ts +6 -0
- package/build/components/checkout/components/checkbox/index.d.ts +8 -0
- package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
- package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
- package/build/components/checkout/components/cross.d.ts +6 -0
- package/build/components/checkout/components/error-container/index.d.ts +6 -0
- package/build/components/checkout/components/error-container/no-shipping-error/index.d.ts +6 -0
- package/build/components/checkout/components/error-container/payment-error/index.d.ts +6 -0
- package/build/components/checkout/components/error-container/stock-error/index.d.ts +8 -0
- package/build/components/checkout/components/error-container/unknown-error/index.d.ts +6 -0
- package/build/components/checkout/components/expandable-list/index.d.ts +13 -0
- package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
- package/build/components/checkout/components/form-item/index.d.ts +3 -0
- package/build/components/checkout/components/form-item/model.d.ts +34 -0
- package/build/components/checkout/components/info-box/index.d.ts +8 -0
- package/build/components/checkout/components/policy-modal/index.d.ts +8 -0
- package/build/components/checkout/components/step-action-buttons/index.d.ts +10 -0
- package/build/components/checkout/components/text-button/index.d.ts +7 -0
- package/build/components/checkout/components/toggle/index.d.ts +7 -0
- package/build/components/checkout/index.d.ts +10 -0
- package/build/components/checkout/model.d.ts +101 -0
- package/build/components/checkout/steps/step-info/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
- package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
- package/build/components/checkout/steps/step-success/index.d.ts +7 -0
- package/build/components/error/index.d.ts +5 -0
- package/build/components/gtm/functions.d.ts +164 -0
- package/build/components/gtm/index.d.ts +7 -0
- package/build/components/hoc/ThemeComponent.d.ts +9 -0
- package/build/components/hoc/ThemeComponentEditor.d.ts +9 -0
- package/build/components/index.d.ts +6 -0
- package/build/components/page/head.d.ts +7 -0
- package/build/components/page/index.d.ts +9 -0
- package/build/components/page-editor/index.d.ts +2 -0
- package/build/components/page-editor/model.d.ts +59 -0
- package/build/index.d.ts +7 -0
- package/build/index.es.js +23583 -0
- package/build/index.js +23655 -0
- package/build/models/data/brand/index.d.ts +10 -0
- package/build/models/data/cart/index.d.ts +30 -0
- package/build/models/data/category/index.d.ts +11 -0
- package/build/models/data/checkout/index.d.ts +87 -0
- package/build/models/data/city/index.d.ts +4 -0
- package/build/models/data/country/index.d.ts +6 -0
- package/build/models/data/customer/address/index.d.ts +44 -0
- package/build/models/data/customer/index.d.ts +19 -0
- package/build/models/data/district/index.d.ts +4 -0
- package/build/models/data/html-meta-data/index.d.ts +15 -0
- package/build/models/data/image/index.d.ts +7 -0
- package/build/models/data/index.d.ts +25 -0
- package/build/models/data/installment-info/index.d.ts +30 -0
- package/build/models/data/merchant-settings/index.d.ts +8 -0
- package/build/models/data/order/address/index.d.ts +41 -0
- package/build/models/data/order/adjustment/index.d.ts +16 -0
- package/build/models/data/order/index.d.ts +109 -0
- package/build/models/data/order/line-item/discount/index.d.ts +11 -0
- package/build/models/data/order/line-item/index.d.ts +19 -0
- package/build/models/data/order/line-item/variant/index.d.ts +25 -0
- package/build/models/data/order/shipping-line/index.d.ts +7 -0
- package/build/models/data/order-transaction/index.d.ts +72 -0
- package/build/models/data/payment-gateway/index.d.ts +20 -0
- package/build/models/data/product/attribute-value/index.d.ts +6 -0
- package/build/models/data/product/index.d.ts +29 -0
- package/build/models/data/product/variant/index.d.ts +16 -0
- package/build/models/data/product/variant/price/index.d.ts +8 -0
- package/build/models/data/product/variant-type/index.d.ts +6 -0
- package/build/models/data/product-attribute/index.d.ts +17 -0
- package/build/models/data/product-attribute/product-attribute-option/index.d.ts +5 -0
- package/build/models/data/state/index.d.ts +5 -0
- package/build/models/data/storefront/index.d.ts +12 -0
- package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
- package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
- package/build/models/data/storefront/storefront-domain/index.d.ts +7 -0
- package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
- package/build/models/data/variant-type/index.d.ts +14 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +11 -0
- package/build/models/index.d.ts +3 -0
- package/build/models/theme/component/index.d.ts +10 -0
- package/build/models/theme/component/prop/index.d.ts +19 -0
- package/build/models/theme/component/prop/value/index.d.ts +14 -0
- package/build/models/theme/index.d.ts +10 -0
- package/build/models/theme/page/component/index.d.ts +6 -0
- package/build/models/theme/page/component/prop-value/brand-list.d.ts +9 -0
- package/build/models/theme/page/component/prop-value/brand.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/link.d.ts +19 -0
- package/build/models/theme/page/component/prop-value/product-detail.d.ts +6 -0
- package/build/models/theme/page/component/prop-value/product-list.d.ts +15 -0
- package/build/models/theme/page/index.d.ts +26 -0
- package/build/models/theme/theme.d.ts +10 -0
- package/build/models/ui/brand-list/index.d.ts +58 -0
- package/build/models/ui/index.d.ts +6 -0
- package/build/models/ui/navigation-link/index.d.ts +7 -0
- package/build/models/ui/product-detail/index.d.ts +13 -0
- package/build/models/ui/product-list/filter.d.ts +18 -0
- package/build/models/ui/product-list/index.d.ts +76 -0
- package/build/pages/[slug]/[secondSlug].d.ts +11 -0
- package/build/pages/[slug]/index.d.ts +12 -0
- package/build/pages/account/addresses.d.ts +10 -0
- package/build/pages/account/forgot-password.d.ts +10 -0
- package/build/pages/account/index.d.ts +10 -0
- package/build/pages/account/login.d.ts +10 -0
- package/build/pages/account/orders/[id].d.ts +10 -0
- package/build/pages/account/orders/index.d.ts +10 -0
- package/build/pages/account/recover-password.d.ts +10 -0
- package/build/pages/account/register.d.ts +10 -0
- package/build/pages/api/getComponentDirs.d.ts +3 -0
- package/build/pages/api/getTheme.d.ts +3 -0
- package/build/pages/api/updateTheme.d.ts +10 -0
- package/build/pages/api/uploadTheme.d.ts +3 -0
- package/build/pages/checkout/[id].d.ts +11 -0
- package/build/pages/editor.d.ts +5 -0
- package/build/pages/home.d.ts +10 -0
- package/build/pages/index.d.ts +14 -0
- package/build/store/base.d.ts +7 -0
- package/build/store/cart.d.ts +25 -0
- package/build/store/customer.d.ts +32 -0
- package/build/store/index.d.ts +1 -0
- package/build/storefront/index.d.ts +9 -0
- package/build/utils/currency.d.ts +1 -0
- package/build/utils/helper.d.ts +4 -0
- package/build/utils/index.d.ts +3 -0
- package/build/utils/providers/page-data.d.ts +35 -0
- package/build/utils/providers/prop-value/brand-list.d.ts +7 -0
- package/build/utils/providers/prop-value/brand.d.ts +8 -0
- package/build/utils/providers/prop-value/index.d.ts +3 -0
- package/build/utils/providers/prop-value/link.d.ts +9 -0
- package/build/utils/providers/prop-value/product-detail.d.ts +8 -0
- package/build/utils/providers/prop-value/product-list.d.ts +11 -0
- package/package.json +118 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrderAdjustment Enum
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AdjustmentEnum {
|
|
5
|
+
DECREMENT = "DECREMENT",
|
|
6
|
+
INCREMENT = "INCREMENT"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Amount Type Enum
|
|
10
|
+
*/
|
|
11
|
+
export declare enum AmountTypeEnum {
|
|
12
|
+
AMOUNT = "AMOUNT",
|
|
13
|
+
RATIO = "RATIO"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Cancelled Reason Enum
|
|
17
|
+
*/
|
|
18
|
+
export declare enum CancelledReasonEnum {
|
|
19
|
+
CUSTOMER = "CUSTOMER",
|
|
20
|
+
DECLINED = "DECLINED",
|
|
21
|
+
INVENTORY = "INVENTORY",
|
|
22
|
+
OTHER = "OTHER"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Cart Status Enum
|
|
26
|
+
*/
|
|
27
|
+
export declare enum CartStatusEnum {
|
|
28
|
+
ACTIVE = "ACTIVE",
|
|
29
|
+
PASSIVE = "PASSIVE"
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Checkout Recovery Email Status Enum
|
|
33
|
+
*/
|
|
34
|
+
export declare enum CheckoutRecoveryEmailStatusEnum {
|
|
35
|
+
NOT_SENT = "NOT_SENT",
|
|
36
|
+
SENT = "SENT"
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Checkout Recovery Status Enum
|
|
40
|
+
*/
|
|
41
|
+
export declare enum CheckoutRecoveryStatusEnum {
|
|
42
|
+
NOT_RECOVERED = "NOT_RECOVERED",
|
|
43
|
+
RECOVERED = "RECOVERED"
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Checkout Status Enum
|
|
47
|
+
*/
|
|
48
|
+
export declare enum CheckoutStatusEnum {
|
|
49
|
+
COMPLETED = "COMPLETED",
|
|
50
|
+
OPEN = "OPEN"
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Customer Account Statuses
|
|
54
|
+
*/
|
|
55
|
+
export declare enum CustomerAccountStatusesEnum {
|
|
56
|
+
ACTIVE_ACCOUNT = "ACTIVE_ACCOUNT",
|
|
57
|
+
DECLINED_ACCOUNT_INVITATION = "DECLINED_ACCOUNT_INVITATION",
|
|
58
|
+
DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
|
|
59
|
+
INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT"
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Url Slug Target Type Enum Codes
|
|
63
|
+
*/
|
|
64
|
+
export declare enum HTMLMetaDataTargetTypeEnum {
|
|
65
|
+
BRAND = "BRAND",
|
|
66
|
+
CATEGORY = "CATEGORY",
|
|
67
|
+
PAGE = "PAGE",
|
|
68
|
+
PRODUCT = "PRODUCT"
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Order Line Item Status Enum
|
|
72
|
+
*/
|
|
73
|
+
export declare enum OrderLineItemStatusEnum {
|
|
74
|
+
CANCELLED = "CANCELLED",
|
|
75
|
+
FULFILLED = "FULFILLED",
|
|
76
|
+
REFUNDED = "REFUNDED",
|
|
77
|
+
UNFULFILLED = "UNFULFILLED"
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Order Package Fulfill Status Enum
|
|
81
|
+
*/
|
|
82
|
+
export declare enum OrderPackageFulfillStatusEnum {
|
|
83
|
+
DELIVERED = "DELIVERED",
|
|
84
|
+
FULFILLED = "FULFILLED",
|
|
85
|
+
SHIPPED = "SHIPPED"
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Order Package Status Enum
|
|
89
|
+
*/
|
|
90
|
+
export declare enum OrderPackageStatusEnum {
|
|
91
|
+
FULFILLED = "FULFILLED",
|
|
92
|
+
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
93
|
+
UNFULFILLED = "UNFULFILLED"
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Order Status Enum
|
|
97
|
+
*/
|
|
98
|
+
export declare enum OrderStatusEnum {
|
|
99
|
+
CANCELLED = "CANCELLED",
|
|
100
|
+
CREATED = "CREATED",
|
|
101
|
+
DRAFT = "DRAFT",
|
|
102
|
+
REFUNDED = "REFUNDED"
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Payment Method Enum
|
|
106
|
+
*/
|
|
107
|
+
export declare enum PaymentMethodEnum {
|
|
108
|
+
BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
|
|
109
|
+
CASH = "CASH",
|
|
110
|
+
CASH_ON_DELIVERY = "CASH_ON_DELIVERY",
|
|
111
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
112
|
+
GIFT_CARD = "GIFT_CARD",
|
|
113
|
+
MONEY_ORDER = "MONEY_ORDER",
|
|
114
|
+
OTHER = "OTHER"
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Payment Status Enum
|
|
118
|
+
*/
|
|
119
|
+
export declare enum PaymentStatusEnum {
|
|
120
|
+
PAID = "PAID",
|
|
121
|
+
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
122
|
+
WAITING = "WAITING"
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* ProductAttribute Types
|
|
126
|
+
*/
|
|
127
|
+
export declare enum ProductAttributeTypeEnum {
|
|
128
|
+
BOOLEAN = "BOOLEAN",
|
|
129
|
+
CHOICE = "CHOICE",
|
|
130
|
+
DATETIME = "DATETIME",
|
|
131
|
+
HTML = "HTML",
|
|
132
|
+
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
133
|
+
NUMERIC = "NUMERIC",
|
|
134
|
+
TEXT = "TEXT"
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Product Types
|
|
138
|
+
*/
|
|
139
|
+
export declare enum ProductTypeEnum {
|
|
140
|
+
DIGITAL = "DIGITAL",
|
|
141
|
+
MEMBERSHIP = "MEMBERSHIP",
|
|
142
|
+
PHYSICAL = "PHYSICAL"
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Shipping Method Enum
|
|
146
|
+
*/
|
|
147
|
+
export declare enum ShippingMethodEnum {
|
|
148
|
+
CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
|
|
149
|
+
NO_SHIPMENT = "NO_SHIPMENT",
|
|
150
|
+
SHIPMENT = "SHIPMENT"
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Transaction Card Association Enum
|
|
154
|
+
*/
|
|
155
|
+
export declare enum TransactionCardAssociationEnum {
|
|
156
|
+
AMERICAN_EXPRESS = "AMERICAN_EXPRESS",
|
|
157
|
+
MASTER_CARD = "MASTER_CARD",
|
|
158
|
+
TROY = "TROY",
|
|
159
|
+
VISA = "VISA"
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Transaction Card Type Enum
|
|
163
|
+
*/
|
|
164
|
+
export declare enum TransactionCardTypeEnum {
|
|
165
|
+
CREDIT = "CREDIT",
|
|
166
|
+
DEBIT = "DEBIT",
|
|
167
|
+
PREPAID = "PREPAID"
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Transaction Status Enum
|
|
171
|
+
*/
|
|
172
|
+
export declare enum TransactionStatusEnum {
|
|
173
|
+
AUTHORIZED = "AUTHORIZED",
|
|
174
|
+
FAILED = "FAILED",
|
|
175
|
+
PENDING = "PENDING",
|
|
176
|
+
SUCCESS = "SUCCESS"
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Transaction Type Enum
|
|
180
|
+
*/
|
|
181
|
+
export declare enum TransactionTypeEnum {
|
|
182
|
+
REFUND = "REFUND",
|
|
183
|
+
SALE = "SALE",
|
|
184
|
+
VOID = "VOID"
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Variant Selection Types
|
|
188
|
+
*/
|
|
189
|
+
export declare enum VariantSelectionTypeEnum {
|
|
190
|
+
CHOICE = "CHOICE",
|
|
191
|
+
COLOR = "COLOR"
|
|
192
|
+
}
|
|
193
|
+
export interface CartLineItemInput {
|
|
194
|
+
id?: string | null;
|
|
195
|
+
quantity: number;
|
|
196
|
+
variant: CartLineVariantInput;
|
|
197
|
+
}
|
|
198
|
+
export interface CartLineVariantInput {
|
|
199
|
+
id?: string | null;
|
|
200
|
+
name?: string | null;
|
|
201
|
+
}
|
|
202
|
+
export interface CheckStocksLineInput {
|
|
203
|
+
quantity: number;
|
|
204
|
+
stockLocationId?: string | null;
|
|
205
|
+
variantId: string;
|
|
206
|
+
}
|
|
207
|
+
export interface CheckoutCustomerInput {
|
|
208
|
+
email?: string | null;
|
|
209
|
+
firstName?: string | null;
|
|
210
|
+
id?: string | null;
|
|
211
|
+
lastName?: string | null;
|
|
212
|
+
}
|
|
213
|
+
export interface CreateSaleTransactionWithCheckoutInput {
|
|
214
|
+
checkoutId: string;
|
|
215
|
+
paymentGatewayId: string;
|
|
216
|
+
paymentMethodDetail?: PaymentMethodDetailInput | null;
|
|
217
|
+
}
|
|
218
|
+
export interface CustomerAddressCityInput {
|
|
219
|
+
code?: string | null;
|
|
220
|
+
id?: string | null;
|
|
221
|
+
name: string;
|
|
222
|
+
}
|
|
223
|
+
export interface CustomerAddressCountryInput {
|
|
224
|
+
code?: string | null;
|
|
225
|
+
id?: string | null;
|
|
226
|
+
name: string;
|
|
227
|
+
}
|
|
228
|
+
export interface CustomerAddressDistrictInput {
|
|
229
|
+
code?: string | null;
|
|
230
|
+
id?: string | null;
|
|
231
|
+
name?: string | null;
|
|
232
|
+
}
|
|
233
|
+
export interface CustomerAddressInput {
|
|
234
|
+
addressLine1: string;
|
|
235
|
+
addressLine2?: string | null;
|
|
236
|
+
city: CustomerAddressCityInput;
|
|
237
|
+
company?: string | null;
|
|
238
|
+
country: CustomerAddressCountryInput;
|
|
239
|
+
createdAt?: any | null;
|
|
240
|
+
deleted?: boolean | null;
|
|
241
|
+
district?: CustomerAddressDistrictInput | null;
|
|
242
|
+
firstName: string;
|
|
243
|
+
id?: string | null;
|
|
244
|
+
identityNumber?: string | null;
|
|
245
|
+
isDefault?: boolean | null;
|
|
246
|
+
lastName: string;
|
|
247
|
+
phone?: string | null;
|
|
248
|
+
postalCode: string;
|
|
249
|
+
state?: CustomerAddressStateInput | null;
|
|
250
|
+
taxNumber?: string | null;
|
|
251
|
+
taxOffice?: string | null;
|
|
252
|
+
title: string;
|
|
253
|
+
updatedAt?: any | null;
|
|
254
|
+
}
|
|
255
|
+
export interface CustomerAddressStateInput {
|
|
256
|
+
code?: string | null;
|
|
257
|
+
id?: string | null;
|
|
258
|
+
name?: string | null;
|
|
259
|
+
}
|
|
260
|
+
export interface OrderAddressCityInput {
|
|
261
|
+
code?: string | null;
|
|
262
|
+
id?: string | null;
|
|
263
|
+
name: string;
|
|
264
|
+
}
|
|
265
|
+
export interface OrderAddressCountryInput {
|
|
266
|
+
code?: string | null;
|
|
267
|
+
id?: string | null;
|
|
268
|
+
name: string;
|
|
269
|
+
}
|
|
270
|
+
export interface OrderAddressDistrictInput {
|
|
271
|
+
code?: string | null;
|
|
272
|
+
id?: string | null;
|
|
273
|
+
name?: string | null;
|
|
274
|
+
}
|
|
275
|
+
export interface OrderAddressInput {
|
|
276
|
+
addressLine1: string;
|
|
277
|
+
addressLine2?: string | null;
|
|
278
|
+
city: OrderAddressCityInput;
|
|
279
|
+
company?: string | null;
|
|
280
|
+
country: OrderAddressCountryInput;
|
|
281
|
+
district?: OrderAddressDistrictInput | null;
|
|
282
|
+
firstName: string;
|
|
283
|
+
isDefault: boolean;
|
|
284
|
+
lastName: string;
|
|
285
|
+
phone?: string | null;
|
|
286
|
+
postalCode: string;
|
|
287
|
+
state?: OrderAddressStateInput | null;
|
|
288
|
+
taxNumber?: string | null;
|
|
289
|
+
taxOffice?: string | null;
|
|
290
|
+
}
|
|
291
|
+
export interface OrderAddressStateInput {
|
|
292
|
+
code?: string | null;
|
|
293
|
+
id?: string | null;
|
|
294
|
+
name?: string | null;
|
|
295
|
+
}
|
|
296
|
+
export interface PaginationInput {
|
|
297
|
+
limit?: number | null;
|
|
298
|
+
page?: number | null;
|
|
299
|
+
}
|
|
300
|
+
export interface PaymentMethodDetailInput {
|
|
301
|
+
cardHolderName: string;
|
|
302
|
+
cardNumber: string;
|
|
303
|
+
cvv: string;
|
|
304
|
+
expiredMonth: number;
|
|
305
|
+
expiredYear: number;
|
|
306
|
+
installmentCount: number;
|
|
307
|
+
threeDSecure: boolean;
|
|
308
|
+
}
|
|
309
|
+
export interface RetrieveInstallmentInfoInput {
|
|
310
|
+
binNumber: string;
|
|
311
|
+
paymentGatewayId: string;
|
|
312
|
+
price: number;
|
|
313
|
+
}
|
|
314
|
+
export interface SaveCheckoutInput {
|
|
315
|
+
billingAddress?: OrderAddressInput | null;
|
|
316
|
+
cartId: string;
|
|
317
|
+
couponCode?: string | null;
|
|
318
|
+
createdAt?: any | null;
|
|
319
|
+
customer?: CheckoutCustomerInput | null;
|
|
320
|
+
deleted?: boolean | null;
|
|
321
|
+
id?: string | null;
|
|
322
|
+
shippingAddress?: OrderAddressInput | null;
|
|
323
|
+
shippingMethod: ShippingMethodEnum;
|
|
324
|
+
shippingSettingsId?: string | null;
|
|
325
|
+
shippingZoneRateId?: string | null;
|
|
326
|
+
updatedAt?: any | null;
|
|
327
|
+
}
|
|
328
|
+
export interface SaveItemToCartInput {
|
|
329
|
+
cartId?: string | null;
|
|
330
|
+
customerId?: string | null;
|
|
331
|
+
item: CartLineItemInput;
|
|
332
|
+
}
|
|
333
|
+
export interface SaveMyCustomerInput {
|
|
334
|
+
addresses?: CustomerAddressInput[] | null;
|
|
335
|
+
firstName: string;
|
|
336
|
+
lastName: string;
|
|
337
|
+
phone?: string | null;
|
|
338
|
+
}
|
|
339
|
+
export interface StringFilterInput {
|
|
340
|
+
eq?: string | null;
|
|
341
|
+
in?: string[] | null;
|
|
342
|
+
like?: string | null;
|
|
343
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
|
|
2
|
+
declare class Apollo {
|
|
3
|
+
private _client?;
|
|
4
|
+
static customerToken?: string;
|
|
5
|
+
createApolloClient: (apiKey?: string) => void;
|
|
6
|
+
setCustomerToken: (customerToken?: string) => void;
|
|
7
|
+
getClient: () => ApolloClient<NormalizedCacheObject>;
|
|
8
|
+
}
|
|
9
|
+
export declare const apollo: Apollo;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listProductBrand_listProductBrand_data_metaData {
|
|
3
|
+
__typename: "HTMLMetaData";
|
|
4
|
+
slug: string;
|
|
5
|
+
pageTitle: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
targetId: string | null;
|
|
8
|
+
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
9
|
+
redirectTo: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface listProductBrand_listProductBrand_data {
|
|
12
|
+
__typename: "ProductBrand";
|
|
13
|
+
id: string | null;
|
|
14
|
+
name: string;
|
|
15
|
+
imageId: string | null;
|
|
16
|
+
metaData: listProductBrand_listProductBrand_data_metaData | null;
|
|
17
|
+
}
|
|
18
|
+
export interface listProductBrand_listProductBrand {
|
|
19
|
+
__typename: "ProductBrandPaginationResponse";
|
|
20
|
+
data: listProductBrand_listProductBrand_data[];
|
|
21
|
+
count: number;
|
|
22
|
+
}
|
|
23
|
+
export interface listProductBrand {
|
|
24
|
+
listProductBrand: listProductBrand_listProductBrand;
|
|
25
|
+
}
|
|
26
|
+
export interface listProductBrandVariables {
|
|
27
|
+
id?: StringFilterInput | null;
|
|
28
|
+
paginationInput?: PaginationInput | null;
|
|
29
|
+
name?: StringFilterInput | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasBrand } from "../../models/index";
|
|
2
|
+
export declare class IkasBrandAPI {
|
|
3
|
+
static listBrands(params?: ListBrandsParams): Promise<ListBrandsResponse>;
|
|
4
|
+
}
|
|
5
|
+
declare type ListBrandsParams = {
|
|
6
|
+
idList?: string[];
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
9
|
+
search?: string;
|
|
10
|
+
};
|
|
11
|
+
declare type ListBrandsResponse = {
|
|
12
|
+
brands: IkasBrand[];
|
|
13
|
+
count: number;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AmountTypeEnum, OrderLineItemStatusEnum, CartStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface getCart_getCart_items_discount {
|
|
3
|
+
__typename: "OrderLineDiscount";
|
|
4
|
+
amount: number;
|
|
5
|
+
amountType: AmountTypeEnum;
|
|
6
|
+
reason: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface getCart_getCart_items_variant_variantValues {
|
|
9
|
+
__typename: "OrderLineVariantVariantValues";
|
|
10
|
+
order: number;
|
|
11
|
+
variantTypeId: string;
|
|
12
|
+
variantTypeName: string;
|
|
13
|
+
variantValueId: string;
|
|
14
|
+
variantValueName: string;
|
|
15
|
+
}
|
|
16
|
+
export interface getCart_getCart_items_variant {
|
|
17
|
+
__typename: "OrderLineVariant";
|
|
18
|
+
slug: string | null;
|
|
19
|
+
barcodeList: string[] | null;
|
|
20
|
+
id: string | null;
|
|
21
|
+
mainImageId: string | null;
|
|
22
|
+
name: string;
|
|
23
|
+
productId: string | null;
|
|
24
|
+
sku: string | null;
|
|
25
|
+
taxValue: number | null;
|
|
26
|
+
variantValues: getCart_getCart_items_variant_variantValues[] | null;
|
|
27
|
+
}
|
|
28
|
+
export interface getCart_getCart_items {
|
|
29
|
+
__typename: "OrderLineItem";
|
|
30
|
+
createdAt: any | null;
|
|
31
|
+
currencyCode: string | null;
|
|
32
|
+
discount: getCart_getCart_items_discount | null;
|
|
33
|
+
discountPrice: number | null;
|
|
34
|
+
finalPrice: number | null;
|
|
35
|
+
id: string | null;
|
|
36
|
+
originalOrderLineItemId: string | null;
|
|
37
|
+
price: number;
|
|
38
|
+
quantity: number;
|
|
39
|
+
status: OrderLineItemStatusEnum;
|
|
40
|
+
deleted: boolean | null;
|
|
41
|
+
statusUpdatedAt: any | null;
|
|
42
|
+
stockLocationId: string | null;
|
|
43
|
+
taxValue: number | null;
|
|
44
|
+
updatedAt: any | null;
|
|
45
|
+
variant: getCart_getCart_items_variant;
|
|
46
|
+
}
|
|
47
|
+
export interface getCart_getCart {
|
|
48
|
+
__typename: "Cart";
|
|
49
|
+
createdAt: any | null;
|
|
50
|
+
currencyCode: string | null;
|
|
51
|
+
customerId: string | null;
|
|
52
|
+
dueDate: any;
|
|
53
|
+
id: string | null;
|
|
54
|
+
itemCount: number;
|
|
55
|
+
items: getCart_getCart_items[];
|
|
56
|
+
merchantId: string;
|
|
57
|
+
status: CartStatusEnum;
|
|
58
|
+
totalPrice: number;
|
|
59
|
+
updatedAt: any | null;
|
|
60
|
+
}
|
|
61
|
+
export interface getCart {
|
|
62
|
+
getCart: getCart_getCart | null;
|
|
63
|
+
}
|
|
64
|
+
export interface getCartVariables {
|
|
65
|
+
cartId?: string | null;
|
|
66
|
+
customerId?: string | null;
|
|
67
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SaveItemToCartInput, AmountTypeEnum, OrderLineItemStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface saveItemToCart_saveItemToCart_items_discount {
|
|
3
|
+
__typename: "OrderLineDiscount";
|
|
4
|
+
amount: number;
|
|
5
|
+
amountType: AmountTypeEnum;
|
|
6
|
+
reason: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface saveItemToCart_saveItemToCart_items_variant_variantValues {
|
|
9
|
+
__typename: "OrderLineVariantVariantValues";
|
|
10
|
+
order: number;
|
|
11
|
+
variantTypeId: string;
|
|
12
|
+
variantTypeName: string;
|
|
13
|
+
variantValueId: string;
|
|
14
|
+
variantValueName: string;
|
|
15
|
+
}
|
|
16
|
+
export interface saveItemToCart_saveItemToCart_items_variant {
|
|
17
|
+
__typename: "OrderLineVariant";
|
|
18
|
+
id: string | null;
|
|
19
|
+
name: string;
|
|
20
|
+
sku: string | null;
|
|
21
|
+
slug: string | null;
|
|
22
|
+
barcodeList: string[] | null;
|
|
23
|
+
mainImageId: string | null;
|
|
24
|
+
productId: string | null;
|
|
25
|
+
taxValue: number | null;
|
|
26
|
+
variantValues: saveItemToCart_saveItemToCart_items_variant_variantValues[] | null;
|
|
27
|
+
}
|
|
28
|
+
export interface saveItemToCart_saveItemToCart_items {
|
|
29
|
+
__typename: "OrderLineItem";
|
|
30
|
+
createdAt: any | null;
|
|
31
|
+
currencyCode: string | null;
|
|
32
|
+
deleted: boolean | null;
|
|
33
|
+
discount: saveItemToCart_saveItemToCart_items_discount | null;
|
|
34
|
+
discountPrice: number | null;
|
|
35
|
+
finalPrice: number | null;
|
|
36
|
+
id: string | null;
|
|
37
|
+
originalOrderLineItemId: string | null;
|
|
38
|
+
price: number;
|
|
39
|
+
quantity: number;
|
|
40
|
+
status: OrderLineItemStatusEnum;
|
|
41
|
+
statusUpdatedAt: any | null;
|
|
42
|
+
stockLocationId: string | null;
|
|
43
|
+
taxValue: number | null;
|
|
44
|
+
updatedAt: any | null;
|
|
45
|
+
variant: saveItemToCart_saveItemToCart_items_variant;
|
|
46
|
+
}
|
|
47
|
+
export interface saveItemToCart_saveItemToCart {
|
|
48
|
+
__typename: "Cart";
|
|
49
|
+
id: string | null;
|
|
50
|
+
createdAt: any | null;
|
|
51
|
+
updatedAt: any | null;
|
|
52
|
+
dueDate: any;
|
|
53
|
+
currencyCode: string | null;
|
|
54
|
+
customerId: string | null;
|
|
55
|
+
merchantId: string;
|
|
56
|
+
itemCount: number;
|
|
57
|
+
totalPrice: number;
|
|
58
|
+
items: saveItemToCart_saveItemToCart_items[];
|
|
59
|
+
}
|
|
60
|
+
export interface saveItemToCart {
|
|
61
|
+
saveItemToCart: saveItemToCart_saveItemToCart;
|
|
62
|
+
}
|
|
63
|
+
export interface saveItemToCartVariables {
|
|
64
|
+
input: SaveItemToCartInput;
|
|
65
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IkasSaveItemToCartInput, IkasCart } from "../../models/data/cart/index";
|
|
2
|
+
export declare class IkasCartAPI {
|
|
3
|
+
static saveItemToCart(input: IkasSaveItemToCartInput): Promise<IkasCart | undefined>;
|
|
4
|
+
static getCart(cartId?: string, customerId?: string): Promise<IkasCart | undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listCategory_listCategory_data_metaData {
|
|
3
|
+
__typename: "HTMLMetaData";
|
|
4
|
+
slug: string;
|
|
5
|
+
pageTitle: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
targetId: string | null;
|
|
8
|
+
targetType: HTMLMetaDataTargetTypeEnum | null;
|
|
9
|
+
redirectTo: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface listCategory_listCategory_data {
|
|
12
|
+
__typename: "Category";
|
|
13
|
+
id: string | null;
|
|
14
|
+
createdAt: any | null;
|
|
15
|
+
updatedAt: any | null;
|
|
16
|
+
deleted: boolean | null;
|
|
17
|
+
name: string;
|
|
18
|
+
parentId: string | null;
|
|
19
|
+
imageId: string | null;
|
|
20
|
+
metaData: listCategory_listCategory_data_metaData | null;
|
|
21
|
+
}
|
|
22
|
+
export interface listCategory_listCategory {
|
|
23
|
+
__typename: "CategoryPaginationResponse";
|
|
24
|
+
data: listCategory_listCategory_data[];
|
|
25
|
+
count: number;
|
|
26
|
+
}
|
|
27
|
+
export interface listCategory {
|
|
28
|
+
listCategory: listCategory_listCategory;
|
|
29
|
+
}
|
|
30
|
+
export interface listCategoryVariables {
|
|
31
|
+
id: StringFilterInput;
|
|
32
|
+
paginationInput?: PaginationInput | null;
|
|
33
|
+
name?: StringFilterInput | null;
|
|
34
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasCategory } from "../../models/index";
|
|
2
|
+
export declare class IkasCategoryAPI {
|
|
3
|
+
static listCategories(params?: ListCategoriesParams): Promise<ListCategoriesResponse>;
|
|
4
|
+
}
|
|
5
|
+
declare type ListCategoriesParams = {
|
|
6
|
+
idList?: string[];
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
9
|
+
search?: string;
|
|
10
|
+
};
|
|
11
|
+
declare type ListCategoriesResponse = {
|
|
12
|
+
categories: IkasCategory[];
|
|
13
|
+
count: number;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CheckStocksLineInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface checkStocks_checkStocks_lines {
|
|
3
|
+
__typename: "CheckStocksLineResponse";
|
|
4
|
+
availableQuantity: number;
|
|
5
|
+
isAvailable: boolean;
|
|
6
|
+
stockLocationId: string | null;
|
|
7
|
+
variantId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface checkStocks_checkStocks {
|
|
10
|
+
__typename: "CheckStocksResponse";
|
|
11
|
+
lines: checkStocks_checkStocks_lines[] | null;
|
|
12
|
+
}
|
|
13
|
+
export interface checkStocks {
|
|
14
|
+
checkStocks: checkStocks_checkStocks;
|
|
15
|
+
}
|
|
16
|
+
export interface checkStocksVariables {
|
|
17
|
+
lines: CheckStocksLineInput[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CreateSaleTransactionWithCheckoutInput, TransactionStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface createSaleTransactionWithCheckout_createSaleTransactionWithCheckout_error {
|
|
3
|
+
__typename: "TransactionError";
|
|
4
|
+
code: string | null;
|
|
5
|
+
declineCode: string | null;
|
|
6
|
+
message: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface createSaleTransactionWithCheckout_createSaleTransactionWithCheckout {
|
|
9
|
+
__typename: "TransactionResponse";
|
|
10
|
+
orderId: string | null;
|
|
11
|
+
orderNumber: string | null;
|
|
12
|
+
transactionId: string | null;
|
|
13
|
+
transactionStatus: TransactionStatusEnum;
|
|
14
|
+
returnSlug: string | null;
|
|
15
|
+
error: createSaleTransactionWithCheckout_createSaleTransactionWithCheckout_error | null;
|
|
16
|
+
}
|
|
17
|
+
export interface createSaleTransactionWithCheckout {
|
|
18
|
+
createSaleTransactionWithCheckout: createSaleTransactionWithCheckout_createSaleTransactionWithCheckout;
|
|
19
|
+
}
|
|
20
|
+
export interface createSaleTransactionWithCheckoutVariables {
|
|
21
|
+
input: CreateSaleTransactionWithCheckoutInput;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface getCheckoutByCartId_getCheckoutByCartId {
|
|
2
|
+
__typename: "Checkout";
|
|
3
|
+
id: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface getCheckoutByCartId {
|
|
6
|
+
getCheckoutByCartId: getCheckoutByCartId_getCheckoutByCartId;
|
|
7
|
+
}
|
|
8
|
+
export interface getCheckoutByCartIdVariables {
|
|
9
|
+
cartId: string;
|
|
10
|
+
}
|