@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.
Files changed (197) hide show
  1. package/build/__generated__/global-types.d.ts +343 -0
  2. package/build/api/apollo.d.ts +10 -0
  3. package/build/api/brand/__generated__/listProductBrand.d.ts +30 -0
  4. package/build/api/brand/index.d.ts +15 -0
  5. package/build/api/cart/__generated__/getCart.d.ts +67 -0
  6. package/build/api/cart/__generated__/saveItemToCart.d.ts +65 -0
  7. package/build/api/cart/index.d.ts +5 -0
  8. package/build/api/category/__generated__/listCategory.d.ts +34 -0
  9. package/build/api/category/index.d.ts +15 -0
  10. package/build/api/checkout/__generated__/checkStocks.d.ts +18 -0
  11. package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +22 -0
  12. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +10 -0
  13. package/build/api/checkout/__generated__/getCheckoutById.d.ts +206 -0
  14. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +17 -0
  15. package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +23 -0
  16. package/build/api/checkout/__generated__/saveCheckout.d.ts +11 -0
  17. package/build/api/checkout/index.d.ts +19 -0
  18. package/build/api/city/__generated__/listCity.d.ts +14 -0
  19. package/build/api/city/index.d.ts +4 -0
  20. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
  21. package/build/api/country/__generated__/listCountry.d.ts +16 -0
  22. package/build/api/country/index.d.ts +5 -0
  23. package/build/api/customer/__generated__/checkCustomerEmail.d.ts +10 -0
  24. package/build/api/customer/__generated__/customerForgotPassword.d.ts +6 -0
  25. package/build/api/customer/__generated__/customerLogin.d.ts +68 -0
  26. package/build/api/customer/__generated__/customerRecoverPassword.d.ts +8 -0
  27. package/build/api/customer/__generated__/customerRefreshToken.d.ts +11 -0
  28. package/build/api/customer/__generated__/getCustomerOrders.d.ts +216 -0
  29. package/build/api/customer/__generated__/getMyCustomer.d.ts +58 -0
  30. package/build/api/customer/__generated__/listOrderTransactions.d.ts +53 -0
  31. package/build/api/customer/__generated__/registerCustomer.d.ts +70 -0
  32. package/build/api/customer/__generated__/saveMyCustomer.d.ts +61 -0
  33. package/build/api/customer/index.d.ts +28 -0
  34. package/build/api/district/__generated__/listDistrict.d.ts +13 -0
  35. package/build/api/district/index.d.ts +4 -0
  36. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +17 -0
  37. package/build/api/html-meta-data/index.d.ts +4 -0
  38. package/build/api/index.d.ts +17 -0
  39. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +13 -0
  40. package/build/api/merchant/index.d.ts +4 -0
  41. package/build/api/product/__generated__/listProduct.d.ts +91 -0
  42. package/build/api/product/index.d.ts +15 -0
  43. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +26 -0
  44. package/build/api/product-attribute/index.d.ts +4 -0
  45. package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
  46. package/build/api/product-stock-location/index.d.ts +4 -0
  47. package/build/api/state/__generated__/listState.d.ts +13 -0
  48. package/build/api/state/index.d.ts +4 -0
  49. package/build/api/stock-location/__generated__/listStockLocation.d.ts +7 -0
  50. package/build/api/stock-location/index.d.ts +4 -0
  51. package/build/api/storefront/__generated__/getStorefront.d.ts +23 -0
  52. package/build/api/storefront/index.d.ts +4 -0
  53. package/build/api/theme/index.d.ts +4 -0
  54. package/build/api/variant-type/__generated__/listVariantType.d.ts +27 -0
  55. package/build/api/variant-type/index.d.ts +4 -0
  56. package/build/components/checkout/components/address-form/index.d.ts +12 -0
  57. package/build/components/checkout/components/address-form/model.d.ts +76 -0
  58. package/build/components/checkout/components/arrow-left.d.ts +6 -0
  59. package/build/components/checkout/components/breadcrumbs/index.d.ts +7 -0
  60. package/build/components/checkout/components/button/index.d.ts +8 -0
  61. package/build/components/checkout/components/cart-summary/arrow-down.d.ts +6 -0
  62. package/build/components/checkout/components/cart-summary/arrow-right.d.ts +6 -0
  63. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +8 -0
  64. package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
  65. package/build/components/checkout/components/cart-summary/shopping-cart.d.ts +6 -0
  66. package/build/components/checkout/components/checkbox/check.d.ts +6 -0
  67. package/build/components/checkout/components/checkbox/index.d.ts +8 -0
  68. package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
  69. package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
  70. package/build/components/checkout/components/cross.d.ts +6 -0
  71. package/build/components/checkout/components/error-container/index.d.ts +6 -0
  72. package/build/components/checkout/components/error-container/no-shipping-error/index.d.ts +6 -0
  73. package/build/components/checkout/components/error-container/payment-error/index.d.ts +6 -0
  74. package/build/components/checkout/components/error-container/stock-error/index.d.ts +8 -0
  75. package/build/components/checkout/components/error-container/unknown-error/index.d.ts +6 -0
  76. package/build/components/checkout/components/expandable-list/index.d.ts +13 -0
  77. package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
  78. package/build/components/checkout/components/form-item/index.d.ts +3 -0
  79. package/build/components/checkout/components/form-item/model.d.ts +34 -0
  80. package/build/components/checkout/components/info-box/index.d.ts +8 -0
  81. package/build/components/checkout/components/policy-modal/index.d.ts +8 -0
  82. package/build/components/checkout/components/step-action-buttons/index.d.ts +10 -0
  83. package/build/components/checkout/components/text-button/index.d.ts +7 -0
  84. package/build/components/checkout/components/toggle/index.d.ts +7 -0
  85. package/build/components/checkout/index.d.ts +10 -0
  86. package/build/components/checkout/model.d.ts +101 -0
  87. package/build/components/checkout/steps/step-info/index.d.ts +7 -0
  88. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
  89. package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
  90. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
  91. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
  92. package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
  93. package/build/components/checkout/steps/step-success/index.d.ts +7 -0
  94. package/build/components/error/index.d.ts +5 -0
  95. package/build/components/gtm/functions.d.ts +164 -0
  96. package/build/components/gtm/index.d.ts +7 -0
  97. package/build/components/hoc/ThemeComponent.d.ts +9 -0
  98. package/build/components/hoc/ThemeComponentEditor.d.ts +9 -0
  99. package/build/components/index.d.ts +6 -0
  100. package/build/components/page/head.d.ts +7 -0
  101. package/build/components/page/index.d.ts +9 -0
  102. package/build/components/page-editor/index.d.ts +2 -0
  103. package/build/components/page-editor/model.d.ts +59 -0
  104. package/build/index.d.ts +7 -0
  105. package/build/index.es.js +23583 -0
  106. package/build/index.js +23655 -0
  107. package/build/models/data/brand/index.d.ts +10 -0
  108. package/build/models/data/cart/index.d.ts +30 -0
  109. package/build/models/data/category/index.d.ts +11 -0
  110. package/build/models/data/checkout/index.d.ts +87 -0
  111. package/build/models/data/city/index.d.ts +4 -0
  112. package/build/models/data/country/index.d.ts +6 -0
  113. package/build/models/data/customer/address/index.d.ts +44 -0
  114. package/build/models/data/customer/index.d.ts +19 -0
  115. package/build/models/data/district/index.d.ts +4 -0
  116. package/build/models/data/html-meta-data/index.d.ts +15 -0
  117. package/build/models/data/image/index.d.ts +7 -0
  118. package/build/models/data/index.d.ts +25 -0
  119. package/build/models/data/installment-info/index.d.ts +30 -0
  120. package/build/models/data/merchant-settings/index.d.ts +8 -0
  121. package/build/models/data/order/address/index.d.ts +41 -0
  122. package/build/models/data/order/adjustment/index.d.ts +16 -0
  123. package/build/models/data/order/index.d.ts +109 -0
  124. package/build/models/data/order/line-item/discount/index.d.ts +11 -0
  125. package/build/models/data/order/line-item/index.d.ts +19 -0
  126. package/build/models/data/order/line-item/variant/index.d.ts +25 -0
  127. package/build/models/data/order/shipping-line/index.d.ts +7 -0
  128. package/build/models/data/order-transaction/index.d.ts +72 -0
  129. package/build/models/data/payment-gateway/index.d.ts +20 -0
  130. package/build/models/data/product/attribute-value/index.d.ts +6 -0
  131. package/build/models/data/product/index.d.ts +29 -0
  132. package/build/models/data/product/variant/index.d.ts +16 -0
  133. package/build/models/data/product/variant/price/index.d.ts +8 -0
  134. package/build/models/data/product/variant-type/index.d.ts +6 -0
  135. package/build/models/data/product-attribute/index.d.ts +17 -0
  136. package/build/models/data/product-attribute/product-attribute-option/index.d.ts +5 -0
  137. package/build/models/data/state/index.d.ts +5 -0
  138. package/build/models/data/storefront/index.d.ts +12 -0
  139. package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
  140. package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
  141. package/build/models/data/storefront/storefront-domain/index.d.ts +7 -0
  142. package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
  143. package/build/models/data/variant-type/index.d.ts +14 -0
  144. package/build/models/data/variant-type/variant-value/index.d.ts +11 -0
  145. package/build/models/index.d.ts +3 -0
  146. package/build/models/theme/component/index.d.ts +10 -0
  147. package/build/models/theme/component/prop/index.d.ts +19 -0
  148. package/build/models/theme/component/prop/value/index.d.ts +14 -0
  149. package/build/models/theme/index.d.ts +10 -0
  150. package/build/models/theme/page/component/index.d.ts +6 -0
  151. package/build/models/theme/page/component/prop-value/brand-list.d.ts +9 -0
  152. package/build/models/theme/page/component/prop-value/brand.d.ts +5 -0
  153. package/build/models/theme/page/component/prop-value/link.d.ts +19 -0
  154. package/build/models/theme/page/component/prop-value/product-detail.d.ts +6 -0
  155. package/build/models/theme/page/component/prop-value/product-list.d.ts +15 -0
  156. package/build/models/theme/page/index.d.ts +26 -0
  157. package/build/models/theme/theme.d.ts +10 -0
  158. package/build/models/ui/brand-list/index.d.ts +58 -0
  159. package/build/models/ui/index.d.ts +6 -0
  160. package/build/models/ui/navigation-link/index.d.ts +7 -0
  161. package/build/models/ui/product-detail/index.d.ts +13 -0
  162. package/build/models/ui/product-list/filter.d.ts +18 -0
  163. package/build/models/ui/product-list/index.d.ts +76 -0
  164. package/build/pages/[slug]/[secondSlug].d.ts +11 -0
  165. package/build/pages/[slug]/index.d.ts +12 -0
  166. package/build/pages/account/addresses.d.ts +10 -0
  167. package/build/pages/account/forgot-password.d.ts +10 -0
  168. package/build/pages/account/index.d.ts +10 -0
  169. package/build/pages/account/login.d.ts +10 -0
  170. package/build/pages/account/orders/[id].d.ts +10 -0
  171. package/build/pages/account/orders/index.d.ts +10 -0
  172. package/build/pages/account/recover-password.d.ts +10 -0
  173. package/build/pages/account/register.d.ts +10 -0
  174. package/build/pages/api/getComponentDirs.d.ts +3 -0
  175. package/build/pages/api/getTheme.d.ts +3 -0
  176. package/build/pages/api/updateTheme.d.ts +10 -0
  177. package/build/pages/api/uploadTheme.d.ts +3 -0
  178. package/build/pages/checkout/[id].d.ts +11 -0
  179. package/build/pages/editor.d.ts +5 -0
  180. package/build/pages/home.d.ts +10 -0
  181. package/build/pages/index.d.ts +14 -0
  182. package/build/store/base.d.ts +7 -0
  183. package/build/store/cart.d.ts +25 -0
  184. package/build/store/customer.d.ts +32 -0
  185. package/build/store/index.d.ts +1 -0
  186. package/build/storefront/index.d.ts +9 -0
  187. package/build/utils/currency.d.ts +1 -0
  188. package/build/utils/helper.d.ts +4 -0
  189. package/build/utils/index.d.ts +3 -0
  190. package/build/utils/providers/page-data.d.ts +35 -0
  191. package/build/utils/providers/prop-value/brand-list.d.ts +7 -0
  192. package/build/utils/providers/prop-value/brand.d.ts +8 -0
  193. package/build/utils/providers/prop-value/index.d.ts +3 -0
  194. package/build/utils/providers/prop-value/link.d.ts +9 -0
  195. package/build/utils/providers/prop-value/product-detail.d.ts +8 -0
  196. package/build/utils/providers/prop-value/product-list.d.ts +11 -0
  197. package/package.json +118 -0
