@cimplify/sdk 0.100.6 → 0.102.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 +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-QPRI2NII.js → chunk-2P4KXFB6.js} +6 -0
- package/dist/{chunk-4G5UWFC3.mjs → chunk-3V4DVXV3.mjs} +6 -1
- package/dist/{chunk-KLJLKT6C.mjs → chunk-4KNFBPV2.mjs} +10 -3
- package/dist/{chunk-RQPXLXB2.mjs → chunk-DCMXUKDQ.mjs} +30 -0
- package/dist/{chunk-BMFWQNYZ.mjs → chunk-DKLHCZ5M.mjs} +4 -1
- package/dist/{chunk-PNTINRAU.js → chunk-EAZGA7LD.js} +30 -0
- package/dist/{chunk-BSZJSR62.js → chunk-LOWSMGRT.js} +12 -4
- package/dist/{chunk-D3FWJB7Y.js → chunk-YDA46OZ6.js} +50 -47
- package/dist/{chunk-3HU5I5VG.js → chunk-YER7DIOM.js} +15 -0
- package/dist/{chunk-Z7M6GAHS.mjs → chunk-Z3K2D3TE.mjs} +15 -0
- package/dist/{client-BwRAAk4y.d.mts → client-B40KFazg.d.ts} +15 -2
- package/dist/{client-DGrvLiJv.d.mts → client-BdErclfU.d.mts} +2 -2
- package/dist/{client-CrPglBBz.d.ts → client-BizGfqB7.d.mts} +15 -2
- package/dist/{client-CPcZIrjC.d.ts → client-nsiMwuC1.d.ts} +2 -2
- package/dist/{index-D-LUYk1Y.d.mts → index-DpmnI__D.d.mts} +3 -3
- package/dist/{index-B_RYmvlF.d.ts → index-nEyXWIyR.d.ts} +3 -3
- package/dist/index.d.mts +19 -8
- package/dist/index.d.ts +19 -8
- package/dist/index.js +92 -88
- package/dist/index.mjs +4 -4
- package/dist/mock/cli.mjs +30 -0
- package/dist/mock/library.js +30 -0
- package/dist/mock/library.mjs +30 -0
- package/dist/mock/msw.js +30 -0
- package/dist/mock/msw.mjs +30 -0
- package/dist/{payment-BSzy7sly.d.mts → payment-l0rkieEQ.d.mts} +1 -1
- package/dist/{payment-jK8ztICx.d.ts → payment-vzNnIi1n.d.ts} +1 -1
- package/dist/{price-CJLfcYKd.d.ts → price-BstChV9a.d.ts} +1 -1
- package/dist/{price-D96h6c6L.d.mts → price-CS4E5zLS.d.mts} +1 -1
- package/dist/{product-CeV8euw4.d.mts → product-Byf0unSy.d.mts} +745 -625
- package/dist/{product-CeV8euw4.d.ts → product-Byf0unSy.d.ts} +745 -625
- package/dist/react.d.mts +9 -4
- package/dist/react.d.ts +9 -4
- package/dist/react.js +137 -92
- package/dist/react.mjs +58 -13
- package/dist/server/evict.d.mts +12 -8
- package/dist/server/evict.d.ts +12 -8
- package/dist/server/evict.js +53 -7
- package/dist/server/evict.mjs +53 -7
- package/dist/server/tanstack.d.mts +4 -2
- package/dist/server/tanstack.d.ts +4 -2
- package/dist/server/tanstack.js +53 -14
- package/dist/server/tanstack.mjs +53 -14
- package/dist/{server-zyrpzJVn.d.ts → server-Cj40R2ZD.d.ts} +13 -1
- package/dist/{server-DRAW2OOX.d.mts → server-DqbZh8Bk.d.mts} +13 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +52 -21
- package/dist/testing.d.ts +52 -21
- package/dist/testing.js +83 -79
- package/dist/testing.mjs +5 -5
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
- package/registry/cart-summary.json +1 -1
- package/registry/chat-widget.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2P4KXFB6_js = require('./chunk-2P4KXFB6.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkYDA46OZ6_js = require('./chunk-YDA46OZ6.js');
|
|
6
|
+
var chunkYER7DIOM_js = require('./chunk-YER7DIOM.js');
|
|
7
7
|
var chunkWMEC5JWN_js = require('./chunk-WMEC5JWN.js');
|
|
8
8
|
var chunkNIOUSKQQ_js = require('./chunk-NIOUSKQQ.js');
|
|
9
9
|
require('./chunk-OWW5GUSB.js');
|
|
@@ -27,9 +27,9 @@ async function signInSilent(opts) {
|
|
|
27
27
|
} catch {
|
|
28
28
|
}
|
|
29
29
|
const callbackUri = opts.callbackUri ?? "/auth/callback";
|
|
30
|
-
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await
|
|
31
|
-
const pkce = await
|
|
32
|
-
const state =
|
|
30
|
+
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkYER7DIOM_js.getAuthorizationEndpoint(opts.issuer ?? chunkYER7DIOM_js.DEFAULT_ISSUER);
|
|
31
|
+
const pkce = await chunkYER7DIOM_js.generatePkce();
|
|
32
|
+
const state = chunkYER7DIOM_js.generateState();
|
|
33
33
|
const params = new URLSearchParams({
|
|
34
34
|
response_type: RESPONSE_TYPE_CODE,
|
|
35
35
|
response_mode: RESPONSE_MODE_WEB_MESSAGE,
|
|
@@ -99,75 +99,79 @@ async function signInSilent(opts) {
|
|
|
99
99
|
|
|
100
100
|
Object.defineProperty(exports, "BOUNDARY_KIND", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2P4KXFB6_js.BOUNDARY_KIND; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "CIMPLIFY_CDN_HOSTS", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2P4KXFB6_js.CIMPLIFY_CDN_HOSTS; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "DEFAULT_CDN_BASE_URL", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk2P4KXFB6_js.DEFAULT_CDN_BASE_URL; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk2P4KXFB6_js.DURATION_UNIT; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk2P4KXFB6_js.INPUT_FIELD_TYPE; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk2P4KXFB6_js.PRODUCT_TYPE; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "RENDER_HINT", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk2P4KXFB6_js.RENDER_HINT; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "allGalleryImages", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk2P4KXFB6_js.allGalleryImages; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "assetUrl", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk2P4KXFB6_js.assetUrl; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "chatMessageCards", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk2P4KXFB6_js.chatMessageCards; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "displaysGrossPrices", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunk2P4KXFB6_js.displaysGrossPrices; }
|
|
139
143
|
});
|
|
140
144
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
141
145
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2P4KXFB6_js.getVariantDisplayName; }
|
|
143
147
|
});
|
|
144
148
|
Object.defineProperty(exports, "isCimplifyAsset", {
|
|
145
149
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2P4KXFB6_js.isCimplifyAsset; }
|
|
147
151
|
});
|
|
148
152
|
Object.defineProperty(exports, "isMultiDayService", {
|
|
149
153
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2P4KXFB6_js.isMultiDayService; }
|
|
151
155
|
});
|
|
152
156
|
Object.defineProperty(exports, "priceBasisLabel", {
|
|
153
157
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk2P4KXFB6_js.priceBasisLabel; }
|
|
155
159
|
});
|
|
156
160
|
Object.defineProperty(exports, "resolveGallery", {
|
|
157
161
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk2P4KXFB6_js.resolveGallery; }
|
|
159
163
|
});
|
|
160
164
|
Object.defineProperty(exports, "serviceBillingMultiplier", {
|
|
161
165
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk2P4KXFB6_js.serviceBillingMultiplier; }
|
|
163
167
|
});
|
|
164
168
|
Object.defineProperty(exports, "stayLength", {
|
|
165
169
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk2P4KXFB6_js.stayLength; }
|
|
167
171
|
});
|
|
168
172
|
Object.defineProperty(exports, "stayPeriods", {
|
|
169
173
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk2P4KXFB6_js.stayPeriods; }
|
|
171
175
|
});
|
|
172
176
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
173
177
|
enumerable: true,
|
|
@@ -183,259 +187,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
183
187
|
});
|
|
184
188
|
Object.defineProperty(exports, "ActivityService", {
|
|
185
189
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkYDA46OZ6_js.ActivityService; }
|
|
187
191
|
});
|
|
188
192
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
189
193
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkYDA46OZ6_js.CimplifyClient; }
|
|
191
195
|
});
|
|
192
196
|
Object.defineProperty(exports, "DeliveryService", {
|
|
193
197
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkYDA46OZ6_js.DeliveryService; }
|
|
195
199
|
});
|
|
196
200
|
Object.defineProperty(exports, "PlacesService", {
|
|
197
201
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkYDA46OZ6_js.PlacesService; }
|
|
199
203
|
});
|
|
200
204
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
201
205
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkYDA46OZ6_js.StoreCreditQueries; }
|
|
203
207
|
});
|
|
204
208
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
205
209
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkYDA46OZ6_js.SubscriptionService; }
|
|
207
211
|
});
|
|
208
212
|
Object.defineProperty(exports, "SupportService", {
|
|
209
213
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkYDA46OZ6_js.SupportService; }
|
|
211
215
|
});
|
|
212
216
|
Object.defineProperty(exports, "UploadService", {
|
|
213
217
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkYDA46OZ6_js.UploadService; }
|
|
215
219
|
});
|
|
216
220
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
217
221
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkYDA46OZ6_js.createCimplifyClient; }
|
|
219
223
|
});
|
|
220
224
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
221
225
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkYER7DIOM_js.AUTHORIZATION_TYPE; }
|
|
223
227
|
});
|
|
224
228
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
225
229
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkYER7DIOM_js.AUTH_MUTATION; }
|
|
227
231
|
});
|
|
228
232
|
Object.defineProperty(exports, "AuthService", {
|
|
229
233
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkYER7DIOM_js.AuthService; }
|
|
231
235
|
});
|
|
232
236
|
Object.defineProperty(exports, "BusinessService", {
|
|
233
237
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkYER7DIOM_js.BusinessService; }
|
|
235
239
|
});
|
|
236
240
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
237
241
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkYER7DIOM_js.CHECKOUT_MODE; }
|
|
239
243
|
});
|
|
240
244
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
241
245
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkYER7DIOM_js.CHECKOUT_MUTATION; }
|
|
243
247
|
});
|
|
244
248
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
245
249
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkYER7DIOM_js.CHECKOUT_STEP; }
|
|
247
251
|
});
|
|
248
252
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
249
253
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkYER7DIOM_js.CONTACT_TYPE; }
|
|
251
255
|
});
|
|
252
256
|
Object.defineProperty(exports, "CartOperations", {
|
|
253
257
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkYER7DIOM_js.CartOperations; }
|
|
255
259
|
});
|
|
256
260
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
257
261
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkYER7DIOM_js.CatalogueQueries; }
|
|
259
263
|
});
|
|
260
264
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
261
265
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkYER7DIOM_js.CheckoutService; }
|
|
263
267
|
});
|
|
264
268
|
Object.defineProperty(exports, "CheckoutService", {
|
|
265
269
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkYER7DIOM_js.CheckoutService; }
|
|
267
271
|
});
|
|
268
272
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
269
273
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkYER7DIOM_js.CimplifyElement; }
|
|
271
275
|
});
|
|
272
276
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
273
277
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkYER7DIOM_js.CimplifyElements; }
|
|
275
279
|
});
|
|
276
280
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
277
281
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkYER7DIOM_js.DEFAULT_COUNTRY; }
|
|
279
283
|
});
|
|
280
284
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
281
285
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkYER7DIOM_js.DEFAULT_CURRENCY; }
|
|
283
287
|
});
|
|
284
288
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
285
289
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkYER7DIOM_js.DEVICE_TYPE; }
|
|
287
291
|
});
|
|
288
292
|
Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
|
|
289
293
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkYER7DIOM_js.ELEMENTS_AUTH_CONTACT_TYPES; }
|
|
291
295
|
});
|
|
292
296
|
Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
|
|
293
297
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkYER7DIOM_js.ELEMENTS_AUTH_MODES; }
|
|
295
299
|
});
|
|
296
300
|
Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
|
|
297
301
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkYER7DIOM_js.ELEMENTS_AUTH_PROMPTS; }
|
|
299
303
|
});
|
|
300
304
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
301
305
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkYER7DIOM_js.ELEMENT_TYPES; }
|
|
303
307
|
});
|
|
304
308
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
305
309
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkYER7DIOM_js.EVENT_TYPES; }
|
|
307
311
|
});
|
|
308
312
|
Object.defineProperty(exports, "FxService", {
|
|
309
313
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkYER7DIOM_js.FxService; }
|
|
311
315
|
});
|
|
312
316
|
Object.defineProperty(exports, "InventoryService", {
|
|
313
317
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkYER7DIOM_js.InventoryService; }
|
|
315
319
|
});
|
|
316
320
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
317
321
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkYER7DIOM_js.LINK_MUTATION; }
|
|
319
323
|
});
|
|
320
324
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
321
325
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkYER7DIOM_js.LINK_QUERY; }
|
|
323
327
|
});
|
|
324
328
|
Object.defineProperty(exports, "LinkService", {
|
|
325
329
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkYER7DIOM_js.LinkService; }
|
|
327
331
|
});
|
|
328
332
|
Object.defineProperty(exports, "LiteService", {
|
|
329
333
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkYER7DIOM_js.LiteService; }
|
|
331
335
|
});
|
|
332
336
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
333
337
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkYER7DIOM_js.MESSAGE_TYPES; }
|
|
335
339
|
});
|
|
336
340
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
337
341
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkYER7DIOM_js.MOBILE_MONEY_PROVIDER; }
|
|
339
343
|
});
|
|
340
344
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
341
345
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkYER7DIOM_js.ORDER_MUTATION; }
|
|
343
347
|
});
|
|
344
348
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
345
349
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkYER7DIOM_js.ORDER_TYPE; }
|
|
347
351
|
});
|
|
348
352
|
Object.defineProperty(exports, "OrderQueries", {
|
|
349
353
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkYER7DIOM_js.OrderQueries; }
|
|
351
355
|
});
|
|
352
356
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
353
357
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkYER7DIOM_js.PAYMENT_METHOD; }
|
|
355
359
|
});
|
|
356
360
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
357
361
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkYER7DIOM_js.PAYMENT_MUTATION; }
|
|
359
363
|
});
|
|
360
364
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
361
365
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkYER7DIOM_js.PAYMENT_STATE; }
|
|
363
367
|
});
|
|
364
368
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
365
369
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkYER7DIOM_js.PICKUP_TIME_TYPE; }
|
|
367
371
|
});
|
|
368
372
|
Object.defineProperty(exports, "SchedulingService", {
|
|
369
373
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkYER7DIOM_js.SchedulingService; }
|
|
371
375
|
});
|
|
372
376
|
Object.defineProperty(exports, "combine", {
|
|
373
377
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkYER7DIOM_js.combine; }
|
|
375
379
|
});
|
|
376
380
|
Object.defineProperty(exports, "combineObject", {
|
|
377
381
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkYER7DIOM_js.combineObject; }
|
|
379
383
|
});
|
|
380
384
|
Object.defineProperty(exports, "createElements", {
|
|
381
385
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkYER7DIOM_js.createElements; }
|
|
383
387
|
});
|
|
384
388
|
Object.defineProperty(exports, "err", {
|
|
385
389
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkYER7DIOM_js.err; }
|
|
387
391
|
});
|
|
388
392
|
Object.defineProperty(exports, "flatMap", {
|
|
389
393
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkYER7DIOM_js.flatMap; }
|
|
391
395
|
});
|
|
392
396
|
Object.defineProperty(exports, "fromPromise", {
|
|
393
397
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkYER7DIOM_js.fromPromise; }
|
|
395
399
|
});
|
|
396
400
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
397
401
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkYER7DIOM_js.generateIdempotencyKey; }
|
|
399
403
|
});
|
|
400
404
|
Object.defineProperty(exports, "getOrElse", {
|
|
401
405
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkYER7DIOM_js.getOrElse; }
|
|
403
407
|
});
|
|
404
408
|
Object.defineProperty(exports, "isErr", {
|
|
405
409
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkYER7DIOM_js.isErr; }
|
|
407
411
|
});
|
|
408
412
|
Object.defineProperty(exports, "isOk", {
|
|
409
413
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkYER7DIOM_js.isOk; }
|
|
411
415
|
});
|
|
412
416
|
Object.defineProperty(exports, "mapError", {
|
|
413
417
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkYER7DIOM_js.mapError; }
|
|
415
419
|
});
|
|
416
420
|
Object.defineProperty(exports, "mapResult", {
|
|
417
421
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkYER7DIOM_js.mapResult; }
|
|
419
423
|
});
|
|
420
424
|
Object.defineProperty(exports, "ok", {
|
|
421
425
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkYER7DIOM_js.ok; }
|
|
423
427
|
});
|
|
424
428
|
Object.defineProperty(exports, "startSignIn", {
|
|
425
429
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkYER7DIOM_js.startSignIn; }
|
|
427
431
|
});
|
|
428
432
|
Object.defineProperty(exports, "toNullable", {
|
|
429
433
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkYER7DIOM_js.toNullable; }
|
|
431
435
|
});
|
|
432
436
|
Object.defineProperty(exports, "tryCatch", {
|
|
433
437
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkYER7DIOM_js.tryCatch; }
|
|
435
439
|
});
|
|
436
440
|
Object.defineProperty(exports, "unwrap", {
|
|
437
441
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkYER7DIOM_js.unwrap; }
|
|
439
443
|
});
|
|
440
444
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
441
445
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-
|
|
1
|
+
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-3V4DVXV3.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
4
|
-
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-
|
|
5
|
-
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, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, 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, startSignIn, toNullable, tryCatch, unwrap } from './chunk-
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-DKLHCZ5M.mjs';
|
|
4
|
+
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-Z3K2D3TE.mjs';
|
|
5
|
+
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, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, 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, startSignIn, toNullable, tryCatch, unwrap } from './chunk-Z3K2D3TE.mjs';
|
|
6
6
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-DLW3RWRK.mjs';
|
|
7
7
|
export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-O3YUHLZL.mjs';
|
|
8
8
|
import './chunk-3G6RQLXK.mjs';
|
package/dist/mock/cli.mjs
CHANGED
|
@@ -3316,6 +3316,10 @@ function buildV1(deps) {
|
|
|
3316
3316
|
app.delete("/cart/items/:cart_item_id", (c) => tryRoute(c, () => deps.cart.removeItem(c.var.session, c.req.param("cart_item_id"))));
|
|
3317
3317
|
app.get("/cart/count", (c) => tryRoute(c, () => deps.cart.getCount(c.var.session)));
|
|
3318
3318
|
app.get("/cart/total", (c) => tryRoute(c, () => deps.cart.getTotal(c.var.session)));
|
|
3319
|
+
app.post("/cart/destination-quote", async (c) => {
|
|
3320
|
+
const body = await c.req.json();
|
|
3321
|
+
return tryRoute(c, () => deps.cart.quoteDestination(c.var.session, body));
|
|
3322
|
+
});
|
|
3319
3323
|
app.post("/cart/coupons", async (c) => {
|
|
3320
3324
|
const body = await c.req.json().catch(() => ({}));
|
|
3321
3325
|
return tryRoute(c, () => deps.cart.applyCoupon(c.var.session, body.coupon_code ?? ""));
|
|
@@ -5665,6 +5669,7 @@ function toUICart(registry, cart) {
|
|
|
5665
5669
|
tax_rate: cart.tax_rate,
|
|
5666
5670
|
service_charge_rate: cart.service_charge_rate,
|
|
5667
5671
|
tax_inclusive: false,
|
|
5672
|
+
price_display_mode: "unspecified",
|
|
5668
5673
|
deposit_required: false,
|
|
5669
5674
|
deposit_amount: "0.00"
|
|
5670
5675
|
},
|
|
@@ -5804,6 +5809,31 @@ function createCartService(opts) {
|
|
|
5804
5809
|
getTotal(session) {
|
|
5805
5810
|
return findOrCreate(session).total_price;
|
|
5806
5811
|
},
|
|
5812
|
+
quoteDestination(session, body) {
|
|
5813
|
+
const cart = findOrCreate(session);
|
|
5814
|
+
const city = body.address_info.city?.trim();
|
|
5815
|
+
const region = body.address_info.region?.trim();
|
|
5816
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
5817
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
5818
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
5819
|
+
return {
|
|
5820
|
+
subtotal: cart.subtotal,
|
|
5821
|
+
tax_amount: cart.tax_amount,
|
|
5822
|
+
service_charge: cart.service_charge,
|
|
5823
|
+
total_discounts: cart.total_discounts,
|
|
5824
|
+
delivery_fee: deliveryFee,
|
|
5825
|
+
statutory_charge_total: "0.00",
|
|
5826
|
+
statutory_charges: [],
|
|
5827
|
+
total,
|
|
5828
|
+
currency: cart.currency,
|
|
5829
|
+
tax_jurisdiction_label: label,
|
|
5830
|
+
tax_inclusive: false,
|
|
5831
|
+
tax_rate: cart.tax_rate,
|
|
5832
|
+
price_display_mode: "unspecified",
|
|
5833
|
+
delivery_fee_details: null,
|
|
5834
|
+
address_info: body.address_info
|
|
5835
|
+
};
|
|
5836
|
+
},
|
|
5807
5837
|
toUICart(cart) {
|
|
5808
5838
|
return toUICart(registry, cart);
|
|
5809
5839
|
},
|
package/dist/mock/library.js
CHANGED
|
@@ -2378,6 +2378,10 @@ function buildV1(deps) {
|
|
|
2378
2378
|
app.delete("/cart/items/:cart_item_id", (c) => tryRoute(c, () => deps.cart.removeItem(c.var.session, c.req.param("cart_item_id"))));
|
|
2379
2379
|
app.get("/cart/count", (c) => tryRoute(c, () => deps.cart.getCount(c.var.session)));
|
|
2380
2380
|
app.get("/cart/total", (c) => tryRoute(c, () => deps.cart.getTotal(c.var.session)));
|
|
2381
|
+
app.post("/cart/destination-quote", async (c) => {
|
|
2382
|
+
const body = await c.req.json();
|
|
2383
|
+
return tryRoute(c, () => deps.cart.quoteDestination(c.var.session, body));
|
|
2384
|
+
});
|
|
2381
2385
|
app.post("/cart/coupons", async (c) => {
|
|
2382
2386
|
const body = await c.req.json().catch(() => ({}));
|
|
2383
2387
|
return tryRoute(c, () => deps.cart.applyCoupon(c.var.session, body.coupon_code ?? ""));
|
|
@@ -4727,6 +4731,7 @@ function toUICart(registry, cart) {
|
|
|
4727
4731
|
tax_rate: cart.tax_rate,
|
|
4728
4732
|
service_charge_rate: cart.service_charge_rate,
|
|
4729
4733
|
tax_inclusive: false,
|
|
4734
|
+
price_display_mode: "unspecified",
|
|
4730
4735
|
deposit_required: false,
|
|
4731
4736
|
deposit_amount: "0.00"
|
|
4732
4737
|
},
|
|
@@ -4866,6 +4871,31 @@ function createCartService(opts) {
|
|
|
4866
4871
|
getTotal(session) {
|
|
4867
4872
|
return findOrCreate(session).total_price;
|
|
4868
4873
|
},
|
|
4874
|
+
quoteDestination(session, body) {
|
|
4875
|
+
const cart = findOrCreate(session);
|
|
4876
|
+
const city = body.address_info.city?.trim();
|
|
4877
|
+
const region = body.address_info.region?.trim();
|
|
4878
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
4879
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
4880
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
4881
|
+
return {
|
|
4882
|
+
subtotal: cart.subtotal,
|
|
4883
|
+
tax_amount: cart.tax_amount,
|
|
4884
|
+
service_charge: cart.service_charge,
|
|
4885
|
+
total_discounts: cart.total_discounts,
|
|
4886
|
+
delivery_fee: deliveryFee,
|
|
4887
|
+
statutory_charge_total: "0.00",
|
|
4888
|
+
statutory_charges: [],
|
|
4889
|
+
total,
|
|
4890
|
+
currency: cart.currency,
|
|
4891
|
+
tax_jurisdiction_label: label,
|
|
4892
|
+
tax_inclusive: false,
|
|
4893
|
+
tax_rate: cart.tax_rate,
|
|
4894
|
+
price_display_mode: "unspecified",
|
|
4895
|
+
delivery_fee_details: null,
|
|
4896
|
+
address_info: body.address_info
|
|
4897
|
+
};
|
|
4898
|
+
},
|
|
4869
4899
|
toUICart(cart) {
|
|
4870
4900
|
return toUICart(registry, cart);
|
|
4871
4901
|
},
|
package/dist/mock/library.mjs
CHANGED
|
@@ -2376,6 +2376,10 @@ function buildV1(deps) {
|
|
|
2376
2376
|
app.delete("/cart/items/:cart_item_id", (c) => tryRoute(c, () => deps.cart.removeItem(c.var.session, c.req.param("cart_item_id"))));
|
|
2377
2377
|
app.get("/cart/count", (c) => tryRoute(c, () => deps.cart.getCount(c.var.session)));
|
|
2378
2378
|
app.get("/cart/total", (c) => tryRoute(c, () => deps.cart.getTotal(c.var.session)));
|
|
2379
|
+
app.post("/cart/destination-quote", async (c) => {
|
|
2380
|
+
const body = await c.req.json();
|
|
2381
|
+
return tryRoute(c, () => deps.cart.quoteDestination(c.var.session, body));
|
|
2382
|
+
});
|
|
2379
2383
|
app.post("/cart/coupons", async (c) => {
|
|
2380
2384
|
const body = await c.req.json().catch(() => ({}));
|
|
2381
2385
|
return tryRoute(c, () => deps.cart.applyCoupon(c.var.session, body.coupon_code ?? ""));
|
|
@@ -4725,6 +4729,7 @@ function toUICart(registry, cart) {
|
|
|
4725
4729
|
tax_rate: cart.tax_rate,
|
|
4726
4730
|
service_charge_rate: cart.service_charge_rate,
|
|
4727
4731
|
tax_inclusive: false,
|
|
4732
|
+
price_display_mode: "unspecified",
|
|
4728
4733
|
deposit_required: false,
|
|
4729
4734
|
deposit_amount: "0.00"
|
|
4730
4735
|
},
|
|
@@ -4864,6 +4869,31 @@ function createCartService(opts) {
|
|
|
4864
4869
|
getTotal(session) {
|
|
4865
4870
|
return findOrCreate(session).total_price;
|
|
4866
4871
|
},
|
|
4872
|
+
quoteDestination(session, body) {
|
|
4873
|
+
const cart = findOrCreate(session);
|
|
4874
|
+
const city = body.address_info.city?.trim();
|
|
4875
|
+
const region = body.address_info.region?.trim();
|
|
4876
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
4877
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
4878
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
4879
|
+
return {
|
|
4880
|
+
subtotal: cart.subtotal,
|
|
4881
|
+
tax_amount: cart.tax_amount,
|
|
4882
|
+
service_charge: cart.service_charge,
|
|
4883
|
+
total_discounts: cart.total_discounts,
|
|
4884
|
+
delivery_fee: deliveryFee,
|
|
4885
|
+
statutory_charge_total: "0.00",
|
|
4886
|
+
statutory_charges: [],
|
|
4887
|
+
total,
|
|
4888
|
+
currency: cart.currency,
|
|
4889
|
+
tax_jurisdiction_label: label,
|
|
4890
|
+
tax_inclusive: false,
|
|
4891
|
+
tax_rate: cart.tax_rate,
|
|
4892
|
+
price_display_mode: "unspecified",
|
|
4893
|
+
delivery_fee_details: null,
|
|
4894
|
+
address_info: body.address_info
|
|
4895
|
+
};
|
|
4896
|
+
},
|
|
4867
4897
|
toUICart(cart) {
|
|
4868
4898
|
return toUICart(registry, cart);
|
|
4869
4899
|
},
|