@cimplify/sdk 0.92.0 → 0.94.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.
Files changed (59) 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-OAHSF542.js → chunk-6Y7KC5YZ.js} +11 -0
  6. package/dist/{chunk-3MBMIEWT.js → chunk-AWNWP5J3.js} +4 -4
  7. package/dist/{chunk-3XD2FVP4.mjs → chunk-FKARGZK3.mjs} +195 -60
  8. package/dist/{chunk-DCRN67NO.js → chunk-QLGZIBRO.js} +237 -102
  9. package/dist/{chunk-54H2YYIW.mjs → chunk-QXWX7CD2.mjs} +2 -2
  10. package/dist/{chunk-IVJEUGWF.js → chunk-VEOAMBEX.js} +1 -3
  11. package/dist/{chunk-T7LDBZZZ.mjs → chunk-VUSHG3HA.mjs} +1 -3
  12. package/dist/{chunk-PYBFTMHI.mjs → chunk-X36FZZT6.mjs} +11 -0
  13. package/dist/{client-CeW3acve.d.ts → client-BTL9d_nN.d.mts} +29 -2
  14. package/dist/{client-BQbSKlHS.d.mts → client-BX30FAWZ.d.ts} +29 -2
  15. package/dist/{client-Bw4HtLP1.d.mts → client-Bhe2TnFW.d.mts} +2 -2
  16. package/dist/{client-Otzv_rgP.d.ts → client-DrkuEK_I.d.ts} +2 -2
  17. package/dist/{index-CmIboQjl.d.mts → index-BuNjyfaV.d.mts} +3 -3
  18. package/dist/{index-DgoRwz8l.d.ts → index-D-w5h82t.d.ts} +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 +11 -0
  24. package/dist/mock/library.js +11 -0
  25. package/dist/mock/library.mjs +11 -0
  26. package/dist/mock/msw.js +11 -0
  27. package/dist/mock/msw.mjs +11 -0
  28. package/dist/{payment-Cq8FT1B6.d.ts → payment-By0JidTe.d.ts} +1 -1
  29. package/dist/{payment-BFtLqiG2.d.mts → payment-pKPpaORI.d.mts} +1 -1
  30. package/dist/{price-DaFXT-Lr.d.ts → price-23RNXftz.d.ts} +1 -1
  31. package/dist/{price-DleDWk_s.d.mts → price-BvRtp6ak.d.mts} +1 -1
  32. package/dist/{product-bZ8G5Z8D.d.mts → product-O8-wcHSe.d.mts} +11 -0
  33. package/dist/{product-bZ8G5Z8D.d.ts → product-O8-wcHSe.d.ts} +11 -0
  34. package/dist/react.d.mts +20 -6
  35. package/dist/react.d.ts +20 -6
  36. package/dist/react.js +208 -76
  37. package/dist/react.mjs +190 -59
  38. package/dist/{server-D-iK-bNt.d.mts → server-BN9ZCAKT.d.mts} +5 -1
  39. package/dist/{server-DwsY9hlX.d.ts → server-DDGbfW_S.d.ts} +5 -1
  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
  59. package/registry/chat-widget.json +1 -1
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  var chunkHKN3YG76_js = require('./chunk-HKN3YG76.js');
4
4
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
5
- var chunkDCRN67NO_js = require('./chunk-DCRN67NO.js');
6
- var chunkIVJEUGWF_js = require('./chunk-IVJEUGWF.js');
5
+ var chunkQLGZIBRO_js = require('./chunk-QLGZIBRO.js');
6
+ var chunkVEOAMBEX_js = require('./chunk-VEOAMBEX.js');
7
7
  var chunkPTPOQVXS_js = require('./chunk-PTPOQVXS.js');
8
8
  var chunkAETVRBKI_js = require('./chunk-AETVRBKI.js');
9
9
  require('./chunk-OWW5GUSB.js');
@@ -33,9 +33,9 @@ async function signInSilent(opts) {
33
33
  } catch {
34
34
  }
35
35
  const callbackUri = opts.callbackUri ?? "/auth/callback";
