@cimplify/sdk 0.100.1 → 0.100.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/advanced.d.mts +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-BHQCSHIG.js → chunk-CNY2XFN4.js} +266 -84
  6. package/dist/{chunk-PTKAN4SI.mjs → chunk-FFRQNNUQ.mjs} +8 -0
  7. package/dist/{chunk-QGFKIAEM.js → chunk-FWKSBF3F.js} +8 -0
  8. package/dist/{chunk-NKZIXLKW.mjs → chunk-HFTRLRLM.mjs} +3 -3
  9. package/dist/{chunk-NR4Z2SFY.js → chunk-KNCW5DI7.js} +4 -4
  10. package/dist/{chunk-KEC2CX4R.mjs → chunk-NOGCGI4J.mjs} +2 -2
  11. package/dist/{chunk-NH3HYUC3.js → chunk-XCS56XSS.js} +3 -3
  12. package/dist/{chunk-T2B656RS.mjs → chunk-XG4DZT4I.mjs} +221 -39
  13. package/dist/{client-T5c-Nxq-.d.mts → client-BGeSemVv.d.mts} +2 -2
  14. package/dist/{client-DxgC_lXU.d.ts → client-BWdeCgmo.d.ts} +34 -14
  15. package/dist/{client-B0Lku_lc.d.mts → client-Bx4NRdl8.d.mts} +34 -14
  16. package/dist/{client-DRgEa78P.d.ts → client-Cvp8W1r9.d.ts} +2 -2
  17. package/dist/{index-CzKN1hjf.d.ts → index-B_RYmvlF.d.ts} +3 -3
  18. package/dist/{index-DzuLT5wi.d.mts → index-D-LUYk1Y.d.mts} +3 -3
  19. package/dist/index.d.mts +7 -7
  20. package/dist/index.d.ts +7 -7
  21. package/dist/index.js +69 -69
  22. package/dist/index.mjs +3 -3
  23. package/dist/mock/cli.mjs +3 -3
  24. package/dist/mock/library.js +3 -3
  25. package/dist/mock/library.mjs +3 -3
  26. package/dist/mock/msw.js +3 -3
  27. package/dist/mock/msw.mjs +3 -3
  28. package/dist/{payment-D8NEwCna.d.mts → payment-BSzy7sly.d.mts} +1 -1
  29. package/dist/{payment-lZBP7h5M.d.ts → payment-jK8ztICx.d.ts} +1 -1
  30. package/dist/{price-ncQb-TC8.d.ts → price-CJLfcYKd.d.ts} +1 -1
  31. package/dist/{price-DepWAmcL.d.mts → price-D96h6c6L.d.mts} +1 -1
  32. package/dist/{product-B384_Qm2.d.mts → product-CeV8euw4.d.mts} +11 -10
  33. package/dist/{product-B384_Qm2.d.ts → product-CeV8euw4.d.ts} +11 -10
  34. package/dist/react.d.mts +4 -4
  35. package/dist/react.d.ts +4 -4
  36. package/dist/react.js +51 -29
  37. package/dist/react.mjs +28 -6
  38. package/dist/{server-oCGNIO_K.d.mts → server-BRJ61o2J.d.mts} +4 -4
  39. package/dist/{server-B7O4ttpv.d.ts → server-CXrVYtNo.d.ts} +4 -4
  40. package/dist/server.d.mts +4 -4
  41. package/dist/server.d.ts +4 -4
  42. package/dist/server.js +7 -7
  43. package/dist/server.mjs +2 -2
  44. package/dist/testing/msw.d.mts +2 -2
  45. package/dist/testing/msw.d.ts +2 -2
  46. package/dist/testing/msw.js +2 -2
  47. package/dist/testing/msw.mjs +1 -1
  48. package/dist/testing/suite.d.mts +6 -6
  49. package/dist/testing/suite.d.ts +6 -6
  50. package/dist/testing/suite.js +23 -23
  51. package/dist/testing/suite.mjs +4 -4
  52. package/dist/testing.d.mts +5 -5
  53. package/dist/testing.d.ts +5 -5
  54. package/dist/testing.js +79 -79
  55. package/dist/testing.mjs +5 -5
  56. package/dist/utils.d.mts +4 -4
  57. package/dist/utils.d.ts +4 -4
  58. package/package.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 chunkBHQCSHIG_js = require('./chunk-BHQCSHIG.js');
