@cimplify/sdk 0.100.5 → 0.101.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-HSDQWJLA.mjs → chunk-7H6IL7CX.mjs} +2 -2
- package/dist/{chunk-RWR7JF7F.mjs → chunk-DKLHCZ5M.mjs} +13 -3
- package/dist/{chunk-PNTINRAU.js → chunk-H5SSGN7W.js} +28 -0
- package/dist/{chunk-LMD7B33E.js → chunk-ICCCSVN3.js} +4 -4
- package/dist/{chunk-JEVCHTKZ.js → chunk-YDA46OZ6.js} +59 -49
- package/dist/{chunk-3HU5I5VG.js → chunk-YER7DIOM.js} +15 -0
- package/dist/{chunk-RQPXLXB2.mjs → chunk-YHPMFTMN.mjs} +28 -0
- package/dist/{chunk-Z7M6GAHS.mjs → chunk-Z3K2D3TE.mjs} +15 -0
- package/dist/{client-CrPglBBz.d.ts → client-CdTx7X_X.d.mts} +12 -2
- package/dist/{client-CPcZIrjC.d.ts → client-D40kI8z2.d.ts} +2 -2
- package/dist/{client-BwRAAk4y.d.mts → client-Db554902.d.ts} +12 -2
- package/dist/{client-DGrvLiJv.d.mts → client-WkUcvRvO.d.mts} +2 -2
- package/dist/{index-D-LUYk1Y.d.mts → index-BjWUkYgY.d.mts} +3 -3
- package/dist/{index-B_RYmvlF.d.ts → index-D3UXgAYl.d.ts} +3 -3
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +69 -69
- package/dist/index.mjs +3 -3
- package/dist/mock/cli.mjs +28 -0
- package/dist/mock/library.js +28 -0
- package/dist/mock/library.mjs +28 -0
- package/dist/mock/msw.js +28 -0
- package/dist/mock/msw.mjs +28 -0
- package/dist/{payment-BSzy7sly.d.mts → payment-CRqjGrx6.d.mts} +1 -1
- package/dist/{payment-jK8ztICx.d.ts → payment-DO1Z1Ip6.d.ts} +1 -1
- package/dist/{price-D96h6c6L.d.mts → price-CiQUd_XX.d.mts} +1 -1
- package/dist/{price-CJLfcYKd.d.ts → price-D9EOj8y8.d.ts} +1 -1
- package/dist/{product-CeV8euw4.d.mts → product-DwKdC_to.d.mts} +727 -625
- package/dist/{product-CeV8euw4.d.ts → product-DwKdC_to.d.ts} +727 -625
- package/dist/react.d.mts +7 -4
- package/dist/react.d.ts +7 -4
- package/dist/react.js +75 -34
- package/dist/react.mjs +52 -11
- 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-CeDb93WA.d.ts} +13 -1
- package/dist/{server-DRAW2OOX.d.mts → server-D-nSkrUr.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 +20 -20
- package/dist/testing.d.ts +20 -20
- package/dist/testing.js +79 -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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkQPRI2NII_js = require('./chunk-QPRI2NII.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,
|
|
@@ -183,259 +183,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "ActivityService", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkYDA46OZ6_js.ActivityService; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkYDA46OZ6_js.CimplifyClient; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "DeliveryService", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkYDA46OZ6_js.DeliveryService; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "PlacesService", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkYDA46OZ6_js.PlacesService; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkYDA46OZ6_js.StoreCreditQueries; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkYDA46OZ6_js.SubscriptionService; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "SupportService", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkYDA46OZ6_js.SupportService; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "UploadService", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkYDA46OZ6_js.UploadService; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkYDA46OZ6_js.createCimplifyClient; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkYER7DIOM_js.AUTHORIZATION_TYPE; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkYER7DIOM_js.AUTH_MUTATION; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "AuthService", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkYER7DIOM_js.AuthService; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "BusinessService", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkYER7DIOM_js.BusinessService; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkYER7DIOM_js.CHECKOUT_MODE; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkYER7DIOM_js.CHECKOUT_MUTATION; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkYER7DIOM_js.CHECKOUT_STEP; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkYER7DIOM_js.CONTACT_TYPE; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "CartOperations", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkYER7DIOM_js.CartOperations; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkYER7DIOM_js.CatalogueQueries; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkYER7DIOM_js.CheckoutService; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "CheckoutService", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkYER7DIOM_js.CheckoutService; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkYER7DIOM_js.CimplifyElement; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkYER7DIOM_js.CimplifyElements; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkYER7DIOM_js.DEFAULT_COUNTRY; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkYER7DIOM_js.DEFAULT_CURRENCY; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkYER7DIOM_js.DEVICE_TYPE; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkYER7DIOM_js.ELEMENTS_AUTH_CONTACT_TYPES; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkYER7DIOM_js.ELEMENTS_AUTH_MODES; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkYER7DIOM_js.ELEMENTS_AUTH_PROMPTS; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkYER7DIOM_js.ELEMENT_TYPES; }
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkYER7DIOM_js.EVENT_TYPES; }
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "FxService", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkYER7DIOM_js.FxService; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "InventoryService", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkYER7DIOM_js.InventoryService; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkYER7DIOM_js.LINK_MUTATION; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkYER7DIOM_js.LINK_QUERY; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "LinkService", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkYER7DIOM_js.LinkService; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "LiteService", {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkYER7DIOM_js.LiteService; }
|
|
331
331
|
});
|
|
332
332
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
333
333
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkYER7DIOM_js.MESSAGE_TYPES; }
|
|
335
335
|
});
|
|
336
336
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
337
337
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkYER7DIOM_js.MOBILE_MONEY_PROVIDER; }
|
|
339
339
|
});
|
|
340
340
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkYER7DIOM_js.ORDER_MUTATION; }
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkYER7DIOM_js.ORDER_TYPE; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "OrderQueries", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkYER7DIOM_js.OrderQueries; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkYER7DIOM_js.PAYMENT_METHOD; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkYER7DIOM_js.PAYMENT_MUTATION; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkYER7DIOM_js.PAYMENT_STATE; }
|
|
363
363
|
});
|
|
364
364
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkYER7DIOM_js.PICKUP_TIME_TYPE; }
|
|
367
367
|
});
|
|
368
368
|
Object.defineProperty(exports, "SchedulingService", {
|
|
369
369
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkYER7DIOM_js.SchedulingService; }
|
|
371
371
|
});
|
|
372
372
|
Object.defineProperty(exports, "combine", {
|
|
373
373
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkYER7DIOM_js.combine; }
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "combineObject", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkYER7DIOM_js.combineObject; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "createElements", {
|
|
381
381
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkYER7DIOM_js.createElements; }
|
|
383
383
|
});
|
|
384
384
|
Object.defineProperty(exports, "err", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkYER7DIOM_js.err; }
|
|
387
387
|
});
|
|
388
388
|
Object.defineProperty(exports, "flatMap", {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkYER7DIOM_js.flatMap; }
|
|
391
391
|
});
|
|
392
392
|
Object.defineProperty(exports, "fromPromise", {
|
|
393
393
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkYER7DIOM_js.fromPromise; }
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
397
397
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkYER7DIOM_js.generateIdempotencyKey; }
|
|
399
399
|
});
|
|
400
400
|
Object.defineProperty(exports, "getOrElse", {
|
|
401
401
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkYER7DIOM_js.getOrElse; }
|
|
403
403
|
});
|
|
404
404
|
Object.defineProperty(exports, "isErr", {
|
|
405
405
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkYER7DIOM_js.isErr; }
|
|
407
407
|
});
|
|
408
408
|
Object.defineProperty(exports, "isOk", {
|
|
409
409
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkYER7DIOM_js.isOk; }
|
|
411
411
|
});
|
|
412
412
|
Object.defineProperty(exports, "mapError", {
|
|
413
413
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkYER7DIOM_js.mapError; }
|
|
415
415
|
});
|
|
416
416
|
Object.defineProperty(exports, "mapResult", {
|
|
417
417
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkYER7DIOM_js.mapResult; }
|
|
419
419
|
});
|
|
420
420
|
Object.defineProperty(exports, "ok", {
|
|
421
421
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkYER7DIOM_js.ok; }
|
|
423
423
|
});
|
|
424
424
|
Object.defineProperty(exports, "startSignIn", {
|
|
425
425
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkYER7DIOM_js.startSignIn; }
|
|
427
427
|
});
|
|
428
428
|
Object.defineProperty(exports, "toNullable", {
|
|
429
429
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkYER7DIOM_js.toNullable; }
|
|
431
431
|
});
|
|
432
432
|
Object.defineProperty(exports, "tryCatch", {
|
|
433
433
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkYER7DIOM_js.tryCatch; }
|
|
435
435
|
});
|
|
436
436
|
Object.defineProperty(exports, "unwrap", {
|
|
437
437
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkYER7DIOM_js.unwrap; }
|
|
439
439
|
});
|
|
440
440
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
441
441
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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-4G5UWFC3.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 ?? ""));
|
|
@@ -5804,6 +5808,30 @@ function createCartService(opts) {
|
|
|
5804
5808
|
getTotal(session) {
|
|
5805
5809
|
return findOrCreate(session).total_price;
|
|
5806
5810
|
},
|
|
5811
|
+
quoteDestination(session, body) {
|
|
5812
|
+
const cart = findOrCreate(session);
|
|
5813
|
+
const city = body.address_info.city?.trim();
|
|
5814
|
+
const region = body.address_info.region?.trim();
|
|
5815
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
5816
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
5817
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
5818
|
+
return {
|
|
5819
|
+
subtotal: cart.subtotal,
|
|
5820
|
+
tax_amount: cart.tax_amount,
|
|
5821
|
+
service_charge: cart.service_charge,
|
|
5822
|
+
total_discounts: cart.total_discounts,
|
|
5823
|
+
delivery_fee: deliveryFee,
|
|
5824
|
+
statutory_charge_total: "0.00",
|
|
5825
|
+
statutory_charges: [],
|
|
5826
|
+
total,
|
|
5827
|
+
currency: cart.currency,
|
|
5828
|
+
tax_jurisdiction_label: label,
|
|
5829
|
+
tax_inclusive: false,
|
|
5830
|
+
tax_rate: cart.tax_rate,
|
|
5831
|
+
delivery_fee_details: null,
|
|
5832
|
+
address_info: body.address_info
|
|
5833
|
+
};
|
|
5834
|
+
},
|
|
5807
5835
|
toUICart(cart) {
|
|
5808
5836
|
return toUICart(registry, cart);
|
|
5809
5837
|
},
|
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 ?? ""));
|
|
@@ -4866,6 +4870,30 @@ function createCartService(opts) {
|
|
|
4866
4870
|
getTotal(session) {
|
|
4867
4871
|
return findOrCreate(session).total_price;
|
|
4868
4872
|
},
|
|
4873
|
+
quoteDestination(session, body) {
|
|
4874
|
+
const cart = findOrCreate(session);
|
|
4875
|
+
const city = body.address_info.city?.trim();
|
|
4876
|
+
const region = body.address_info.region?.trim();
|
|
4877
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
4878
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
4879
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
4880
|
+
return {
|
|
4881
|
+
subtotal: cart.subtotal,
|
|
4882
|
+
tax_amount: cart.tax_amount,
|
|
4883
|
+
service_charge: cart.service_charge,
|
|
4884
|
+
total_discounts: cart.total_discounts,
|
|
4885
|
+
delivery_fee: deliveryFee,
|
|
4886
|
+
statutory_charge_total: "0.00",
|
|
4887
|
+
statutory_charges: [],
|
|
4888
|
+
total,
|
|
4889
|
+
currency: cart.currency,
|
|
4890
|
+
tax_jurisdiction_label: label,
|
|
4891
|
+
tax_inclusive: false,
|
|
4892
|
+
tax_rate: cart.tax_rate,
|
|
4893
|
+
delivery_fee_details: null,
|
|
4894
|
+
address_info: body.address_info
|
|
4895
|
+
};
|
|
4896
|
+
},
|
|
4869
4897
|
toUICart(cart) {
|
|
4870
4898
|
return toUICart(registry, cart);
|
|
4871
4899
|
},
|
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 ?? ""));
|
|
@@ -4864,6 +4868,30 @@ function createCartService(opts) {
|
|
|
4864
4868
|
getTotal(session) {
|
|
4865
4869
|
return findOrCreate(session).total_price;
|
|
4866
4870
|
},
|
|
4871
|
+
quoteDestination(session, body) {
|
|
4872
|
+
const cart = findOrCreate(session);
|
|
4873
|
+
const city = body.address_info.city?.trim();
|
|
4874
|
+
const region = body.address_info.region?.trim();
|
|
4875
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
4876
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
4877
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
4878
|
+
return {
|
|
4879
|
+
subtotal: cart.subtotal,
|
|
4880
|
+
tax_amount: cart.tax_amount,
|
|
4881
|
+
service_charge: cart.service_charge,
|
|
4882
|
+
total_discounts: cart.total_discounts,
|
|
4883
|
+
delivery_fee: deliveryFee,
|
|
4884
|
+
statutory_charge_total: "0.00",
|
|
4885
|
+
statutory_charges: [],
|
|
4886
|
+
total,
|
|
4887
|
+
currency: cart.currency,
|
|
4888
|
+
tax_jurisdiction_label: label,
|
|
4889
|
+
tax_inclusive: false,
|
|
4890
|
+
tax_rate: cart.tax_rate,
|
|
4891
|
+
delivery_fee_details: null,
|
|
4892
|
+
address_info: body.address_info
|
|
4893
|
+
};
|
|
4894
|
+
},
|
|
4867
4895
|
toUICart(cart) {
|
|
4868
4896
|
return toUICart(registry, cart);
|
|
4869
4897
|
},
|
package/dist/mock/msw.js
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 ?? ""));
|
|
@@ -4864,6 +4868,30 @@ function createCartService(opts) {
|
|
|
4864
4868
|
getTotal(session) {
|
|
4865
4869
|
return findOrCreate(session).total_price;
|
|
4866
4870
|
},
|
|
4871
|
+
quoteDestination(session, body) {
|
|
4872
|
+
const cart = findOrCreate(session);
|
|
4873
|
+
const city = body.address_info.city?.trim();
|
|
4874
|
+
const region = body.address_info.region?.trim();
|
|
4875
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
4876
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
4877
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
4878
|
+
return {
|
|
4879
|
+
subtotal: cart.subtotal,
|
|
4880
|
+
tax_amount: cart.tax_amount,
|
|
4881
|
+
service_charge: cart.service_charge,
|
|
4882
|
+
total_discounts: cart.total_discounts,
|
|
4883
|
+
delivery_fee: deliveryFee,
|
|
4884
|
+
statutory_charge_total: "0.00",
|
|
4885
|
+
statutory_charges: [],
|
|
4886
|
+
total,
|
|
4887
|
+
currency: cart.currency,
|
|
4888
|
+
tax_jurisdiction_label: label,
|
|
4889
|
+
tax_inclusive: false,
|
|
4890
|
+
tax_rate: cart.tax_rate,
|
|
4891
|
+
delivery_fee_details: null,
|
|
4892
|
+
address_info: body.address_info
|
|
4893
|
+
};
|
|
4894
|
+
},
|
|
4867
4895
|
toUICart(cart) {
|
|
4868
4896
|
return toUICart(registry, cart);
|
|
4869
4897
|
},
|
package/dist/mock/msw.mjs
CHANGED
|
@@ -2374,6 +2374,10 @@ function buildV1(deps) {
|
|
|
2374
2374
|
app.delete("/cart/items/:cart_item_id", (c) => tryRoute(c, () => deps.cart.removeItem(c.var.session, c.req.param("cart_item_id"))));
|
|
2375
2375
|
app.get("/cart/count", (c) => tryRoute(c, () => deps.cart.getCount(c.var.session)));
|
|
2376
2376
|
app.get("/cart/total", (c) => tryRoute(c, () => deps.cart.getTotal(c.var.session)));
|
|
2377
|
+
app.post("/cart/destination-quote", async (c) => {
|
|
2378
|
+
const body = await c.req.json();
|
|
2379
|
+
return tryRoute(c, () => deps.cart.quoteDestination(c.var.session, body));
|
|
2380
|
+
});
|
|
2377
2381
|
app.post("/cart/coupons", async (c) => {
|
|
2378
2382
|
const body = await c.req.json().catch(() => ({}));
|
|
2379
2383
|
return tryRoute(c, () => deps.cart.applyCoupon(c.var.session, body.coupon_code ?? ""));
|
|
@@ -4862,6 +4866,30 @@ function createCartService(opts) {
|
|
|
4862
4866
|
getTotal(session) {
|
|
4863
4867
|
return findOrCreate(session).total_price;
|
|
4864
4868
|
},
|
|
4869
|
+
quoteDestination(session, body) {
|
|
4870
|
+
const cart = findOrCreate(session);
|
|
4871
|
+
const city = body.address_info.city?.trim();
|
|
4872
|
+
const region = body.address_info.region?.trim();
|
|
4873
|
+
const label = city && region ? `${city}, ${region}` : city ?? region ?? "";
|
|
4874
|
+
const deliveryFee = body.order_type === "delivery" ? "5.00" : "0.00";
|
|
4875
|
+
const total = (Number(cart.total_price) + Number(deliveryFee)).toFixed(2);
|
|
4876
|
+
return {
|
|
4877
|
+
subtotal: cart.subtotal,
|
|
4878
|
+
tax_amount: cart.tax_amount,
|
|
4879
|
+
service_charge: cart.service_charge,
|
|
4880
|
+
total_discounts: cart.total_discounts,
|
|
4881
|
+
delivery_fee: deliveryFee,
|
|
4882
|
+
statutory_charge_total: "0.00",
|
|
4883
|
+
statutory_charges: [],
|
|
4884
|
+
total,
|
|
4885
|
+
currency: cart.currency,
|
|
4886
|
+
tax_jurisdiction_label: label,
|
|
4887
|
+
tax_inclusive: false,
|
|
4888
|
+
tax_rate: cart.tax_rate,
|
|
4889
|
+
delivery_fee_details: null,
|
|
4890
|
+
address_info: body.address_info
|
|
4891
|
+
};
|
|
4892
|
+
},
|
|
4865
4893
|
toUICart(cart) {
|
|
4866
4894
|
return toUICart(registry, cart);
|
|
4867
4895
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aR as Money, ad as CurrencyCode } from './product-DwKdC_to.mjs';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "not_required" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aR as Money, ad as CurrencyCode } from './product-DwKdC_to.js';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "not_required" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice,
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bl as SaleInfo, bG as UpcomingSale } from './product-DwKdC_to.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice,
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bl as SaleInfo, bG as UpcomingSale } from './product-DwKdC_to.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|