36
- const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkIVJEUGWF_js.getAuthorizationEndpoint(opts.issuer ?? chunkIVJEUGWF_js.DEFAULT_ISSUER);
37
- const pkce = await chunkIVJEUGWF_js.generatePkce();
38
- const state = chunkIVJEUGWF_js.generateState();
36
+ const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkVEOAMBEX_js.getAuthorizationEndpoint(opts.issuer ?? chunkVEOAMBEX_js.DEFAULT_ISSUER);
37
+ const pkce = await chunkVEOAMBEX_js.generatePkce();
38
+ const state = chunkVEOAMBEX_js.generateState();
39
39
  const params = new URLSearchParams({
40
40
  response_type: RESPONSE_TYPE_CODE,
41
41
  response_mode: RESPONSE_MODE_WEB_MESSAGE,
@@ -185,259 +185,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
185
185
  });
186
186
  Object.defineProperty(exports, "ActivityService", {
187
187
  enumerable: true,
188
- get: function () { return chunkDCRN67NO_js.ActivityService; }
188
+ get: function () { return chunkQLGZIBRO_js.ActivityService; }
189
189
  });
190
190
  Object.defineProperty(exports, "CimplifyClient", {
191
191
  enumerable: true,
192
- get: function () { return chunkDCRN67NO_js.CimplifyClient; }
192
+ get: function () { return chunkQLGZIBRO_js.CimplifyClient; }
193
193
  });
194
194
  Object.defineProperty(exports, "DeliveryService", {
195
195
  enumerable: true,
196
- get: function () { return chunkDCRN67NO_js.DeliveryService; }
196
+ get: function () { return chunkQLGZIBRO_js.DeliveryService; }
197
197
  });
198
198
  Object.defineProperty(exports, "PlacesService", {
199
199
  enumerable: true,
200
- get: function () { return chunkDCRN67NO_js.PlacesService; }
200
+ get: function () { return chunkQLGZIBRO_js.PlacesService; }
201
201
  });
202
202
  Object.defineProperty(exports, "StoreCreditQueries", {
203
203
  enumerable: true,
204
- get: function () { return chunkDCRN67NO_js.StoreCreditQueries; }
204
+ get: function () { return chunkQLGZIBRO_js.StoreCreditQueries; }
205
205
  });
206
206
  Object.defineProperty(exports, "SubscriptionService", {
207
207
  enumerable: true,
208
- get: function () { return chunkDCRN67NO_js.SubscriptionService; }
208
+ get: function () { return chunkQLGZIBRO_js.SubscriptionService; }
209
209
  });
210
210
  Object.defineProperty(exports, "SupportService", {
211
211
  enumerable: true,
212
- get: function () { return chunkDCRN67NO_js.SupportService; }
212
+ get: function () { return chunkQLGZIBRO_js.SupportService; }
213
213
  });
214
214
  Object.defineProperty(exports, "UploadService", {
215
215
  enumerable: true,
216
- get: function () { return chunkDCRN67NO_js.UploadService; }
216
+ get: function () { return chunkQLGZIBRO_js.UploadService; }
217
217
  });
218
218
  Object.defineProperty(exports, "createCimplifyClient", {
219
219
  enumerable: true,
220
- get: function () { return chunkDCRN67NO_js.createCimplifyClient; }
220
+ get: function () { return chunkQLGZIBRO_js.createCimplifyClient; }
221
221
  });
222
222
  Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
223
223
  enumerable: true,
224
- get: function () { return chunkIVJEUGWF_js.AUTHORIZATION_TYPE; }
224
+ get: function () { return chunkVEOAMBEX_js.AUTHORIZATION_TYPE; }
225
225
  });
226
226
  Object.defineProperty(exports, "AUTH_MUTATION", {
227
227
  enumerable: true,
228
- get: function () { return chunkIVJEUGWF_js.AUTH_MUTATION; }
228
+ get: function () { return chunkVEOAMBEX_js.AUTH_MUTATION; }
229
229
  });
230
230
  Object.defineProperty(exports, "AuthService", {
231
231
  enumerable: true,
232
- get: function () { return chunkIVJEUGWF_js.AuthService; }
232
+ get: function () { return chunkVEOAMBEX_js.AuthService; }
233
233
  });
234
234
  Object.defineProperty(exports, "BusinessService", {
235
235
  enumerable: true,
236
- get: function () { return chunkIVJEUGWF_js.BusinessService; }
236
+ get: function () { return chunkVEOAMBEX_js.BusinessService; }
237
237
  });
