@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,58 @@
|
|
|
1
|
+
import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface getMyCustomer_getMyCustomer_addresses_city {
|
|
3
|
+
__typename: "CustomerAddressCity";
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface getMyCustomer_getMyCustomer_addresses_country {
|
|
9
|
+
__typename: "CustomerAddressCountry";
|
|
10
|
+
code: string | null;
|
|
11
|
+
id: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export interface getMyCustomer_getMyCustomer_addresses_district {
|
|
15
|
+
__typename: "CustomerAddressDistrict";
|
|
16
|
+
id: string | null;
|
|
17
|
+
name: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface getMyCustomer_getMyCustomer_addresses_state {
|
|
21
|
+
__typename: "CustomerAddressState";
|
|
22
|
+
name: string | null;
|
|
23
|
+
id: string | null;
|
|
24
|
+
code: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface getMyCustomer_getMyCustomer_addresses {
|
|
27
|
+
__typename: "CustomerAddress";
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2: string | null;
|
|
30
|
+
city: getMyCustomer_getMyCustomer_addresses_city;
|
|
31
|
+
company: string | null;
|
|
32
|
+
country: getMyCustomer_getMyCustomer_addresses_country;
|
|
33
|
+
district: getMyCustomer_getMyCustomer_addresses_district | null;
|
|
34
|
+
id: string | null;
|
|
35
|
+
firstName: string;
|
|
36
|
+
isDefault: boolean | null;
|
|
37
|
+
lastName: string;
|
|
38
|
+
postalCode: string;
|
|
39
|
+
state: getMyCustomer_getMyCustomer_addresses_state | null;
|
|
40
|
+
taxNumber: string | null;
|
|
41
|
+
taxOffice: string | null;
|
|
42
|
+
title: string;
|
|
43
|
+
}
|
|
44
|
+
export interface getMyCustomer_getMyCustomer {
|
|
45
|
+
__typename: "Customer";
|
|
46
|
+
id: string | null;
|
|
47
|
+
isEmailVerified: boolean | null;
|
|
48
|
+
isPhoneVerified: boolean | null;
|
|
49
|
+
lastName: string | null;
|
|
50
|
+
addresses: getMyCustomer_getMyCustomer_addresses[] | null;
|
|
51
|
+
phone: string | null;
|
|
52
|
+
accountStatus: CustomerAccountStatusesEnum | null;
|
|
53
|
+
email: string | null;
|
|
54
|
+
firstName: string;
|
|
55
|
+
}
|
|
56
|
+
export interface getMyCustomer {
|
|
57
|
+
getMyCustomer: getMyCustomer_getMyCustomer;
|
|
58
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { StringFilterInput, PaymentMethodEnum, TransactionCardAssociationEnum, TransactionCardTypeEnum, TransactionStatusEnum, TransactionTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listOrderTransactions_listOrderTransactions_error {
|
|
3
|
+
__typename: "TransactionError";
|
|
4
|
+
code: string | null;
|
|
5
|
+
declineCode: string | null;
|
|
6
|
+
message: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface listOrderTransactions_listOrderTransactions_paymentMethodDetail_installment {
|
|
9
|
+
__typename: "TransactionInstallmentPrice";
|
|
10
|
+
installmentCount: number | null;
|
|
11
|
+
installmentPrice: number | null;
|
|
12
|
+
totalPrice: number | null;
|
|
13
|
+
}
|
|
14
|
+
export interface listOrderTransactions_listOrderTransactions_paymentMethodDetail {
|
|
15
|
+
__typename: "TransactionPaymentMethodDetail";
|
|
16
|
+
bankName: string | null;
|
|
17
|
+
binNumber: string;
|
|
18
|
+
cardAssociation: TransactionCardAssociationEnum | null;
|
|
19
|
+
cardFamily: string | null;
|
|
20
|
+
cardType: TransactionCardTypeEnum | null;
|
|
21
|
+
installment: listOrderTransactions_listOrderTransactions_paymentMethodDetail_installment | null;
|
|
22
|
+
lastFourDigits: string;
|
|
23
|
+
threeDSecure: boolean | null;
|
|
24
|
+
}
|
|
25
|
+
export interface listOrderTransactions_listOrderTransactions {
|
|
26
|
+
__typename: "StorefrontTransaction";
|
|
27
|
+
amount: number;
|
|
28
|
+
checkoutId: string | null;
|
|
29
|
+
createdAt: any | null;
|
|
30
|
+
currencyCode: string;
|
|
31
|
+
customerId: string | null;
|
|
32
|
+
deleted: boolean | null;
|
|
33
|
+
error: listOrderTransactions_listOrderTransactions_error | null;
|
|
34
|
+
id: string | null;
|
|
35
|
+
orderId: string | null;
|
|
36
|
+
paymentGatewayId: string;
|
|
37
|
+
paymentGatewayName: string;
|
|
38
|
+
paymentMethod: PaymentMethodEnum | null;
|
|
39
|
+
paymentMethodDetail: listOrderTransactions_listOrderTransactions_paymentMethodDetail | null;
|
|
40
|
+
processedAt: any | null;
|
|
41
|
+
refundReason: string | null;
|
|
42
|
+
status: TransactionStatusEnum;
|
|
43
|
+
type: TransactionTypeEnum;
|
|
44
|
+
updatedAt: any | null;
|
|
45
|
+
}
|
|
46
|
+
export interface listOrderTransactions {
|
|
47
|
+
listOrderTransactions: listOrderTransactions_listOrderTransactions[];
|
|
48
|
+
}
|
|
49
|
+
export interface listOrderTransactionsVariables {
|
|
50
|
+
checkoutId?: StringFilterInput | null;
|
|
51
|
+
id?: StringFilterInput | null;
|
|
52
|
+
orderId?: StringFilterInput | null;
|
|
53
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface registerCustomer_registerCustomer_customer_addresses_city {
|
|
3
|
+
__typename: "CustomerAddressCity";
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface registerCustomer_registerCustomer_customer_addresses_country {
|
|
9
|
+
__typename: "CustomerAddressCountry";
|
|
10
|
+
code: string | null;
|
|
11
|
+
id: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export interface registerCustomer_registerCustomer_customer_addresses_district {
|
|
15
|
+
__typename: "CustomerAddressDistrict";
|
|
16
|
+
id: string | null;
|
|
17
|
+
name: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface registerCustomer_registerCustomer_customer_addresses_state {
|
|
21
|
+
__typename: "CustomerAddressState";
|
|
22
|
+
name: string | null;
|
|
23
|
+
id: string | null;
|
|
24
|
+
code: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface registerCustomer_registerCustomer_customer_addresses {
|
|
27
|
+
__typename: "CustomerAddress";
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2: string | null;
|
|
30
|
+
city: registerCustomer_registerCustomer_customer_addresses_city;
|
|
31
|
+
company: string | null;
|
|
32
|
+
country: registerCustomer_registerCustomer_customer_addresses_country;
|
|
33
|
+
district: registerCustomer_registerCustomer_customer_addresses_district | null;
|
|
34
|
+
id: string | null;
|
|
35
|
+
firstName: string;
|
|
36
|
+
isDefault: boolean | null;
|
|
37
|
+
lastName: string;
|
|
38
|
+
postalCode: string;
|
|
39
|
+
state: registerCustomer_registerCustomer_customer_addresses_state | null;
|
|
40
|
+
taxNumber: string | null;
|
|
41
|
+
taxOffice: string | null;
|
|
42
|
+
title: string;
|
|
43
|
+
}
|
|
44
|
+
export interface registerCustomer_registerCustomer_customer {
|
|
45
|
+
__typename: "Customer";
|
|
46
|
+
id: string | null;
|
|
47
|
+
isEmailVerified: boolean | null;
|
|
48
|
+
isPhoneVerified: boolean | null;
|
|
49
|
+
lastName: string | null;
|
|
50
|
+
addresses: registerCustomer_registerCustomer_customer_addresses[] | null;
|
|
51
|
+
phone: string | null;
|
|
52
|
+
accountStatus: CustomerAccountStatusesEnum | null;
|
|
53
|
+
email: string | null;
|
|
54
|
+
firstName: string;
|
|
55
|
+
}
|
|
56
|
+
export interface registerCustomer_registerCustomer {
|
|
57
|
+
__typename: "CustomerLoginResponse";
|
|
58
|
+
token: string;
|
|
59
|
+
tokenExpiry: number;
|
|
60
|
+
customer: registerCustomer_registerCustomer_customer | null;
|
|
61
|
+
}
|
|
62
|
+
export interface registerCustomer {
|
|
63
|
+
registerCustomer: registerCustomer_registerCustomer;
|
|
64
|
+
}
|
|
65
|
+
export interface registerCustomerVariables {
|
|
66
|
+
email: string;
|
|
67
|
+
password: string;
|
|
68
|
+
firstName: string;
|
|
69
|
+
lastName: string;
|
|
70
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { SaveMyCustomerInput, CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface saveMyCustomer_saveMyCustomer_addresses_city {
|
|
3
|
+
__typename: "CustomerAddressCity";
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface saveMyCustomer_saveMyCustomer_addresses_country {
|
|
9
|
+
__typename: "CustomerAddressCountry";
|
|
10
|
+
code: string | null;
|
|
11
|
+
id: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export interface saveMyCustomer_saveMyCustomer_addresses_district {
|
|
15
|
+
__typename: "CustomerAddressDistrict";
|
|
16
|
+
id: string | null;
|
|
17
|
+
name: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface saveMyCustomer_saveMyCustomer_addresses_state {
|
|
21
|
+
__typename: "CustomerAddressState";
|
|
22
|
+
name: string | null;
|
|
23
|
+
id: string | null;
|
|
24
|
+
code: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface saveMyCustomer_saveMyCustomer_addresses {
|
|
27
|
+
__typename: "CustomerAddress";
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2: string | null;
|
|
30
|
+
city: saveMyCustomer_saveMyCustomer_addresses_city;
|
|
31
|
+
company: string | null;
|
|
32
|
+
country: saveMyCustomer_saveMyCustomer_addresses_country;
|
|
33
|
+
district: saveMyCustomer_saveMyCustomer_addresses_district | null;
|
|
34
|
+
id: string | null;
|
|
35
|
+
firstName: string;
|
|
36
|
+
isDefault: boolean | null;
|
|
37
|
+
lastName: string;
|
|
38
|
+
postalCode: string;
|
|
39
|
+
state: saveMyCustomer_saveMyCustomer_addresses_state | null;
|
|
40
|
+
taxNumber: string | null;
|
|
41
|
+
taxOffice: string | null;
|
|
42
|
+
title: string;
|
|
43
|
+
}
|
|
44
|
+
export interface saveMyCustomer_saveMyCustomer {
|
|
45
|
+
__typename: "Customer";
|
|
46
|
+
id: string | null;
|
|
47
|
+
isEmailVerified: boolean | null;
|
|
48
|
+
isPhoneVerified: boolean | null;
|
|
49
|
+
lastName: string | null;
|
|
50
|
+
addresses: saveMyCustomer_saveMyCustomer_addresses[] | null;
|
|
51
|
+
phone: string | null;
|
|
52
|
+
accountStatus: CustomerAccountStatusesEnum | null;
|
|
53
|
+
email: string | null;
|
|
54
|
+
firstName: string;
|
|
55
|
+
}
|
|
56
|
+
export interface saveMyCustomer {
|
|
57
|
+
saveMyCustomer: saveMyCustomer_saveMyCustomer;
|
|
58
|
+
}
|
|
59
|
+
export interface saveMyCustomerVariables {
|
|
60
|
+
input: SaveMyCustomerInput;
|
|
61
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IkasCustomer, IkasOrder } from "../../models/index";
|
|
2
|
+
import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
|
|
3
|
+
export declare class IkasCustomerAPI {
|
|
4
|
+
static login(email: string, password: string): Promise<{
|
|
5
|
+
customer: IkasCustomer;
|
|
6
|
+
__typename: "CustomerLoginResponse";
|
|
7
|
+
token: string;
|
|
8
|
+
tokenExpiry: number;
|
|
9
|
+
}>;
|
|
10
|
+
static register(email: string, password: string, firstName: string, lastName: string): Promise<{
|
|
11
|
+
customer: IkasCustomer;
|
|
12
|
+
__typename: "CustomerLoginResponse";
|
|
13
|
+
token: string;
|
|
14
|
+
tokenExpiry: number;
|
|
15
|
+
}>;
|
|
16
|
+
static refreshToken(token: string): Promise<RefreshTokenTypes.customerRefreshToken_customerRefreshToken>;
|
|
17
|
+
static forgotPassword(email: string): Promise<boolean>;
|
|
18
|
+
static recoverPassword(password: string, passwordAgain: string, token: string): Promise<boolean>;
|
|
19
|
+
static checkEmail(email: string): Promise<boolean>;
|
|
20
|
+
static getCustomer(): Promise<IkasCustomer>;
|
|
21
|
+
static saveCustomer(customer: IkasCustomer): Promise<IkasCustomer>;
|
|
22
|
+
static getOrders(id?: string): Promise<IkasOrder[]>;
|
|
23
|
+
static getOrderTransactions(params?: {
|
|
24
|
+
checkoutId?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
orderId?: string;
|
|
27
|
+
}): Promise<any>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listDistrict_listDistrict {
|
|
3
|
+
__typename: "District";
|
|
4
|
+
id: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface listDistrict {
|
|
8
|
+
listDistrict: listDistrict_listDistrict[];
|
|
9
|
+
}
|
|
10
|
+
export interface listDistrictVariables {
|
|
11
|
+
cityId: StringFilterInput;
|
|
12
|
+
stateId?: StringFilterInput | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StringFilterInput, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listHTMLMetaData_listHTMLMetaData {
|
|
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 listHTMLMetaData {
|
|
12
|
+
listHTMLMetaData: listHTMLMetaData_listHTMLMetaData[];
|
|
13
|
+
}
|
|
14
|
+
export interface listHTMLMetaDataVariables {
|
|
15
|
+
slug?: StringFilterInput | null;
|
|
16
|
+
targetId?: StringFilterInput | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { IkasBrandAPI } from "./brand/index";
|
|
2
|
+
export { IkasCartAPI } from "./cart/index";
|
|
3
|
+
export { IkasCategoryAPI } from "./category/index";
|
|
4
|
+
export { IkasCheckoutAPI } from "./checkout/index";
|
|
5
|
+
export { IkasCityAPI } from "./city/index";
|
|
6
|
+
export { IkasCountryAPI } from "./country/index";
|
|
7
|
+
export { IkasCustomerAPI } from "./customer/index";
|
|
8
|
+
export { IkasDistrictAPI } from "./district/index";
|
|
9
|
+
export { IkasHTMLMetaDataAPI } from "./html-meta-data/index";
|
|
10
|
+
export { IkasMerchantAPI } from "./merchant/index";
|
|
11
|
+
export { IkasProductAPI } from "./product/index";
|
|
12
|
+
export { IkasProductAttributeAPI } from "./product-attribute/index";
|
|
13
|
+
export { IkasStateAPI } from "./state/index";
|
|
14
|
+
export { IkasStorefrontAPI } from "./storefront/index";
|
|
15
|
+
export { IkasThemeAPI } from "./theme/index";
|
|
16
|
+
export { IkasVariantTypeAPI } from "./variant-type/index";
|
|
17
|
+
export { apollo } from "./apollo";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listMerchantSettings_listMerchantSettings {
|
|
3
|
+
__typename: "MerchantSettings";
|
|
4
|
+
id: string | null;
|
|
5
|
+
logoId: string | null;
|
|
6
|
+
merchantName: string;
|
|
7
|
+
}
|
|
8
|
+
export interface listMerchantSettings {
|
|
9
|
+
listMerchantSettings: listMerchantSettings_listMerchantSettings[];
|
|
10
|
+
}
|
|
11
|
+
export interface listMerchantSettingsVariables {
|
|
12
|
+
merchantId: StringFilterInput;
|
|
13
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { StringFilterInput, PaginationInput, ProductTypeEnum, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listProduct_listProduct_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 listProduct_listProduct_data_productVariantTypes {
|
|
12
|
+
__typename: "ProductVariantType";
|
|
13
|
+
order: number;
|
|
14
|
+
variantTypeId: string;
|
|
15
|
+
variantValueIds: string[] | null;
|
|
16
|
+
}
|
|
17
|
+
export interface listProduct_listProduct_data_variants_variantValueIds {
|
|
18
|
+
__typename: "VariantValueRelation";
|
|
19
|
+
variantTypeId: string;
|
|
20
|
+
variantValueId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface listProduct_listProduct_data_variants_attributes {
|
|
23
|
+
__typename: "ProductAttributeValue";
|
|
24
|
+
value: string | null;
|
|
25
|
+
productAttributeId: string;
|
|
26
|
+
productAttributeOptionId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface listProduct_listProduct_data_variants_images {
|
|
29
|
+
__typename: "ProductImage";
|
|
30
|
+
order: number;
|
|
31
|
+
isMain: boolean;
|
|
32
|
+
imageId: string | null;
|
|
33
|
+
}
|
|
34
|
+
export interface listProduct_listProduct_data_variants_prices {
|
|
35
|
+
__typename: "ProductPrice";
|
|
36
|
+
sellPrice: number;
|
|
37
|
+
discountPrice: number | null;
|
|
38
|
+
buyPrice: number | null;
|
|
39
|
+
currency: string | null;
|
|
40
|
+
salesChannelId: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface listProduct_listProduct_data_variants {
|
|
43
|
+
__typename: "Variant";
|
|
44
|
+
id: string | null;
|
|
45
|
+
createdAt: any | null;
|
|
46
|
+
updatedAt: any | null;
|
|
47
|
+
deleted: boolean | null;
|
|
48
|
+
sku: string | null;
|
|
49
|
+
barcodeList: string[] | null;
|
|
50
|
+
isActive: boolean | null;
|
|
51
|
+
variantValueIds: listProduct_listProduct_data_variants_variantValueIds[] | null;
|
|
52
|
+
attributes: listProduct_listProduct_data_variants_attributes[] | null;
|
|
53
|
+
images: listProduct_listProduct_data_variants_images[] | null;
|
|
54
|
+
prices: listProduct_listProduct_data_variants_prices[];
|
|
55
|
+
}
|
|
56
|
+
export interface listProduct_listProduct_data_attributes {
|
|
57
|
+
__typename: "ProductAttributeValue";
|
|
58
|
+
value: string | null;
|
|
59
|
+
productAttributeId: string;
|
|
60
|
+
productAttributeOptionId: string;
|
|
61
|
+
}
|
|
62
|
+
export interface listProduct_listProduct_data {
|
|
63
|
+
__typename: "Product";
|
|
64
|
+
id: string | null;
|
|
65
|
+
createdAt: any | null;
|
|
66
|
+
updatedAt: any | null;
|
|
67
|
+
deleted: boolean | null;
|
|
68
|
+
name: string;
|
|
69
|
+
type: ProductTypeEnum;
|
|
70
|
+
shortDescription: string | null;
|
|
71
|
+
description: string | null;
|
|
72
|
+
taxValue: number | null;
|
|
73
|
+
metaData: listProduct_listProduct_data_metaData | null;
|
|
74
|
+
categoryIds: string[] | null;
|
|
75
|
+
productVariantTypes: listProduct_listProduct_data_productVariantTypes[] | null;
|
|
76
|
+
variants: listProduct_listProduct_data_variants[];
|
|
77
|
+
attributes: listProduct_listProduct_data_attributes[] | null;
|
|
78
|
+
}
|
|
79
|
+
export interface listProduct_listProduct {
|
|
80
|
+
__typename: "ProductPaginationResponse";
|
|
81
|
+
data: listProduct_listProduct_data[];
|
|
82
|
+
count: number;
|
|
83
|
+
}
|
|
84
|
+
export interface listProduct {
|
|
85
|
+
listProduct: listProduct_listProduct;
|
|
86
|
+
}
|
|
87
|
+
export interface listProductVariables {
|
|
88
|
+
id?: StringFilterInput | null;
|
|
89
|
+
paginationInput?: PaginationInput | null;
|
|
90
|
+
search?: string | null;
|
|
91
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasProduct } from "../../models/index";
|
|
2
|
+
export declare class IkasProductAPI {
|
|
3
|
+
static listProducts(params?: ListProductsParams): Promise<ListProductsResponse>;
|
|
4
|
+
}
|
|
5
|
+
declare type ListProductsParams = {
|
|
6
|
+
idList?: string[];
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
9
|
+
search?: string;
|
|
10
|
+
};
|
|
11
|
+
declare type ListProductsResponse = {
|
|
12
|
+
products: IkasProduct[];
|
|
13
|
+
count: number;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StringFilterInput, ProductAttributeTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listProductAttribute_listProductAttribute_options {
|
|
3
|
+
__typename: "ProductAttributeOption";
|
|
4
|
+
id: string | null;
|
|
5
|
+
createdAt: any | null;
|
|
6
|
+
updatedAt: any | null;
|
|
7
|
+
deleted: boolean | null;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface listProductAttribute_listProductAttribute {
|
|
11
|
+
__typename: "ProductAttribute";
|
|
12
|
+
id: string | null;
|
|
13
|
+
createdAt: any | null;
|
|
14
|
+
updatedAt: any | null;
|
|
15
|
+
deleted: boolean | null;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
type: ProductAttributeTypeEnum;
|
|
19
|
+
options: listProductAttribute_listProductAttribute_options[] | null;
|
|
20
|
+
}
|
|
21
|
+
export interface listProductAttribute {
|
|
22
|
+
listProductAttribute: listProductAttribute_listProductAttribute[];
|
|
23
|
+
}
|
|
24
|
+
export interface listProductAttributeVariables {
|
|
25
|
+
id: StringFilterInput;
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface listProductStockLocation_listProductStockLocation {
|
|
2
|
+
__typename: "ProductStockLocation";
|
|
3
|
+
variantId: string;
|
|
4
|
+
stockLocationId: string;
|
|
5
|
+
stockCount: number;
|
|
6
|
+
}
|
|
7
|
+
export interface listProductStockLocation {
|
|
8
|
+
listProductStockLocation: listProductStockLocation_listProductStockLocation[];
|
|
9
|
+
}
|
|
10
|
+
export interface listProductStockLocationVariables {
|
|
11
|
+
stockLocationIdList: string[];
|
|
12
|
+
variantIdList: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as ListProductStockLocationTypes from "./__generated__/listProductStockLocation";
|
|
2
|
+
export declare class IkasProductStockLocationAPI {
|
|
3
|
+
static listProductStockLocation(stockLocationIdList: string[], variantIdList: string[]): Promise<ListProductStockLocationTypes.listProductStockLocation_listProductStockLocation[]>;
|
|
4
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listState_listState {
|
|
3
|
+
__typename: "State";
|
|
4
|
+
id: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
stateCode: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface listState {
|
|
9
|
+
listState: listState_listState[];
|
|
10
|
+
}
|
|
11
|
+
export interface listStateVariables {
|
|
12
|
+
countryId: StringFilterInput;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface getStorefront_getStorefront_regions {
|
|
2
|
+
__typename: "StorefrontRegion";
|
|
3
|
+
id: string | null;
|
|
4
|
+
locale: string;
|
|
5
|
+
privacyPolicy: string | null;
|
|
6
|
+
returnPolicy: string | null;
|
|
7
|
+
termsOfService: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface getStorefront_getStorefront {
|
|
10
|
+
__typename: "Storefront";
|
|
11
|
+
id: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
themeId: string;
|
|
14
|
+
themeVersionId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
regions: getStorefront_getStorefront_regions[];
|
|
17
|
+
}
|
|
18
|
+
export interface getStorefront {
|
|
19
|
+
getStorefront: getStorefront_getStorefront;
|
|
20
|
+
}
|
|
21
|
+
export interface getStorefrontVariables {
|
|
22
|
+
storefrontId: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StringFilterInput, VariantSelectionTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listVariantType_listVariantType_values {
|
|
3
|
+
__typename: "VariantValue";
|
|
4
|
+
id: string | null;
|
|
5
|
+
createdAt: any | null;
|
|
6
|
+
updatedAt: any | null;
|
|
7
|
+
deleted: boolean | null;
|
|
8
|
+
name: string;
|
|
9
|
+
thumbnailImageId: string | null;
|
|
10
|
+
colorCode: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface listVariantType_listVariantType {
|
|
13
|
+
__typename: "VariantType";
|
|
14
|
+
id: string | null;
|
|
15
|
+
createdAt: any | null;
|
|
16
|
+
updatedAt: any | null;
|
|
17
|
+
deleted: boolean | null;
|
|
18
|
+
name: string;
|
|
19
|
+
selectionType: VariantSelectionTypeEnum;
|
|
20
|
+
values: listVariantType_listVariantType_values[];
|
|
21
|
+
}
|
|
22
|
+
export interface listVariantType {
|
|
23
|
+
listVariantType: listVariantType_listVariantType[];
|
|
24
|
+
}
|
|
25
|
+
export interface listVariantTypeVariables {
|
|
26
|
+
id: StringFilterInput;
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { IkasOrderAddress, IkasAddressValidationResult } from "../../../../models/data/order/address/index";
|
|
3
|
+
import { IkasCheckoutCustomer } from "../../../../models/index";
|
|
4
|
+
declare type Props = {
|
|
5
|
+
address: IkasOrderAddress;
|
|
6
|
+
allowedCountryIds?: string[];
|
|
7
|
+
customer?: IkasCheckoutCustomer;
|
|
8
|
+
isErrorsVisible: boolean;
|
|
9
|
+
validationResult: IkasAddressValidationResult;
|
|
10
|
+
};
|
|
11
|
+
export declare const AddressForm: React.FC<Props>;
|
|
12
|
+
export {};
|