@@ -0,0 +1,10 @@
1
+ import { IkasImage } from "../image/index";
2
+ import { IkasHTMLMetaData } from "../html-meta-data/index";
3
+ export declare class IkasBrand {
4
+ id: string;
5
+ name: string;
6
+ metaData?: IkasHTMLMetaData;
7
+ image?: IkasImage;
8
+ constructor(data: Partial<IkasBrand>);
9
+ get href(): string;
10
+ }
@@ -0,0 +1,30 @@
1
+ import { IkasOrderLineItem } from "../order/line-item/index";
2
+ export declare class IkasCart {
3
+ id: string;
4
+ createdAt: string;
5
+ updatedAt: string;
6
+ dueDate?: string;
7
+ currencyCode: string;
8
+ customerId?: string;
9
+ itemCount: number;
10
+ items: IkasOrderLineItem[];
11
+ merchantId: string;
12
+ totalPrice: number;
13
+ constructor(data: Partial<IkasCart>);
14
+ get totalTax(): number;
15
+ }
16
+ declare type IkasCartLineItemInput = {
17
+ id: string | null;
18
+ quantity: number;
19
+ variant: IkasCartLineVariantInput;
20
+ };
21
+ declare type IkasCartLineVariantInput = {
22
+ id: string;
23
+ name: string;
24
+ };
25
+ export declare type IkasSaveItemToCartInput = {
26
+ cartId: string | null;
27
+ customerId: string | null;
28
+ item: IkasCartLineItemInput;
29
+ };
30
+ export {};
@@ -0,0 +1,11 @@
1
+ import { IkasImage } from "../image/index";
2
+ import { IkasHTMLMetaData } from "../html-meta-data/index";
3
+ export declare class IkasCategory {
4
+ id: string;
5
+ name: string;
6
+ parentId: string | null;
7
+ metaData?: IkasHTMLMetaData;
8
+ image?: IkasImage;
9
+ constructor(data: Partial<IkasCategory>);
10
+ get href(): string;
11
+ }
@@ -0,0 +1,87 @@
1
+ import { IkasOrderAddress } from "../order/address/index";
2
+ import { IkasOrderShippingLine } from "../order/shipping-line/index";
3
+ import { IkasCart } from "../cart/index";
4
+ import { IkasOrderAdjustment } from "../order/index";
5
+ export declare class IkasCheckout {
6
+ id?: string;
7
+ createdAt?: string;
8
+ updatedAt?: string;
9
+ cartId?: string;
10
+ cart?: IkasCart;
11
+ orderId?: string;
12
+ orderNumber?: string;
13
+ merchantId?: string;
14
+ shippingSettingsId?: string;
15
+ shippingZoneRateId?: string;
16
+ availableShippingMethods: IkasAvailableShippingMethod[];
17
+ customer?: IkasCheckoutCustomer;
18
+ billingAddress?: IkasOrderAddress;
19
+ shippingAddress?: IkasOrderAddress;
20
+ shippingLines?: IkasOrderShippingLine[];
21
+ shippingMethod?: IkasShippingMethod;
22
+ status?: IkasCheckoutStatus;
23
+ couponCode?: string;
24
+ recoverEmailStatus?: IkasCheckoutRecoveryEmailStatus;
25
+ recoveryStatus?: IkasCheckoutRecoveryStatus;
26
+ totalFinalPrice?: number;
27
+ adjustments?: IkasOrderAdjustment[];
28
+ constructor(data?: Partial<IkasCheckout>);
29
+ get shippingTotal(): number;
30
+ get hasCustomer(): boolean;
31
+ get hasValidCustomer(): boolean;
32
+ get customerText(): string;
33
+ get dateStr(): string;
34
+ }
35
+ export declare type IkasCheckoutCustomer = {
36
+ id?: string;
37
+ email?: string;
38
+ firstName?: string;
39
+ lastName?: string;
40
+ };
41
+ export declare enum IkasShippingMethod {
42
+ CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
43
+ NO_SHIPMENT = "NO_SHIPMENT",
44
+ SHIPMENT = "SHIPMENT"
45
+ }
46
+ export declare enum IkasCheckoutStatus {
47
+ COMPLETED = "COMPLETED",
48
+ OPEN = "OPEN"
49
+ }
50
+ export declare enum IkasCheckoutRecoveryEmailStatus {
51
+ NOT_SENT = "NOT_SENT",
52
+ SENT = "SENT"
53
+ }
54
+ export declare enum IkasCheckoutRecoveryStatus {
55
+ NOT_RECOVERED = "NOT_RECOVERED",
56
+ RECOVERED = "RECOVERED"
57
+ }
58
+ export declare enum IkasPaymentMethod {
59
+ BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
60
+ CASH = "CASH",
61
+ CASH_ON_DELIVERY = "CASH_ON_DELIVERY",
62
+ CREDIT_CARD = "CREDIT_CARD",
63
+ GIFT_CARD = "GIFT_CARD",
64
+ MONEY_ORDER = "MONEY_ORDER",
65
+ OTHER = "OTHER"
66
+ }
67
+ export declare type IkasPaymentMethodDetail = {
68
+ cardHolderName: string;
69
+ cardNumber: string;
70
+ cvv: string;
71
+ expiredMonth: number;
72
+ expiredYear: number;
73
+ installmentCount: number;
74
+ threeDSecure: boolean;
75
+ };
76
+ export declare enum IkasShippingMethodEnum {
77
+ CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
78
+ NO_SHIPMENT = "NO_SHIPMENT",
79
+ SHIPMENT = "SHIPMENT"
80
+ }
81
+ export declare type IkasAvailableShippingMethod = {
82
+ price: number;
83
+ rateName: string;
84
+ shippingMethod: IkasShippingMethodEnum;
85
+ shippingSettingsId: string;
86
+ shippingZoneRateId: string;
87
+ };
@@ -0,0 +1,4 @@
1
+ export declare type IkasCity = {
2
+ id: string;
3
+ name: string;
4
+ };
@@ -0,0 +1,6 @@
1
+ export declare type IkasCountry = {
2
+ id: string;
3
+ name: string;
4
+ iso3?: string;
5
+ phoneCode?: string;
6
+ };
@@ -0,0 +1,44 @@
1
+ export declare class IkasCustomerAddress {
2
+ id?: string;
3
+ title?: string;
4
+ addressLine1?: string;
5
+ addressLine2?: string;
6
+ country?: IkasCustomerAddressCountry;
7
+ state?: IkasCustomerAddressState;
8
+ city?: IkasCustomerAddressCity;
9
+ district?: IkasCustomerAddressDistrict;
10
+ isDefault?: boolean;
11
+ company?: string;
12
+ firstName?: string;
13
+ lastName?: string;
14
+ phone?: string;
15
+ postalCode?: string;
16
+ identityNumber?: string;
17
+ taxNumber?: string;
18
+ taxOffice?: string;
19
+ constructor(data?: Partial<IkasCustomerAddress>);
20
+ get addressText(): string;
21
+ get validationResult(): IkasAddressValidationResult;
22
+ get isValid(): boolean;
23
+ }
24
+ declare type IkasCustomerAddressLocation = {
25
+ id?: string;
26
+ name?: string;
27
+ code?: string;
28
+ };
29
+ export declare type IkasCustomerAddressCountry = IkasCustomerAddressLocation;
30
+ export declare type IkasCustomerAddressCity = IkasCustomerAddressLocation;
31
+ export declare type IkasCustomerAddressDistrict = IkasCustomerAddressLocation;
32
+ export declare type IkasCustomerAddressState = IkasCustomerAddressLocation;
33
+ export declare type IkasAddressValidationResult = {
34
+ firstName: boolean;
35
+ lastName: boolean;
36
+ addressLine1: boolean;
37
+ postalCode: boolean;
38
+ country: boolean;
39
+ state: boolean;
40
+ city: boolean;
41
+ phone: boolean;
42
+ title: boolean;
43
+ };
44
+ export {};
@@ -0,0 +1,19 @@
1
+ import { IkasCustomerAddress } from "./address/index";
2
+ export declare class IkasCustomer {
3
+ id: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ phone?: string;
8
+ isEmailVerified: boolean;
9
+ isPhoneVerified: boolean;
10
+ accountStatus: IkasCustomerAccountStatus;
11
+ addresses: IkasCustomerAddress[];
12
+ constructor(data: Partial<IkasCustomer>);
13
+ }
14
+ export declare enum IkasCustomerAccountStatus {
15
+ ACTIVE_ACCOUNT = "ACTIVE_ACCOUNT",
16
+ DECLINED_ACCOUNT_INVITATION = "DECLINED_ACCOUNT_INVITATION",
17
+ DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
18
+ INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT"
19
+ }
@@ -0,0 +1,4 @@
1
+ export declare type IkasDistrict = {
2
+ id: string;
3
+ name: string;
4
+ };
@@ -0,0 +1,15 @@
1
+ export declare class IkasHTMLMetaData {
2
+ slug: string;
3
+ pageTitle: string | null;
4
+ description: string | null;
5
+ targetType: IkasHTMLMetaDataTargetType | null;
6
+ targetId: string | null;
7
+ redirectTo?: string;
8
+ constructor(data?: Partial<IkasHTMLMetaData>);
9
+ }
10
+ export declare enum IkasHTMLMetaDataTargetType {
11
+ PRODUCT = "PRODUCT",
12
+ CATEGORY = "CATEGORY",
13
+ BRAND = "BRAND",
14
+ PAGE = "PAGE"
15
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IkasImage {
2
+ id: string;
3
+ constructor(id: string);
4
+ get editorApiKey(): any;
5
+ get src(): string;
6
+ get thumbnailSrc(): string;
7
+ }
@@ -0,0 +1,25 @@
1
+ export { IkasBrand } from "./brand/index";
2
+ export { IkasCategory } from "./category/index";
3
+ export * from "./checkout/index";
4
+ export type { IkasCity } from "./city/index";
5
+ export * from "./customer/address/index";
6
+ export { IkasCustomer } from "./customer/index";
7
+ export type { IkasCountry } from "./country/index";
8
+ export type { IkasDistrict } from "./district/index";
9
+ export { IkasHTMLMetaData, IkasHTMLMetaDataTargetType } from "./html-meta-data/index";
10
+ export { IkasImage } from "./image/index";
11
+ export * from "./installment-info/index";
12
+ export type { IkasInstallmentInfo, IkasInstallmentPrice, IkasInstallmentInfoInput, } from "./installment-info/index";
13
+ export * from "./merchant-settings/index";
14
+ export * from "./order/index";
15
+ export { IkasOrderLineItem } from "./order/line-item/index";
16
+ export { IkasProduct, IkasProductType } from "./product/index";
17
+ export { IkasProductVariantType } from "./product/variant-type/index";
18
+ export { IkasProductVariant } from "./product/variant/index";
19
+ export { IkasProductPrice } from "./product/variant/price/index";
20
+ export { IkasProductAttribute } from "./product-attribute/index";
21
+ export { IkasProductAttributeValue } from "./product/attribute-value/index";
22
+ export type { IkasState } from "./state/index";
23
+ export * from "./variant-type/index";
24
+ export { IkasVariantValue } from "./variant-type/variant-value/index";
25
+ export { IkasOrderTransaction, IkasTransactionStatusEnum, IkasTransactionTypeEnum, } from "./order-transaction/index";
@@ -0,0 +1,30 @@
1
+ export declare type IkasInstallmentInfo = {
2
+ bankName: string | null;
3
+ binNumber: string;
4
+ cardAssociation: IkasCardAssociation;
5
+ cardFamily: string | null;
6
+ cardType: IkasCardType;
7
+ installmentPrices: IkasInstallmentPrice[];
8
+ price: number;
9
+ };
10
+ export declare type IkasInstallmentPrice = {
11
+ installmentCount: number | null;
12
+ installmentPrice: number | null;
13
+ totalPrice: number | null;
14
+ };
15
+ export declare type IkasInstallmentInfoInput = {
16
+ binNumber: string;
17
+ paymentGatewayId: string;
18
+ price: number;
19
+ };
20
+ export declare enum IkasCardAssociation {
21
+ AMERICAN_EXPRESS = "AMERICAN_EXPRESS",
22
+ MASTER_CARD = "MASTER_CARD",
23
+ TROY = "TROY",
24
+ VISA = "VISA"
25
+ }
26
+ export declare enum IkasCardType {
27
+ CREDIT = "CREDIT",
28
+ DEBIT = "DEBIT",
29
+ PREPAID = "PREPAID"
30
+ }
@@ -0,0 +1,8 @@
1
+ import { IkasImage } from "../image/index";
2
+ export declare class IkasMerchantSettings {
3
+ id: string;
4
+ logoId: string;
5
+ merchantName: string;
6
+ logo: IkasImage;
7
+ constructor(data?: Partial<IkasMerchantSettings>);
8
+ }
@@ -0,0 +1,41 @@
1
+ export declare class IkasOrderAddress {
2
+ addressLine1?: string;
3
+ addressLine2?: string;
4
+ country?: IkasOrderAddressCountry;
5
+ state?: IkasOrderAddressState;
6
+ city?: IkasOrderAddressCity;
7
+ district?: IkasOrderAddressDistrict;
8
+ isDefault?: boolean;
9
+ company?: string;
10
+ firstName?: string;
11
+ lastName?: string;
12
+ phone?: string;
13
+ postalCode?: string;
14
+ identityNumber?: string;
15
+ taxNumber?: string;
16
+ taxOffice?: string;
17
+ constructor(data?: Partial<IkasOrderAddress>);
18
+ get addressText(): string;
19
+ get validationResult(): IkasAddressValidationResult;
20
+ get isValid(): boolean;
21
+ }
22
+ declare type IkasOrderAddressLocation = {
23
+ id?: string;
24
+ name?: string;
25
+ code?: string;
26
+ };
27
+ export declare type IkasOrderAddressCountry = IkasOrderAddressLocation;
28
+ export declare type IkasOrderAddressCity = IkasOrderAddressLocation;
29
+ export declare type IkasOrderAddressDistrict = IkasOrderAddressLocation;
30
+ export declare type IkasOrderAddressState = IkasOrderAddressLocation;
31
+ export declare type IkasAddressValidationResult = {
32
+ firstName: boolean;
33
+ lastName: boolean;
34
+ addressLine1: boolean;
35
+ postalCode: boolean;
36
+ country: boolean;
37
+ state: boolean;
38
+ city: boolean;
39
+ phone: boolean;
40
+ };
41
+ export {};
@@ -0,0 +1,16 @@
1
+ export declare type IkasOrderAdjustment = {
2
+ amount: number;
3
+ amountType: IkasAmountTypeEnum;
4
+ name: string;
5
+ order: number;
6
+ type: IkasAdjustmentEnum;
7
+ };
8
+ export declare enum IkasAmountTypeEnum {
9
+ AMOUNT = "AMOUNT",
10
+ RATIO = "RATIO"
11
+ }
12
+ declare enum IkasAdjustmentEnum {
13
+ DECREMENT = "DECREMENT",
14
+ INCREMENT = "INCREMENT"
15
+ }
16
+ export {};
@@ -0,0 +1,109 @@
1
+ import { IkasOrderAddress } from "./address/index";
2
+ import { IkasOrderShippingLine } from "./shipping-line/index";
3
+ import { IkasOrderLineItem } from "./line-item/index";
4
+ export declare class IkasOrder {
5
+ id: string;
6
+ orderNumber: string;
7
+ note: string | null;
8
+ totalPrice: number | null;
9
+ totalFinalPrice: number | null;
10
+ currencyCode: string;
11
+ orderedAt: number;
12
+ cancelledAt: number | null;
13
+ status: IkasOrderStatus;
14
+ cancelReason: IkasOrderCancelledReason | null;
15
+ orderPaymentStatus: IkasOrderPaymentStatus | null;
16
+ orderPackageStatus: IkasOrderPackageStatus | null;
17
+ shippingMethod: IkasOrderShippingMethod | null;
18
+ shippingAddress: IkasOrderAddress | null;
19
+ billingAddress: IkasOrderAddress | null;
20
+ orderLineItems: IkasOrderLineItem[];
21
+ orderAdjustments: IkasOrderAdjustment[] | null;
22
+ shippingLines: IkasOrderShippingLine[] | null;
23
+ customer: IkasOrderCustomer | null;
24
+ taxLines: IkasOrderTaxLine[] | null;
25
+ orderPackages: IkasOrderPackage[] | null;
26
+ currencyRates: IkasOrderCurrencyRate[] | null;
27
+ constructor(data: IkasOrder);
28
+ get unfullfilledOrderLineItems(): IkasOrderLineItem[];
29
+ }
30
+ export declare type IkasOrderAdjustment = {
31
+ amount: number;
32
+ amountType: IkasAmountTypeEnum;
33
+ name: string;
34
+ order: number;
35
+ type: IkasAdjustmentEnum;
36
+ };
37
+ export declare type IkasOrderCustomer = {
38
+ id: string;
39
+ email: string;
40
+ firstName: string;
41
+ lastName: string;
42
+ };
43
+ export declare type IkasOrderTaxLine = {
44
+ price: number;
45
+ rate: number;
46
+ };
47
+ export declare type IkasOrderPackage = {
48
+ id: string;
49
+ createdAt: number;
50
+ updatedAt: number;
51
+ deleted: boolean;
52
+ orderLineItemIds: string[];
53
+ orderPackageFulfillStatus: IkasOrderPackageFulfillStatus;
54
+ orderPackageNumber: string;
55
+ stockLocationId: string;
56
+ trackingInfo: IkasOrderTrackingInfo | null;
57
+ };
58
+ export declare type IkasOrderTrackingInfo = {
59
+ cargoCompany: string;
60
+ isSendNotification: boolean;
61
+ trackingLink: string;
62
+ trackingNumber: string;
63
+ };
64
+ export declare enum IkasOrderStatus {
65
+ DRAFT = "DRAFT",
66
+ CREATED = "CREATED",
67
+ CANCELLED = "CANCELLED",
68
+ REFUNDED = "REFUNDED"
69
+ }
70
+ export declare enum IkasOrderCancelledReason {
71
+ CUSTOMER = "CUSTOMER",
72
+ INVENTORY = "INVENTORY",
73
+ DECLINED = "DECLINED",
74
+ OTHER = "OTHER"
75
+ }
76
+ export declare enum IkasAmountTypeEnum {
77
+ AMOUNT = "AMOUNT",
78
+ RATIO = "RATIO"
79
+ }
80
+ declare enum IkasAdjustmentEnum {
81
+ DECREMENT = "DECREMENT",
82
+ INCREMENT = "INCREMENT"
83
+ }
84
+ export declare enum IkasOrderPaymentStatus {
85
+ WAITING = "WAITING",
86
+ PAID = "PAID",
87
+ PARTIALLY_PAID = "PARTIALLY_PAID"
88
+ }
89
+ export declare enum IkasOrderPackageStatus {
90
+ UNFULFILLED = "UNFULFILLED",
91
+ PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
92
+ FULFILLED = "FULFILLED"
93
+ }
94
+ export declare enum IkasOrderPackageFulfillStatus {
95
+ DELIVERED = "DELIVERED",
96
+ FULFILLED = "FULFILLED",
97
+ SHIPPED = "SHIPPED"
98
+ }
99
+ export declare enum IkasOrderShippingMethod {
100
+ CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
101
+ SHIPMENT = "SHIPMENT",
102
+ NO_SHIPMENT = "NO_SHIPMENT"
103
+ }
104
+ export declare type IkasOrderCurrencyRate = {
105
+ code: string;
106
+ originalRate: number;
107
+ rate: number;
108
+ };
109
+ export {};
@@ -0,0 +1,11 @@
1
+ declare enum IkasAmountTypeEnum {
2
+ AMOUNT = "AMOUNT",
3
+ RATIO = "RATIO"
4
+ }
5
+ export declare class IkasOrderLineDiscount {
6
+ amount: number;
7
+ amountType: IkasAmountTypeEnum;
8
+ reason: string | null;
9
+ constructor(data: IkasOrderLineDiscount);
10
+ }
11
+ export {};
@@ -0,0 +1,19 @@
1
+ import { IkasOrderLineDiscount } from "./discount/index";
2
+ import { IkasOrderLineVariant } from "./variant/index";
3
+ export declare class IkasOrderLineItem {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ deleted: boolean;
8
+ currencyCode: string;
9
+ discount?: IkasOrderLineDiscount;
10
+ discountPrice?: number;
11
+ finalPrice: number;
12
+ originalOrderLineItemId?: string;
13
+ price: number;
14
+ quantity: number;
15
+ taxValue?: number;
16
+ variant: IkasOrderLineVariant;
17
+ constructor(data: Partial<IkasOrderLineItem>);
18
+ get tax(): number;
19
+ }
@@ -0,0 +1,25 @@
1
+ import { IkasImage } from "../../../image/index";
2
+ export declare class IkasOrderLineVariant {
3
+ id: string;
4
+ name: string;
5
+ productId: string;
6
+ sku?: string;
7
+ slug?: string;
8
+ barcodeList: string[];
9
+ mainImageId?: string;
10
+ taxValue: number;
11
+ variantValues: IkasOrderLineVariantVariantValue[];
12
+ mainImage?: IkasImage;
13
+ constructor(data?: Partial<IkasOrderLineVariant>);
14
+ get href(): string;
15
+ }
16
+ export declare class IkasOrderLineVariantVariantValue {
17
+ order: number;
18
+ variantTypeId: string;
19
+ variantTypeName: string;
20
+ variantValueId: string;
21
+ variantValueName: string;
22
+ constructor(data: IkasOrderLineVariantVariantValue);
23
+ get variantTypeSlug(): string;
24
+ get variantNameSlug(): string;
25
+ }
@@ -0,0 +1,7 @@
1
+ export declare type IkasOrderShippingLine = {
2
+ price: number;
3
+ taxValue: number | null;
4
+ title: string;
5
+ shippingSettingsId: string;
6
+ shippingZoneRateId: string;
7
+ };
@@ -0,0 +1,72 @@
1
+ export declare class IkasOrderTransaction {
2
+ amount: number | null;
3
+ checkoutId: string | null;
4
+ createdAt: number | null;
5
+ currencyCode: string | null;
6
+ customerId: string | null;
7
+ error: IkasTransactionError | null;
8
+ id: string | null;
9
+ orderId: string | null;
10
+ paymentGatewayId: string | null;
11
+ paymentGatewayName: string | null;
12
+ paymentMethod: IkasPaymentMethodEnum | null;
13
+ paymentMethodDetail: IkasTransactionPaymentMethodDetail | null;
14
+ processedAt: number | null;
15
+ refundReason: string | null;
16
+ status: IkasTransactionStatusEnum | null;
17
+ type: IkasTransactionTypeEnum | null;
18
+ updatedAt: number | null;
19
+ constructor(data?: Partial<IkasOrderTransaction>);
20
+ }
21
+ declare type IkasTransactionError = {
22
+ code: string;
23
+ declineCode: string;
24
+ message: string;
25
+ };
26
+ declare enum IkasPaymentMethodEnum {
27
+ BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
28
+ CASH = "CASH",
29
+ CASH_ON_DELIVERY = "CASH_ON_DELIVERY",
30
+ CREDIT_CARD = "CREDIT_CARD",
31
+ GIFT_CARD = "GIFT_CARD",
32
+ MONEY_ORDER = "MONEY_ORDER",
33
+ OTHER = "OTHER"
34
+ }
35
+ declare type IkasTransactionPaymentMethodDetail = {
36
+ bankName: string;
37
+ binNumber: string;
38
+ cardAssociation: IkasTransactionCardAssociationEnum;
39
+ cardFamily: string;
40
+ cardType: IkasTransactionCardTypeEnum;
41
+ installment: IkasTransactionInstallmentPrice;
42
+ lastFourDigits: string;
43
+ threeDSecure: boolean;
44
+ };
45
+ declare enum IkasTransactionCardAssociationEnum {
46
+ AMERICAN_EXPRESS = "AMERICAN_EXPRESS",
47
+ MASTER_CARD = "MASTER_CARD",
48
+ TROY = "TROY",
49
+ VISA = "VISA"
50
+ }
51
+ declare enum IkasTransactionCardTypeEnum {
52
+ CREDIT = "CREDIT",
53
+ DEBIT = "DEBIT",
54
+ PREPAID = "PREPAID"
55
+ }
56
+ declare type IkasTransactionInstallmentPrice = {
57
+ installmentCount: number;
58
+ installmentPrice: number;
59
+ totalPrice: number;
60
+ };
61
+ export declare enum IkasTransactionStatusEnum {
62
+ FAILED = "FAILED",
63
+ PENDING = "PENDING",
64
+ SUCCESS = "SUCCESS",
65
+ AUTHORIZED = "AUTHORIZED"
66
+ }
67
+ export declare enum IkasTransactionTypeEnum {
68
+ REFUND = "REFUND",
69
+ SALE = "SALE",
70
+ VOID = "VOID"
71
+ }
72
+ export {};
@@ -0,0 +1,20 @@
1
+ export declare type IkasPaymentGateway = {
2
+ paymentMethods: IkasPaymentMethod[];
3
+ paymentMethodType: IkasPaymentMethodType;
4
+ id: string | null;
5
+ name: string;
6
+ testMode: boolean | null;
7
+ };
8
+ export declare type IkasPaymentMethod = {
9
+ name: string;
10
+ logoUrl: string | null;
11
+ };
12
+ export declare enum IkasPaymentMethodType {
13
+ BUY_ONLINE_PAY_AT_STORE = "BUY_ONLINE_PAY_AT_STORE",
14
+ CASH = "CASH",
15
+ CASH_ON_DELIVERY = "CASH_ON_DELIVERY",
16
+ CREDIT_CARD = "CREDIT_CARD",
17
+ GIFT_CARD = "GIFT_CARD",
18
+ MONEY_ORDER = "MONEY_ORDER",
19
+ OTHER = "OTHER"
20
+ }
@@ -0,0 +1,6 @@
1
+ export declare class IkasProductAttributeValue {
2
+ value: string | null;
3
+ productAttributeId: string;
4
+ productAttributeOptionId: string | null;
5
+ constructor(data: Partial<IkasProductAttributeValue>);
6
+ }