238
238
  Object.defineProperty(exports, "CHECKOUT_MODE", {
239
239
  enumerable: true,
240
- get: function () { return chunkIVJEUGWF_js.CHECKOUT_MODE; }
240
+ get: function () { return chunkVEOAMBEX_js.CHECKOUT_MODE; }
241
241
  });
242
242
  Object.defineProperty(exports, "CHECKOUT_MUTATION", {
243
243
  enumerable: true,
244
- get: function () { return chunkIVJEUGWF_js.CHECKOUT_MUTATION; }
244
+ get: function () { return chunkVEOAMBEX_js.CHECKOUT_MUTATION; }
245
245
  });
246
246
  Object.defineProperty(exports, "CHECKOUT_STEP", {
247
247
  enumerable: true,
248
- get: function () { return chunkIVJEUGWF_js.CHECKOUT_STEP; }
248
+ get: function () { return chunkVEOAMBEX_js.CHECKOUT_STEP; }
249
249
  });
250
250
  Object.defineProperty(exports, "CONTACT_TYPE", {
251
251
  enumerable: true,
252
- get: function () { return chunkIVJEUGWF_js.CONTACT_TYPE; }
252
+ get: function () { return chunkVEOAMBEX_js.CONTACT_TYPE; }
253
253
  });
254
254
  Object.defineProperty(exports, "CartOperations", {
255
255
  enumerable: true,
256
- get: function () { return chunkIVJEUGWF_js.CartOperations; }
256
+ get: function () { return chunkVEOAMBEX_js.CartOperations; }
257
257
  });
258
258
  Object.defineProperty(exports, "CatalogueQueries", {
259
259
  enumerable: true,
260
- get: function () { return chunkIVJEUGWF_js.CatalogueQueries; }
260
+ get: function () { return chunkVEOAMBEX_js.CatalogueQueries; }
261
261
  });
262
262
  Object.defineProperty(exports, "CheckoutOperations", {
263
263
  enumerable: true,
264
- get: function () { return chunkIVJEUGWF_js.CheckoutService; }
264
+ get: function () { return chunkVEOAMBEX_js.CheckoutService; }
265
265
  });
266
266
  Object.defineProperty(exports, "CheckoutService", {
267
267
  enumerable: true,
268
- get: function () { return chunkIVJEUGWF_js.CheckoutService; }
268
+ get: function () { return chunkVEOAMBEX_js.CheckoutService; }
269
269
  });
270
270
  Object.defineProperty(exports, "CimplifyElement", {
271
271
  enumerable: true,
272
- get: function () { return chunkIVJEUGWF_js.CimplifyElement; }
272
+ get: function () { return chunkVEOAMBEX_js.CimplifyElement; }
273
273
  });
274
274
  Object.defineProperty(exports, "CimplifyElements", {
275
275
  enumerable: true,
276
- get: function () { return chunkIVJEUGWF_js.CimplifyElements; }
276
+ get: function () { return chunkVEOAMBEX_js.CimplifyElements; }
277
277
  });
278
278
  Object.defineProperty(exports, "DEFAULT_COUNTRY", {
279
279
  enumerable: true,
280
- get: function () { return chunkIVJEUGWF_js.DEFAULT_COUNTRY; }
280
+ get: function () { return chunkVEOAMBEX_js.DEFAULT_COUNTRY; }
281
281
  });
282
282
  Object.defineProperty(exports, "DEFAULT_CURRENCY", {
283
283
  enumerable: true,
284
- get: function () { return chunkIVJEUGWF_js.DEFAULT_CURRENCY; }
284
+ get: function () { return chunkVEOAMBEX_js.DEFAULT_CURRENCY; }
285
285
  });
286
286
  Object.defineProperty(exports, "DEVICE_TYPE", {
287
287
  enumerable: true,
288
- get: function () { return chunkIVJEUGWF_js.DEVICE_TYPE; }
288
+ get: function () { return chunkVEOAMBEX_js.DEVICE_TYPE; }
289
289
  });
290
290
  Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
291
291
  enumerable: true,
292
- get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_CONTACT_TYPES; }
292
+ get: function () { return chunkVEOAMBEX_js.ELEMENTS_AUTH_CONTACT_TYPES; }
293
293
  });
294
294
  Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
295
295
  enumerable: true,
296
- get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_MODES; }
296
+ get: function () { return chunkVEOAMBEX_js.ELEMENTS_AUTH_MODES; }
297
297
  });
298
298
  Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
299
299
  enumerable: true,