6
- var chunkQGFKIAEM_js = require('./chunk-QGFKIAEM.js');
5
+ var chunkCNY2XFN4_js = require('./chunk-CNY2XFN4.js');
6
+ var chunkFWKSBF3F_js = require('./chunk-FWKSBF3F.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 chunkQGFKIAEM_js.getAuthorizationEndpoint(opts.issuer ?? chunkQGFKIAEM_js.DEFAULT_ISSUER);
31
- const pkce = await chunkQGFKIAEM_js.generatePkce();
32
- const state = chunkQGFKIAEM_js.generateState();
30
+ const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkFWKSBF3F_js.getAuthorizationEndpoint(opts.issuer ?? chunkFWKSBF3F_js.DEFAULT_ISSUER);
31
+ const pkce = await chunkFWKSBF3F_js.generatePkce();
32
+ const state = chunkFWKSBF3F_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 chunkBHQCSHIG_js.ActivityService; }
186
+ get: function () { return chunkCNY2XFN4_js.ActivityService; }
187
187
  });
188
188
  Object.defineProperty(exports, "CimplifyClient", {
189
189
  enumerable: true,
190
- get: function () { return chunkBHQCSHIG_js.CimplifyClient; }
190
+ get: function () { return chunkCNY2XFN4_js.CimplifyClient; }
191
191
  });
192
192
  Object.defineProperty(exports, "DeliveryService", {
193
193
  enumerable: true,
194
- get: function () { return chunkBHQCSHIG_js.DeliveryService; }
194
+ get: function () { return chunkCNY2XFN4_js.DeliveryService; }
195
195
  });
196
196
  Object.defineProperty(exports, "PlacesService", {
197
197
  enumerable: true,
198
- get: function () { return chunkBHQCSHIG_js.PlacesService; }
198
+ get: function () { return chunkCNY2XFN4_js.PlacesService; }
199
199
  });
200
200
  Object.defineProperty(exports, "StoreCreditQueries", {
201
201
  enumerable: true,
202
- get: function () { return chunkBHQCSHIG_js.StoreCreditQueries; }
202
+ get: function () { return chunkCNY2XFN4_js.StoreCreditQueries; }
203
203
  });
204
204
  Object.defineProperty(exports, "SubscriptionService", {
205
205
  enumerable: true,
206
- get: function () { return chunkBHQCSHIG_js.SubscriptionService; }
206
+ get: function () { return chunkCNY2XFN4_js.SubscriptionService; }
207
207
  });
208
208
  Object.defineProperty(exports, "SupportService", {
209
209
  enumerable: true,
210
- get: function () { return chunkBHQCSHIG_js.SupportService; }
210
+ get: function () { return chunkCNY2XFN4_js.SupportService; }
211
211
  });
212
212
  Object.defineProperty(exports, "UploadService", {
213
213
  enumerable: true,
214
- get: function () { return chunkBHQCSHIG_js.UploadService; }
214
+ get: function () { return chunkCNY2XFN4_js.UploadService; }
215
215
  });
216
216
  Object.defineProperty(exports, "createCimplifyClient", {
217
217
  enumerable: true,
218
- get: function () { return chunkBHQCSHIG_js.createCimplifyClient; }
218
+ get: function () { return chunkCNY2XFN4_js.createCimplifyClient; }
219
219
  });
220
220
  Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
221
221
  enumerable: true,
222
- get: function () { return chunkQGFKIAEM_js.AUTHORIZATION_TYPE; }
222
+ get: function () { return chunkFWKSBF3F_js.AUTHORIZATION_TYPE; }
223
223
  });
224
224
  Object.defineProperty(exports, "AUTH_MUTATION", {
225
225
  enumerable: true,
226
- get: function () { return chunkQGFKIAEM_js.AUTH_MUTATION; }
226
+ get: function () { return chunkFWKSBF3F_js.AUTH_MUTATION; }
227
227
  });
228
228
  Object.defineProperty(exports, "AuthService", {
229
229
  enumerable: true,
230
- get: function () { return chunkQGFKIAEM_js.AuthService; }
230
+ get: function () { return chunkFWKSBF3F_js.AuthService; }
231
231
  });
232
232
  Object.defineProperty(exports, "BusinessService", {
233
233
  enumerable: true,
234
- get: function () { return chunkQGFKIAEM_js.BusinessService; }
234
+ get: function () { return chunkFWKSBF3F_js.BusinessService; }
235
235
  });
