@cimplify/sdk 0.22.4 → 0.23.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/dist/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +21 -21
- package/dist/advanced.mjs +2 -2
- package/dist/{chunk-JD3ZHI4S.mjs → chunk-3GSXQNWV.mjs} +2 -2
- package/dist/{chunk-WX54U6Y2.mjs → chunk-BYQPMSH2.mjs} +1 -1
- package/dist/{chunk-64OCG2TJ.js → chunk-KRNWMUBN.js} +38 -4
- package/dist/{chunk-JFT63H34.mjs → chunk-OANVYH27.mjs} +36 -5
- package/dist/{chunk-RRO6ZDZI.js → chunk-RAKLT6J2.js} +39 -39
- package/dist/{chunk-4M2D57C3.js → chunk-TXQHTHY5.js} +20 -20
- package/dist/index-BodyCOun.d.mts +70 -0
- package/dist/{index-uvCOGdBp.d.ts → index-CJZMsbDi.d.ts} +1 -1
- package/dist/{index-v1NFqZFG.d.mts → index-DIHoZUz_.d.mts} +1 -1
- package/dist/index-IH1wOTmD.d.ts +70 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +110 -98
- package/dist/index.mjs +3 -3
- package/dist/{payment-DazihbCY.d.mts → payment-DqiwuLma.d.mts} +9 -1
- package/dist/{payment-DazihbCY.d.ts → payment-DqiwuLma.d.ts} +9 -1
- package/dist/{price-5_L8WK6Q.d.ts → price-BZlddg1A.d.ts} +1 -1
- package/dist/{price-BcHVTqqu.d.mts → price-DVQrpE7j.d.mts} +1 -1
- package/dist/react.d.mts +30 -4
- package/dist/react.d.ts +30 -4
- package/dist/react.js +300 -169
- package/dist/react.mjs +240 -111
- package/dist/styles.css +1 -1
- package/dist/utils.d.mts +4 -64
- package/dist/utils.d.ts +4 -64
- package/dist/utils.js +28 -28
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/registry/product-customizer.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRAKLT6J2_js = require('./chunk-RAKLT6J2.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkTXQHTHY5_js = require('./chunk-TXQHTHY5.js');
|
|
6
|
+
var chunkKRNWMUBN_js = require('./chunk-KRNWMUBN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ActivityService", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkRAKLT6J2_js.ActivityService; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkRAKLT6J2_js.CimplifyClient; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DeliveryService", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkRAKLT6J2_js.DeliveryService; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkRAKLT6J2_js.createCimplifyClient; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkRAKLT6J2_js.getVariantDisplayName; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
31
31
|
enumerable: true,
|
|
@@ -41,361 +41,373 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkTXQHTHY5_js.AUTHORIZATION_TYPE; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkTXQHTHY5_js.AUTH_MUTATION; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "AuthService", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkTXQHTHY5_js.AuthService; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "BusinessService", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkTXQHTHY5_js.BusinessService; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkTXQHTHY5_js.CHECKOUT_MODE; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkTXQHTHY5_js.CHECKOUT_MUTATION; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkTXQHTHY5_js.CHECKOUT_STEP; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkTXQHTHY5_js.CONTACT_TYPE; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "CartOperations", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkTXQHTHY5_js.CartOperations; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkTXQHTHY5_js.CatalogueQueries; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkTXQHTHY5_js.CheckoutService; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "CheckoutService", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkTXQHTHY5_js.CheckoutService; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkTXQHTHY5_js.CimplifyElement; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkTXQHTHY5_js.CimplifyElements; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkTXQHTHY5_js.DEFAULT_COUNTRY; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkTXQHTHY5_js.DEFAULT_CURRENCY; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkTXQHTHY5_js.DEVICE_TYPE; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkTXQHTHY5_js.ELEMENT_TYPES; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkTXQHTHY5_js.EVENT_TYPES; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "FxService", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkTXQHTHY5_js.FxService; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "InventoryService", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkTXQHTHY5_js.InventoryService; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkTXQHTHY5_js.LINK_MUTATION; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkTXQHTHY5_js.LINK_QUERY; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "LinkService", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkTXQHTHY5_js.LinkService; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "LiteService", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkTXQHTHY5_js.LiteService; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkTXQHTHY5_js.MESSAGE_TYPES; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkTXQHTHY5_js.MOBILE_MONEY_PROVIDER; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkTXQHTHY5_js.ORDER_MUTATION; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkTXQHTHY5_js.ORDER_TYPE; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "OrderQueries", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkTXQHTHY5_js.OrderQueries; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkTXQHTHY5_js.PAYMENT_METHOD; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkTXQHTHY5_js.PAYMENT_MUTATION; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkTXQHTHY5_js.PAYMENT_STATE; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkTXQHTHY5_js.PICKUP_TIME_TYPE; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "SchedulingService", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkTXQHTHY5_js.SchedulingService; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "combine", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkTXQHTHY5_js.combine; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "combineObject", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkTXQHTHY5_js.combineObject; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "createElements", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkTXQHTHY5_js.createElements; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "err", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkTXQHTHY5_js.err; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "flatMap", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkTXQHTHY5_js.flatMap; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "fromPromise", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkTXQHTHY5_js.fromPromise; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkTXQHTHY5_js.generateIdempotencyKey; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "getOrElse", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkTXQHTHY5_js.getOrElse; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "isErr", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkTXQHTHY5_js.isErr; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "isOk", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkTXQHTHY5_js.isOk; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "mapError", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkTXQHTHY5_js.mapError; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "mapResult", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkTXQHTHY5_js.mapResult; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "ok", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkTXQHTHY5_js.ok; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "toNullable", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkTXQHTHY5_js.toNullable; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "tryCatch", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkTXQHTHY5_js.tryCatch; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "unwrap", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkTXQHTHY5_js.unwrap; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkKRNWMUBN_js.CURRENCY_SYMBOLS; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "CimplifyError", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkKRNWMUBN_js.CimplifyError; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "ERROR_HINTS", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkKRNWMUBN_js.ERROR_HINTS; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "ErrorCode", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkKRNWMUBN_js.ErrorCode; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkKRNWMUBN_js.MOBILE_MONEY_PROVIDERS; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "ZERO", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkKRNWMUBN_js.ZERO; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "categorizePaymentError", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkKRNWMUBN_js.categorizePaymentError; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "currencyCode", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkKRNWMUBN_js.currencyCode; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkKRNWMUBN_js.detectMobileMoneyProvider; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "enrichError", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkKRNWMUBN_js.enrichError; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "formatMoney", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkKRNWMUBN_js.formatMoney; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkKRNWMUBN_js.formatNumberCompact; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "formatPrice", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkKRNWMUBN_js.formatPrice; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkKRNWMUBN_js.formatPriceAdjustment; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkKRNWMUBN_js.formatPriceCompact; }
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, "formatPriceRange", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () { return chunkKRNWMUBN_js.formatPriceRange; }
|
|
305
309
|
});
|
|
306
310
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
307
311
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkKRNWMUBN_js.formatPriceWithTax; }
|
|
309
313
|
});
|
|
310
314
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
311
315
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkKRNWMUBN_js.formatProductPrice; }
|
|
313
317
|
});
|
|
314
318
|
Object.defineProperty(exports, "getBasePrice", {
|
|
315
319
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkKRNWMUBN_js.getBasePrice; }
|
|
317
321
|
});
|
|
318
322
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
319
323
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkKRNWMUBN_js.getCurrencySymbol; }
|
|
321
325
|
});
|
|
322
326
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
323
327
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkKRNWMUBN_js.getDiscountPercentage; }
|
|
325
329
|
});
|
|
326
330
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
327
331
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkKRNWMUBN_js.getDisplayPrice; }
|
|
329
333
|
});
|
|
330
334
|
Object.defineProperty(exports, "getErrorHint", {
|
|
331
335
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkKRNWMUBN_js.getErrorHint; }
|
|
333
337
|
});
|
|
334
338
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
335
339
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkKRNWMUBN_js.getMarkupPercentage; }
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(exports, "getPriceRange", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function () { return chunkKRNWMUBN_js.getPriceRange; }
|
|
337
345
|
});
|
|
338
346
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
339
347
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkKRNWMUBN_js.getProductCurrency; }
|
|
341
349
|
});
|
|
342
350
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
343
351
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkKRNWMUBN_js.getTaxAmount; }
|
|
353
|
+
});
|
|
354
|
+
Object.defineProperty(exports, "getUnitPriceAtQuantity", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function () { return chunkKRNWMUBN_js.getUnitPriceAtQuantity; }
|
|
345
357
|
});
|
|
346
358
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
347
359
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkKRNWMUBN_js.hasTaxInfo; }
|
|
349
361
|
});
|
|
350
362
|
Object.defineProperty(exports, "isCimplifyError", {
|
|
351
363
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkKRNWMUBN_js.isCimplifyError; }
|
|
353
365
|
});
|
|
354
366
|
Object.defineProperty(exports, "isOnSale", {
|
|
355
367
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkKRNWMUBN_js.isOnSale; }
|
|
357
369
|
});
|
|
358
370
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
359
371
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkKRNWMUBN_js.isPaymentStatusFailure; }
|
|
361
373
|
});
|
|
362
374
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
363
375
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkKRNWMUBN_js.isPaymentStatusRequiresAction; }
|
|
365
377
|
});
|
|
366
378
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
367
379
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkKRNWMUBN_js.isPaymentStatusSuccess; }
|
|
369
381
|
});
|
|
370
382
|
Object.defineProperty(exports, "isRetryableError", {
|
|
371
383
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkKRNWMUBN_js.isRetryableError; }
|
|
373
385
|
});
|
|
374
386
|
Object.defineProperty(exports, "isSupportedCurrency", {
|
|
375
387
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkKRNWMUBN_js.isSupportedCurrency; }
|
|
377
389
|
});
|
|
378
390
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
379
391
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkKRNWMUBN_js.isTaxInclusive; }
|
|
381
393
|
});
|
|
382
394
|
Object.defineProperty(exports, "money", {
|
|
383
395
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkKRNWMUBN_js.money; }
|
|
385
397
|
});
|
|
386
398
|
Object.defineProperty(exports, "moneyFromNumber", {
|
|
387
399
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkKRNWMUBN_js.moneyFromNumber; }
|
|
389
401
|
});
|
|
390
402
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
391
403
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkKRNWMUBN_js.normalizePaymentResponse; }
|
|
393
405
|
});
|
|
394
406
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
395
407
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkKRNWMUBN_js.normalizeStatusResponse; }
|
|
397
409
|
});
|
|
398
410
|
Object.defineProperty(exports, "parsePrice", {
|
|
399
411
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkKRNWMUBN_js.parsePrice; }
|
|
401
413
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivityService, CimplifyClient, DeliveryService, createCimplifyClient, getVariantDisplayName } from './chunk-
|
|
1
|
+
export { ActivityService, CimplifyClient, DeliveryService, createCimplifyClient, getVariantDisplayName } from './chunk-3GSXQNWV.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-
|
|
4
|
-
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-
|
|
3
|
+
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-BYQPMSH2.mjs';
|
|
4
|
+
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-OANVYH27.mjs';
|
|
@@ -545,6 +545,7 @@ interface AddToCartInput {
|
|
|
545
545
|
scheduled_end?: string;
|
|
546
546
|
staff_id?: string;
|
|
547
547
|
resource_id?: string;
|
|
548
|
+
billing_plan_id?: string;
|
|
548
549
|
}
|
|
549
550
|
interface UpdateCartItemInput {
|
|
550
551
|
quantity?: number;
|
|
@@ -802,9 +803,16 @@ interface Product {
|
|
|
802
803
|
custom_attributes?: CustomAttributeValue[];
|
|
803
804
|
properties?: ProductProperty[];
|
|
804
805
|
billing_plans?: ProductBillingPlan[];
|
|
806
|
+
quantity_pricing?: QuantityPricingTier[];
|
|
807
|
+
min_order_quantity?: number;
|
|
805
808
|
upsells?: RelatedProductView[];
|
|
806
809
|
cross_sells?: RelatedProductView[];
|
|
807
810
|
}
|
|
811
|
+
interface QuantityPricingTier {
|
|
812
|
+
min_quantity: number;
|
|
813
|
+
max_quantity?: number;
|
|
814
|
+
unit_price: Money;
|
|
815
|
+
}
|
|
808
816
|
interface RelatedProductView {
|
|
809
817
|
product_id: string;
|
|
810
818
|
name: string;
|
|
@@ -1424,4 +1432,4 @@ interface SubmitAuthorizationInput {
|
|
|
1424
1432
|
value: string;
|
|
1425
1433
|
}
|
|
1426
1434
|
|
|
1427
|
-
export { type
|
|
1435
|
+
export { type VariantLocationAvailability as $, type ApiError as A, type PropertySource as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type ProductProperty as F, type PropertyFacet as G, type FacetValue as H, type InventoryType as I, type Product as J, type KnowledgeArticle as K, type ProductWithDetails as L, type Money as M, type VariantView as N, type ProductVariant as O, type PaginationParams as P, type QuantityPricingTier as Q, type RelatedProductView as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type VariantDisplayAttribute as U, type VariantStrategy as V, type VariantAxis as W, type VariantAxisWithValues as X, type VariantAxisValue as Y, ZERO as Z, type ProductVariantValue as _, type CurrencyCode as a, type CartAddOn as a$, type VariantAxisSelection as a0, type AddOn as a1, type AddOnWithOptions as a2, type AddOnOption as a3, type AddOnOptionPrice as a4, type ProductAddOn as a5, type Category as a6, type CategorySummary as a7, type Collection as a8, type CollectionSummary as a9, type Price as aA, type LocationProductPrice as aB, type ProductAvailability as aC, type ProductTimeProfile as aD, type ProductTaxonomy as aE, type TaxonomyWithChildren as aF, type ProductAvailabilityNow as aG, type DealBenefitType as aH, type Deal as aI, type ProductDealInfo as aJ, type DiscountValidation as aK, type Tag as aL, type TagsResponse as aM, type CartStatus as aN, type CartChannel as aO, type PriceSource as aP, type AdjustmentType as aQ, type PriceAdjustment as aR, type TaxPathComponent as aS, type PricePathTaxInfo as aT, type PriceDecisionPath as aU, type BenefitType as aV, type AppliedDiscount as aW, type DiscountBreakdown as aX, type DiscountDetails as aY, type SelectedAddOnOption as aZ, type AddOnDetails as a_, type CollectionProduct as aa, type BundlePriceType as ab, type Bundle as ac, type BundleSummary as ad, type BundleProduct as ae, type BundleWithDetails as af, type BundleComponentData as ag, type BundleComponentInfo as ah, type BundleComponentView as ai, type BundleComponentVariantView as aj, type VariantAxisView as ak, type VariantAxisValueView as al, type CompositePricingMode as am, type GroupPricingBehavior as an, type ComponentSourceType as ao, type Composite as ap, type CompositeWithDetails as aq, type ComponentGroup as ar, type ComponentGroupWithComponents as as, type CompositeGroupView as at, type CompositeComponentView as au, type CompositeComponent as av, type ComponentSelectionInput as aw, type CompositePriceResult as ax, type ComponentPriceBreakdown as ay, type PriceEntryType as az, moneyFromNumber as b, type VariantDetails as b0, type BundleSelectionInput as b1, type ComponentSchedulingData as b2, type BundleStoredSelection as b3, type BundleSelectionData as b4, type CompositeStoredSelection as b5, type CompositePriceBreakdown as b6, type CompositeSelectionData as b7, type LineConfiguration as b8, type Cart as b9, type Payment as bA, type InitializePaymentResult as bB, type PaymentResponse as bC, type PaymentStatusResponse as bD, type PaymentErrorDetails as bE, type SubmitAuthorizationInput as bF, type BillingFrequency as bG, type BillingPlanType as bH, type BillingMarkupType as bI, type ProductBillingPlan as bJ, type EligiblePlansQuery as bK, type FormattedPlanOption as bL, type CartItem as ba, type CartTotals as bb, type DisplayCart as bc, type DisplayCartItem as bd, type DisplayAddOn as be, type DisplayAddOnOption as bf, type UICartBusiness as bg, type UICartLocation as bh, type UICartCustomer as bi, type UICartPricing as bj, type AddOnOptionDetails as bk, type AddOnGroupDetails as bl, type VariantDetailsDTO as bm, type CartItemDetails as bn, type UICart as bo, type UICartResponse as bp, type AddToCartInput as bq, type UpdateCartItemInput as br, type CartSummary as bs, type PaymentStatus as bt, type PaymentProvider as bu, type PaymentMethodType as bv, type AddressAuthorizationData as bw, type AuthorizationType as bx, type PaymentProcessingState as by, type PaymentMethod as bz, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, getErrorHint as k, enrichError as l, money as m, isRetryableError as n, type ProductType as o, type ProductRenderHint as p, type DigitalProductType as q, type DepositType as r, type DurationUnit as s, type AttributeType as t, type AttributeAppliesTo as u, type AttributeVisibility as v, type MeasurementValue as w, type AttributeValidationRules as x, type CustomAttributeDefinition as y, type CustomAttributeValue as z };
|
|
@@ -545,6 +545,7 @@ interface AddToCartInput {
|
|
|
545
545
|
scheduled_end?: string;
|
|
546
546
|
staff_id?: string;
|
|
547
547
|
resource_id?: string;
|
|
548
|
+
billing_plan_id?: string;
|
|
548
549
|
}
|
|
549
550
|
interface UpdateCartItemInput {
|
|
550
551
|
quantity?: number;
|
|
@@ -802,9 +803,16 @@ interface Product {
|
|
|
802
803
|
custom_attributes?: CustomAttributeValue[];
|
|
803
804
|
properties?: ProductProperty[];
|
|
804
805
|
billing_plans?: ProductBillingPlan[];
|
|
806
|
+
quantity_pricing?: QuantityPricingTier[];
|
|
807
|
+
min_order_quantity?: number;
|
|
805
808
|
upsells?: RelatedProductView[];
|
|
806
809
|
cross_sells?: RelatedProductView[];
|
|
807
810
|
}
|
|
811
|
+
interface QuantityPricingTier {
|
|
812
|
+
min_quantity: number;
|
|
813
|
+
max_quantity?: number;
|
|
814
|
+
unit_price: Money;
|
|
815
|
+
}
|
|
808
816
|
interface RelatedProductView {
|
|
809
817
|
product_id: string;
|
|
810
818
|
name: string;
|
|
@@ -1424,4 +1432,4 @@ interface SubmitAuthorizationInput {
|
|
|
1424
1432
|
value: string;
|
|
1425
1433
|
}
|
|
1426
1434
|
|
|
1427
|
-
export { type
|
|
1435
|
+
export { type VariantLocationAvailability as $, type ApiError as A, type PropertySource as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type ProductProperty as F, type PropertyFacet as G, type FacetValue as H, type InventoryType as I, type Product as J, type KnowledgeArticle as K, type ProductWithDetails as L, type Money as M, type VariantView as N, type ProductVariant as O, type PaginationParams as P, type QuantityPricingTier as Q, type RelatedProductView as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type VariantDisplayAttribute as U, type VariantStrategy as V, type VariantAxis as W, type VariantAxisWithValues as X, type VariantAxisValue as Y, ZERO as Z, type ProductVariantValue as _, type CurrencyCode as a, type CartAddOn as a$, type VariantAxisSelection as a0, type AddOn as a1, type AddOnWithOptions as a2, type AddOnOption as a3, type AddOnOptionPrice as a4, type ProductAddOn as a5, type Category as a6, type CategorySummary as a7, type Collection as a8, type CollectionSummary as a9, type Price as aA, type LocationProductPrice as aB, type ProductAvailability as aC, type ProductTimeProfile as aD, type ProductTaxonomy as aE, type TaxonomyWithChildren as aF, type ProductAvailabilityNow as aG, type DealBenefitType as aH, type Deal as aI, type ProductDealInfo as aJ, type DiscountValidation as aK, type Tag as aL, type TagsResponse as aM, type CartStatus as aN, type CartChannel as aO, type PriceSource as aP, type AdjustmentType as aQ, type PriceAdjustment as aR, type TaxPathComponent as aS, type PricePathTaxInfo as aT, type PriceDecisionPath as aU, type BenefitType as aV, type AppliedDiscount as aW, type DiscountBreakdown as aX, type DiscountDetails as aY, type SelectedAddOnOption as aZ, type AddOnDetails as a_, type CollectionProduct as aa, type BundlePriceType as ab, type Bundle as ac, type BundleSummary as ad, type BundleProduct as ae, type BundleWithDetails as af, type BundleComponentData as ag, type BundleComponentInfo as ah, type BundleComponentView as ai, type BundleComponentVariantView as aj, type VariantAxisView as ak, type VariantAxisValueView as al, type CompositePricingMode as am, type GroupPricingBehavior as an, type ComponentSourceType as ao, type Composite as ap, type CompositeWithDetails as aq, type ComponentGroup as ar, type ComponentGroupWithComponents as as, type CompositeGroupView as at, type CompositeComponentView as au, type CompositeComponent as av, type ComponentSelectionInput as aw, type CompositePriceResult as ax, type ComponentPriceBreakdown as ay, type PriceEntryType as az, moneyFromNumber as b, type VariantDetails as b0, type BundleSelectionInput as b1, type ComponentSchedulingData as b2, type BundleStoredSelection as b3, type BundleSelectionData as b4, type CompositeStoredSelection as b5, type CompositePriceBreakdown as b6, type CompositeSelectionData as b7, type LineConfiguration as b8, type Cart as b9, type Payment as bA, type InitializePaymentResult as bB, type PaymentResponse as bC, type PaymentStatusResponse as bD, type PaymentErrorDetails as bE, type SubmitAuthorizationInput as bF, type BillingFrequency as bG, type BillingPlanType as bH, type BillingMarkupType as bI, type ProductBillingPlan as bJ, type EligiblePlansQuery as bK, type FormattedPlanOption as bL, type CartItem as ba, type CartTotals as bb, type DisplayCart as bc, type DisplayCartItem as bd, type DisplayAddOn as be, type DisplayAddOnOption as bf, type UICartBusiness as bg, type UICartLocation as bh, type UICartCustomer as bi, type UICartPricing as bj, type AddOnOptionDetails as bk, type AddOnGroupDetails as bl, type VariantDetailsDTO as bm, type CartItemDetails as bn, type UICart as bo, type UICartResponse as bp, type AddToCartInput as bq, type UpdateCartItemInput as br, type CartSummary as bs, type PaymentStatus as bt, type PaymentProvider as bu, type PaymentMethodType as bv, type AddressAuthorizationData as bw, type AuthorizationType as bx, type PaymentProcessingState as by, type PaymentMethod as bz, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, getErrorHint as k, enrichError as l, money as m, isRetryableError as n, type ProductType as o, type ProductRenderHint as p, type DigitalProductType as q, type DepositType as r, type DurationUnit as s, type AttributeType as t, type AttributeAppliesTo as u, type AttributeVisibility as v, type MeasurementValue as w, type AttributeValidationRules as x, type CustomAttributeDefinition as y, type CustomAttributeValue as z };
|