300
- get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_PROMPTS; }
300
+ get: function () { return chunkVEOAMBEX_js.ELEMENTS_AUTH_PROMPTS; }
301
301
  });
302
302
  Object.defineProperty(exports, "ELEMENT_TYPES", {
303
303
  enumerable: true,
304
- get: function () { return chunkIVJEUGWF_js.ELEMENT_TYPES; }
304
+ get: function () { return chunkVEOAMBEX_js.ELEMENT_TYPES; }
305
305
  });
306
306
  Object.defineProperty(exports, "EVENT_TYPES", {
307
307
  enumerable: true,
308
- get: function () { return chunkIVJEUGWF_js.EVENT_TYPES; }
308
+ get: function () { return chunkVEOAMBEX_js.EVENT_TYPES; }
309
309
  });
310
310
  Object.defineProperty(exports, "FxService", {
311
311
  enumerable: true,
312
- get: function () { return chunkIVJEUGWF_js.FxService; }
312
+ get: function () { return chunkVEOAMBEX_js.FxService; }
313
313
  });
314
314
  Object.defineProperty(exports, "InventoryService", {
315
315
  enumerable: true,
316
- get: function () { return chunkIVJEUGWF_js.InventoryService; }
316
+ get: function () { return chunkVEOAMBEX_js.InventoryService; }
317
317
  });
318
318
  Object.defineProperty(exports, "LINK_MUTATION", {
319
319
  enumerable: true,
320
- get: function () { return chunkIVJEUGWF_js.LINK_MUTATION; }
320
+ get: function () { return chunkVEOAMBEX_js.LINK_MUTATION; }
321
321
  });
322
322
  Object.defineProperty(exports, "LINK_QUERY", {
323
323
  enumerable: true,
324
- get: function () { return chunkIVJEUGWF_js.LINK_QUERY; }
324
+ get: function () { return chunkVEOAMBEX_js.LINK_QUERY; }
325
325
  });
326
326
  Object.defineProperty(exports, "LinkService", {
327
327
  enumerable: true,
328
- get: function () { return chunkIVJEUGWF_js.LinkService; }
328
+ get: function () { return chunkVEOAMBEX_js.LinkService; }
329
329
  });
330
330
  Object.defineProperty(exports, "LiteService", {
331
331
  enumerable: true,
332
- get: function () { return chunkIVJEUGWF_js.LiteService; }
332
+ get: function () { return chunkVEOAMBEX_js.LiteService; }
333
333
  });
334
334
  Object.defineProperty(exports, "MESSAGE_TYPES", {
335
335
  enumerable: true,
336
- get: function () { return chunkIVJEUGWF_js.MESSAGE_TYPES; }
336
+ get: function () { return chunkVEOAMBEX_js.MESSAGE_TYPES; }
337
337
  });
338
338
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
339
339
  enumerable: true,
340
- get: function () { return chunkIVJEUGWF_js.MOBILE_MONEY_PROVIDER; }
340
+ get: function () { return chunkVEOAMBEX_js.MOBILE_MONEY_PROVIDER; }
341
341
  });
342
342
  Object.defineProperty(exports, "ORDER_MUTATION", {
343
343
  enumerable: true,
344
- get: function () { return chunkIVJEUGWF_js.ORDER_MUTATION; }
344
+ get: function () { return chunkVEOAMBEX_js.ORDER_MUTATION; }
345
345
  });
346
346
  Object.defineProperty(exports, "ORDER_TYPE", {
347
347
  enumerable: true,
348
- get: function () { return chunkIVJEUGWF_js.ORDER_TYPE; }
348
+ get: function () { return chunkVEOAMBEX_js.ORDER_TYPE; }
349
349
  });
350
350
  Object.defineProperty(exports, "OrderQueries", {
351
351
  enumerable: true,
352
- get: function () { return chunkIVJEUGWF_js.OrderQueries; }
352
+ get: function () { return chunkVEOAMBEX_js.OrderQueries; }
353
353
  });
354
354
  Object.defineProperty(exports, "PAYMENT_METHOD", {
355
355
  enumerable: true,
356
- get: function () { return chunkIVJEUGWF_js.PAYMENT_METHOD; }
356
+ get: function () { return chunkVEOAMBEX_js.PAYMENT_METHOD; }
357
357
  });
