@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,206 @@
|
|
|
1
|
+
import { ShippingMethodEnum, CheckoutRecoveryEmailStatusEnum, CheckoutRecoveryStatusEnum, CheckoutStatusEnum, AmountTypeEnum, OrderLineItemStatusEnum, CartStatusEnum, AdjustmentEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface getCheckoutById_getCheckoutById_availableShippingMethods {
|
|
3
|
+
__typename: "AvailableShippingMethod";
|
|
4
|
+
price: number;
|
|
5
|
+
rateName: string;
|
|
6
|
+
shippingMethod: ShippingMethodEnum;
|
|
7
|
+
shippingSettingsId: string;
|
|
8
|
+
shippingZoneRateId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface getCheckoutById_getCheckoutById_billingAddress_city {
|
|
11
|
+
__typename: "OrderAddressCity";
|
|
12
|
+
code: string | null;
|
|
13
|
+
id: string | null;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
export interface getCheckoutById_getCheckoutById_billingAddress_country {
|
|
17
|
+
__typename: "OrderAddressCountry";
|
|
18
|
+
code: string | null;
|
|
19
|
+
id: string | null;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
export interface getCheckoutById_getCheckoutById_billingAddress_district {
|
|
23
|
+
__typename: "OrderAddressDistrict";
|
|
24
|
+
code: string | null;
|
|
25
|
+
id: string | null;
|
|
26
|
+
name: string | null;
|
|
27
|
+
}
|
|
28
|
+
export interface getCheckoutById_getCheckoutById_billingAddress_state {
|
|
29
|
+
__typename: "OrderAddressState";
|
|
30
|
+
code: string | null;
|
|
31
|
+
id: string | null;
|
|
32
|
+
name: string | null;
|
|
33
|
+
}
|
|
34
|
+
export interface getCheckoutById_getCheckoutById_billingAddress {
|
|
35
|
+
__typename: "OrderAddress";
|
|
36
|
+
addressLine1: string;
|
|
37
|
+
addressLine2: string | null;
|
|
38
|
+
city: getCheckoutById_getCheckoutById_billingAddress_city;
|
|
39
|
+
company: string | null;
|
|
40
|
+
country: getCheckoutById_getCheckoutById_billingAddress_country;
|
|
41
|
+
district: getCheckoutById_getCheckoutById_billingAddress_district | null;
|
|
42
|
+
firstName: string;
|
|
43
|
+
identityNumber: string | null;
|
|
44
|
+
isDefault: boolean;
|
|
45
|
+
lastName: string;
|
|
46
|
+
phone: string | null;
|
|
47
|
+
postalCode: string;
|
|
48
|
+
state: getCheckoutById_getCheckoutById_billingAddress_state | null;
|
|
49
|
+
taxNumber: string | null;
|
|
50
|
+
taxOffice: string | null;
|
|
51
|
+
}
|
|
52
|
+
export interface getCheckoutById_getCheckoutById_customer {
|
|
53
|
+
__typename: "CheckoutCustomer";
|
|
54
|
+
email: string | null;
|
|
55
|
+
firstName: string | null;
|
|
56
|
+
id: string | null;
|
|
57
|
+
lastName: string | null;
|
|
58
|
+
}
|
|
59
|
+
export interface getCheckoutById_getCheckoutById_shippingAddress_city {
|
|
60
|
+
__typename: "OrderAddressCity";
|
|
61
|
+
code: string | null;
|
|
62
|
+
id: string | null;
|
|
63
|
+
name: string;
|
|
64
|
+
}
|
|
65
|
+
export interface getCheckoutById_getCheckoutById_shippingAddress_country {
|
|
66
|
+
__typename: "OrderAddressCountry";
|
|
67
|
+
id: string | null;
|
|
68
|
+
code: string | null;
|
|
69
|
+
name: string;
|
|
70
|
+
}
|
|
71
|
+
export interface getCheckoutById_getCheckoutById_shippingAddress_district {
|
|
72
|
+
__typename: "OrderAddressDistrict";
|
|
73
|
+
name: string | null;
|
|
74
|
+
id: string | null;
|
|
75
|
+
code: string | null;
|
|
76
|
+
}
|
|
77
|
+
export interface getCheckoutById_getCheckoutById_shippingAddress_state {
|
|
78
|
+
__typename: "OrderAddressState";
|
|
79
|
+
name: string | null;
|
|
80
|
+
id: string | null;
|
|
81
|
+
code: string | null;
|
|
82
|
+
}
|
|
83
|
+
export interface getCheckoutById_getCheckoutById_shippingAddress {
|
|
84
|
+
__typename: "OrderAddress";
|
|
85
|
+
addressLine1: string;
|
|
86
|
+
addressLine2: string | null;
|
|
87
|
+
city: getCheckoutById_getCheckoutById_shippingAddress_city;
|
|
88
|
+
company: string | null;
|
|
89
|
+
country: getCheckoutById_getCheckoutById_shippingAddress_country;
|
|
90
|
+
district: getCheckoutById_getCheckoutById_shippingAddress_district | null;
|
|
91
|
+
firstName: string;
|
|
92
|
+
identityNumber: string | null;
|
|
93
|
+
isDefault: boolean;
|
|
94
|
+
lastName: string;
|
|
95
|
+
phone: string | null;
|
|
96
|
+
postalCode: string;
|
|
97
|
+
state: getCheckoutById_getCheckoutById_shippingAddress_state | null;
|
|
98
|
+
taxNumber: string | null;
|
|
99
|
+
taxOffice: string | null;
|
|
100
|
+
}
|
|
101
|
+
export interface getCheckoutById_getCheckoutById_shippingLines {
|
|
102
|
+
__typename: "OrderShippingLine";
|
|
103
|
+
title: string;
|
|
104
|
+
taxValue: number | null;
|
|
105
|
+
price: number;
|
|
106
|
+
shippingSettingsId: string | null;
|
|
107
|
+
shippingZoneRateId: string | null;
|
|
108
|
+
}
|
|
109
|
+
export interface getCheckoutById_getCheckoutById_cart_items_discount {
|
|
110
|
+
__typename: "OrderLineDiscount";
|
|
111
|
+
amount: number;
|
|
112
|
+
amountType: AmountTypeEnum;
|
|
113
|
+
reason: string | null;
|
|
114
|
+
}
|
|
115
|
+
export interface getCheckoutById_getCheckoutById_cart_items_variant_variantValues {
|
|
116
|
+
__typename: "OrderLineVariantVariantValues";
|
|
117
|
+
order: number;
|
|
118
|
+
variantTypeId: string;
|
|
119
|
+
variantTypeName: string;
|
|
120
|
+
variantValueId: string;
|
|
121
|
+
variantValueName: string;
|
|
122
|
+
}
|
|
123
|
+
export interface getCheckoutById_getCheckoutById_cart_items_variant {
|
|
124
|
+
__typename: "OrderLineVariant";
|
|
125
|
+
barcodeList: string[] | null;
|
|
126
|
+
id: string | null;
|
|
127
|
+
mainImageId: string | null;
|
|
128
|
+
name: string;
|
|
129
|
+
productId: string | null;
|
|
130
|
+
sku: string | null;
|
|
131
|
+
taxValue: number | null;
|
|
132
|
+
variantValues: getCheckoutById_getCheckoutById_cart_items_variant_variantValues[] | null;
|
|
133
|
+
}
|
|
134
|
+
export interface getCheckoutById_getCheckoutById_cart_items {
|
|
135
|
+
__typename: "OrderLineItem";
|
|
136
|
+
createdAt: any | null;
|
|
137
|
+
currencyCode: string | null;
|
|
138
|
+
discount: getCheckoutById_getCheckoutById_cart_items_discount | null;
|
|
139
|
+
discountPrice: number | null;
|
|
140
|
+
finalPrice: number | null;
|
|
141
|
+
id: string | null;
|
|
142
|
+
originalOrderLineItemId: string | null;
|
|
143
|
+
price: number;
|
|
144
|
+
quantity: number;
|
|
145
|
+
status: OrderLineItemStatusEnum;
|
|
146
|
+
deleted: boolean | null;
|
|
147
|
+
statusUpdatedAt: any | null;
|
|
148
|
+
stockLocationId: string | null;
|
|
149
|
+
taxValue: number | null;
|
|
150
|
+
updatedAt: any | null;
|
|
151
|
+
variant: getCheckoutById_getCheckoutById_cart_items_variant;
|
|
152
|
+
}
|
|
153
|
+
export interface getCheckoutById_getCheckoutById_cart {
|
|
154
|
+
__typename: "Cart";
|
|
155
|
+
createdAt: any | null;
|
|
156
|
+
currencyCode: string | null;
|
|
157
|
+
customerId: string | null;
|
|
158
|
+
dueDate: any;
|
|
159
|
+
id: string | null;
|
|
160
|
+
itemCount: number;
|
|
161
|
+
items: getCheckoutById_getCheckoutById_cart_items[];
|
|
162
|
+
merchantId: string;
|
|
163
|
+
status: CartStatusEnum;
|
|
164
|
+
totalPrice: number;
|
|
165
|
+
updatedAt: any | null;
|
|
166
|
+
}
|
|
167
|
+
export interface getCheckoutById_getCheckoutById_adjustments {
|
|
168
|
+
__typename: "OrderAdjustment";
|
|
169
|
+
amount: number;
|
|
170
|
+
amountType: AmountTypeEnum;
|
|
171
|
+
name: string;
|
|
172
|
+
order: number;
|
|
173
|
+
type: AdjustmentEnum;
|
|
174
|
+
}
|
|
175
|
+
export interface getCheckoutById_getCheckoutById {
|
|
176
|
+
__typename: "Checkout";
|
|
177
|
+
totalFinalPrice: number;
|
|
178
|
+
availableShippingMethods: getCheckoutById_getCheckoutById_availableShippingMethods[] | null;
|
|
179
|
+
billingAddress: getCheckoutById_getCheckoutById_billingAddress | null;
|
|
180
|
+
cartId: string;
|
|
181
|
+
couponCode: string | null;
|
|
182
|
+
createdAt: any | null;
|
|
183
|
+
customer: getCheckoutById_getCheckoutById_customer | null;
|
|
184
|
+
deleted: boolean | null;
|
|
185
|
+
id: string | null;
|
|
186
|
+
merchantId: string;
|
|
187
|
+
orderId: string | null;
|
|
188
|
+
orderNumber: string | null;
|
|
189
|
+
recoverEmailStatus: CheckoutRecoveryEmailStatusEnum | null;
|
|
190
|
+
recoveryStatus: CheckoutRecoveryStatusEnum | null;
|
|
191
|
+
shippingAddress: getCheckoutById_getCheckoutById_shippingAddress | null;
|
|
192
|
+
shippingLines: getCheckoutById_getCheckoutById_shippingLines[] | null;
|
|
193
|
+
shippingMethod: ShippingMethodEnum;
|
|
194
|
+
shippingSettingsId: string | null;
|
|
195
|
+
shippingZoneRateId: string | null;
|
|
196
|
+
status: CheckoutStatusEnum;
|
|
197
|
+
updatedAt: any | null;
|
|
198
|
+
cart: getCheckoutById_getCheckoutById_cart | null;
|
|
199
|
+
adjustments: getCheckoutById_getCheckoutById_adjustments[] | null;
|
|
200
|
+
}
|
|
201
|
+
export interface getCheckoutById {
|
|
202
|
+
getCheckoutById: getCheckoutById_getCheckoutById;
|
|
203
|
+
}
|
|
204
|
+
export interface getCheckoutByIdVariables {
|
|
205
|
+
id: string;
|
|
206
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PaymentMethodEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listPaymentGateway_listPaymentGateway_paymentMethods {
|
|
3
|
+
__typename: "PaymentGatewayPaymentMethod";
|
|
4
|
+
name: string;
|
|
5
|
+
logoUrl: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface listPaymentGateway_listPaymentGateway {
|
|
8
|
+
__typename: "PaymentGateway";
|
|
9
|
+
paymentMethods: listPaymentGateway_listPaymentGateway_paymentMethods[];
|
|
10
|
+
paymentMethodType: PaymentMethodEnum;
|
|
11
|
+
id: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
testMode: boolean | null;
|
|
14
|
+
}
|
|
15
|
+
export interface listPaymentGateway {
|
|
16
|
+
listPaymentGateway: listPaymentGateway_listPaymentGateway[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RetrieveInstallmentInfoInput, TransactionCardAssociationEnum, TransactionCardTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface retrieveInstallmentInfo_retrieveInstallmentInfo_installmentPrices {
|
|
3
|
+
__typename: "TransactionInstallmentPrice";
|
|
4
|
+
totalPrice: number | null;
|
|
5
|
+
installmentPrice: number | null;
|
|
6
|
+
installmentCount: number | null;
|
|
7
|
+
}
|
|
8
|
+
export interface retrieveInstallmentInfo_retrieveInstallmentInfo {
|
|
9
|
+
__typename: "RetrieveInstallmentInfoResponse";
|
|
10
|
+
bankName: string | null;
|
|
11
|
+
binNumber: string;
|
|
12
|
+
cardAssociation: TransactionCardAssociationEnum | null;
|
|
13
|
+
cardFamily: string | null;
|
|
14
|
+
cardType: TransactionCardTypeEnum | null;
|
|
15
|
+
installmentPrices: retrieveInstallmentInfo_retrieveInstallmentInfo_installmentPrices[] | null;
|
|
16
|
+
price: number;
|
|
17
|
+
}
|
|
18
|
+
export interface retrieveInstallmentInfo {
|
|
19
|
+
retrieveInstallmentInfo: retrieveInstallmentInfo_retrieveInstallmentInfo;
|
|
20
|
+
}
|
|
21
|
+
export interface retrieveInstallmentInfoVariables {
|
|
22
|
+
input: RetrieveInstallmentInfoInput;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SaveCheckoutInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface saveCheckout_saveCheckout {
|
|
3
|
+
__typename: "Checkout";
|
|
4
|
+
id: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface saveCheckout {
|
|
7
|
+
saveCheckout: saveCheckout_saveCheckout;
|
|
8
|
+
}
|
|
9
|
+
export interface saveCheckoutVariables {
|
|
10
|
+
input: SaveCheckoutInput;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IkasCheckout, IkasPaymentMethodDetail, IkasInstallmentInfo, IkasInstallmentInfoInput } from "../../models/index";
|
|
2
|
+
import * as SaleTransactionTypes from "./__generated__/createSaleTransactionWithCheckout";
|
|
3
|
+
import * as CheckStocksTypes from "./__generated__/checkStocks";
|
|
4
|
+
import { IkasPaymentGateway } from "../../models/data/payment-gateway/index";
|
|
5
|
+
export declare class IkasCheckoutAPI {
|
|
6
|
+
static getCheckoutId(cartId: string): Promise<string | undefined>;
|
|
7
|
+
static getCheckoutById(id: string): Promise<IkasCheckout | undefined>;
|
|
8
|
+
static saveCheckout(checkout: IkasCheckout): Promise<string | undefined>;
|
|
9
|
+
static createSaleTransactionWithCheckout(checkoutId: string, paymentGatewayId: string, paymentMethodDetail?: IkasPaymentMethodDetail): Promise<SaleTransactionTypes.createSaleTransactionWithCheckout_createSaleTransactionWithCheckout>;
|
|
10
|
+
static listPaymentGateway(): Promise<IkasPaymentGateway[]>;
|
|
11
|
+
static retrieveInstallmentInfo(input: IkasInstallmentInfoInput): Promise<IkasInstallmentInfo>;
|
|
12
|
+
static checkStocks(lines: CheckStocksLineInput[]): Promise<CheckStocksTypes.checkStocks_checkStocks>;
|
|
13
|
+
}
|
|
14
|
+
declare type CheckStocksLineInput = {
|
|
15
|
+
quantity: number;
|
|
16
|
+
stockLocationId?: string | null;
|
|
17
|
+
variantId: string;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listCity_listCity {
|
|
3
|
+
__typename: "City";
|
|
4
|
+
id: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
order: number | null;
|
|
7
|
+
}
|
|
8
|
+
export interface listCity {
|
|
9
|
+
listCity: listCity_listCity[];
|
|
10
|
+
}
|
|
11
|
+
export interface listCityVariables {
|
|
12
|
+
stateId: StringFilterInput;
|
|
13
|
+
countryId?: StringFilterInput | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface listCountry_listCountry_locationTranslations {
|
|
2
|
+
__typename: "LocationTranslations";
|
|
3
|
+
tr: string;
|
|
4
|
+
en: string;
|
|
5
|
+
}
|
|
6
|
+
export interface listCountry_listCountry {
|
|
7
|
+
__typename: "Country";
|
|
8
|
+
id: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
iso3: string | null;
|
|
11
|
+
phoneCode: string | null;
|
|
12
|
+
locationTranslations: listCountry_listCountry_locationTranslations;
|
|
13
|
+
}
|
|
14
|
+
export interface listCountry {
|
|
15
|
+
listCountry: listCountry_listCountry[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface checkCustomerEmail_checkCustomerEmail {
|
|
2
|
+
__typename: "CustomerCheckResponse";
|
|
3
|
+
exists: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface checkCustomerEmail {
|
|
6
|
+
checkCustomerEmail: checkCustomerEmail_checkCustomerEmail;
|
|
7
|
+
}
|
|
8
|
+
export interface checkCustomerEmailVariables {
|
|
9
|
+
email: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface customerLogin_customerLogin_customer_addresses_city {
|
|
3
|
+
__typename: "CustomerAddressCity";
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface customerLogin_customerLogin_customer_addresses_country {
|
|
9
|
+
__typename: "CustomerAddressCountry";
|
|
10
|
+
code: string | null;
|
|
11
|
+
id: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export interface customerLogin_customerLogin_customer_addresses_district {
|
|
15
|
+
__typename: "CustomerAddressDistrict";
|
|
16
|
+
id: string | null;
|
|
17
|
+
name: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface customerLogin_customerLogin_customer_addresses_state {
|
|
21
|
+
__typename: "CustomerAddressState";
|
|
22
|
+
name: string | null;
|
|
23
|
+
id: string | null;
|
|
24
|
+
code: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface customerLogin_customerLogin_customer_addresses {
|
|
27
|
+
__typename: "CustomerAddress";
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2: string | null;
|
|
30
|
+
city: customerLogin_customerLogin_customer_addresses_city;
|
|
31
|
+
company: string | null;
|
|
32
|
+
country: customerLogin_customerLogin_customer_addresses_country;
|
|
33
|
+
district: customerLogin_customerLogin_customer_addresses_district | null;
|
|
34
|
+
id: string | null;
|
|
35
|
+
firstName: string;
|
|
36
|
+
isDefault: boolean | null;
|
|
37
|
+
lastName: string;
|
|
38
|
+
postalCode: string;
|
|
39
|
+
state: customerLogin_customerLogin_customer_addresses_state | null;
|
|
40
|
+
taxNumber: string | null;
|
|
41
|
+
taxOffice: string | null;
|
|
42
|
+
title: string;
|
|
43
|
+
}
|
|
44
|
+
export interface customerLogin_customerLogin_customer {
|
|
45
|
+
__typename: "Customer";
|
|
46
|
+
id: string | null;
|
|
47
|
+
isEmailVerified: boolean | null;
|
|
48
|
+
isPhoneVerified: boolean | null;
|
|
49
|
+
lastName: string | null;
|
|
50
|
+
addresses: customerLogin_customerLogin_customer_addresses[] | null;
|
|
51
|
+
phone: string | null;
|
|
52
|
+
accountStatus: CustomerAccountStatusesEnum | null;
|
|
53
|
+
email: string | null;
|
|
54
|
+
firstName: string;
|
|
55
|
+
}
|
|
56
|
+
export interface customerLogin_customerLogin {
|
|
57
|
+
__typename: "CustomerLoginResponse";
|
|
58
|
+
token: string;
|
|
59
|
+
tokenExpiry: number;
|
|
60
|
+
customer: customerLogin_customerLogin_customer | null;
|
|
61
|
+
}
|
|
62
|
+
export interface customerLogin {
|
|
63
|
+
customerLogin: customerLogin_customerLogin;
|
|
64
|
+
}
|
|
65
|
+
export interface customerLoginVariables {
|
|
66
|
+
email: string;
|
|
67
|
+
password: string;
|
|
68
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface customerRefreshToken_customerRefreshToken {
|
|
2
|
+
__typename: "CustomerRefreshTokenResponse";
|
|
3
|
+
token: string;
|
|
4
|
+
tokenExpiry: number;
|
|
5
|
+
}
|
|
6
|
+
export interface customerRefreshToken {
|
|
7
|
+
customerRefreshToken: customerRefreshToken_customerRefreshToken;
|
|
8
|
+
}
|
|
9
|
+
export interface customerRefreshTokenVariables {
|
|
10
|
+
token: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum, PaymentStatusEnum, ShippingMethodEnum, OrderStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface getCustomerOrders_getCustomerOrders_billingAddress_city {
|
|
3
|
+
__typename: "OrderAddressCity";
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface getCustomerOrders_getCustomerOrders_billingAddress_country {
|
|
9
|
+
__typename: "OrderAddressCountry";
|
|
10
|
+
name: string;
|
|
11
|
+
id: string | null;
|
|
12
|
+
code: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface getCustomerOrders_getCustomerOrders_billingAddress_district {
|
|
15
|
+
__typename: "OrderAddressDistrict";
|
|
16
|
+
name: string | null;
|
|
17
|
+
id: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface getCustomerOrders_getCustomerOrders_billingAddress_state {
|
|
21
|
+
__typename: "OrderAddressState";
|
|
22
|
+
name: string | null;
|
|
23
|
+
id: string | null;
|
|
24
|
+
code: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface getCustomerOrders_getCustomerOrders_billingAddress {
|
|
27
|
+
__typename: "OrderAddress";
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2: string | null;
|
|
30
|
+
city: getCustomerOrders_getCustomerOrders_billingAddress_city;
|
|
31
|
+
company: string | null;
|
|
32
|
+
country: getCustomerOrders_getCustomerOrders_billingAddress_country;
|
|
33
|
+
district: getCustomerOrders_getCustomerOrders_billingAddress_district | null;
|
|
34
|
+
firstName: string;
|
|
35
|
+
identityNumber: string | null;
|
|
36
|
+
isDefault: boolean;
|
|
37
|
+
lastName: string;
|
|
38
|
+
phone: string | null;
|
|
39
|
+
postalCode: string;
|
|
40
|
+
state: getCustomerOrders_getCustomerOrders_billingAddress_state | null;
|
|
41
|
+
taxNumber: string | null;
|
|
42
|
+
taxOffice: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface getCustomerOrders_getCustomerOrders_currencyRates {
|
|
45
|
+
__typename: "OrderCurrencyRate";
|
|
46
|
+
rate: number;
|
|
47
|
+
originalRate: number;
|
|
48
|
+
code: string;
|
|
49
|
+
}
|
|
50
|
+
export interface getCustomerOrders_getCustomerOrders_customer {
|
|
51
|
+
__typename: "OrderCustomer";
|
|
52
|
+
lastName: string | null;
|
|
53
|
+
firstName: string | null;
|
|
54
|
+
email: string | null;
|
|
55
|
+
id: string | null;
|
|
56
|
+
}
|
|
57
|
+
export interface getCustomerOrders_getCustomerOrders_orderAdjustments {
|
|
58
|
+
__typename: "OrderAdjustment";
|
|
59
|
+
type: AdjustmentEnum;
|
|
60
|
+
order: number;
|
|
61
|
+
name: string;
|
|
62
|
+
amountType: AmountTypeEnum;
|
|
63
|
+
amount: number;
|
|
64
|
+
}
|
|
65
|
+
export interface getCustomerOrders_getCustomerOrders_orderLineItems_discount {
|
|
66
|
+
__typename: "OrderLineDiscount";
|
|
67
|
+
reason: string | null;
|
|
68
|
+
amountType: AmountTypeEnum;
|
|
69
|
+
amount: number;
|
|
70
|
+
}
|
|
71
|
+
export interface getCustomerOrders_getCustomerOrders_orderLineItems_variant_variantValues {
|
|
72
|
+
__typename: "OrderLineVariantVariantValues";
|
|
73
|
+
variantValueName: string;
|
|
74
|
+
variantValueId: string;
|
|
75
|
+
variantTypeName: string;
|
|
76
|
+
variantTypeId: string;
|
|
77
|
+
order: number;
|
|
78
|
+
}
|
|
79
|
+
export interface getCustomerOrders_getCustomerOrders_orderLineItems_variant {
|
|
80
|
+
__typename: "OrderLineVariant";
|
|
81
|
+
barcodeList: string[] | null;
|
|
82
|
+
id: string | null;
|
|
83
|
+
mainImageId: string | null;
|
|
84
|
+
name: string;
|
|
85
|
+
productId: string | null;
|
|
86
|
+
sku: string | null;
|
|
87
|
+
taxValue: number | null;
|
|
88
|
+
variantValues: getCustomerOrders_getCustomerOrders_orderLineItems_variant_variantValues[] | null;
|
|
89
|
+
}
|
|
90
|
+
export interface getCustomerOrders_getCustomerOrders_orderLineItems {
|
|
91
|
+
__typename: "OrderLineItem";
|
|
92
|
+
createdAt: any | null;
|
|
93
|
+
currencyCode: string | null;
|
|
94
|
+
deleted: boolean | null;
|
|
95
|
+
discount: getCustomerOrders_getCustomerOrders_orderLineItems_discount | null;
|
|
96
|
+
discountPrice: number | null;
|
|
97
|
+
finalPrice: number | null;
|
|
98
|
+
id: string | null;
|
|
99
|
+
originalOrderLineItemId: string | null;
|
|
100
|
+
price: number;
|
|
101
|
+
quantity: number;
|
|
102
|
+
status: OrderLineItemStatusEnum;
|
|
103
|
+
statusUpdatedAt: any | null;
|
|
104
|
+
stockLocationId: string | null;
|
|
105
|
+
taxValue: number | null;
|
|
106
|
+
updatedAt: any | null;
|
|
107
|
+
variant: getCustomerOrders_getCustomerOrders_orderLineItems_variant;
|
|
108
|
+
}
|
|
109
|
+
export interface getCustomerOrders_getCustomerOrders_orderPackages_trackingInfo {
|
|
110
|
+
__typename: "TrackingInfo";
|
|
111
|
+
trackingNumber: string | null;
|
|
112
|
+
trackingLink: string | null;
|
|
113
|
+
isSendNotification: boolean | null;
|
|
114
|
+
cargoCompany: string | null;
|
|
115
|
+
}
|
|
116
|
+
export interface getCustomerOrders_getCustomerOrders_orderPackages {
|
|
117
|
+
__typename: "OrderPackage";
|
|
118
|
+
updatedAt: any | null;
|
|
119
|
+
trackingInfo: getCustomerOrders_getCustomerOrders_orderPackages_trackingInfo | null;
|
|
120
|
+
stockLocationId: string;
|
|
121
|
+
orderPackageNumber: string;
|
|
122
|
+
orderPackageFulfillStatus: OrderPackageFulfillStatusEnum;
|
|
123
|
+
orderLineItemIds: string[];
|
|
124
|
+
id: string | null;
|
|
125
|
+
deleted: boolean | null;
|
|
126
|
+
createdAt: any | null;
|
|
127
|
+
}
|
|
128
|
+
export interface getCustomerOrders_getCustomerOrders_shippingAddress_state {
|
|
129
|
+
__typename: "OrderAddressState";
|
|
130
|
+
name: string | null;
|
|
131
|
+
id: string | null;
|
|
132
|
+
code: string | null;
|
|
133
|
+
}
|
|
134
|
+
export interface getCustomerOrders_getCustomerOrders_shippingAddress_district {
|
|
135
|
+
__typename: "OrderAddressDistrict";
|
|
136
|
+
name: string | null;
|
|
137
|
+
id: string | null;
|
|
138
|
+
code: string | null;
|
|
139
|
+
}
|
|
140
|
+
export interface getCustomerOrders_getCustomerOrders_shippingAddress_country {
|
|
141
|
+
__typename: "OrderAddressCountry";
|
|
142
|
+
name: string;
|
|
143
|
+
id: string | null;
|
|
144
|
+
code: string | null;
|
|
145
|
+
}
|
|
146
|
+
export interface getCustomerOrders_getCustomerOrders_shippingAddress_city {
|
|
147
|
+
__typename: "OrderAddressCity";
|
|
148
|
+
id: string | null;
|
|
149
|
+
code: string | null;
|
|
150
|
+
name: string;
|
|
151
|
+
}
|
|
152
|
+
export interface getCustomerOrders_getCustomerOrders_shippingAddress {
|
|
153
|
+
__typename: "OrderAddress";
|
|
154
|
+
taxOffice: string | null;
|
|
155
|
+
taxNumber: string | null;
|
|
156
|
+
state: getCustomerOrders_getCustomerOrders_shippingAddress_state | null;
|
|
157
|
+
postalCode: string;
|
|
158
|
+
phone: string | null;
|
|
159
|
+
lastName: string;
|
|
160
|
+
isDefault: boolean;
|
|
161
|
+
identityNumber: string | null;
|
|
162
|
+
firstName: string;
|
|
163
|
+
district: getCustomerOrders_getCustomerOrders_shippingAddress_district | null;
|
|
164
|
+
country: getCustomerOrders_getCustomerOrders_shippingAddress_country;
|
|
165
|
+
company: string | null;
|
|
166
|
+
city: getCustomerOrders_getCustomerOrders_shippingAddress_city;
|
|
167
|
+
addressLine2: string | null;
|
|
168
|
+
addressLine1: string;
|
|
169
|
+
}
|
|
170
|
+
export interface getCustomerOrders_getCustomerOrders_shippingLines {
|
|
171
|
+
__typename: "OrderShippingLine";
|
|
172
|
+
title: string;
|
|
173
|
+
taxValue: number | null;
|
|
174
|
+
price: number;
|
|
175
|
+
}
|
|
176
|
+
export interface getCustomerOrders_getCustomerOrders_taxLines {
|
|
177
|
+
__typename: "OrderTaxLine";
|
|
178
|
+
rate: number;
|
|
179
|
+
price: number;
|
|
180
|
+
}
|
|
181
|
+
export interface getCustomerOrders_getCustomerOrders {
|
|
182
|
+
__typename: "Order";
|
|
183
|
+
billingAddress: getCustomerOrders_getCustomerOrders_billingAddress | null;
|
|
184
|
+
cancelledAt: any | null;
|
|
185
|
+
cancelReason: CancelledReasonEnum | null;
|
|
186
|
+
createdAt: any | null;
|
|
187
|
+
currencyCode: string;
|
|
188
|
+
currencyRates: getCustomerOrders_getCustomerOrders_currencyRates[];
|
|
189
|
+
customer: getCustomerOrders_getCustomerOrders_customer | null;
|
|
190
|
+
deleted: boolean | null;
|
|
191
|
+
id: string | null;
|
|
192
|
+
merchantId: string;
|
|
193
|
+
note: string | null;
|
|
194
|
+
orderedAt: any | null;
|
|
195
|
+
orderAdjustments: getCustomerOrders_getCustomerOrders_orderAdjustments[] | null;
|
|
196
|
+
orderLineItems: getCustomerOrders_getCustomerOrders_orderLineItems[];
|
|
197
|
+
orderNumber: string | null;
|
|
198
|
+
orderPackages: getCustomerOrders_getCustomerOrders_orderPackages[] | null;
|
|
199
|
+
orderPackageStatus: OrderPackageStatusEnum | null;
|
|
200
|
+
orderPaymentStatus: PaymentStatusEnum | null;
|
|
201
|
+
orderTagIds: string[] | null;
|
|
202
|
+
shippingAddress: getCustomerOrders_getCustomerOrders_shippingAddress | null;
|
|
203
|
+
shippingLines: getCustomerOrders_getCustomerOrders_shippingLines[] | null;
|
|
204
|
+
shippingMethod: ShippingMethodEnum;
|
|
205
|
+
status: OrderStatusEnum;
|
|
206
|
+
taxLines: getCustomerOrders_getCustomerOrders_taxLines[] | null;
|
|
207
|
+
totalFinalPrice: number;
|
|
208
|
+
totalPrice: number;
|
|
209
|
+
updatedAt: any | null;
|
|
210
|
+
}
|
|
211
|
+
export interface getCustomerOrders {
|
|
212
|
+
getCustomerOrders: getCustomerOrders_getCustomerOrders[];
|
|
213
|
+
}
|
|
214
|
+
export interface getCustomerOrdersVariables {
|
|
215
|
+
orderId?: string | null;
|
|
216
|
+
}
|