@ecomiq/core 0.1.9 → 1.0.0
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/LICENSE +21 -0
- package/README.md +39 -2
- package/dist/_virtual/_rolldown/runtime-C6LprzCP.cjs +22 -0
- package/dist/api.cjs +117 -102
- package/dist/api.d.cts +33 -37
- package/dist/api.d.ts +33 -37
- package/dist/api.js +116 -100
- package/dist/client.cjs +499 -1676
- package/dist/client.d.cts +156 -15
- package/dist/client.d.ts +156 -15
- package/dist/client.js +500 -1675
- package/dist/index.cjs +333 -2092
- package/dist/index.d.cts +53 -1127
- package/dist/index.d.ts +53 -1127
- package/dist/index.js +52 -1895
- package/dist/libs/bounded-read-cache-Abmb5VnJ.js +41 -0
- package/dist/libs/bounded-read-cache-D4644LJo.cjs +41 -0
- package/dist/libs/catalog-link-key-B7l5KZsF.js +9 -0
- package/dist/libs/catalog-link-key-CZTHJBGD.cjs +9 -0
- package/dist/libs/catalog-link-key.d.cts +2 -0
- package/dist/libs/catalog-link-key.d.ts +2 -0
- package/dist/libs/graphql-_6Y8lR_Q.js +49 -0
- package/dist/libs/graphql-selection-Cj51WkJn.cjs +21 -0
- package/dist/libs/graphql-selection-H1RMh6VD.js +21 -0
- package/dist/libs/graphql-selection.d.cts +3 -0
- package/dist/libs/graphql-selection.d.ts +3 -0
- package/dist/libs/graphql-wJH7HaQU.cjs +50 -0
- package/dist/libs/graphql.d.cts +24 -0
- package/dist/libs/graphql.d.ts +24 -0
- package/dist/models/amounts-cKBCecl7.js +5 -0
- package/dist/models/amounts-lmg89eJQ.cjs +4 -0
- package/dist/models/articles-C-4JvT2Z.js +27 -0
- package/dist/models/articles-xHCXLKDK.cjs +30 -0
- package/dist/models/articles.d.cts +46 -0
- package/dist/models/articles.d.ts +46 -0
- package/dist/models/catalog-links-BzJeyBy4.js +80 -0
- package/dist/models/catalog-links-c4LADGf_.cjs +88 -0
- package/dist/models/catalog-links.d.cts +39 -0
- package/dist/models/catalog-links.d.ts +39 -0
- package/dist/models/categories-CKkJY8_P.js +42 -0
- package/dist/models/categories-DZ5i5kwi.cjs +45 -0
- package/dist/models/categories.d.cts +54 -0
- package/dist/models/categories.d.ts +54 -0
- package/dist/models/collections.cjs +13 -22
- package/dist/models/collections.d.cts +23 -56
- package/dist/models/collections.d.ts +23 -56
- package/dist/models/collections.js +12 -20
- package/dist/models/complaint-book-D5INpuI2.cjs +64 -0
- package/dist/models/complaint-book-QpQZe7Xl.js +58 -0
- package/dist/models/complaint-book.d.cts +71 -0
- package/dist/models/complaint-book.d.ts +71 -0
- package/dist/models/customer-address.cjs +39 -38
- package/dist/models/customer-address.d.cts +59 -158
- package/dist/models/customer-address.d.ts +59 -158
- package/dist/models/customer-address.js +38 -36
- package/dist/models/customer-order.cjs +181 -142
- package/dist/models/customer-order.d.cts +430 -858
- package/dist/models/customer-order.d.ts +430 -858
- package/dist/models/customer-order.js +178 -141
- package/dist/models/customer-profile.cjs +121 -118
- package/dist/models/customer-profile.d.cts +89 -174
- package/dist/models/customer-profile.d.ts +89 -174
- package/dist/models/customer-profile.js +121 -116
- package/dist/models/customer-registration-C13knqyv.js +28 -0
- package/dist/models/customer-registration-EZ0yZgGr.cjs +31 -0
- package/dist/models/customer-registration.d.cts +66 -0
- package/dist/models/customer-registration.d.ts +66 -0
- package/dist/models/customer-session-BiX0TXhO.js +41 -0
- package/dist/models/customer-session-JeQiC8Yx.cjs +45 -0
- package/dist/models/customer-session.d.cts +61 -0
- package/dist/models/customer-session.d.ts +61 -0
- package/dist/models/geo.cjs +52 -49
- package/dist/models/geo.d.cts +141 -270
- package/dist/models/geo.d.ts +141 -270
- package/dist/models/geo.js +51 -47
- package/dist/models/ids.cjs +8 -11
- package/dist/models/ids.d.cts +7 -10
- package/dist/models/ids.d.ts +7 -10
- package/dist/models/ids.js +7 -9
- package/dist/models/order-draft-CnHJ0btL.js +37 -0
- package/dist/models/order-draft-PFBZfRRR.cjs +39 -0
- package/dist/models/order-draft.d.cts +51 -0
- package/dist/models/order-draft.d.ts +51 -0
- package/dist/models/order-review--xGlZKtS.cjs +18 -0
- package/dist/models/order-review-egGeCaqB.js +17 -0
- package/dist/models/order-review.d.cts +22 -0
- package/dist/models/order-review.d.ts +22 -0
- package/dist/models/order-status-CS_OeSPY.cjs +66 -0
- package/dist/models/order-status-CgaLkU0M.js +60 -0
- package/dist/models/order-status.d.cts +298 -0
- package/dist/models/order-status.d.ts +298 -0
- package/dist/models/payment-methods--VUUZpMz.js +17 -0
- package/dist/models/payment-methods-CmK08zBM.cjs +19 -0
- package/dist/models/payment-methods.d.cts +28 -0
- package/dist/models/payment-methods.d.ts +28 -0
- package/dist/models/products.cjs +215 -194
- package/dist/models/products.d.cts +612 -1354
- package/dist/models/products.d.ts +612 -1354
- package/dist/models/products.js +211 -187
- package/dist/models/search.cjs +13 -23
- package/dist/models/search.d.cts +21 -51
- package/dist/models/search.d.ts +21 -51
- package/dist/models/search.js +12 -21
- package/dist/models/sellers.cjs +44 -0
- package/dist/models/sellers.d.cts +82 -0
- package/dist/models/sellers.d.ts +82 -0
- package/dist/models/sellers.js +38 -0
- package/dist/models/settings.cjs +205 -236
- package/dist/models/settings.d.cts +853 -6940
- package/dist/models/settings.d.ts +853 -6940
- package/dist/models/settings.js +213 -239
- package/dist/models/storefront-cart.cjs +144 -118
- package/dist/models/storefront-cart.d.cts +246 -706
- package/dist/models/storefront-cart.d.ts +246 -706
- package/dist/models/storefront-cart.js +141 -117
- package/dist/models/storefront-checkout.cjs +212 -297
- package/dist/models/storefront-checkout.d.cts +654 -2449
- package/dist/models/storefront-checkout.d.ts +654 -2449
- package/dist/models/storefront-checkout.js +208 -297
- package/dist/models/storefront-reviews.cjs +58 -43
- package/dist/models/storefront-reviews.d.cts +71 -139
- package/dist/models/storefront-reviews.d.ts +71 -139
- package/dist/models/storefront-reviews.js +55 -42
- package/dist/models/tracking-CiIAhQW0.js +33 -0
- package/dist/models/tracking-wNyzQ6Bp.cjs +36 -0
- package/dist/models/tracking.d.cts +26 -0
- package/dist/models/tracking.d.ts +26 -0
- package/dist/models/urls-B0ZODOwH.cjs +35 -0
- package/dist/models/urls-Dt_dTt4Q.js +33 -0
- package/dist/models/urls.d.cts +201 -0
- package/dist/models/urls.d.ts +201 -0
- package/dist/redirects.cjs +113 -0
- package/dist/redirects.d.cts +11 -0
- package/dist/redirects.d.ts +11 -0
- package/dist/redirects.js +108 -0
- package/dist/services/article.service-DBsOvflH.js +10 -0
- package/dist/services/article.service-zmTkbbPV.cjs +11 -0
- package/dist/services/article.service.d.cts +4 -0
- package/dist/services/article.service.d.ts +4 -0
- package/dist/services/cart.service-B0D8s6jI.cjs +37 -0
- package/dist/services/cart.service-yMCz9oQP.js +33 -0
- package/dist/services/cart.service.d.cts +527 -0
- package/dist/services/cart.service.d.ts +527 -0
- package/dist/services/catalog-link.service-BQ2d-EPX.js +8 -0
- package/dist/services/catalog-link.service-DiB-OVjn.cjs +8 -0
- package/dist/services/category.service-8tieYX2r.js +6 -0
- package/dist/services/category.service-BsSJZV2B.cjs +6 -0
- package/dist/services/checkout.service-CC-3tm2y.js +60 -0
- package/dist/services/checkout.service-CG8KrDNY.cjs +69 -0
- package/dist/services/checkout.service.d.cts +439 -0
- package/dist/services/checkout.service.d.ts +439 -0
- package/dist/services/collection.service-C4QETpuI.js +11 -0
- package/dist/services/collection.service-DHGN3rhs.cjs +12 -0
- package/dist/services/complaint-book.service-C7TxltQe.cjs +13 -0
- package/dist/services/complaint-book.service-DXiVyKdD.js +12 -0
- package/dist/services/complaint-book.service.d.cts +4 -0
- package/dist/services/complaint-book.service.d.ts +4 -0
- package/dist/services/customer-address.service-Ca4qla_R.cjs +51 -0
- package/dist/services/customer-address.service-xEThx7cQ.js +47 -0
- package/dist/services/customer-address.service.d.cts +19 -0
- package/dist/services/customer-address.service.d.ts +19 -0
- package/dist/services/customer-order.service-DLGgT0xa.cjs +54 -0
- package/dist/services/customer-order.service-qHoRBuyX.js +51 -0
- package/dist/services/customer-order.service.d.cts +34 -0
- package/dist/services/customer-order.service.d.ts +34 -0
- package/dist/services/customer-registration.service-C3BNyCHP.cjs +10 -0
- package/dist/services/customer-registration.service-CxcWD2hf.js +9 -0
- package/dist/services/customer-registration.service.d.cts +5 -0
- package/dist/services/customer-registration.service.d.ts +5 -0
- package/dist/services/customer-session.service-4YgfbWRB.js +16 -0
- package/dist/services/customer-session.service-Bd8pLC2v.cjs +19 -0
- package/dist/services/customer.service-BM0NrOxP.cjs +26 -0
- package/dist/services/customer.service-BoU6l2-R.js +25 -0
- package/dist/services/customer.service.d.cts +10 -0
- package/dist/services/customer.service.d.ts +10 -0
- package/dist/services/geo.service-C32R7N8W.js +39 -0
- package/dist/services/geo.service-JeTT3Wun.cjs +42 -0
- package/dist/services/geo.service.d.cts +10 -0
- package/dist/services/geo.service.d.ts +10 -0
- package/dist/services/layout.service-BkvLzl1g.cjs +50 -0
- package/dist/services/layout.service-DmbeMOkK.js +50 -0
- package/dist/services/layout.service.d.cts +9 -0
- package/dist/services/layout.service.d.ts +9 -0
- package/dist/services/order-draft.service-D9gy-OPr.cjs +14 -0
- package/dist/services/order-draft.service-DYPR_pcV.js +13 -0
- package/dist/services/order-draft.service.d.cts +4 -0
- package/dist/services/order-draft.service.d.ts +4 -0
- package/dist/services/order-review.service-BEr-FB6_.cjs +11 -0
- package/dist/services/order-review.service-PdBPUsxE.js +11 -0
- package/dist/services/order-review.service.d.cts +7 -0
- package/dist/services/order-review.service.d.ts +7 -0
- package/dist/services/order-status.service-Cn7dsaJo.cjs +26 -0
- package/dist/services/order-status.service-MC9hVpP-.js +23 -0
- package/dist/services/order-status.service.d.cts +16 -0
- package/dist/services/order-status.service.d.ts +16 -0
- package/dist/services/page.service-CWhWCjMQ.js +7 -0
- package/dist/services/page.service-DmCSeMiR.cjs +7 -0
- package/dist/services/page.service.d.cts +4 -0
- package/dist/services/page.service.d.ts +4 -0
- package/dist/services/payment-method.service-CEt_nB4R.cjs +7 -0
- package/dist/services/payment-method.service-CjKbAsOh.js +7 -0
- package/dist/services/payment-method.service.d.cts +4 -0
- package/dist/services/payment-method.service.d.ts +4 -0
- package/dist/services/product.service-B05Qmbuh.js +35 -0
- package/dist/services/product.service-B7OFZWB1.cjs +37 -0
- package/dist/services/product.service.d.cts +231 -0
- package/dist/services/product.service.d.ts +231 -0
- package/dist/services/review.service-CO2icjpu.cjs +46 -0
- package/dist/services/review.service-De1YkhFp.js +43 -0
- package/dist/services/review.service.d.cts +28 -0
- package/dist/services/review.service.d.ts +28 -0
- package/dist/services/search.service-Bx1zbTHJ.cjs +10 -0
- package/dist/services/search.service-DSBMhaSY.js +10 -0
- package/dist/services/search.service.d.cts +9 -0
- package/dist/services/search.service.d.ts +9 -0
- package/dist/services/seller.service-D11WHhbC.cjs +10 -0
- package/dist/services/seller.service-DUptDTv4.js +9 -0
- package/dist/services/seller.service.d.cts +42 -0
- package/dist/services/seller.service.d.ts +42 -0
- package/dist/services/tracking.service-CPK1B69N.js +11 -0
- package/dist/services/tracking.service-DqOoi8qr.cjs +11 -0
- package/dist/services/tracking.service.d.cts +7 -0
- package/dist/services/tracking.service.d.ts +7 -0
- package/dist/services/url.service-B-nC14Ue.cjs +19 -0
- package/dist/services/url.service-CLW0Tc7S.js +18 -0
- package/dist/storefront-cache-revision.cjs +23 -0
- package/dist/storefront-cache-revision.d.cts +16 -0
- package/dist/storefront-cache-revision.d.ts +16 -0
- package/dist/storefront-cache-revision.js +17 -0
- package/dist/storefront-routes.cjs +14 -0
- package/dist/storefront-routes.d.cts +11 -0
- package/dist/storefront-routes.d.ts +11 -0
- package/dist/storefront-routes.js +12 -0
- package/dist/utils-CDEC5xcY.cjs +139 -0
- package/dist/utils-DK7qa54o.js +136 -0
- package/dist/utils.d.cts +3 -0
- package/dist/utils.d.ts +3 -0
- package/dist/video-links-CbRO0m8V.js +47 -0
- package/dist/video-links-ClryQjPH.cjs +47 -0
- package/dist/video-links.d.cts +7 -0
- package/dist/video-links.d.ts +7 -0
- package/package.json +28 -11
- package/dist/api.cjs.map +0 -1
- package/dist/api.js.map +0 -1
- package/dist/client-Ba1r_uiO.d.ts +0 -195
- package/dist/client-Cqcnv2tC.d.cts +0 -195
- package/dist/client.cjs.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models/collections.cjs.map +0 -1
- package/dist/models/collections.js.map +0 -1
- package/dist/models/customer-address.cjs.map +0 -1
- package/dist/models/customer-address.js.map +0 -1
- package/dist/models/customer-order.cjs.map +0 -1
- package/dist/models/customer-order.js.map +0 -1
- package/dist/models/customer-profile.cjs.map +0 -1
- package/dist/models/customer-profile.js.map +0 -1
- package/dist/models/geo.cjs.map +0 -1
- package/dist/models/geo.js.map +0 -1
- package/dist/models/ids.cjs.map +0 -1
- package/dist/models/ids.js.map +0 -1
- package/dist/models/products.cjs.map +0 -1
- package/dist/models/products.js.map +0 -1
- package/dist/models/search.cjs.map +0 -1
- package/dist/models/search.js.map +0 -1
- package/dist/models/settings.cjs.map +0 -1
- package/dist/models/settings.js.map +0 -1
- package/dist/models/storefront-cart.cjs.map +0 -1
- package/dist/models/storefront-cart.js.map +0 -1
- package/dist/models/storefront-checkout.cjs.map +0 -1
- package/dist/models/storefront-checkout.js.map +0 -1
- package/dist/models/storefront-reviews.cjs.map +0 -1
- package/dist/models/storefront-reviews.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,1127 +1,53 @@
|
|
|
1
|
-
import { Api } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
label: string | null;
|
|
54
|
-
selected: boolean;
|
|
55
|
-
}[];
|
|
56
|
-
id: string;
|
|
57
|
-
label: string;
|
|
58
|
-
min: number | null;
|
|
59
|
-
max: number | null;
|
|
60
|
-
selectedMin: number | null;
|
|
61
|
-
selectedMax: number | null;
|
|
62
|
-
}[];
|
|
63
|
-
}>;
|
|
64
|
-
declare function getProductBySlug(api: Api, slug: string, params?: ProductDetailParams): Promise<{
|
|
65
|
-
status: string;
|
|
66
|
-
id: string;
|
|
67
|
-
slug: string;
|
|
68
|
-
name: string;
|
|
69
|
-
description: string;
|
|
70
|
-
imageUrl: string;
|
|
71
|
-
productType: string;
|
|
72
|
-
price: number;
|
|
73
|
-
compareAtPrice: number | null;
|
|
74
|
-
isAvailable: boolean;
|
|
75
|
-
totalInventory: number;
|
|
76
|
-
brand: string;
|
|
77
|
-
category: string;
|
|
78
|
-
tags: string[];
|
|
79
|
-
images: {
|
|
80
|
-
name: string;
|
|
81
|
-
url: string;
|
|
82
|
-
order: number;
|
|
83
|
-
}[];
|
|
84
|
-
categoryId: string | null;
|
|
85
|
-
specifications: {
|
|
86
|
-
key: string;
|
|
87
|
-
value: string;
|
|
88
|
-
name: string;
|
|
89
|
-
}[];
|
|
90
|
-
variants: {
|
|
91
|
-
options: {
|
|
92
|
-
key: string;
|
|
93
|
-
value: string;
|
|
94
|
-
name: string;
|
|
95
|
-
}[];
|
|
96
|
-
status: string;
|
|
97
|
-
id: string | null;
|
|
98
|
-
price: number;
|
|
99
|
-
compareAtPrice: number | null;
|
|
100
|
-
sku: string;
|
|
101
|
-
quantity: number;
|
|
102
|
-
images: {
|
|
103
|
-
name: string;
|
|
104
|
-
url: string;
|
|
105
|
-
order: number;
|
|
106
|
-
}[];
|
|
107
|
-
}[];
|
|
108
|
-
bundleItems: {
|
|
109
|
-
imageUrl: string | null;
|
|
110
|
-
brand: string | null;
|
|
111
|
-
productId: string;
|
|
112
|
-
sku: string | null;
|
|
113
|
-
quantity: number;
|
|
114
|
-
variantId: string;
|
|
115
|
-
productName: string;
|
|
116
|
-
variantName: string | null;
|
|
117
|
-
available: number;
|
|
118
|
-
allowBackorders: boolean;
|
|
119
|
-
requiresShipping: boolean;
|
|
120
|
-
}[];
|
|
121
|
-
sizeGuide: {
|
|
122
|
-
id: string;
|
|
123
|
-
slug: string;
|
|
124
|
-
name: string;
|
|
125
|
-
description: string | null;
|
|
126
|
-
imageUrl: string | null;
|
|
127
|
-
gender: string;
|
|
128
|
-
measurementType: string;
|
|
129
|
-
unit: string;
|
|
130
|
-
notes: string | null;
|
|
131
|
-
rows: {
|
|
132
|
-
label: string;
|
|
133
|
-
order: number;
|
|
134
|
-
sizeKey: string;
|
|
135
|
-
measurements: {
|
|
136
|
-
key: string;
|
|
137
|
-
value: number | null;
|
|
138
|
-
name: string;
|
|
139
|
-
description: string | null;
|
|
140
|
-
min: number | null;
|
|
141
|
-
max: number | null;
|
|
142
|
-
}[];
|
|
143
|
-
}[];
|
|
144
|
-
} | null;
|
|
145
|
-
priceTiers: {
|
|
146
|
-
variantId: string;
|
|
147
|
-
minQuantity: number;
|
|
148
|
-
maxQuantity: number | null;
|
|
149
|
-
unitPrice: number;
|
|
150
|
-
}[];
|
|
151
|
-
createdAt: string | null;
|
|
152
|
-
updatedAt: string | null;
|
|
153
|
-
}>;
|
|
154
|
-
declare function getRelatedProducts(api: Api, params: RelatedProductsParams): Promise<{
|
|
155
|
-
status: string;
|
|
156
|
-
id: string;
|
|
157
|
-
slug: string;
|
|
158
|
-
name: string;
|
|
159
|
-
imageUrl: string;
|
|
160
|
-
productType: string;
|
|
161
|
-
price: number;
|
|
162
|
-
compareAtPrice: number | null;
|
|
163
|
-
variantCount: number;
|
|
164
|
-
isAvailable: boolean;
|
|
165
|
-
totalInventory: number;
|
|
166
|
-
bundleItemsCount: number;
|
|
167
|
-
brand: string;
|
|
168
|
-
category: string;
|
|
169
|
-
collections: string[];
|
|
170
|
-
tags: string[];
|
|
171
|
-
}[]>;
|
|
172
|
-
|
|
173
|
-
declare function autocompleteProducts(api: Api, params: ProductAutocompleteParams): Promise<{
|
|
174
|
-
id: string;
|
|
175
|
-
slug: string;
|
|
176
|
-
name: string;
|
|
177
|
-
imageUrl: string;
|
|
178
|
-
}[]>;
|
|
179
|
-
|
|
180
|
-
declare function listProductReviews(api: Api, params: ListProductReviewsParams): Promise<{
|
|
181
|
-
totalCount: number | null;
|
|
182
|
-
data: {
|
|
183
|
-
id: string;
|
|
184
|
-
productId: string;
|
|
185
|
-
isVerifiedPurchase: boolean;
|
|
186
|
-
rating: number;
|
|
187
|
-
title: string | null;
|
|
188
|
-
content: string;
|
|
189
|
-
reviewerName: string | null;
|
|
190
|
-
createdOn: string;
|
|
191
|
-
}[];
|
|
192
|
-
hasNextPage: boolean;
|
|
193
|
-
nextCursor: string | null;
|
|
194
|
-
}>;
|
|
195
|
-
declare function createProductReview(api: Api, params: CreateProductReviewParams): Promise<{
|
|
196
|
-
id: string;
|
|
197
|
-
productId: string;
|
|
198
|
-
isVerifiedPurchase: boolean;
|
|
199
|
-
rating: number;
|
|
200
|
-
title: string | null;
|
|
201
|
-
content: string;
|
|
202
|
-
reviewerName: string | null;
|
|
203
|
-
createdOn: string;
|
|
204
|
-
}>;
|
|
205
|
-
|
|
206
|
-
declare function createCart(api: Api, params: CreateCartParams): Promise<{
|
|
207
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
208
|
-
id: string;
|
|
209
|
-
phone: string | null;
|
|
210
|
-
token: string;
|
|
211
|
-
cartNumber: string;
|
|
212
|
-
email: string | null;
|
|
213
|
-
firstName: string | null;
|
|
214
|
-
lastName: string | null;
|
|
215
|
-
currencyCode: string;
|
|
216
|
-
completedAt: string | null;
|
|
217
|
-
shippingAddress: {
|
|
218
|
-
name: string | null;
|
|
219
|
-
address1: string;
|
|
220
|
-
city: string;
|
|
221
|
-
countryCode: string;
|
|
222
|
-
company: string | null;
|
|
223
|
-
address2: string | null;
|
|
224
|
-
province: string | null;
|
|
225
|
-
postalCode: string | null;
|
|
226
|
-
district: string | null;
|
|
227
|
-
phone: string | null;
|
|
228
|
-
latitude: number | null;
|
|
229
|
-
longitude: number | null;
|
|
230
|
-
} | null;
|
|
231
|
-
billingAddress: {
|
|
232
|
-
name: string | null;
|
|
233
|
-
address1: string;
|
|
234
|
-
city: string;
|
|
235
|
-
countryCode: string;
|
|
236
|
-
company: string | null;
|
|
237
|
-
address2: string | null;
|
|
238
|
-
province: string | null;
|
|
239
|
-
postalCode: string | null;
|
|
240
|
-
district: string | null;
|
|
241
|
-
phone: string | null;
|
|
242
|
-
latitude: number | null;
|
|
243
|
-
longitude: number | null;
|
|
244
|
-
} | null;
|
|
245
|
-
promotionCodes: string[];
|
|
246
|
-
items: {
|
|
247
|
-
id: string;
|
|
248
|
-
productId: string | null;
|
|
249
|
-
quantity: number;
|
|
250
|
-
variantId: string | null;
|
|
251
|
-
unitPrice: number;
|
|
252
|
-
bundleItems: {
|
|
253
|
-
imageUrl: string | null;
|
|
254
|
-
brand: string | null;
|
|
255
|
-
productId: string;
|
|
256
|
-
sku: string | null;
|
|
257
|
-
quantity: number;
|
|
258
|
-
variantId: string;
|
|
259
|
-
productName: string;
|
|
260
|
-
variantName: string | null;
|
|
261
|
-
}[];
|
|
262
|
-
title: string;
|
|
263
|
-
variantLabel: string | null;
|
|
264
|
-
productHandle: string | null;
|
|
265
|
-
thumbnail: string | null;
|
|
266
|
-
variantSku: string | null;
|
|
267
|
-
compareAtUnitPrice: number | null;
|
|
268
|
-
}[];
|
|
269
|
-
shippingMethods: {
|
|
270
|
-
id: string;
|
|
271
|
-
name: string;
|
|
272
|
-
description: string | null;
|
|
273
|
-
sellerId: string | null;
|
|
274
|
-
locationId: string | null;
|
|
275
|
-
shippingMethodId: string | null;
|
|
276
|
-
rateId: string | null;
|
|
277
|
-
total: number;
|
|
278
|
-
estimatedDays: number | null;
|
|
279
|
-
pickupPointId: string | null;
|
|
280
|
-
scheduledDate: string | null;
|
|
281
|
-
scheduledTime: string | null;
|
|
282
|
-
serviceCode: string | null;
|
|
283
|
-
shippingProfileId: string | null;
|
|
284
|
-
}[];
|
|
285
|
-
totals: {
|
|
286
|
-
total: number;
|
|
287
|
-
subtotal: number;
|
|
288
|
-
discountTotal: number;
|
|
289
|
-
shippingOriginalTotal: number;
|
|
290
|
-
shippingTotal: number;
|
|
291
|
-
taxTotal: number;
|
|
292
|
-
warrantyTotal: number;
|
|
293
|
-
};
|
|
294
|
-
}>;
|
|
295
|
-
declare function getCart(api: Api, params: GetCartParams): Promise<{
|
|
296
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
297
|
-
id: string;
|
|
298
|
-
phone: string | null;
|
|
299
|
-
token: string;
|
|
300
|
-
cartNumber: string;
|
|
301
|
-
email: string | null;
|
|
302
|
-
firstName: string | null;
|
|
303
|
-
lastName: string | null;
|
|
304
|
-
currencyCode: string;
|
|
305
|
-
completedAt: string | null;
|
|
306
|
-
shippingAddress: {
|
|
307
|
-
name: string | null;
|
|
308
|
-
address1: string;
|
|
309
|
-
city: string;
|
|
310
|
-
countryCode: string;
|
|
311
|
-
company: string | null;
|
|
312
|
-
address2: string | null;
|
|
313
|
-
province: string | null;
|
|
314
|
-
postalCode: string | null;
|
|
315
|
-
district: string | null;
|
|
316
|
-
phone: string | null;
|
|
317
|
-
latitude: number | null;
|
|
318
|
-
longitude: number | null;
|
|
319
|
-
} | null;
|
|
320
|
-
billingAddress: {
|
|
321
|
-
name: string | null;
|
|
322
|
-
address1: string;
|
|
323
|
-
city: string;
|
|
324
|
-
countryCode: string;
|
|
325
|
-
company: string | null;
|
|
326
|
-
address2: string | null;
|
|
327
|
-
province: string | null;
|
|
328
|
-
postalCode: string | null;
|
|
329
|
-
district: string | null;
|
|
330
|
-
phone: string | null;
|
|
331
|
-
latitude: number | null;
|
|
332
|
-
longitude: number | null;
|
|
333
|
-
} | null;
|
|
334
|
-
promotionCodes: string[];
|
|
335
|
-
items: {
|
|
336
|
-
id: string;
|
|
337
|
-
productId: string | null;
|
|
338
|
-
quantity: number;
|
|
339
|
-
variantId: string | null;
|
|
340
|
-
unitPrice: number;
|
|
341
|
-
bundleItems: {
|
|
342
|
-
imageUrl: string | null;
|
|
343
|
-
brand: string | null;
|
|
344
|
-
productId: string;
|
|
345
|
-
sku: string | null;
|
|
346
|
-
quantity: number;
|
|
347
|
-
variantId: string;
|
|
348
|
-
productName: string;
|
|
349
|
-
variantName: string | null;
|
|
350
|
-
}[];
|
|
351
|
-
title: string;
|
|
352
|
-
variantLabel: string | null;
|
|
353
|
-
productHandle: string | null;
|
|
354
|
-
thumbnail: string | null;
|
|
355
|
-
variantSku: string | null;
|
|
356
|
-
compareAtUnitPrice: number | null;
|
|
357
|
-
}[];
|
|
358
|
-
shippingMethods: {
|
|
359
|
-
id: string;
|
|
360
|
-
name: string;
|
|
361
|
-
description: string | null;
|
|
362
|
-
sellerId: string | null;
|
|
363
|
-
locationId: string | null;
|
|
364
|
-
shippingMethodId: string | null;
|
|
365
|
-
rateId: string | null;
|
|
366
|
-
total: number;
|
|
367
|
-
estimatedDays: number | null;
|
|
368
|
-
pickupPointId: string | null;
|
|
369
|
-
scheduledDate: string | null;
|
|
370
|
-
scheduledTime: string | null;
|
|
371
|
-
serviceCode: string | null;
|
|
372
|
-
shippingProfileId: string | null;
|
|
373
|
-
}[];
|
|
374
|
-
totals: {
|
|
375
|
-
total: number;
|
|
376
|
-
subtotal: number;
|
|
377
|
-
discountTotal: number;
|
|
378
|
-
shippingOriginalTotal: number;
|
|
379
|
-
shippingTotal: number;
|
|
380
|
-
taxTotal: number;
|
|
381
|
-
warrantyTotal: number;
|
|
382
|
-
};
|
|
383
|
-
}>;
|
|
384
|
-
declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
|
|
385
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
386
|
-
id: string;
|
|
387
|
-
phone: string | null;
|
|
388
|
-
token: string;
|
|
389
|
-
cartNumber: string;
|
|
390
|
-
email: string | null;
|
|
391
|
-
firstName: string | null;
|
|
392
|
-
lastName: string | null;
|
|
393
|
-
currencyCode: string;
|
|
394
|
-
completedAt: string | null;
|
|
395
|
-
shippingAddress: {
|
|
396
|
-
name: string | null;
|
|
397
|
-
address1: string;
|
|
398
|
-
city: string;
|
|
399
|
-
countryCode: string;
|
|
400
|
-
company: string | null;
|
|
401
|
-
address2: string | null;
|
|
402
|
-
province: string | null;
|
|
403
|
-
postalCode: string | null;
|
|
404
|
-
district: string | null;
|
|
405
|
-
phone: string | null;
|
|
406
|
-
latitude: number | null;
|
|
407
|
-
longitude: number | null;
|
|
408
|
-
} | null;
|
|
409
|
-
billingAddress: {
|
|
410
|
-
name: string | null;
|
|
411
|
-
address1: string;
|
|
412
|
-
city: string;
|
|
413
|
-
countryCode: string;
|
|
414
|
-
company: string | null;
|
|
415
|
-
address2: string | null;
|
|
416
|
-
province: string | null;
|
|
417
|
-
postalCode: string | null;
|
|
418
|
-
district: string | null;
|
|
419
|
-
phone: string | null;
|
|
420
|
-
latitude: number | null;
|
|
421
|
-
longitude: number | null;
|
|
422
|
-
} | null;
|
|
423
|
-
promotionCodes: string[];
|
|
424
|
-
items: {
|
|
425
|
-
id: string;
|
|
426
|
-
productId: string | null;
|
|
427
|
-
quantity: number;
|
|
428
|
-
variantId: string | null;
|
|
429
|
-
unitPrice: number;
|
|
430
|
-
bundleItems: {
|
|
431
|
-
imageUrl: string | null;
|
|
432
|
-
brand: string | null;
|
|
433
|
-
productId: string;
|
|
434
|
-
sku: string | null;
|
|
435
|
-
quantity: number;
|
|
436
|
-
variantId: string;
|
|
437
|
-
productName: string;
|
|
438
|
-
variantName: string | null;
|
|
439
|
-
}[];
|
|
440
|
-
title: string;
|
|
441
|
-
variantLabel: string | null;
|
|
442
|
-
productHandle: string | null;
|
|
443
|
-
thumbnail: string | null;
|
|
444
|
-
variantSku: string | null;
|
|
445
|
-
compareAtUnitPrice: number | null;
|
|
446
|
-
}[];
|
|
447
|
-
shippingMethods: {
|
|
448
|
-
id: string;
|
|
449
|
-
name: string;
|
|
450
|
-
description: string | null;
|
|
451
|
-
sellerId: string | null;
|
|
452
|
-
locationId: string | null;
|
|
453
|
-
shippingMethodId: string | null;
|
|
454
|
-
rateId: string | null;
|
|
455
|
-
total: number;
|
|
456
|
-
estimatedDays: number | null;
|
|
457
|
-
pickupPointId: string | null;
|
|
458
|
-
scheduledDate: string | null;
|
|
459
|
-
scheduledTime: string | null;
|
|
460
|
-
serviceCode: string | null;
|
|
461
|
-
shippingProfileId: string | null;
|
|
462
|
-
}[];
|
|
463
|
-
totals: {
|
|
464
|
-
total: number;
|
|
465
|
-
subtotal: number;
|
|
466
|
-
discountTotal: number;
|
|
467
|
-
shippingOriginalTotal: number;
|
|
468
|
-
shippingTotal: number;
|
|
469
|
-
taxTotal: number;
|
|
470
|
-
warrantyTotal: number;
|
|
471
|
-
};
|
|
472
|
-
}>;
|
|
473
|
-
declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantityParams): Promise<{
|
|
474
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
475
|
-
id: string;
|
|
476
|
-
phone: string | null;
|
|
477
|
-
token: string;
|
|
478
|
-
cartNumber: string;
|
|
479
|
-
email: string | null;
|
|
480
|
-
firstName: string | null;
|
|
481
|
-
lastName: string | null;
|
|
482
|
-
currencyCode: string;
|
|
483
|
-
completedAt: string | null;
|
|
484
|
-
shippingAddress: {
|
|
485
|
-
name: string | null;
|
|
486
|
-
address1: string;
|
|
487
|
-
city: string;
|
|
488
|
-
countryCode: string;
|
|
489
|
-
company: string | null;
|
|
490
|
-
address2: string | null;
|
|
491
|
-
province: string | null;
|
|
492
|
-
postalCode: string | null;
|
|
493
|
-
district: string | null;
|
|
494
|
-
phone: string | null;
|
|
495
|
-
latitude: number | null;
|
|
496
|
-
longitude: number | null;
|
|
497
|
-
} | null;
|
|
498
|
-
billingAddress: {
|
|
499
|
-
name: string | null;
|
|
500
|
-
address1: string;
|
|
501
|
-
city: string;
|
|
502
|
-
countryCode: string;
|
|
503
|
-
company: string | null;
|
|
504
|
-
address2: string | null;
|
|
505
|
-
province: string | null;
|
|
506
|
-
postalCode: string | null;
|
|
507
|
-
district: string | null;
|
|
508
|
-
phone: string | null;
|
|
509
|
-
latitude: number | null;
|
|
510
|
-
longitude: number | null;
|
|
511
|
-
} | null;
|
|
512
|
-
promotionCodes: string[];
|
|
513
|
-
items: {
|
|
514
|
-
id: string;
|
|
515
|
-
productId: string | null;
|
|
516
|
-
quantity: number;
|
|
517
|
-
variantId: string | null;
|
|
518
|
-
unitPrice: number;
|
|
519
|
-
bundleItems: {
|
|
520
|
-
imageUrl: string | null;
|
|
521
|
-
brand: string | null;
|
|
522
|
-
productId: string;
|
|
523
|
-
sku: string | null;
|
|
524
|
-
quantity: number;
|
|
525
|
-
variantId: string;
|
|
526
|
-
productName: string;
|
|
527
|
-
variantName: string | null;
|
|
528
|
-
}[];
|
|
529
|
-
title: string;
|
|
530
|
-
variantLabel: string | null;
|
|
531
|
-
productHandle: string | null;
|
|
532
|
-
thumbnail: string | null;
|
|
533
|
-
variantSku: string | null;
|
|
534
|
-
compareAtUnitPrice: number | null;
|
|
535
|
-
}[];
|
|
536
|
-
shippingMethods: {
|
|
537
|
-
id: string;
|
|
538
|
-
name: string;
|
|
539
|
-
description: string | null;
|
|
540
|
-
sellerId: string | null;
|
|
541
|
-
locationId: string | null;
|
|
542
|
-
shippingMethodId: string | null;
|
|
543
|
-
rateId: string | null;
|
|
544
|
-
total: number;
|
|
545
|
-
estimatedDays: number | null;
|
|
546
|
-
pickupPointId: string | null;
|
|
547
|
-
scheduledDate: string | null;
|
|
548
|
-
scheduledTime: string | null;
|
|
549
|
-
serviceCode: string | null;
|
|
550
|
-
shippingProfileId: string | null;
|
|
551
|
-
}[];
|
|
552
|
-
totals: {
|
|
553
|
-
total: number;
|
|
554
|
-
subtotal: number;
|
|
555
|
-
discountTotal: number;
|
|
556
|
-
shippingOriginalTotal: number;
|
|
557
|
-
shippingTotal: number;
|
|
558
|
-
taxTotal: number;
|
|
559
|
-
warrantyTotal: number;
|
|
560
|
-
};
|
|
561
|
-
}>;
|
|
562
|
-
declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise<{
|
|
563
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
564
|
-
id: string;
|
|
565
|
-
phone: string | null;
|
|
566
|
-
token: string;
|
|
567
|
-
cartNumber: string;
|
|
568
|
-
email: string | null;
|
|
569
|
-
firstName: string | null;
|
|
570
|
-
lastName: string | null;
|
|
571
|
-
currencyCode: string;
|
|
572
|
-
completedAt: string | null;
|
|
573
|
-
shippingAddress: {
|
|
574
|
-
name: string | null;
|
|
575
|
-
address1: string;
|
|
576
|
-
city: string;
|
|
577
|
-
countryCode: string;
|
|
578
|
-
company: string | null;
|
|
579
|
-
address2: string | null;
|
|
580
|
-
province: string | null;
|
|
581
|
-
postalCode: string | null;
|
|
582
|
-
district: string | null;
|
|
583
|
-
phone: string | null;
|
|
584
|
-
latitude: number | null;
|
|
585
|
-
longitude: number | null;
|
|
586
|
-
} | null;
|
|
587
|
-
billingAddress: {
|
|
588
|
-
name: string | null;
|
|
589
|
-
address1: string;
|
|
590
|
-
city: string;
|
|
591
|
-
countryCode: string;
|
|
592
|
-
company: string | null;
|
|
593
|
-
address2: string | null;
|
|
594
|
-
province: string | null;
|
|
595
|
-
postalCode: string | null;
|
|
596
|
-
district: string | null;
|
|
597
|
-
phone: string | null;
|
|
598
|
-
latitude: number | null;
|
|
599
|
-
longitude: number | null;
|
|
600
|
-
} | null;
|
|
601
|
-
promotionCodes: string[];
|
|
602
|
-
items: {
|
|
603
|
-
id: string;
|
|
604
|
-
productId: string | null;
|
|
605
|
-
quantity: number;
|
|
606
|
-
variantId: string | null;
|
|
607
|
-
unitPrice: number;
|
|
608
|
-
bundleItems: {
|
|
609
|
-
imageUrl: string | null;
|
|
610
|
-
brand: string | null;
|
|
611
|
-
productId: string;
|
|
612
|
-
sku: string | null;
|
|
613
|
-
quantity: number;
|
|
614
|
-
variantId: string;
|
|
615
|
-
productName: string;
|
|
616
|
-
variantName: string | null;
|
|
617
|
-
}[];
|
|
618
|
-
title: string;
|
|
619
|
-
variantLabel: string | null;
|
|
620
|
-
productHandle: string | null;
|
|
621
|
-
thumbnail: string | null;
|
|
622
|
-
variantSku: string | null;
|
|
623
|
-
compareAtUnitPrice: number | null;
|
|
624
|
-
}[];
|
|
625
|
-
shippingMethods: {
|
|
626
|
-
id: string;
|
|
627
|
-
name: string;
|
|
628
|
-
description: string | null;
|
|
629
|
-
sellerId: string | null;
|
|
630
|
-
locationId: string | null;
|
|
631
|
-
shippingMethodId: string | null;
|
|
632
|
-
rateId: string | null;
|
|
633
|
-
total: number;
|
|
634
|
-
estimatedDays: number | null;
|
|
635
|
-
pickupPointId: string | null;
|
|
636
|
-
scheduledDate: string | null;
|
|
637
|
-
scheduledTime: string | null;
|
|
638
|
-
serviceCode: string | null;
|
|
639
|
-
shippingProfileId: string | null;
|
|
640
|
-
}[];
|
|
641
|
-
totals: {
|
|
642
|
-
total: number;
|
|
643
|
-
subtotal: number;
|
|
644
|
-
discountTotal: number;
|
|
645
|
-
shippingOriginalTotal: number;
|
|
646
|
-
shippingTotal: number;
|
|
647
|
-
taxTotal: number;
|
|
648
|
-
warrantyTotal: number;
|
|
649
|
-
};
|
|
650
|
-
}>;
|
|
651
|
-
|
|
652
|
-
/** GET /v1/carts/{cartToken}/checkout */
|
|
653
|
-
declare function getCartCheckout(api: Api, params: CartCheckoutReadParams): Promise<CartCheckoutReadResponse>;
|
|
654
|
-
/** GET /v1/carts/{cartToken}/shipping-options?postalCode= */
|
|
655
|
-
declare function getShippingOptions(api: Api, params: GetShippingOptionsParams): Promise<ShippingOptionsResponse>;
|
|
656
|
-
/** PUT /v1/carts/{cartToken}/shipping-method */
|
|
657
|
-
declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams): Promise<{
|
|
658
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
659
|
-
id: string;
|
|
660
|
-
phone: string | null;
|
|
661
|
-
token: string;
|
|
662
|
-
cartNumber: string;
|
|
663
|
-
email: string | null;
|
|
664
|
-
firstName: string | null;
|
|
665
|
-
lastName: string | null;
|
|
666
|
-
currencyCode: string;
|
|
667
|
-
completedAt: string | null;
|
|
668
|
-
shippingAddress: {
|
|
669
|
-
name: string | null;
|
|
670
|
-
address1: string;
|
|
671
|
-
city: string;
|
|
672
|
-
countryCode: string;
|
|
673
|
-
company: string | null;
|
|
674
|
-
address2: string | null;
|
|
675
|
-
province: string | null;
|
|
676
|
-
postalCode: string | null;
|
|
677
|
-
district: string | null;
|
|
678
|
-
phone: string | null;
|
|
679
|
-
latitude: number | null;
|
|
680
|
-
longitude: number | null;
|
|
681
|
-
} | null;
|
|
682
|
-
billingAddress: {
|
|
683
|
-
name: string | null;
|
|
684
|
-
address1: string;
|
|
685
|
-
city: string;
|
|
686
|
-
countryCode: string;
|
|
687
|
-
company: string | null;
|
|
688
|
-
address2: string | null;
|
|
689
|
-
province: string | null;
|
|
690
|
-
postalCode: string | null;
|
|
691
|
-
district: string | null;
|
|
692
|
-
phone: string | null;
|
|
693
|
-
latitude: number | null;
|
|
694
|
-
longitude: number | null;
|
|
695
|
-
} | null;
|
|
696
|
-
promotionCodes: string[];
|
|
697
|
-
items: {
|
|
698
|
-
id: string;
|
|
699
|
-
productId: string | null;
|
|
700
|
-
quantity: number;
|
|
701
|
-
variantId: string | null;
|
|
702
|
-
unitPrice: number;
|
|
703
|
-
bundleItems: {
|
|
704
|
-
imageUrl: string | null;
|
|
705
|
-
brand: string | null;
|
|
706
|
-
productId: string;
|
|
707
|
-
sku: string | null;
|
|
708
|
-
quantity: number;
|
|
709
|
-
variantId: string;
|
|
710
|
-
productName: string;
|
|
711
|
-
variantName: string | null;
|
|
712
|
-
}[];
|
|
713
|
-
title: string;
|
|
714
|
-
variantLabel: string | null;
|
|
715
|
-
productHandle: string | null;
|
|
716
|
-
thumbnail: string | null;
|
|
717
|
-
variantSku: string | null;
|
|
718
|
-
compareAtUnitPrice: number | null;
|
|
719
|
-
}[];
|
|
720
|
-
shippingMethods: {
|
|
721
|
-
id: string;
|
|
722
|
-
name: string;
|
|
723
|
-
description: string | null;
|
|
724
|
-
sellerId: string | null;
|
|
725
|
-
locationId: string | null;
|
|
726
|
-
shippingMethodId: string | null;
|
|
727
|
-
rateId: string | null;
|
|
728
|
-
total: number;
|
|
729
|
-
estimatedDays: number | null;
|
|
730
|
-
pickupPointId: string | null;
|
|
731
|
-
scheduledDate: string | null;
|
|
732
|
-
scheduledTime: string | null;
|
|
733
|
-
serviceCode: string | null;
|
|
734
|
-
shippingProfileId: string | null;
|
|
735
|
-
}[];
|
|
736
|
-
totals: {
|
|
737
|
-
total: number;
|
|
738
|
-
subtotal: number;
|
|
739
|
-
discountTotal: number;
|
|
740
|
-
shippingOriginalTotal: number;
|
|
741
|
-
shippingTotal: number;
|
|
742
|
-
taxTotal: number;
|
|
743
|
-
warrantyTotal: number;
|
|
744
|
-
};
|
|
745
|
-
}>;
|
|
746
|
-
/** PATCH /v1/carts/{cartToken}/buyer */
|
|
747
|
-
declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
|
|
748
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
749
|
-
id: string;
|
|
750
|
-
phone: string | null;
|
|
751
|
-
token: string;
|
|
752
|
-
cartNumber: string;
|
|
753
|
-
email: string | null;
|
|
754
|
-
firstName: string | null;
|
|
755
|
-
lastName: string | null;
|
|
756
|
-
currencyCode: string;
|
|
757
|
-
completedAt: string | null;
|
|
758
|
-
shippingAddress: {
|
|
759
|
-
name: string | null;
|
|
760
|
-
address1: string;
|
|
761
|
-
city: string;
|
|
762
|
-
countryCode: string;
|
|
763
|
-
company: string | null;
|
|
764
|
-
address2: string | null;
|
|
765
|
-
province: string | null;
|
|
766
|
-
postalCode: string | null;
|
|
767
|
-
district: string | null;
|
|
768
|
-
phone: string | null;
|
|
769
|
-
latitude: number | null;
|
|
770
|
-
longitude: number | null;
|
|
771
|
-
} | null;
|
|
772
|
-
billingAddress: {
|
|
773
|
-
name: string | null;
|
|
774
|
-
address1: string;
|
|
775
|
-
city: string;
|
|
776
|
-
countryCode: string;
|
|
777
|
-
company: string | null;
|
|
778
|
-
address2: string | null;
|
|
779
|
-
province: string | null;
|
|
780
|
-
postalCode: string | null;
|
|
781
|
-
district: string | null;
|
|
782
|
-
phone: string | null;
|
|
783
|
-
latitude: number | null;
|
|
784
|
-
longitude: number | null;
|
|
785
|
-
} | null;
|
|
786
|
-
promotionCodes: string[];
|
|
787
|
-
items: {
|
|
788
|
-
id: string;
|
|
789
|
-
productId: string | null;
|
|
790
|
-
quantity: number;
|
|
791
|
-
variantId: string | null;
|
|
792
|
-
unitPrice: number;
|
|
793
|
-
bundleItems: {
|
|
794
|
-
imageUrl: string | null;
|
|
795
|
-
brand: string | null;
|
|
796
|
-
productId: string;
|
|
797
|
-
sku: string | null;
|
|
798
|
-
quantity: number;
|
|
799
|
-
variantId: string;
|
|
800
|
-
productName: string;
|
|
801
|
-
variantName: string | null;
|
|
802
|
-
}[];
|
|
803
|
-
title: string;
|
|
804
|
-
variantLabel: string | null;
|
|
805
|
-
productHandle: string | null;
|
|
806
|
-
thumbnail: string | null;
|
|
807
|
-
variantSku: string | null;
|
|
808
|
-
compareAtUnitPrice: number | null;
|
|
809
|
-
}[];
|
|
810
|
-
shippingMethods: {
|
|
811
|
-
id: string;
|
|
812
|
-
name: string;
|
|
813
|
-
description: string | null;
|
|
814
|
-
sellerId: string | null;
|
|
815
|
-
locationId: string | null;
|
|
816
|
-
shippingMethodId: string | null;
|
|
817
|
-
rateId: string | null;
|
|
818
|
-
total: number;
|
|
819
|
-
estimatedDays: number | null;
|
|
820
|
-
pickupPointId: string | null;
|
|
821
|
-
scheduledDate: string | null;
|
|
822
|
-
scheduledTime: string | null;
|
|
823
|
-
serviceCode: string | null;
|
|
824
|
-
shippingProfileId: string | null;
|
|
825
|
-
}[];
|
|
826
|
-
totals: {
|
|
827
|
-
total: number;
|
|
828
|
-
subtotal: number;
|
|
829
|
-
discountTotal: number;
|
|
830
|
-
shippingOriginalTotal: number;
|
|
831
|
-
shippingTotal: number;
|
|
832
|
-
taxTotal: number;
|
|
833
|
-
warrantyTotal: number;
|
|
834
|
-
};
|
|
835
|
-
}>;
|
|
836
|
-
/** PATCH /v1/carts/{cartToken}/addresses */
|
|
837
|
-
declare function patchCartAddresses(api: Api, params: CartAddressesParams): Promise<{
|
|
838
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
839
|
-
id: string;
|
|
840
|
-
phone: string | null;
|
|
841
|
-
token: string;
|
|
842
|
-
cartNumber: string;
|
|
843
|
-
email: string | null;
|
|
844
|
-
firstName: string | null;
|
|
845
|
-
lastName: string | null;
|
|
846
|
-
currencyCode: string;
|
|
847
|
-
completedAt: string | null;
|
|
848
|
-
shippingAddress: {
|
|
849
|
-
name: string | null;
|
|
850
|
-
address1: string;
|
|
851
|
-
city: string;
|
|
852
|
-
countryCode: string;
|
|
853
|
-
company: string | null;
|
|
854
|
-
address2: string | null;
|
|
855
|
-
province: string | null;
|
|
856
|
-
postalCode: string | null;
|
|
857
|
-
district: string | null;
|
|
858
|
-
phone: string | null;
|
|
859
|
-
latitude: number | null;
|
|
860
|
-
longitude: number | null;
|
|
861
|
-
} | null;
|
|
862
|
-
billingAddress: {
|
|
863
|
-
name: string | null;
|
|
864
|
-
address1: string;
|
|
865
|
-
city: string;
|
|
866
|
-
countryCode: string;
|
|
867
|
-
company: string | null;
|
|
868
|
-
address2: string | null;
|
|
869
|
-
province: string | null;
|
|
870
|
-
postalCode: string | null;
|
|
871
|
-
district: string | null;
|
|
872
|
-
phone: string | null;
|
|
873
|
-
latitude: number | null;
|
|
874
|
-
longitude: number | null;
|
|
875
|
-
} | null;
|
|
876
|
-
promotionCodes: string[];
|
|
877
|
-
items: {
|
|
878
|
-
id: string;
|
|
879
|
-
productId: string | null;
|
|
880
|
-
quantity: number;
|
|
881
|
-
variantId: string | null;
|
|
882
|
-
unitPrice: number;
|
|
883
|
-
bundleItems: {
|
|
884
|
-
imageUrl: string | null;
|
|
885
|
-
brand: string | null;
|
|
886
|
-
productId: string;
|
|
887
|
-
sku: string | null;
|
|
888
|
-
quantity: number;
|
|
889
|
-
variantId: string;
|
|
890
|
-
productName: string;
|
|
891
|
-
variantName: string | null;
|
|
892
|
-
}[];
|
|
893
|
-
title: string;
|
|
894
|
-
variantLabel: string | null;
|
|
895
|
-
productHandle: string | null;
|
|
896
|
-
thumbnail: string | null;
|
|
897
|
-
variantSku: string | null;
|
|
898
|
-
compareAtUnitPrice: number | null;
|
|
899
|
-
}[];
|
|
900
|
-
shippingMethods: {
|
|
901
|
-
id: string;
|
|
902
|
-
name: string;
|
|
903
|
-
description: string | null;
|
|
904
|
-
sellerId: string | null;
|
|
905
|
-
locationId: string | null;
|
|
906
|
-
shippingMethodId: string | null;
|
|
907
|
-
rateId: string | null;
|
|
908
|
-
total: number;
|
|
909
|
-
estimatedDays: number | null;
|
|
910
|
-
pickupPointId: string | null;
|
|
911
|
-
scheduledDate: string | null;
|
|
912
|
-
scheduledTime: string | null;
|
|
913
|
-
serviceCode: string | null;
|
|
914
|
-
shippingProfileId: string | null;
|
|
915
|
-
}[];
|
|
916
|
-
totals: {
|
|
917
|
-
total: number;
|
|
918
|
-
subtotal: number;
|
|
919
|
-
discountTotal: number;
|
|
920
|
-
shippingOriginalTotal: number;
|
|
921
|
-
shippingTotal: number;
|
|
922
|
-
taxTotal: number;
|
|
923
|
-
warrantyTotal: number;
|
|
924
|
-
};
|
|
925
|
-
}>;
|
|
926
|
-
/** POST /v1/carts/{cartToken}/checkout */
|
|
927
|
-
declare function checkoutCart(api: Api, params: CartCheckoutParams): Promise<CartCheckoutResponse>;
|
|
928
|
-
/** POST /v1/carts/{cartToken}/payment-receipt (multipart) */
|
|
929
|
-
declare function uploadPaymentReceipt(api: Api, params: UploadPaymentReceiptParams): Promise<CartPaymentReceiptResponse>;
|
|
930
|
-
/** POST /v1/carts/{cartToken}/promotion-codes */
|
|
931
|
-
declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
|
|
932
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
933
|
-
id: string;
|
|
934
|
-
phone: string | null;
|
|
935
|
-
token: string;
|
|
936
|
-
cartNumber: string;
|
|
937
|
-
email: string | null;
|
|
938
|
-
firstName: string | null;
|
|
939
|
-
lastName: string | null;
|
|
940
|
-
currencyCode: string;
|
|
941
|
-
completedAt: string | null;
|
|
942
|
-
shippingAddress: {
|
|
943
|
-
name: string | null;
|
|
944
|
-
address1: string;
|
|
945
|
-
city: string;
|
|
946
|
-
countryCode: string;
|
|
947
|
-
company: string | null;
|
|
948
|
-
address2: string | null;
|
|
949
|
-
province: string | null;
|
|
950
|
-
postalCode: string | null;
|
|
951
|
-
district: string | null;
|
|
952
|
-
phone: string | null;
|
|
953
|
-
latitude: number | null;
|
|
954
|
-
longitude: number | null;
|
|
955
|
-
} | null;
|
|
956
|
-
billingAddress: {
|
|
957
|
-
name: string | null;
|
|
958
|
-
address1: string;
|
|
959
|
-
city: string;
|
|
960
|
-
countryCode: string;
|
|
961
|
-
company: string | null;
|
|
962
|
-
address2: string | null;
|
|
963
|
-
province: string | null;
|
|
964
|
-
postalCode: string | null;
|
|
965
|
-
district: string | null;
|
|
966
|
-
phone: string | null;
|
|
967
|
-
latitude: number | null;
|
|
968
|
-
longitude: number | null;
|
|
969
|
-
} | null;
|
|
970
|
-
promotionCodes: string[];
|
|
971
|
-
items: {
|
|
972
|
-
id: string;
|
|
973
|
-
productId: string | null;
|
|
974
|
-
quantity: number;
|
|
975
|
-
variantId: string | null;
|
|
976
|
-
unitPrice: number;
|
|
977
|
-
bundleItems: {
|
|
978
|
-
imageUrl: string | null;
|
|
979
|
-
brand: string | null;
|
|
980
|
-
productId: string;
|
|
981
|
-
sku: string | null;
|
|
982
|
-
quantity: number;
|
|
983
|
-
variantId: string;
|
|
984
|
-
productName: string;
|
|
985
|
-
variantName: string | null;
|
|
986
|
-
}[];
|
|
987
|
-
title: string;
|
|
988
|
-
variantLabel: string | null;
|
|
989
|
-
productHandle: string | null;
|
|
990
|
-
thumbnail: string | null;
|
|
991
|
-
variantSku: string | null;
|
|
992
|
-
compareAtUnitPrice: number | null;
|
|
993
|
-
}[];
|
|
994
|
-
shippingMethods: {
|
|
995
|
-
id: string;
|
|
996
|
-
name: string;
|
|
997
|
-
description: string | null;
|
|
998
|
-
sellerId: string | null;
|
|
999
|
-
locationId: string | null;
|
|
1000
|
-
shippingMethodId: string | null;
|
|
1001
|
-
rateId: string | null;
|
|
1002
|
-
total: number;
|
|
1003
|
-
estimatedDays: number | null;
|
|
1004
|
-
pickupPointId: string | null;
|
|
1005
|
-
scheduledDate: string | null;
|
|
1006
|
-
scheduledTime: string | null;
|
|
1007
|
-
serviceCode: string | null;
|
|
1008
|
-
shippingProfileId: string | null;
|
|
1009
|
-
}[];
|
|
1010
|
-
totals: {
|
|
1011
|
-
total: number;
|
|
1012
|
-
subtotal: number;
|
|
1013
|
-
discountTotal: number;
|
|
1014
|
-
shippingOriginalTotal: number;
|
|
1015
|
-
shippingTotal: number;
|
|
1016
|
-
taxTotal: number;
|
|
1017
|
-
warrantyTotal: number;
|
|
1018
|
-
};
|
|
1019
|
-
}>;
|
|
1020
|
-
/** DELETE /v1/carts/{cartToken}/promotion-codes/{code} */
|
|
1021
|
-
declare function removeCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
|
|
1022
|
-
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
1023
|
-
id: string;
|
|
1024
|
-
phone: string | null;
|
|
1025
|
-
token: string;
|
|
1026
|
-
cartNumber: string;
|
|
1027
|
-
email: string | null;
|
|
1028
|
-
firstName: string | null;
|
|
1029
|
-
lastName: string | null;
|
|
1030
|
-
currencyCode: string;
|
|
1031
|
-
completedAt: string | null;
|
|
1032
|
-
shippingAddress: {
|
|
1033
|
-
name: string | null;
|
|
1034
|
-
address1: string;
|
|
1035
|
-
city: string;
|
|
1036
|
-
countryCode: string;
|
|
1037
|
-
company: string | null;
|
|
1038
|
-
address2: string | null;
|
|
1039
|
-
province: string | null;
|
|
1040
|
-
postalCode: string | null;
|
|
1041
|
-
district: string | null;
|
|
1042
|
-
phone: string | null;
|
|
1043
|
-
latitude: number | null;
|
|
1044
|
-
longitude: number | null;
|
|
1045
|
-
} | null;
|
|
1046
|
-
billingAddress: {
|
|
1047
|
-
name: string | null;
|
|
1048
|
-
address1: string;
|
|
1049
|
-
city: string;
|
|
1050
|
-
countryCode: string;
|
|
1051
|
-
company: string | null;
|
|
1052
|
-
address2: string | null;
|
|
1053
|
-
province: string | null;
|
|
1054
|
-
postalCode: string | null;
|
|
1055
|
-
district: string | null;
|
|
1056
|
-
phone: string | null;
|
|
1057
|
-
latitude: number | null;
|
|
1058
|
-
longitude: number | null;
|
|
1059
|
-
} | null;
|
|
1060
|
-
promotionCodes: string[];
|
|
1061
|
-
items: {
|
|
1062
|
-
id: string;
|
|
1063
|
-
productId: string | null;
|
|
1064
|
-
quantity: number;
|
|
1065
|
-
variantId: string | null;
|
|
1066
|
-
unitPrice: number;
|
|
1067
|
-
bundleItems: {
|
|
1068
|
-
imageUrl: string | null;
|
|
1069
|
-
brand: string | null;
|
|
1070
|
-
productId: string;
|
|
1071
|
-
sku: string | null;
|
|
1072
|
-
quantity: number;
|
|
1073
|
-
variantId: string;
|
|
1074
|
-
productName: string;
|
|
1075
|
-
variantName: string | null;
|
|
1076
|
-
}[];
|
|
1077
|
-
title: string;
|
|
1078
|
-
variantLabel: string | null;
|
|
1079
|
-
productHandle: string | null;
|
|
1080
|
-
thumbnail: string | null;
|
|
1081
|
-
variantSku: string | null;
|
|
1082
|
-
compareAtUnitPrice: number | null;
|
|
1083
|
-
}[];
|
|
1084
|
-
shippingMethods: {
|
|
1085
|
-
id: string;
|
|
1086
|
-
name: string;
|
|
1087
|
-
description: string | null;
|
|
1088
|
-
sellerId: string | null;
|
|
1089
|
-
locationId: string | null;
|
|
1090
|
-
shippingMethodId: string | null;
|
|
1091
|
-
rateId: string | null;
|
|
1092
|
-
total: number;
|
|
1093
|
-
estimatedDays: number | null;
|
|
1094
|
-
pickupPointId: string | null;
|
|
1095
|
-
scheduledDate: string | null;
|
|
1096
|
-
scheduledTime: string | null;
|
|
1097
|
-
serviceCode: string | null;
|
|
1098
|
-
shippingProfileId: string | null;
|
|
1099
|
-
}[];
|
|
1100
|
-
totals: {
|
|
1101
|
-
total: number;
|
|
1102
|
-
subtotal: number;
|
|
1103
|
-
discountTotal: number;
|
|
1104
|
-
shippingOriginalTotal: number;
|
|
1105
|
-
shippingTotal: number;
|
|
1106
|
-
taxTotal: number;
|
|
1107
|
-
warrantyTotal: number;
|
|
1108
|
-
};
|
|
1109
|
-
}>;
|
|
1110
|
-
|
|
1111
|
-
/** GET /v1/geo/countries */
|
|
1112
|
-
declare function getCountries(api: Api): Promise<Countries>;
|
|
1113
|
-
/** GET /v1/geo/departments?countryCode=&source=&search=&limit= */
|
|
1114
|
-
declare function getDepartments(api: Api, params: GetDepartmentsParams): Promise<Departments>;
|
|
1115
|
-
/** GET /v1/geo/provinces?countryCode=&departmentCode=&source=&search=&limit= */
|
|
1116
|
-
declare function getProvinces(api: Api, params: GetProvincesParams): Promise<Provinces>;
|
|
1117
|
-
/** GET /v1/geo/districts?countryCode=&provinceCode=&source=&search=&limit= */
|
|
1118
|
-
declare function getDistricts(api: Api, params: GetDistrictsParams): Promise<Districts>;
|
|
1119
|
-
|
|
1120
|
-
/** GET /v1/pages/{slug} */
|
|
1121
|
-
declare function getPageBySlug(api: Api, pageSlug: string): Promise<CmsPageDetailsDto>;
|
|
1122
|
-
|
|
1123
|
-
declare function sanitizeHtml(html: string): string;
|
|
1124
|
-
/** Convierte HTML en texto plano (metadata, JSON-LD). */
|
|
1125
|
-
declare function stripHtml(html: string): string;
|
|
1126
|
-
|
|
1127
|
-
export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, CmsPageDetailsDto, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
|
|
1
|
+
import { Api, ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from "./api.cjs";
|
|
2
|
+
import { GraphQLError, GraphQLRequestOptions, GraphQLResponseError, GraphQLVariables } from "./libs/graphql.cjs";
|
|
3
|
+
import { graphQLSelection } from "./libs/graphql-selection.cjs";
|
|
4
|
+
import { CreateClientOptions, StorefrontClient, createClient } from "./client.cjs";
|
|
5
|
+
import { StorefrontLayout } from "./services/layout.service.cjs";
|
|
6
|
+
import { CartToken, CartTokenSchema, EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from "./models/ids.cjs";
|
|
7
|
+
import { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, getMenuItems } from "./models/settings.cjs";
|
|
8
|
+
import { catalogLinkKey } from "./libs/catalog-link-key.cjs";
|
|
9
|
+
import { Collection, CollectionSchema, Collections, CollectionsSchema } from "./models/collections.cjs";
|
|
10
|
+
import { CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema } from "./models/categories.cjs";
|
|
11
|
+
import { SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, UrlResolution, UrlResolutionOptions, UrlResolutionSchema } from "./models/urls.cjs";
|
|
12
|
+
import { CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, catalogLinkCandidates, isCatalogLinkCandidate, readCatalogLink } from "./models/catalog-links.cjs";
|
|
13
|
+
import { StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema } from "./models/payment-methods.cjs";
|
|
14
|
+
import { Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, ListArticlesParams, ListArticlesParamsSchema } from "./models/articles.cjs";
|
|
15
|
+
import { BundleItem, BundleItemSchema, FacetItem, FacetItemSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParams, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, VariantItem, VariantItemSchema } from "./models/products.cjs";
|
|
16
|
+
import { ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from "./models/search.cjs";
|
|
17
|
+
import { AddCartItemParams, AddCartItemParamsSchema, CartItemModifierSchema, CartShippingMethodTypeSchema, CreateCartParams, CreateCartParamsSchema, GetCartParams, GetCartParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema } from "./models/storefront-cart.cjs";
|
|
18
|
+
import { CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, PaymentBankAccount, PaymentBankAccountSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, UploadPaymentReceiptParams } from "./models/storefront-checkout.cjs";
|
|
19
|
+
import { CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema } from "./models/storefront-reviews.cjs";
|
|
20
|
+
import { Countries, CountriesSchema, Country, CountrySchema, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, Province, ProvinceSchema, Provinces, ProvincesSchema } from "./models/geo.cjs";
|
|
21
|
+
import { SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema } from "./models/sellers.cjs";
|
|
22
|
+
import { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from "./models/customer-address.cjs";
|
|
23
|
+
import { CustomerMe, CustomerMeSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, customerMeToProfile, customerMeToProfilePatch, customerProfileToPatch } from "./models/customer-profile.cjs";
|
|
24
|
+
import { CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema } from "./models/customer-session.cjs";
|
|
25
|
+
import { CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema } from "./models/customer-registration.cjs";
|
|
26
|
+
import { completeCustomerRegistration, getCustomerRegistration } from "./services/customer-registration.service.cjs";
|
|
27
|
+
import { CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, OrderStep, OrderStepSchema, customerOrderStatusTone, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime } from "./models/customer-order.cjs";
|
|
28
|
+
import { getProductBySlug, getProducts, getRelatedProducts } from "./services/product.service.cjs";
|
|
29
|
+
import { autocompleteProducts } from "./services/search.service.cjs";
|
|
30
|
+
import { createProductReview, listProductReviews } from "./services/review.service.cjs";
|
|
31
|
+
import { addCartItem, createCart, getCart, removeCartItem, updateCartItemQuantity } from "./services/cart.service.cjs";
|
|
32
|
+
import { getPaymentMethods } from "./services/payment-method.service.cjs";
|
|
33
|
+
import { addCartPromotionCode, checkoutCart, getCartCheckout, getShippingOptions, patchCartAddresses, patchCartBuyer, putCartPaymentMethod, putCartShippingMethod, removeCartPromotionCode, uploadPaymentReceipt } from "./services/checkout.service.cjs";
|
|
34
|
+
import { getCountries, getDepartments, getDistricts, getProvinces } from "./services/geo.service.cjs";
|
|
35
|
+
import { getSellerBySlug, getSellers } from "./services/seller.service.cjs";
|
|
36
|
+
import { CustomerAddressCreated, CustomerAddressCreatedSchema, CustomerAddressRequestOptions, createCustomerAddress, deleteCustomerAddress, getCustomerAddresses, updateCustomerAddress } from "./services/customer-address.service.cjs";
|
|
37
|
+
import { CustomerRequestOptions, getCustomerMe, patchCustomer } from "./services/customer.service.cjs";
|
|
38
|
+
import { CustomerOrderCancellationInput, CustomerOrderListOptions, CustomerOrderRequestOptions, CustomerOrderReturnInput, CustomerOrderStatusFilter, getCustomerOrder, getCustomerOrders, requestCustomerOrderCancellation, requestCustomerOrderReturn } from "./services/customer-order.service.cjs";
|
|
39
|
+
import { PublicOrderTracking, PublicOrderTrackingSchema, ShipmentTrackingEventSchema, TRACKING_STATUS_LABELS, formatTrackingStatus } from "./models/tracking.cjs";
|
|
40
|
+
import { TrackingRequestOptions, getOrderTracking } from "./services/tracking.service.cjs";
|
|
41
|
+
import { OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema } from "./models/order-review.cjs";
|
|
42
|
+
import { OrderReviewRequestOptions, getOrderReviewContext } from "./services/order-review.service.cjs";
|
|
43
|
+
import { AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderStatusView, OrderStatusViewSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentPublicConfigurationSchema } from "./models/order-status.cjs";
|
|
44
|
+
import { StartOrderPaymentInput, UploadOrderPaymentReceiptInput, authenticateOrderPayment, getOrderStatus, startOrderPayment, uploadOrderPaymentReceipt } from "./services/order-status.service.cjs";
|
|
45
|
+
import { OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema } from "./models/order-draft.cjs";
|
|
46
|
+
import { checkoutOrderDraft, getOrderDraft } from "./services/order-draft.service.cjs";
|
|
47
|
+
import { COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema } from "./models/complaint-book.cjs";
|
|
48
|
+
import { createComplaintBookEntry, getComplaintBook } from "./services/complaint-book.service.cjs";
|
|
49
|
+
import { getPageBySlug } from "./services/page.service.cjs";
|
|
50
|
+
import { getArticleBySlug, listArticles } from "./services/article.service.cjs";
|
|
51
|
+
import { sanitizeHtml, stripHtml } from "./utils.cjs";
|
|
52
|
+
import { EmbeddedVideo, embeddedVideo } from "./video-links.cjs";
|
|
53
|
+
export { AddCartItemParams, AddCartItemParamsSchema, type Api, ApiError, Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, BundleItem, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartItemModifierSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartToken, CartTokenSchema, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, Collection, CollectionSchema, Collections, CollectionsSchema, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, Countries, CountriesSchema, Country, CountrySchema, type CreateApiOptions, CreateCartParams, CreateCartParamsSchema, type CreateClientOptions, CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, CustomerAddress, type CustomerAddressCreated, CustomerAddressCreatedSchema, type CustomerAddressRequestOptions, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerMe, CustomerMeSchema, type CustomerOrderCancellationInput, CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, type CustomerOrderListOptions, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, type CustomerOrderRequestOptions, type CustomerOrderReturnInput, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, type CustomerOrderStatusFilter, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema, type CustomerRequestOptions, CustomerSavedAddress, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, EmbeddedVideo, EntityId, EntityIdSchema, FacetItem, FacetItemSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetCartParams, GetCartParamsSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, type GraphQLError, type GraphQLRequestOptions, GraphQLResponseError, type GraphQLVariables, JsonElement, JsonElementSchema, ListArticlesParams, ListArticlesParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema, type OrderReviewRequestOptions, OrderStatusView, OrderStatusViewSchema, OrderStep, OrderStepSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentBankAccount, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, Province, ProvinceSchema, Provinces, ProvincesSchema, PublicOrderTracking, PublicOrderTrackingSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, RelatedProductsParams, RelatedProductsParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilter, SearchFilterSchema, SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, type StartOrderPaymentInput, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, type StorefrontClient, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, type StorefrontLayout, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, type TrackingRequestOptions, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema, type UploadOrderPaymentReceiptInput, UploadPaymentReceiptParams, UrlResolution, UrlResolutionOptions, UrlResolutionSchema, VariantItem, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, listArticles, listProductReviews, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };
|