358
358
  Object.defineProperty(exports, "PAYMENT_MUTATION", {
359
359
  enumerable: true,
360
- get: function () { return chunkIVJEUGWF_js.PAYMENT_MUTATION; }
360
+ get: function () { return chunkVEOAMBEX_js.PAYMENT_MUTATION; }
361
361
  });
362
362
  Object.defineProperty(exports, "PAYMENT_STATE", {
363
363
  enumerable: true,
364
- get: function () { return chunkIVJEUGWF_js.PAYMENT_STATE; }
364
+ get: function () { return chunkVEOAMBEX_js.PAYMENT_STATE; }
365
365
  });
366
366
  Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
367
367
  enumerable: true,
368
- get: function () { return chunkIVJEUGWF_js.PICKUP_TIME_TYPE; }
368
+ get: function () { return chunkVEOAMBEX_js.PICKUP_TIME_TYPE; }
369
369
  });
370
370
  Object.defineProperty(exports, "SchedulingService", {
371
371
  enumerable: true,
372
- get: function () { return chunkIVJEUGWF_js.SchedulingService; }
372
+ get: function () { return chunkVEOAMBEX_js.SchedulingService; }
373
373
  });
374
374
  Object.defineProperty(exports, "combine", {
375
375
  enumerable: true,
376
- get: function () { return chunkIVJEUGWF_js.combine; }
376
+ get: function () { return chunkVEOAMBEX_js.combine; }
377
377
  });
378
378
  Object.defineProperty(exports, "combineObject", {
379
379
  enumerable: true,
380
- get: function () { return chunkIVJEUGWF_js.combineObject; }
380
+ get: function () { return chunkVEOAMBEX_js.combineObject; }
381
381
  });
382
382
  Object.defineProperty(exports, "createElements", {
383
383
  enumerable: true,
384
- get: function () { return chunkIVJEUGWF_js.createElements; }
384
+ get: function () { return chunkVEOAMBEX_js.createElements; }
385
385
  });
386
386
  Object.defineProperty(exports, "err", {
387
387
  enumerable: true,
388
- get: function () { return chunkIVJEUGWF_js.err; }
388
+ get: function () { return chunkVEOAMBEX_js.err; }
389
389
  });
390
390
  Object.defineProperty(exports, "flatMap", {
391
391
  enumerable: true,
392
- get: function () { return chunkIVJEUGWF_js.flatMap; }
392
+ get: function () { return chunkVEOAMBEX_js.flatMap; }
393
393
  });
394
394
  Object.defineProperty(exports, "fromPromise", {
395
395
  enumerable: true,
396
- get: function () { return chunkIVJEUGWF_js.fromPromise; }
396
+ get: function () { return chunkVEOAMBEX_js.fromPromise; }
397
397
  });
398
398
  Object.defineProperty(exports, "generateIdempotencyKey", {
399
399
  enumerable: true,
400
- get: function () { return chunkIVJEUGWF_js.generateIdempotencyKey; }
400
+ get: function () { return chunkVEOAMBEX_js.generateIdempotencyKey; }
401
401
  });
402
402
  Object.defineProperty(exports, "getOrElse", {
403
403
  enumerable: true,
404
- get: function () { return chunkIVJEUGWF_js.getOrElse; }
404
+ get: function () { return chunkVEOAMBEX_js.getOrElse; }
405
405
  });
406
406
  Object.defineProperty(exports, "isErr", {
407
407
  enumerable: true,
408
- get: function () { return chunkIVJEUGWF_js.isErr; }
408
+ get: function () { return chunkVEOAMBEX_js.isErr; }
409
409
  });
410
410
  Object.defineProperty(exports, "isOk", {
411
411
  enumerable: true,
412
- get: function () { return chunkIVJEUGWF_js.isOk; }
412
+ get: function () { return chunkVEOAMBEX_js.isOk; }
413
413
  });
414
414
  Object.defineProperty(exports, "mapError", {
415
415
  enumerable: true,
416
- get: function () { return chunkIVJEUGWF_js.mapError; }
416
+ get: function () { return chunkVEOAMBEX_js.mapError; }
417
417
  });
418
418
  Object.defineProperty(exports, "mapResult", {
419
419
  enumerable: true,
420
- get: function () { return chunkIVJEUGWF_js.mapResult; }
420
+ get: function () { return chunkVEOAMBEX_js.mapResult; }
421
421
  });