236
236
  Object.defineProperty(exports, "CHECKOUT_MODE", {
237
237
  enumerable: true,
238
- get: function () { return chunkQGFKIAEM_js.CHECKOUT_MODE; }
238
+ get: function () { return chunkFWKSBF3F_js.CHECKOUT_MODE; }
239
239
  });
240
240
  Object.defineProperty(exports, "CHECKOUT_MUTATION", {
241
241
  enumerable: true,
242
- get: function () { return chunkQGFKIAEM_js.CHECKOUT_MUTATION; }
242
+ get: function () { return chunkFWKSBF3F_js.CHECKOUT_MUTATION; }
243
243
  });
244
244
  Object.defineProperty(exports, "CHECKOUT_STEP", {
245
245
  enumerable: true,
246
- get: function () { return chunkQGFKIAEM_js.CHECKOUT_STEP; }
246
+ get: function () { return chunkFWKSBF3F_js.CHECKOUT_STEP; }
247
247
  });
248
248
  Object.defineProperty(exports, "CONTACT_TYPE", {
249
249
  enumerable: true,
250
- get: function () { return chunkQGFKIAEM_js.CONTACT_TYPE; }
250
+ get: function () { return chunkFWKSBF3F_js.CONTACT_TYPE; }
251
251
  });
252
252
  Object.defineProperty(exports, "CartOperations", {
253
253
  enumerable: true,
254
- get: function () { return chunkQGFKIAEM_js.CartOperations; }
254
+ get: function () { return chunkFWKSBF3F_js.CartOperations; }
255
255
  });
256
256
  Object.defineProperty(exports, "CatalogueQueries", {
257
257
  enumerable: true,
258
- get: function () { return chunkQGFKIAEM_js.CatalogueQueries; }
258
+ get: function () { return chunkFWKSBF3F_js.CatalogueQueries; }
259
259
  });
260
260
  Object.defineProperty(exports, "CheckoutOperations", {
261
261
  enumerable: true,
262
- get: function () { return chunkQGFKIAEM_js.CheckoutService; }
262
+ get: function () { return chunkFWKSBF3F_js.CheckoutService; }
263
263
  });
264
264
  Object.defineProperty(exports, "CheckoutService", {
265
265
  enumerable: true,
266
- get: function () { return chunkQGFKIAEM_js.CheckoutService; }
266
+ get: function () { return chunkFWKSBF3F_js.CheckoutService; }
267
267
  });
268
268
  Object.defineProperty(exports, "CimplifyElement", {
269
269
  enumerable: true,
270
- get: function () { return chunkQGFKIAEM_js.CimplifyElement; }
270
+ get: function () { return chunkFWKSBF3F_js.CimplifyElement; }
271
271
  });
272
272
  Object.defineProperty(exports, "CimplifyElements", {
273
273
  enumerable: true,
274
- get: function () { return chunkQGFKIAEM_js.CimplifyElements; }
274
+ get: function () { return chunkFWKSBF3F_js.CimplifyElements; }
275
275
  });
276
276
  Object.defineProperty(exports, "DEFAULT_COUNTRY", {
277
277
  enumerable: true,
278
- get: function () { return chunkQGFKIAEM_js.DEFAULT_COUNTRY; }
278
+ get: function () { return chunkFWKSBF3F_js.DEFAULT_COUNTRY; }
279
279
  });
280
280
  Object.defineProperty(exports, "DEFAULT_CURRENCY", {
281
281
  enumerable: true,
282
- get: function () { return chunkQGFKIAEM_js.DEFAULT_CURRENCY; }
282
+ get: function () { return chunkFWKSBF3F_js.DEFAULT_CURRENCY; }
283
283
  });
284
284
  Object.defineProperty(exports, "DEVICE_TYPE", {
285
285
  enumerable: true,
286
- get: function () { return chunkQGFKIAEM_js.DEVICE_TYPE; }
286
+ get: function () { return chunkFWKSBF3F_js.DEVICE_TYPE; }
287
287
  });
288
288
  Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
289
289
  enumerable: true,
290
- get: function () { return chunkQGFKIAEM_js.ELEMENTS_AUTH_CONTACT_TYPES; }
290
+ get: function () { return chunkFWKSBF3F_js.ELEMENTS_AUTH_CONTACT_TYPES; }
291
291
  });
292
292
  Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
293
293
  enumerable: true,
294
- get: function () { return chunkQGFKIAEM_js.ELEMENTS_AUTH_MODES; }
294
+ get: function () { return chunkFWKSBF3F_js.ELEMENTS_AUTH_MODES; }
295
295
  });
296
296
  Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
297
297
  enumerable: true,
