@cimplify/sdk 0.103.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{chunk-C2JSNJUC.mjs → chunk-2WPVUIHX.mjs} +52 -11
- package/dist/{chunk-JG5CQNCB.js → chunk-4BKOKHE3.js} +4 -0
- package/dist/{chunk-R6OLQ33I.js → chunk-5BDYDZ4U.js} +239 -87
- package/dist/{chunk-H7ACMHM3.mjs → chunk-5RT4HYMP.mjs} +32 -4
- package/dist/{chunk-NNG6IFFX.js → chunk-7PDEX54K.js} +3 -3
- package/dist/{chunk-M4URVKHE.mjs → chunk-DYIAX3WI.mjs} +1 -1
- package/dist/{chunk-QOWPGS7Z.js → chunk-E4K2VQDD.js} +35 -5
- package/dist/{chunk-VNPEYLB2.mjs → chunk-H3RATH4B.mjs} +4 -0
- package/dist/{chunk-JSWJ4XDE.js → chunk-IQFFSKE2.js} +315 -108
- package/dist/{chunk-J6PNHDHL.mjs → chunk-OCCNG6MO.mjs} +284 -77
- package/dist/{chunk-GERXZQSX.mjs → chunk-OKADBZAI.mjs} +171 -20
- package/dist/{chunk-VIL6IQCG.js → chunk-YVAEY3VC.js} +54 -13
- package/dist/{client-Dqg2mc-7.d.ts → client-BVNWjk6W.d.ts} +2 -2
- package/dist/{client-BfpNjJ_a.d.mts → client-BuLcOWLv.d.ts} +115 -23
- package/dist/{client-DHBwvh7U.d.ts → client-D5AoobFc.d.mts} +115 -23
- package/dist/{client-DpqRobY9.d.mts → client-fM716k7G.d.mts} +2 -2
- package/dist/{index-C8uDqLwJ.d.ts → index-BtcoqrY1.d.ts} +3 -3
- package/dist/{index-e2y6AK70.d.mts → index-D7Tf3v7c.d.mts} +3 -3
- package/dist/index.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +107 -106
- package/dist/index.mjs +6 -5
- package/dist/{link-cuNVYc2s.d.mts → link-D9iSVxt5.d.mts} +12 -1
- package/dist/{link-cuNVYc2s.d.ts → link-D9iSVxt5.d.ts} +12 -1
- package/dist/mock/cli.mjs +53 -10
- package/dist/mock/library.js +53 -10
- package/dist/mock/library.mjs +53 -10
- package/dist/mock/msw.js +53 -10
- package/dist/mock/msw.mjs +53 -10
- package/dist/{payment-H5LoIvXU.d.mts → payment-g0HFkEDU.d.mts} +519 -54
- package/dist/{payment-H5LoIvXU.d.ts → payment-g0HFkEDU.d.ts} +519 -54
- package/dist/{price-C2RqscMY.d.ts → price-BLIeAb8K.d.ts} +1 -1
- package/dist/{price-BvePgDXe.d.mts → price-Czq_cTC_.d.mts} +1 -1
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +193 -169
- package/dist/react.mjs +54 -30
- package/dist/{server-C7FyLdrz.d.mts → server-BkVhOIwn.d.mts} +4 -2
- package/dist/{server-DoXIpSd7.d.ts → server-DKK_D-PP.d.ts} +4 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +11 -10
- package/dist/server.mjs +5 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +46 -6
- package/dist/testing.d.ts +46 -6
- package/dist/testing.js +94 -82
- package/dist/testing.mjs +13 -9
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +31 -31
- package/dist/utils.mjs +2 -2
- package/package.json +1 -1
- package/registry/chat-widget.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk2P4KXFB6_js = require('./chunk-2P4KXFB6.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
|
|
5
|
+
var chunk5BDYDZ4U_js = require('./chunk-5BDYDZ4U.js');
|
|
6
|
+
require('./chunk-XREIZ56K.js');
|
|
7
|
+
var chunkIQFFSKE2_js = require('./chunk-IQFFSKE2.js');
|
|
7
8
|
var chunkCNN7Z2IP_js = require('./chunk-CNN7Z2IP.js');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
9
|
+
var chunk7PDEX54K_js = require('./chunk-7PDEX54K.js');
|
|
10
|
+
var chunk4BKOKHE3_js = require('./chunk-4BKOKHE3.js');
|
|
10
11
|
require('./chunk-OWW5GUSB.js');
|
|
11
12
|
|
|
12
13
|
// src/silent-sign-in.ts
|
|
@@ -28,9 +29,9 @@ async function signInSilent(opts) {
|
|
|
28
29
|
} catch {
|
|
29
30
|
}
|
|
30
31
|
const callbackUri = opts.callbackUri ?? "/auth/callback";
|
|
31
|
-
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await
|
|
32
|
-
const pkce = await
|
|
33
|
-
const state =
|
|
32
|
+
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkIQFFSKE2_js.getAuthorizationEndpoint(opts.issuer ?? chunkIQFFSKE2_js.DEFAULT_ISSUER);
|
|
33
|
+
const pkce = await chunkIQFFSKE2_js.generatePkce();
|
|
34
|
+
const state = chunkIQFFSKE2_js.generateState();
|
|
34
35
|
const params = new URLSearchParams({
|
|
35
36
|
response_type: RESPONSE_TYPE_CODE,
|
|
36
37
|
response_mode: RESPONSE_MODE_WEB_MESSAGE,
|
|
@@ -188,203 +189,203 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
188
189
|
});
|
|
189
190
|
Object.defineProperty(exports, "ActivityService", {
|
|
190
191
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk5BDYDZ4U_js.ActivityService; }
|
|
192
193
|
});
|
|
193
194
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
194
195
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk5BDYDZ4U_js.CimplifyClient; }
|
|
196
197
|
});
|
|
197
198
|
Object.defineProperty(exports, "DeliveryService", {
|
|
198
199
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk5BDYDZ4U_js.DeliveryService; }
|
|
200
201
|
});
|
|
201
202
|
Object.defineProperty(exports, "PaymentAuthorizationAdapterRegistry", {
|
|
202
203
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunk5BDYDZ4U_js.PaymentAuthorizationAdapterRegistry; }
|
|
204
205
|
});
|
|
205
206
|
Object.defineProperty(exports, "PaystackAuthorizationAdapter", {
|
|
206
207
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk5BDYDZ4U_js.PaystackAuthorizationAdapter; }
|
|
208
209
|
});
|
|
209
210
|
Object.defineProperty(exports, "PlacesService", {
|
|
210
211
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk5BDYDZ4U_js.PlacesService; }
|
|
212
213
|
});
|
|
213
214
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
214
215
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunk5BDYDZ4U_js.StoreCreditQueries; }
|
|
216
217
|
});
|
|
217
218
|
Object.defineProperty(exports, "StripeAuthorizationAdapter", {
|
|
218
219
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunk5BDYDZ4U_js.StripeAuthorizationAdapter; }
|
|
220
221
|
});
|
|
221
222
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
222
223
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunk5BDYDZ4U_js.SubscriptionService; }
|
|
224
225
|
});
|
|
225
226
|
Object.defineProperty(exports, "SupportService", {
|
|
226
227
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunk5BDYDZ4U_js.SupportService; }
|
|
228
229
|
});
|
|
229
230
|
Object.defineProperty(exports, "UploadService", {
|
|
230
231
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunk5BDYDZ4U_js.UploadService; }
|
|
232
233
|
});
|
|
233
234
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
234
235
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunk5BDYDZ4U_js.createCimplifyClient; }
|
|
236
237
|
});
|
|
237
238
|
Object.defineProperty(exports, "createDefaultPaymentAuthorizationAdapterRegistry", {
|
|
238
239
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunk5BDYDZ4U_js.createDefaultPaymentAuthorizationAdapterRegistry; }
|
|
240
241
|
});
|
|
241
242
|
Object.defineProperty(exports, "AuthService", {
|
|
242
243
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkIQFFSKE2_js.AuthService; }
|
|
244
245
|
});
|
|
245
246
|
Object.defineProperty(exports, "BusinessService", {
|
|
246
247
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkIQFFSKE2_js.BusinessService; }
|
|
248
249
|
});
|
|
249
250
|
Object.defineProperty(exports, "CartOperations", {
|
|
250
251
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkIQFFSKE2_js.CartOperations; }
|
|
252
253
|
});
|
|
253
254
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
254
255
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkIQFFSKE2_js.CatalogueQueries; }
|
|
256
257
|
});
|
|
257
258
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
258
259
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkIQFFSKE2_js.CheckoutService; }
|
|
260
261
|
});
|
|
261
262
|
Object.defineProperty(exports, "CheckoutService", {
|
|
262
263
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkIQFFSKE2_js.CheckoutService; }
|
|
264
265
|
});
|
|
265
266
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
266
267
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkIQFFSKE2_js.CimplifyElement; }
|
|
268
269
|
});
|
|
269
270
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
270
271
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkIQFFSKE2_js.CimplifyElements; }
|
|
272
273
|
});
|
|
273
274
|
Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
|
|
274
275
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkIQFFSKE2_js.ELEMENTS_AUTH_CONTACT_TYPES; }
|
|
276
277
|
});
|
|
277
278
|
Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
|
|
278
279
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkIQFFSKE2_js.ELEMENTS_AUTH_MODES; }
|
|
280
281
|
});
|
|
281
282
|
Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
|
|
282
283
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkIQFFSKE2_js.ELEMENTS_AUTH_PROMPTS; }
|
|
284
285
|
});
|
|
285
286
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
286
287
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkIQFFSKE2_js.ELEMENT_TYPES; }
|
|
288
289
|
});
|
|
289
290
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
290
291
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkIQFFSKE2_js.EVENT_TYPES; }
|
|
292
293
|
});
|
|
293
294
|
Object.defineProperty(exports, "FxService", {
|
|
294
295
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkIQFFSKE2_js.FxService; }
|
|
296
297
|
});
|
|
297
298
|
Object.defineProperty(exports, "InventoryService", {
|
|
298
299
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkIQFFSKE2_js.InventoryService; }
|
|
300
301
|
});
|
|
301
302
|
Object.defineProperty(exports, "LinkService", {
|
|
302
303
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkIQFFSKE2_js.LinkService; }
|
|
304
305
|
});
|
|
305
306
|
Object.defineProperty(exports, "LiteService", {
|
|
306
307
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkIQFFSKE2_js.LiteService; }
|
|
308
309
|
});
|
|
309
310
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
310
311
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkIQFFSKE2_js.MESSAGE_TYPES; }
|
|
312
313
|
});
|
|
313
314
|
Object.defineProperty(exports, "OrderQueries", {
|
|
314
315
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkIQFFSKE2_js.OrderQueries; }
|
|
316
317
|
});
|
|
317
318
|
Object.defineProperty(exports, "SchedulingService", {
|
|
318
319
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkIQFFSKE2_js.SchedulingService; }
|
|
320
321
|
});
|
|
321
322
|
Object.defineProperty(exports, "combine", {
|
|
322
323
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkIQFFSKE2_js.combine; }
|
|
324
325
|
});
|
|
325
326
|
Object.defineProperty(exports, "combineObject", {
|
|
326
327
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkIQFFSKE2_js.combineObject; }
|
|
328
329
|
});
|
|
329
330
|
Object.defineProperty(exports, "createElements", {
|
|
330
331
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkIQFFSKE2_js.createElements; }
|
|
332
333
|
});
|
|
333
334
|
Object.defineProperty(exports, "err", {
|
|
334
335
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkIQFFSKE2_js.err; }
|
|
336
337
|
});
|
|
337
338
|
Object.defineProperty(exports, "flatMap", {
|
|
338
339
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkIQFFSKE2_js.flatMap; }
|
|
340
341
|
});
|
|
341
342
|
Object.defineProperty(exports, "fromPromise", {
|
|
342
343
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkIQFFSKE2_js.fromPromise; }
|
|
344
345
|
});
|
|
345
346
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
346
347
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkIQFFSKE2_js.generateIdempotencyKey; }
|
|
348
349
|
});
|
|
349
350
|
Object.defineProperty(exports, "getOrElse", {
|
|
350
351
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkIQFFSKE2_js.getOrElse; }
|
|
352
353
|
});
|
|
353
354
|
Object.defineProperty(exports, "isErr", {
|
|
354
355
|
enumerable: true,
|
|
355
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkIQFFSKE2_js.isErr; }
|
|
356
357
|
});
|
|
357
358
|
Object.defineProperty(exports, "isOk", {
|
|
358
359
|
enumerable: true,
|
|
359
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkIQFFSKE2_js.isOk; }
|
|
360
361
|
});
|
|
361
362
|
Object.defineProperty(exports, "mapError", {
|
|
362
363
|
enumerable: true,
|
|
363
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkIQFFSKE2_js.mapError; }
|
|
364
365
|
});
|
|
365
366
|
Object.defineProperty(exports, "mapResult", {
|
|
366
367
|
enumerable: true,
|
|
367
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkIQFFSKE2_js.mapResult; }
|
|
368
369
|
});
|
|
369
370
|
Object.defineProperty(exports, "ok", {
|
|
370
371
|
enumerable: true,
|
|
371
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkIQFFSKE2_js.ok; }
|
|
372
373
|
});
|
|
373
374
|
Object.defineProperty(exports, "startSignIn", {
|
|
374
375
|
enumerable: true,
|
|
375
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkIQFFSKE2_js.startSignIn; }
|
|
376
377
|
});
|
|
377
378
|
Object.defineProperty(exports, "toNullable", {
|
|
378
379
|
enumerable: true,
|
|
379
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkIQFFSKE2_js.toNullable; }
|
|
380
381
|
});
|
|
381
382
|
Object.defineProperty(exports, "tryCatch", {
|
|
382
383
|
enumerable: true,
|
|
383
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkIQFFSKE2_js.tryCatch; }
|
|
384
385
|
});
|
|
385
386
|
Object.defineProperty(exports, "unwrap", {
|
|
386
387
|
enumerable: true,
|
|
387
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkIQFFSKE2_js.unwrap; }
|
|
388
389
|
});
|
|
389
390
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
390
391
|
enumerable: true,
|
|
@@ -464,198 +465,198 @@ Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
|
464
465
|
});
|
|
465
466
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
466
467
|
enumerable: true,
|
|
467
|
-
get: function () { return
|
|
468
|
+
get: function () { return chunk7PDEX54K_js.CURRENCY_SYMBOLS; }
|
|
468
469
|
});
|
|
469
470
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
|
|
470
471
|
enumerable: true,
|
|
471
|
-
get: function () { return
|
|
472
|
+
get: function () { return chunk7PDEX54K_js.MOBILE_MONEY_PROVIDERS; }
|
|
472
473
|
});
|
|
473
474
|
Object.defineProperty(exports, "PAYMENT_TERMINAL_FAILURE_STATUSES", {
|
|
474
475
|
enumerable: true,
|
|
475
|
-
get: function () { return
|
|
476
|
+
get: function () { return chunk7PDEX54K_js.PAYMENT_TERMINAL_FAILURE_STATUSES; }
|
|
476
477
|
});
|
|
477
478
|
Object.defineProperty(exports, "canonicalMobileMoneyProvider", {
|
|
478
479
|
enumerable: true,
|
|
479
|
-
get: function () { return
|
|
480
|
+
get: function () { return chunk7PDEX54K_js.canonicalMobileMoneyProvider; }
|
|
480
481
|
});
|
|
481
482
|
Object.defineProperty(exports, "categorizePaymentError", {
|
|
482
483
|
enumerable: true,
|
|
483
|
-
get: function () { return
|
|
484
|
+
get: function () { return chunk7PDEX54K_js.categorizePaymentError; }
|
|
484
485
|
});
|
|
485
486
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
486
487
|
enumerable: true,
|
|
487
|
-
get: function () { return
|
|
488
|
+
get: function () { return chunk7PDEX54K_js.detectMobileMoneyProvider; }
|
|
488
489
|
});
|
|
489
490
|
Object.defineProperty(exports, "formatMoney", {
|
|
490
491
|
enumerable: true,
|
|
491
|
-
get: function () { return
|
|
492
|
+
get: function () { return chunk7PDEX54K_js.formatMoney; }
|
|
492
493
|
});
|
|
493
494
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
494
495
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
496
|
+
get: function () { return chunk7PDEX54K_js.formatNumberCompact; }
|
|
496
497
|
});
|
|
497
498
|
Object.defineProperty(exports, "formatPrice", {
|
|
498
499
|
enumerable: true,
|
|
499
|
-
get: function () { return
|
|
500
|
+
get: function () { return chunk7PDEX54K_js.formatPrice; }
|
|
500
501
|
});
|
|
501
502
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
502
503
|
enumerable: true,
|
|
503
|
-
get: function () { return
|
|
504
|
+
get: function () { return chunk7PDEX54K_js.formatPriceAdjustment; }
|
|
504
505
|
});
|
|
505
506
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
506
507
|
enumerable: true,
|
|
507
|
-
get: function () { return
|
|
508
|
+
get: function () { return chunk7PDEX54K_js.formatPriceCompact; }
|
|
508
509
|
});
|
|
509
510
|
Object.defineProperty(exports, "formatPriceRange", {
|
|
510
511
|
enumerable: true,
|
|
511
|
-
get: function () { return
|
|
512
|
+
get: function () { return chunk7PDEX54K_js.formatPriceRange; }
|
|
512
513
|
});
|
|
513
514
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
514
515
|
enumerable: true,
|
|
515
|
-
get: function () { return
|
|
516
|
+
get: function () { return chunk7PDEX54K_js.formatPriceWithTax; }
|
|
516
517
|
});
|
|
517
518
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
518
519
|
enumerable: true,
|
|
519
|
-
get: function () { return
|
|
520
|
+
get: function () { return chunk7PDEX54K_js.formatProductPrice; }
|
|
520
521
|
});
|
|
521
522
|
Object.defineProperty(exports, "getBasePrice", {
|
|
522
523
|
enumerable: true,
|
|
523
|
-
get: function () { return
|
|
524
|
+
get: function () { return chunk7PDEX54K_js.getBasePrice; }
|
|
524
525
|
});
|
|
525
526
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
526
527
|
enumerable: true,
|
|
527
|
-
get: function () { return
|
|
528
|
+
get: function () { return chunk7PDEX54K_js.getCurrencySymbol; }
|
|
528
529
|
});
|
|
529
530
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
530
531
|
enumerable: true,
|
|
531
|
-
get: function () { return
|
|
532
|
+
get: function () { return chunk7PDEX54K_js.getDiscountPercentage; }
|
|
532
533
|
});
|
|
533
534
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
534
535
|
enumerable: true,
|
|
535
|
-
get: function () { return
|
|
536
|
+
get: function () { return chunk7PDEX54K_js.getDisplayPrice; }
|
|
536
537
|
});
|
|
537
538
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
538
539
|
enumerable: true,
|
|
539
|
-
get: function () { return
|
|
540
|
+
get: function () { return chunk7PDEX54K_js.getMarkupPercentage; }
|
|
540
541
|
});
|
|
541
542
|
Object.defineProperty(exports, "getPriceRange", {
|
|
542
543
|
enumerable: true,
|
|
543
|
-
get: function () { return
|
|
544
|
+
get: function () { return chunk7PDEX54K_js.getPriceRange; }
|
|
544
545
|
});
|
|
545
546
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
546
547
|
enumerable: true,
|
|
547
|
-
get: function () { return
|
|
548
|
+
get: function () { return chunk7PDEX54K_js.getProductCurrency; }
|
|
548
549
|
});
|
|
549
550
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
550
551
|
enumerable: true,
|
|
551
|
-
get: function () { return
|
|
552
|
+
get: function () { return chunk7PDEX54K_js.getTaxAmount; }
|
|
552
553
|
});
|
|
553
554
|
Object.defineProperty(exports, "getUnitPriceAtQuantity", {
|
|
554
555
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
556
|
+
get: function () { return chunk7PDEX54K_js.getUnitPriceAtQuantity; }
|
|
556
557
|
});
|
|
557
558
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
558
559
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
560
|
+
get: function () { return chunk7PDEX54K_js.hasTaxInfo; }
|
|
560
561
|
});
|
|
561
562
|
Object.defineProperty(exports, "isOnSale", {
|
|
562
563
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
564
|
+
get: function () { return chunk7PDEX54K_js.isOnSale; }
|
|
564
565
|
});
|
|
565
566
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
566
567
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
568
|
+
get: function () { return chunk7PDEX54K_js.isPaymentStatusFailure; }
|
|
568
569
|
});
|
|
569
570
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
570
571
|
enumerable: true,
|
|
571
|
-
get: function () { return
|
|
572
|
+
get: function () { return chunk7PDEX54K_js.isPaymentStatusRequiresAction; }
|
|
572
573
|
});
|
|
573
574
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
574
575
|
enumerable: true,
|
|
575
|
-
get: function () { return
|
|
576
|
+
get: function () { return chunk7PDEX54K_js.isPaymentStatusSuccess; }
|
|
576
577
|
});
|
|
577
578
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
578
579
|
enumerable: true,
|
|
579
|
-
get: function () { return
|
|
580
|
+
get: function () { return chunk7PDEX54K_js.isTaxInclusive; }
|
|
580
581
|
});
|
|
581
582
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
582
583
|
enumerable: true,
|
|
583
|
-
get: function () { return
|
|
584
|
+
get: function () { return chunk7PDEX54K_js.normalizePaymentResponse; }
|
|
584
585
|
});
|
|
585
586
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
586
587
|
enumerable: true,
|
|
587
|
-
get: function () { return
|
|
588
|
+
get: function () { return chunk7PDEX54K_js.normalizeStatusResponse; }
|
|
588
589
|
});
|
|
589
590
|
Object.defineProperty(exports, "parsePrice", {
|
|
590
591
|
enumerable: true,
|
|
591
|
-
get: function () { return
|
|
592
|
+
get: function () { return chunk7PDEX54K_js.parsePrice; }
|
|
592
593
|
});
|
|
593
594
|
Object.defineProperty(exports, "paymentAuthorizationUrl", {
|
|
594
595
|
enumerable: true,
|
|
595
|
-
get: function () { return
|
|
596
|
+
get: function () { return chunk7PDEX54K_js.paymentAuthorizationUrl; }
|
|
596
597
|
});
|
|
597
598
|
Object.defineProperty(exports, "CimplifyError", {
|
|
598
599
|
enumerable: true,
|
|
599
|
-
get: function () { return
|
|
600
|
+
get: function () { return chunk4BKOKHE3_js.CimplifyError; }
|
|
600
601
|
});
|
|
601
602
|
Object.defineProperty(exports, "ERROR_HINTS", {
|
|
602
603
|
enumerable: true,
|
|
603
|
-
get: function () { return
|
|
604
|
+
get: function () { return chunk4BKOKHE3_js.ERROR_HINTS; }
|
|
604
605
|
});
|
|
605
606
|
Object.defineProperty(exports, "ErrorCode", {
|
|
606
607
|
enumerable: true,
|
|
607
|
-
get: function () { return
|
|
608
|
+
get: function () { return chunk4BKOKHE3_js.ErrorCode; }
|
|
608
609
|
});
|
|
609
610
|
Object.defineProperty(exports, "IdempotencyMismatchError", {
|
|
610
611
|
enumerable: true,
|
|
611
|
-
get: function () { return
|
|
612
|
+
get: function () { return chunk4BKOKHE3_js.IdempotencyMismatchError; }
|
|
612
613
|
});
|
|
613
614
|
Object.defineProperty(exports, "ZERO", {
|
|
614
615
|
enumerable: true,
|
|
615
|
-
get: function () { return
|
|
616
|
+
get: function () { return chunk4BKOKHE3_js.ZERO; }
|
|
616
617
|
});
|
|
617
618
|
Object.defineProperty(exports, "currencyCode", {
|
|
618
619
|
enumerable: true,
|
|
619
|
-
get: function () { return
|
|
620
|
+
get: function () { return chunk4BKOKHE3_js.currencyCode; }
|
|
620
621
|
});
|
|
621
622
|
Object.defineProperty(exports, "enrichError", {
|
|
622
623
|
enumerable: true,
|
|
623
|
-
get: function () { return
|
|
624
|
+
get: function () { return chunk4BKOKHE3_js.enrichError; }
|
|
624
625
|
});
|
|
625
626
|
Object.defineProperty(exports, "getErrorHint", {
|
|
626
627
|
enumerable: true,
|
|
627
|
-
get: function () { return
|
|
628
|
+
get: function () { return chunk4BKOKHE3_js.getErrorHint; }
|
|
628
629
|
});
|
|
629
630
|
Object.defineProperty(exports, "isCimplifyError", {
|
|
630
631
|
enumerable: true,
|
|
631
|
-
get: function () { return
|
|
632
|
+
get: function () { return chunk4BKOKHE3_js.isCimplifyError; }
|
|
632
633
|
});
|
|
633
634
|
Object.defineProperty(exports, "isIdempotencyMismatchError", {
|
|
634
635
|
enumerable: true,
|
|
635
|
-
get: function () { return
|
|
636
|
+
get: function () { return chunk4BKOKHE3_js.isIdempotencyMismatchError; }
|
|
636
637
|
});
|
|
637
638
|
Object.defineProperty(exports, "isQuoteConflictRequiringConsent", {
|
|
638
639
|
enumerable: true,
|
|
639
|
-
get: function () { return
|
|
640
|
+
get: function () { return chunk4BKOKHE3_js.isQuoteConflictRequiringConsent; }
|
|
640
641
|
});
|
|
641
642
|
Object.defineProperty(exports, "isQuoteError", {
|
|
642
643
|
enumerable: true,
|
|
643
|
-
get: function () { return
|
|
644
|
+
get: function () { return chunk4BKOKHE3_js.isQuoteError; }
|
|
644
645
|
});
|
|
645
646
|
Object.defineProperty(exports, "isRetryableError", {
|
|
646
647
|
enumerable: true,
|
|
647
|
-
get: function () { return
|
|
648
|
+
get: function () { return chunk4BKOKHE3_js.isRetryableError; }
|
|
648
649
|
});
|
|
649
650
|
Object.defineProperty(exports, "isSupportedCurrency", {
|
|
650
651
|
enumerable: true,
|
|
651
|
-
get: function () { return
|
|
652
|
+
get: function () { return chunk4BKOKHE3_js.isSupportedCurrency; }
|
|
652
653
|
});
|
|
653
654
|
Object.defineProperty(exports, "money", {
|
|
654
655
|
enumerable: true,
|
|
655
|
-
get: function () { return
|
|
656
|
+
get: function () { return chunk4BKOKHE3_js.money; }
|
|
656
657
|
});
|
|
657
658
|
Object.defineProperty(exports, "moneyFromNumber", {
|
|
658
659
|
enumerable: true,
|
|
659
|
-
get: function () { return
|
|
660
|
+
get: function () { return chunk4BKOKHE3_js.moneyFromNumber; }
|
|
660
661
|
});
|
|
661
662
|
exports.signInSilent = signInSilent;
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-3V4DVXV3.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PaymentAuthorizationAdapterRegistry, PaystackAuthorizationAdapter, PlacesService, StoreCreditQueries, StripeAuthorizationAdapter, SubscriptionService, SupportService, UploadService, createCimplifyClient, createDefaultPaymentAuthorizationAdapterRegistry } from './chunk-
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PaymentAuthorizationAdapterRegistry, PaystackAuthorizationAdapter, PlacesService, StoreCreditQueries, StripeAuthorizationAdapter, SubscriptionService, SupportService, UploadService, createCimplifyClient, createDefaultPaymentAuthorizationAdapterRegistry } from './chunk-OKADBZAI.mjs';
|
|
4
|
+
import './chunk-U4MW6PYU.mjs';
|
|
5
|
+
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-OCCNG6MO.mjs';
|
|
6
|
+
export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-OCCNG6MO.mjs';
|
|
6
7
|
export { AUTHORIZATION_TYPE, AUTH_MUTATION, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, LINK_MUTATION, LINK_QUERY, MAX_PAYMENT_AUTHORIZATION_STEPS, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE } from './chunk-GOHSXBKW.mjs';
|
|
7
|
-
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, PAYMENT_TERMINAL_FAILURE_STATUSES, canonicalMobileMoneyProvider, 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, paymentAuthorizationUrl } from './chunk-
|
|
8
|
-
export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-
|
|
8
|
+
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, PAYMENT_TERMINAL_FAILURE_STATUSES, canonicalMobileMoneyProvider, 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, paymentAuthorizationUrl } from './chunk-DYIAX3WI.mjs';
|
|
9
|
+
export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-H3RATH4B.mjs';
|
|
9
10
|
import './chunk-3G6RQLXK.mjs';
|
|
10
11
|
|
|
11
12
|
// src/silent-sign-in.ts
|
|
@@ -277,7 +277,18 @@ interface RequestOtpInput {
|
|
|
277
277
|
contact: string;
|
|
278
278
|
contact_type: ContactType;
|
|
279
279
|
}
|
|
280
|
+
interface RequestOtpResult {
|
|
281
|
+
success: boolean;
|
|
282
|
+
/** Absent on pre-challenge-id deployments; verification then uses the
|
|
283
|
+
* contact's legacy active challenge. */
|
|
284
|
+
challenge_id?: string;
|
|
285
|
+
message: string;
|
|
286
|
+
expires_in: number;
|
|
287
|
+
is_new_account: boolean;
|
|
288
|
+
}
|
|
280
289
|
interface VerifyOtpInput {
|
|
290
|
+
/** Omit when request-otp came from a legacy deployment without an id. */
|
|
291
|
+
challenge_id?: string;
|
|
281
292
|
contact: string;
|
|
282
293
|
contact_type: ContactType;
|
|
283
294
|
otp_code: string;
|
|
@@ -294,4 +305,4 @@ interface AuthResponse {
|
|
|
294
305
|
message: string;
|
|
295
306
|
}
|
|
296
307
|
|
|
297
|
-
export { AUTHORIZATION_TYPE as A, ORDER_TYPE as B, CHECKOUT_MODE as C, DEFAULT_COUNTRY as D, type EnrollAndLinkOrderInput as E, PAYMENT_MUTATION as F, PAYMENT_STATE as G, PICKUP_TIME_TYPE as H, type
|
|
308
|
+
export { AUTHORIZATION_TYPE as A, ORDER_TYPE as B, CHECKOUT_MODE as C, DEFAULT_COUNTRY as D, type EnrollAndLinkOrderInput as E, PAYMENT_MUTATION as F, PAYMENT_STATE as G, PICKUP_TIME_TYPE as H, type RequestOtpResult as I, type RevokeAllSessionsResult as J, type RevokeSessionResult as K, LINK_MUTATION as L, MAX_PAYMENT_AUTHORIZATION_STEPS as M, ORDER_MUTATION as O, PAYMENT_METHOD as P, type RequestOtpInput as R, type UpdateAddressInput as U, type VerifyOtpInput as V, AUTH_MUTATION as a, type AddressData as b, type AuthResponse as c, CHECKOUT_MUTATION as d, CHECKOUT_STEP as e, CONTACT_TYPE as f, type ContactType as g, type CreateAddressInput as h, type CreateMobileMoneyInput as i, type Customer as j, type CustomerAddress as k, type CustomerLinkPreferences as l, type CustomerMobileMoney as m, DEFAULT_CURRENCY as n, DEVICE_TYPE as o, type DeviceType as p, type EnrollAndLinkOrderResult as q, type EnrollmentData as r, LINK_QUERY as s, type LinkData as t, type LinkEnrollResult as u, type LinkSession as v, type LinkStatusResult as w, MOBILE_MONEY_PROVIDER as x, type MobileMoneyData as y, type MobileMoneyProvider as z };
|
|
@@ -277,7 +277,18 @@ interface RequestOtpInput {
|
|
|
277
277
|
contact: string;
|
|
278
278
|
contact_type: ContactType;
|
|
279
279
|
}
|
|
280
|
+
interface RequestOtpResult {
|
|
281
|
+
success: boolean;
|
|
282
|
+
/** Absent on pre-challenge-id deployments; verification then uses the
|
|
283
|
+
* contact's legacy active challenge. */
|
|
284
|
+
challenge_id?: string;
|
|
285
|
+
message: string;
|
|
286
|
+
expires_in: number;
|
|
287
|
+
is_new_account: boolean;
|
|
288
|
+
}
|
|
280
289
|
interface VerifyOtpInput {
|
|
290
|
+
/** Omit when request-otp came from a legacy deployment without an id. */
|
|
291
|
+
challenge_id?: string;
|
|
281
292
|
contact: string;
|
|
282
293
|
contact_type: ContactType;
|
|
283
294
|
otp_code: string;
|
|
@@ -294,4 +305,4 @@ interface AuthResponse {
|
|
|
294
305
|
message: string;
|
|
295
306
|
}
|
|
296
307
|
|
|
297
|
-
export { AUTHORIZATION_TYPE as A, ORDER_TYPE as B, CHECKOUT_MODE as C, DEFAULT_COUNTRY as D, type EnrollAndLinkOrderInput as E, PAYMENT_MUTATION as F, PAYMENT_STATE as G, PICKUP_TIME_TYPE as H, type
|
|
308
|
+
export { AUTHORIZATION_TYPE as A, ORDER_TYPE as B, CHECKOUT_MODE as C, DEFAULT_COUNTRY as D, type EnrollAndLinkOrderInput as E, PAYMENT_MUTATION as F, PAYMENT_STATE as G, PICKUP_TIME_TYPE as H, type RequestOtpResult as I, type RevokeAllSessionsResult as J, type RevokeSessionResult as K, LINK_MUTATION as L, MAX_PAYMENT_AUTHORIZATION_STEPS as M, ORDER_MUTATION as O, PAYMENT_METHOD as P, type RequestOtpInput as R, type UpdateAddressInput as U, type VerifyOtpInput as V, AUTH_MUTATION as a, type AddressData as b, type AuthResponse as c, CHECKOUT_MUTATION as d, CHECKOUT_STEP as e, CONTACT_TYPE as f, type ContactType as g, type CreateAddressInput as h, type CreateMobileMoneyInput as i, type Customer as j, type CustomerAddress as k, type CustomerLinkPreferences as l, type CustomerMobileMoney as m, DEFAULT_CURRENCY as n, DEVICE_TYPE as o, type DeviceType as p, type EnrollAndLinkOrderResult as q, type EnrollmentData as r, LINK_QUERY as s, type LinkData as t, type LinkEnrollResult as u, type LinkSession as v, type LinkStatusResult as w, MOBILE_MONEY_PROVIDER as x, type MobileMoneyData as y, type MobileMoneyProvider as z };
|