422
422
  Object.defineProperty(exports, "ok", {
423
423
  enumerable: true,
424
- get: function () { return chunkIVJEUGWF_js.ok; }
424
+ get: function () { return chunkVEOAMBEX_js.ok; }
425
425
  });
426
426
  Object.defineProperty(exports, "startSignIn", {
427
427
  enumerable: true,
428
- get: function () { return chunkIVJEUGWF_js.startSignIn; }
428
+ get: function () { return chunkVEOAMBEX_js.startSignIn; }
429
429
  });
430
430
  Object.defineProperty(exports, "toNullable", {
431
431
  enumerable: true,
432
- get: function () { return chunkIVJEUGWF_js.toNullable; }
432
+ get: function () { return chunkVEOAMBEX_js.toNullable; }
433
433
  });
434
434
  Object.defineProperty(exports, "tryCatch", {
435
435
  enumerable: true,
436
- get: function () { return chunkIVJEUGWF_js.tryCatch; }
436
+ get: function () { return chunkVEOAMBEX_js.tryCatch; }
437
437
  });
438
438
  Object.defineProperty(exports, "unwrap", {
439
439
  enumerable: true,
440
- get: function () { return chunkIVJEUGWF_js.unwrap; }
440
+ get: function () { return chunkVEOAMBEX_js.unwrap; }
441
441
  });
442
442
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
443
443
  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, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-RRBY35TJ.mjs';
2
2
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
3
- export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-3XD2FVP4.mjs';
4
- import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-T7LDBZZZ.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-T7LDBZZZ.mjs';
3
+ export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-FKARGZK3.mjs';
4
+ import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-VUSHG3HA.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-VUSHG3HA.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-KFLGQGMC.mjs';
7
7
  export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-K5EN2W2Q.mjs';
8
8
  import './chunk-3G6RQLXK.mjs';
package/dist/mock/cli.mjs CHANGED
@@ -3490,6 +3490,10 @@ function buildV1(deps) {
3490
3490
  "/support/conversation",
3491
3491
  (c) => tryRoute(c, () => deps.support.openConversation(deps.defaultBusinessId, c.var.session.customer_id))
3492
3492
  );