298
- get: function () { return chunkQGFKIAEM_js.ELEMENTS_AUTH_PROMPTS; }
298
+ get: function () { return chunkFWKSBF3F_js.ELEMENTS_AUTH_PROMPTS; }
299
299
  });
300
300
  Object.defineProperty(exports, "ELEMENT_TYPES", {
301
301
  enumerable: true,
302
- get: function () { return chunkQGFKIAEM_js.ELEMENT_TYPES; }
302
+ get: function () { return chunkFWKSBF3F_js.ELEMENT_TYPES; }
303
303
  });
304
304
  Object.defineProperty(exports, "EVENT_TYPES", {
305
305
  enumerable: true,
306
- get: function () { return chunkQGFKIAEM_js.EVENT_TYPES; }
306
+ get: function () { return chunkFWKSBF3F_js.EVENT_TYPES; }
307
307
  });
308
308
  Object.defineProperty(exports, "FxService", {
309
309
  enumerable: true,
310
- get: function () { return chunkQGFKIAEM_js.FxService; }
310
+ get: function () { return chunkFWKSBF3F_js.FxService; }
311
311
  });
312
312
  Object.defineProperty(exports, "InventoryService", {
313
313
  enumerable: true,
314
- get: function () { return chunkQGFKIAEM_js.InventoryService; }
314
+ get: function () { return chunkFWKSBF3F_js.InventoryService; }
315
315
  });
316
316
  Object.defineProperty(exports, "LINK_MUTATION", {
317
317
  enumerable: true,
318
- get: function () { return chunkQGFKIAEM_js.LINK_MUTATION; }
318
+ get: function () { return chunkFWKSBF3F_js.LINK_MUTATION; }
319
319
  });
320
320
  Object.defineProperty(exports, "LINK_QUERY", {
321
321
  enumerable: true,
322
- get: function () { return chunkQGFKIAEM_js.LINK_QUERY; }
322
+ get: function () { return chunkFWKSBF3F_js.LINK_QUERY; }
323
323
  });
324
324
  Object.defineProperty(exports, "LinkService", {
325
325
  enumerable: true,
326
- get: function () { return chunkQGFKIAEM_js.LinkService; }
326
+ get: function () { return chunkFWKSBF3F_js.LinkService; }
327
327
  });
328
328
  Object.defineProperty(exports, "LiteService", {
329
329
  enumerable: true,
330
- get: function () { return chunkQGFKIAEM_js.LiteService; }
330
+ get: function () { return chunkFWKSBF3F_js.LiteService; }
331
331
  });
332
332
  Object.defineProperty(exports, "MESSAGE_TYPES", {
333
333
  enumerable: true,
334
- get: function () { return chunkQGFKIAEM_js.MESSAGE_TYPES; }
334
+ get: function () { return chunkFWKSBF3F_js.MESSAGE_TYPES; }
335
335
  });
336
336
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
337
337
  enumerable: true,
338
- get: function () { return chunkQGFKIAEM_js.MOBILE_MONEY_PROVIDER; }
338
+ get: function () { return chunkFWKSBF3F_js.MOBILE_MONEY_PROVIDER; }
339
339
  });
340
340
  Object.defineProperty(exports, "ORDER_MUTATION", {
341
341
  enumerable: true,
342
- get: function () { return chunkQGFKIAEM_js.ORDER_MUTATION; }
342
+ get: function () { return chunkFWKSBF3F_js.ORDER_MUTATION; }
343
343
  });
344
344
  Object.defineProperty(exports, "ORDER_TYPE", {
345
345
  enumerable: true,
346
- get: function () { return chunkQGFKIAEM_js.ORDER_TYPE; }
346
+ get: function () { return chunkFWKSBF3F_js.ORDER_TYPE; }
347
347
  });
348
348
  Object.defineProperty(exports, "OrderQueries", {
349
349
  enumerable: true,
350
- get: function () { return chunkQGFKIAEM_js.OrderQueries; }
350
+ get: function () { return chunkFWKSBF3F_js.OrderQueries; }
351
351
  });
352
352
  Object.defineProperty(exports, "PAYMENT_METHOD", {
353
353
  enumerable: true,
354
- get: function () { return chunkQGFKIAEM_js.PAYMENT_METHOD; }
354
+ get: function () { return chunkFWKSBF3F_js.PAYMENT_METHOD; }
355
355
  });