3493
+ app.get(
3494
+ "/support/conversation",
3495
+ (c) => tryRoute(c, () => deps.support.peekConversation(deps.defaultBusinessId, c.var.session.customer_id))
3496
+ );
3493
3497
  app.post("/support/conversation/messages", async (c) => {
3494
3498
  const body = await c.req.json().catch(() => ({}));
3495
3499
  return tryRoute(
@@ -6510,6 +6514,13 @@ function createSupportService(opts) {
6510
6514
  registry.conversations.put(id, conv);
6511
6515
  return conv;
6512
6516
  },
6517
+ peekConversation(businessId, customerId) {
6518
+ const matches = registry.conversations.list(
6519
+ (c) => c.business_id === businessId && c.customer_id === customerId
6520
+ );
6521
+ const conv = matches[matches.length - 1];
6522
+ return conv ? { conversation: conv, messages: conv.messages } : { conversation: null, messages: [] };
6523
+ },
6513
6524
  sendMessage(conversationId, body) {
6514
6525
  const conv = registry.conversations.get(conversationId);
6515
6526
  if (!conv) throw notFound(`Conversation ${conversationId} not found`);
@@ -2552,6 +2552,10 @@ function buildV1(deps) {
2552
2552
  "/support/conversation",
2553
2553
  (c) => tryRoute(c, () => deps.support.openConversation(deps.defaultBusinessId, c.var.session.customer_id))
2554
2554
  );
2555
+ app.get(
2556
+ "/support/conversation",
2557
+ (c) => tryRoute(c, () => deps.support.peekConversation(deps.defaultBusinessId, c.var.session.customer_id))
2558
+ );
2555
2559
  app.post("/support/conversation/messages", async (c) => {
2556
2560
  const body = await c.req.json().catch(() => ({}));
2557
2561
  return tryRoute(
@@ -5572,6 +5576,13 @@ function createSupportService(opts) {
5572
5576
  registry.conversations.put(id, conv);
5573
5577
  return conv;
5574
5578
  },
5579
+ peekConversation(businessId, customerId) {
5580
+ const matches = registry.conversations.list(
5581
+ (c) => c.business_id === businessId && c.customer_id === customerId
5582
+ );
5583
+ const conv = matches[matches.length - 1];
5584
+ return conv ? { conversation: conv, messages: conv.messages } : { conversation: null, messages: [] };
5585
+ },
5575
5586
  sendMessage(conversationId, body) {
5576
5587
  const conv = registry.conversations.get(conversationId);
5577
5588
  if (!conv) throw notFound(`Conversation ${conversationId} not found`);
@@ -2550,6 +2550,10 @@ function buildV1(deps) {
2550
2550
  "/support/conversation",
2551
2551
  (c) => tryRoute(c, () => deps.support.openConversation(deps.defaultBusinessId, c.var.session.customer_id))
2552
2552
  );
2553
+ app.get(
2554
+ "/support/conversation",
2555
+ (c) => tryRoute(c, () => deps.support.peekConversation(deps.defaultBusinessId, c.var.session.customer_id))
2556
+ );
2553
2557
  app.post("/support/conversation/messages", async (c) => {
2554
2558
  const body = await c.req.json().catch(() => ({}));
2555
2559
  return tryRoute(
@@ -5570,6 +5574,13 @@ function createSupportService(opts) {
5570
5574
  registry.conversations.put(id, conv);
5571
5575
  return conv;
5572
5576
  },
5577
+ peekConversation(businessId, customerId) {
5578
+ const matches = registry.conversations.list(
5579
+ (c) => c.business_id === businessId && c.customer_id === customerId
5580
+ );
5581
+ const conv = matches[matches.length - 1];
5582
+ return conv ? { conversation: conv, messages: conv.messages } : { conversation: null, messages: [] };
5583
+ },
5573
5584
  sendMessage(conversationId, body) {
5574
5585
  const conv = registry.conversations.get(conversationId);
5575
5586
  if (!conv) throw notFound(`Conversation ${conversationId} not found`);
package/dist/mock/msw.js CHANGED
@@ -2550,6 +2550,10 @@ function buildV1(deps) {
2550
2550
  "/support/conversation",
2551
2551
  (c) => tryRoute(c, () => deps.support.openConversation(deps.defaultBusinessId, c.var.session.customer_id))
2552
2552
  );
2553
+ app.get(
2554
+ "/support/conversation",
2555
+ (c) => tryRoute(c, () => deps.support.peekConversation(deps.defaultBusinessId, c.var.session.customer_id))
2556
+ );
2553
2557
  app.post("/support/conversation/messages", async (c) => {
2554
2558
  const body = await c.req.json().catch(() => ({}));
2555
2559
  return tryRoute(
@@ -5570,6 +5574,13 @@ function createSupportService(opts) {
5570
5574
  registry.conversations.put(id, conv);
5571
5575
  return conv;
5572
5576
  },
5577
+ peekConversation(businessId, customerId) {
5578
+ const matches = registry.conversations.list(
5579
+ (c) => c.business_id === businessId && c.customer_id === customerId
5580
+ );
5581
+ const conv = matches[matches.length - 1];
5582
+ return conv ? { conversation: conv, messages: conv.messages } : { conversation: null, messages: [] };
5583
+ },
5573
5584
  sendMessage(conversationId, body) {
5574
5585
  const conv = registry.conversations.get(conversationId);
5575
5586
  if (!conv) throw notFound(`Conversation ${conversationId} not found`);
package/dist/mock/msw.mjs CHANGED
@@ -2548,6 +2548,10 @@ function buildV1(deps) {
2548
2548
  "/support/conversation",
2549
2549
  (c) => tryRoute(c, () => deps.support.openConversation(deps.defaultBusinessId, c.var.session.customer_id))
2550
2550
  );
2551
+ app.get(
2552
+ "/support/conversation",
2553
+ (c) => tryRoute(c, () => deps.support.peekConversation(deps.defaultBusinessId, c.var.session.customer_id))
2554
+ );
2551
2555
  app.post("/support/conversation/messages", async (c) => {
2552
2556
  const body = await c.req.json().catch(() => ({}));
2553
2557
  return tryRoute(
@@ -5568,6 +5572,13 @@ function createSupportService(opts) {
5568
5572
  registry.conversations.put(id, conv);
5569
5573
  return conv;
5570
5574
  },
5575
+ peekConversation(businessId, customerId) {
5576
+ const matches = registry.conversations.list(
5577
+ (c) => c.business_id === businessId && c.customer_id === customerId
5578
+ );
5579
+ const conv = matches[matches.length - 1];
5580
+ return conv ? { conversation: conv, messages: conv.messages } : { conversation: null, messages: [] };
5581
+ },
5571
5582
  sendMessage(conversationId, body) {
5572
5583
  const conv = registry.conversations.get(conversationId);
5573
5584
  if (!conv) throw notFound(`Conversation ${conversationId} not found`);
@@ -1,4 +1,4 @@
1
- import { aO as Money, ad as CurrencyCode } from './product-bZ8G5Z8D.js';
1
+ import { aO as Money, ad as CurrencyCode } from './product-O8-wcHSe.js';
2
2
 
3
3
  type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "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-bZ8G5Z8D.mjs';
1
+ import { aO as Money, ad as CurrencyCode } from './product-O8-wcHSe.mjs';
2
2
 
3
3
  type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "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-bZ8G5Z8D.js';
1
+ import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-O8-wcHSe.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-bZ8G5Z8D.mjs';
1
+ import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-O8-wcHSe.mjs';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
@@ -1709,6 +1709,10 @@ interface components {
1709
1709
  */
1710
1710
  team_read_at?: string | null;
1711
1711
  };
1712
+ ChatConversationPeekResponse: {
1713
+ conversation?: null | components["schemas"]["ChatConversation"];
1714
+ messages: components["schemas"]["ChatMessageResponse"][];
1715
+ };
1712
1716
  ChatConversationResponse: {
1713
1717
  conversation: components["schemas"]["ChatConversation"];
1714
1718
  messages: components["schemas"]["ChatMessageResponse"][];
@@ -1721,6 +1725,7 @@ interface components {
1721
1725
  attachments: Record<string, never>;
1722
1726
  metadata: Record<string, never>;
1723
1727
  reply_to?: null | components["schemas"]["ChatReplyContext"];
1728
+ client_id?: string | null;
1724
1729
  /** Format: date-time */
1725
1730
  created_at: string;
1726
1731
  };
@@ -3043,6 +3048,12 @@ interface components {
3043
3048
  vendor_communication: components["schemas"]["VendorCommunicationRules"];
3044
3049
  /** @description Cross-business messaging rules (for multi-tenant scenarios) */
3045
3050
  cross_business_rules: components["schemas"]["CrossBusinessRules"];
3051
+ /**
3052
+ * @description Redact message content from lock-screen pushes: notifications say
3053
+ * who/that something arrived, never what it says. For businesses whose
3054
+ * customer conversations are sensitive (pharmacies, clinics).
3055
+ */
3056
+ redact_push_content?: boolean;
3046
3057
  /**
3047
3058
  * Format: date-time
3048
3059
  * @description Creation and update timestamps
@@ -1709,6 +1709,10 @@ interface components {
1709
1709
  */
1710
1710
  team_read_at?: string | null;
1711
1711
  };
1712
+ ChatConversationPeekResponse: {
1713
+ conversation?: null | components["schemas"]["ChatConversation"];
1714
+ messages: components["schemas"]["ChatMessageResponse"][];
1715
+ };
1712
1716
  ChatConversationResponse: {
1713
1717
  conversation: components["schemas"]["ChatConversation"];
1714
1718
  messages: components["schemas"]["ChatMessageResponse"][];
@@ -1721,6 +1725,7 @@ interface components {
1721
1725
  attachments: Record<string, never>;
1722
1726
  metadata: Record<string, never>;
1723
1727
  reply_to?: null | components["schemas"]["ChatReplyContext"];
1728
+ client_id?: string | null;
1724
1729
  /** Format: date-time */
1725
1730
  created_at: string;
1726
1731
  };
@@ -3043,6 +3048,12 @@ interface components {
3043
3048
  vendor_communication: components["schemas"]["VendorCommunicationRules"];
3044
3049
  /** @description Cross-business messaging rules (for multi-tenant scenarios) */
3045
3050
  cross_business_rules: components["schemas"]["CrossBusinessRules"];
3051
+ /**
3052
+ * @description Redact message content from lock-screen pushes: notifications say
3053
+ * who/that something arrived, never what it says. For businesses whose
3054
+ * customer conversations are sensitive (pharmacies, clinics).
3055
+ */
3056
+ redact_push_content?: boolean;
3046
3057
  /**
3047
3058
  * Format: date-time
3048
3059
  * @description Creation and update timestamps