356
356
  Object.defineProperty(exports, "PAYMENT_MUTATION", {
357
357
  enumerable: true,
358
- get: function () { return chunkQGFKIAEM_js.PAYMENT_MUTATION; }
358
+ get: function () { return chunkFWKSBF3F_js.PAYMENT_MUTATION; }
359
359
  });
360
360
  Object.defineProperty(exports, "PAYMENT_STATE", {
361
361
  enumerable: true,
362
- get: function () { return chunkQGFKIAEM_js.PAYMENT_STATE; }
362
+ get: function () { return chunkFWKSBF3F_js.PAYMENT_STATE; }
363
363
  });
364
364
  Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
365
365
  enumerable: true,
366
- get: function () { return chunkQGFKIAEM_js.PICKUP_TIME_TYPE; }
366
+ get: function () { return chunkFWKSBF3F_js.PICKUP_TIME_TYPE; }
367
367
  });
368
368
  Object.defineProperty(exports, "SchedulingService", {
369
369
  enumerable: true,
370
- get: function () { return chunkQGFKIAEM_js.SchedulingService; }
370
+ get: function () { return chunkFWKSBF3F_js.SchedulingService; }
371
371
  });
372
372
  Object.defineProperty(exports, "combine", {
373
373
  enumerable: true,
374
- get: function () { return chunkQGFKIAEM_js.combine; }
374
+ get: function () { return chunkFWKSBF3F_js.combine; }
375
375
  });
376
376
  Object.defineProperty(exports, "combineObject", {
377
377
  enumerable: true,
378
- get: function () { return chunkQGFKIAEM_js.combineObject; }
378
+ get: function () { return chunkFWKSBF3F_js.combineObject; }
379
379
  });
380
380
  Object.defineProperty(exports, "createElements", {
381
381
  enumerable: true,
382
- get: function () { return chunkQGFKIAEM_js.createElements; }
382
+ get: function () { return chunkFWKSBF3F_js.createElements; }
383
383
  });
384
384
  Object.defineProperty(exports, "err", {
385
385
  enumerable: true,
386
- get: function () { return chunkQGFKIAEM_js.err; }
386
+ get: function () { return chunkFWKSBF3F_js.err; }
387
387
  });
388
388
  Object.defineProperty(exports, "flatMap", {
389
389
  enumerable: true,
390
- get: function () { return chunkQGFKIAEM_js.flatMap; }
390
+ get: function () { return chunkFWKSBF3F_js.flatMap; }
391
391
  });
392
392
  Object.defineProperty(exports, "fromPromise", {
393
393
  enumerable: true,
394
- get: function () { return chunkQGFKIAEM_js.fromPromise; }
394
+ get: function () { return chunkFWKSBF3F_js.fromPromise; }
395
395
  });
396
396
  Object.defineProperty(exports, "generateIdempotencyKey", {
397
397
  enumerable: true,
398
- get: function () { return chunkQGFKIAEM_js.generateIdempotencyKey; }
398
+ get: function () { return chunkFWKSBF3F_js.generateIdempotencyKey; }
399
399
  });
400
400
  Object.defineProperty(exports, "getOrElse", {
401
401
  enumerable: true,
402
- get: function () { return chunkQGFKIAEM_js.getOrElse; }
402
+ get: function () { return chunkFWKSBF3F_js.getOrElse; }
403
403
  });
404
404
  Object.defineProperty(exports, "isErr", {
405
405
  enumerable: true,
406
- get: function () { return chunkQGFKIAEM_js.isErr; }
406
+ get: function () { return chunkFWKSBF3F_js.isErr; }
407
407
  });
408
408
  Object.defineProperty(exports, "isOk", {
409
409
  enumerable: true,
410
- get: function () { return chunkQGFKIAEM_js.isOk; }
410
+ get: function () { return chunkFWKSBF3F_js.isOk; }
411
411
  });
412
412
  Object.defineProperty(exports, "mapError", {
413
413
  enumerable: true,
414
- get: function () { return chunkQGFKIAEM_js.mapError; }
414
+ get: function () { return chunkFWKSBF3F_js.mapError; }
415
415
  });
416
416
  Object.defineProperty(exports, "mapResult", {
417
417
  enumerable: true,
418
- get: function () { return chunkQGFKIAEM_js.mapResult; }
418
+ get: function () { return chunkFWKSBF3F_js.mapResult; }
419
419
  });
420
420
  Object.defineProperty(exports, "ok", {
421
421
  enumerable: true,
422
- get: function () { return chunkQGFKIAEM_js.ok; }
422
+ get: function () { return chunkFWKSBF3F_js.ok; }
423
423
  });
424
424
  Object.defineProperty(exports, "startSignIn", {
425
425
  enumerable: true,
426
- get: function () { return chunkQGFKIAEM_js.startSignIn; }
426
+ get: function () { return chunkFWKSBF3F_js.startSignIn; }
427
427
  });
428
428
  Object.defineProperty(exports, "toNullable", {
429
429
  enumerable: true,
430
- get: function () { return chunkQGFKIAEM_js.toNullable; }
430
+ get: function () { return chunkFWKSBF3F_js.toNullable; }
431
431
  });
432
432
  Object.defineProperty(exports, "tryCatch", {
433
433
  enumerable: true,
434
- get: function () { return chunkQGFKIAEM_js.tryCatch; }
434
+ get: function () { return chunkFWKSBF3F_js.tryCatch; }
435
435
  });
436
436
  Object.defineProperty(exports, "unwrap", {
437
437
  enumerable: true,
438
- get: function () { return chunkQGFKIAEM_js.unwrap; }
438
+ get: function () { return chunkFWKSBF3F_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-T2B656RS.mjs';
4
- import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-PTKAN4SI.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-PTKAN4SI.mjs';
3
+ export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-XG4DZT4I.mjs';
4
+ import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-FFRQNNUQ.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-FFRQNNUQ.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
@@ -3478,7 +3478,7 @@ function buildV1(deps) {
3478
3478
  });
3479
3479
  app.post("/activity/events", async (c) => {
3480
3480
  const body = await c.req.json().catch(() => ({}));
3481
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
3481
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
3482
3482
  });
3483
3483
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
3484
3484
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -5619,7 +5619,7 @@ function toUICart(registry, cart) {
5619
5619
  is_available: product?.is_available ?? true,
5620
5620
  base_price: i.price,
5621
5621
  add_ons_price: i.add_ons_price,
5622
- total_price: multiply(add(i.price, i.add_ons_price), i.quantity),
5622
+ total_price: add(i.price, i.add_ons_price),
5623
5623
  item_discount_amount: i.item_discount_amount,
5624
5624
  price_info: defaultChosenPrice(i.price),
5625
5625
  add_on_option_ids: cfg.add_ons?.selected_options.map((o) => o.option_id) ?? [],
@@ -6441,7 +6441,7 @@ function createActivityService(opts) {
6441
6441
  id,
6442
6442
  business_id: businessId,
6443
6443
  session_id: sessionId,
6444
- event_type: e.event_type,
6444
+ event_type: e.type,
6445
6445
  payload: e.payload ?? {},
6446
6446
  created_at: clock.iso()
6447
6447
  };
@@ -2540,7 +2540,7 @@ function buildV1(deps) {
2540
2540
  });
2541
2541
  app.post("/activity/events", async (c) => {
2542
2542
  const body = await c.req.json().catch(() => ({}));
2543
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2543
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2544
2544
  });
2545
2545
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2546
2546
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -4681,7 +4681,7 @@ function toUICart(registry, cart) {
4681
4681
  is_available: product?.is_available ?? true,
4682
4682
  base_price: i.price,
4683
4683
  add_ons_price: i.add_ons_price,
4684
- total_price: multiply(add(i.price, i.add_ons_price), i.quantity),
4684
+ total_price: add(i.price, i.add_ons_price),
4685
4685
  item_discount_amount: i.item_discount_amount,
4686
4686
  price_info: defaultChosenPrice(i.price),
4687
4687
  add_on_option_ids: cfg.add_ons?.selected_options.map((o) => o.option_id) ?? [],
@@ -5503,7 +5503,7 @@ function createActivityService(opts) {
5503
5503
  id,
5504
5504
  business_id: businessId,
5505
5505
  session_id: sessionId,
5506
- event_type: e.event_type,
5506
+ event_type: e.type,
5507
5507
  payload: e.payload ?? {},
5508
5508
  created_at: clock.iso()
5509
5509
  };
@@ -2538,7 +2538,7 @@ function buildV1(deps) {
2538
2538
  });
2539
2539
  app.post("/activity/events", async (c) => {
2540
2540
  const body = await c.req.json().catch(() => ({}));
2541
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2541
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2542
2542
  });
2543
2543
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2544
2544
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -4679,7 +4679,7 @@ function toUICart(registry, cart) {
4679
4679
  is_available: product?.is_available ?? true,
4680
4680
  base_price: i.price,
4681
4681
  add_ons_price: i.add_ons_price,
4682
- total_price: multiply(add(i.price, i.add_ons_price), i.quantity),
4682
+ total_price: add(i.price, i.add_ons_price),
4683
4683
  item_discount_amount: i.item_discount_amount,
4684
4684
  price_info: defaultChosenPrice(i.price),
4685
4685
  add_on_option_ids: cfg.add_ons?.selected_options.map((o) => o.option_id) ?? [],
@@ -5501,7 +5501,7 @@ function createActivityService(opts) {
5501
5501
  id,
5502
5502
  business_id: businessId,
5503
5503
  session_id: sessionId,
5504
- event_type: e.event_type,
5504
+ event_type: e.type,
5505
5505
  payload: e.payload ?? {},
5506
5506
  created_at: clock.iso()
5507
5507
  };
package/dist/mock/msw.js CHANGED
@@ -2538,7 +2538,7 @@ function buildV1(deps) {
2538
2538
  });
2539
2539
  app.post("/activity/events", async (c) => {
2540
2540
  const body = await c.req.json().catch(() => ({}));
2541
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2541
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2542
2542
  });
2543
2543
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2544
2544
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -4679,7 +4679,7 @@ function toUICart(registry, cart) {
4679
4679
  is_available: product?.is_available ?? true,
4680
4680
  base_price: i.price,
4681
4681
  add_ons_price: i.add_ons_price,
4682
- total_price: multiply(add(i.price, i.add_ons_price), i.quantity),
4682
+ total_price: add(i.price, i.add_ons_price),
4683
4683
  item_discount_amount: i.item_discount_amount,
4684
4684
  price_info: defaultChosenPrice(i.price),
4685
4685
  add_on_option_ids: cfg.add_ons?.selected_options.map((o) => o.option_id) ?? [],
@@ -5501,7 +5501,7 @@ function createActivityService(opts) {
5501
5501
  id,
5502
5502
  business_id: businessId,
5503
5503
  session_id: sessionId,
5504
- event_type: e.event_type,
5504
+ event_type: e.type,
5505
5505
  payload: e.payload ?? {},
5506
5506
  created_at: clock.iso()
5507
5507
  };
package/dist/mock/msw.mjs CHANGED
@@ -2536,7 +2536,7 @@ function buildV1(deps) {
2536
2536
  });
2537
2537
  app.post("/activity/events", async (c) => {
2538
2538
  const body = await c.req.json().catch(() => ({}));
2539
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2539
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2540
2540
  });
2541
2541
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2542
2542
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -4677,7 +4677,7 @@ function toUICart(registry, cart) {
4677
4677
  is_available: product?.is_available ?? true,
4678
4678
  base_price: i.price,
4679
4679
  add_ons_price: i.add_ons_price,
4680
- total_price: multiply(add(i.price, i.add_ons_price), i.quantity),
4680
+ total_price: add(i.price, i.add_ons_price),
4681
4681
  item_discount_amount: i.item_discount_amount,
4682
4682
  price_info: defaultChosenPrice(i.price),
4683
4683
  add_on_option_ids: cfg.add_ons?.selected_options.map((o) => o.option_id) ?? [],
@@ -5499,7 +5499,7 @@ function createActivityService(opts) {
5499
5499
  id,
5500
5500
  business_id: businessId,
5501
5501
  session_id: sessionId,
5502
- event_type: e.event_type,
5502
+ event_type: e.type,
5503
5503
  payload: e.payload ?? {},
5504
5504
  created_at: clock.iso()
5505
5505
  };
@@ -1,4 +1,4 @@
1
- import { aO as Money, ad as CurrencyCode } from './product-B384_Qm2.mjs';
1
+ import { aO as Money, ad as CurrencyCode } from './product-CeV8euw4.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 { aO as Money, ad as CurrencyCode } from './product-B384_Qm2.js';
1
+ import { aO as Money, ad as CurrencyCode } from './product-CeV8euw4.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, bi as SaleInfo, bD as UpcomingSale } from './product-B384_Qm2.js';
1
+ import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-CeV8euw4.js';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
@@ -1,4 +1,4 @@
1
- import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-B384_Qm2.mjs';
1
+ import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-CeV8euw4.mjs';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
@@ -2333,8 +2333,8 @@ interface components {
2333
2333
  * can be explained months later even if zones, rates, or providers change.
2334
2334
  */
2335
2335
  DeliveryFeeDetails: {
2336
- zone_id: string;
2337
- zone_name: string;
2336
+ zone_id?: string | null;
2337
+ zone_name?: string | null;
2338
2338
  provider: string;
2339
2339
  provider_resolved_from: components["schemas"]["ProviderResolutionSource"];
2340
2340
  /**
@@ -2343,10 +2343,10 @@ interface components {
2343
2343
  */
2344
2344
  rate_id?: string | null;
2345
2345
  rate_name?: string | null;
2346
- distance_km: string;
2347
- base_fee: string;
2348
- per_km_fee: string;
2349
- surge_multiplier: string;
2346
+ distance_km?: string | null;
2347
+ base_fee?: string | null;
2348
+ per_km_fee?: string | null;
2349
+ surge_multiplier?: string | null;
2350
2350
  calculated_fee: string;
2351
2351
  currency: string;
2352
2352
  free_delivery_applied: boolean;
@@ -2362,9 +2362,10 @@ interface components {
2362
2362
  details?: null | components["schemas"]["DeliveryFeeDetails"];
2363
2363
  };
2364
2364
  /**
2365
- * @description One entry on the customer-facing delivery menu, priced for a concrete
2366
- * dropoff. `rate_id = None` is the synthesized fallback for businesses with
2367
- * no named rates configured.
2365
+ * @description One entry on the customer-facing delivery menu. Zone-backed rates are
2366
+ * priced for a concrete dropoff; all-zone flat rates can be priced from the
2367
+ * order value alone. `rate_id = None` is the synthesized fallback for
2368
+ * businesses with no named rates configured.
2368
2369
  */
2369
2370
  DeliveryOption: {
2370
2371
  rate_id?: string | null;
@@ -3820,7 +3821,7 @@ interface components {
3820
3821
  * @description How the delivery provider was resolved.
3821
3822
  * @enum {string}
3822
3823
  */
3823
- ProviderResolutionSource: "zone" | "hint" | "fallback" | "best_price";
3824
+ ProviderResolutionSource: "zone" | "hint" | "fallback" | "rate" | "best_price";
3824
3825
  QuantityPricingTier: {
3825
3826
  /** Format: int32 */
3826
3827
  min_quantity: number;
@@ -2333,8 +2333,8 @@ interface components {
2333
2333
  * can be explained months later even if zones, rates, or providers change.
2334
2334
  */
2335
2335
  DeliveryFeeDetails: {
2336
- zone_id: string;
2337
- zone_name: string;
2336
+ zone_id?: string | null;
2337
+ zone_name?: string | null;
2338
2338
  provider: string;
2339
2339
  provider_resolved_from: components["schemas"]["ProviderResolutionSource"];
2340
2340
  /**
@@ -2343,10 +2343,10 @@ interface components {
2343
2343
  */
2344
2344
  rate_id?: string | null;
2345
2345
  rate_name?: string | null;
2346
- distance_km: string;
2347
- base_fee: string;
2348
- per_km_fee: string;
2349
- surge_multiplier: string;
2346
+ distance_km?: string | null;
2347
+ base_fee?: string | null;
2348
+ per_km_fee?: string | null;
2349
+ surge_multiplier?: string | null;
2350
2350
  calculated_fee: string;
2351
2351
  currency: string;
2352
2352
  free_delivery_applied: boolean;
@@ -2362,9 +2362,10 @@ interface components {
2362
2362
  details?: null | components["schemas"]["DeliveryFeeDetails"];
2363
2363
  };
2364
2364
  /**
2365
- * @description One entry on the customer-facing delivery menu, priced for a concrete
2366
- * dropoff. `rate_id = None` is the synthesized fallback for businesses with
2367
- * no named rates configured.
2365
+ * @description One entry on the customer-facing delivery menu. Zone-backed rates are
2366
+ * priced for a concrete dropoff; all-zone flat rates can be priced from the
2367
+ * order value alone. `rate_id = None` is the synthesized fallback for
2368
+ * businesses with no named rates configured.
2368
2369
  */
2369
2370
  DeliveryOption: {
2370
2371
  rate_id?: string | null;
@@ -3820,7 +3821,7 @@ interface components {
3820
3821
  * @description How the delivery provider was resolved.
3821
3822
  * @enum {string}
3822
3823
  */
3823
- ProviderResolutionSource: "zone" | "hint" | "fallback" | "best_price";
3824
+ ProviderResolutionSource: "zone" | "hint" | "fallback" | "rate" | "best_price";
3824
3825
  QuantityPricingTier: {
3825
3826
  /** Format: int32 */
3826
3827
  min_quantity: number;