@cimplify/sdk 0.99.1 → 0.100.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 +21 -21
- package/dist/advanced.mjs +2 -2
- package/dist/{chunk-PTPOQVXS.js → chunk-64EDCDBR.js} +5 -9
- package/dist/{chunk-XMDLF5Y6.mjs → chunk-GWKIDFN6.mjs} +1 -1
- package/dist/{chunk-BUPCMMRR.mjs → chunk-I7L4VRHI.mjs} +1 -1
- package/dist/{chunk-W5PH7SPK.js → chunk-J3UYIBKH.js} +47 -47
- package/dist/{chunk-VUSHG3HA.mjs → chunk-OX5L6XE7.mjs} +50 -6
- package/dist/{chunk-KFLGQGMC.mjs → chunk-V5TU5JKA.mjs} +5 -9
- package/dist/{chunk-VEOAMBEX.js → chunk-X6G6QERR.js} +60 -16
- package/dist/{chunk-WEEGNH7K.js → chunk-ZA5VKVUB.js} +2 -2
- package/dist/{client-BNfVL2IL.d.mts → client-B5MeD8da.d.mts} +2 -2
- package/dist/{client-CX59ew7C.d.ts → client-C1vS5pf0.d.ts} +2 -2
- package/dist/{client-BeMhSkRT.d.mts → client-DQpvwf-p.d.mts} +2 -2
- package/dist/{client-CCCOOaI3.d.ts → client-DmR3Z6pQ.d.ts} +2 -2
- package/dist/{index-D-w5h82t.d.ts → index-Br-vFygC.d.ts} +3 -3
- package/dist/{index-BuNjyfaV.d.mts → index-DUOCn1Cs.d.mts} +3 -3
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +100 -100
- package/dist/index.mjs +4 -4
- package/dist/{payment-pKPpaORI.d.mts → payment-BIpS9oPG.d.mts} +2 -2
- package/dist/{payment-By0JidTe.d.ts → payment-CsuBKHqg.d.ts} +2 -2
- package/dist/{price-BvRtp6ak.d.mts → price-IOOoVYS-.d.mts} +1 -1
- package/dist/{price-23RNXftz.d.ts → price-Ml_uPoiY.d.ts} +1 -1
- package/dist/{product-O8-wcHSe.d.mts → product-BKV6TBj_.d.mts} +26 -48
- package/dist/{product-O8-wcHSe.d.ts → product-BKV6TBj_.d.ts} +26 -48
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +130 -130
- package/dist/react.mjs +3 -3
- package/dist/{server-HVDbbqR9.d.mts → server-C0iEk55_.d.mts} +1 -1
- package/dist/{server-JBuTPY-j.d.ts → server-CfpYhSV_.d.ts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +8 -8
- package/dist/server.mjs +3 -3
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +79 -79
- package/dist/testing.mjs +5 -5
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +28 -28
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkQPRI2NII_js = require('./chunk-QPRI2NII.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkJ3UYIBKH_js = require('./chunk-J3UYIBKH.js');
|
|
6
|
+
var chunkX6G6QERR_js = require('./chunk-X6G6QERR.js');
|
|
7
|
+
var chunk64EDCDBR_js = require('./chunk-64EDCDBR.js');
|
|
8
8
|
var chunkAETVRBKI_js = require('./chunk-AETVRBKI.js');
|
|
9
9
|
require('./chunk-OWW5GUSB.js');
|
|
10
10
|
|
|
@@ -27,9 +27,9 @@ async function signInSilent(opts) {
|
|
|
27
27
|
} catch {
|
|
28
28
|
}
|
|
29
29
|
const callbackUri = opts.callbackUri ?? "/auth/callback";
|
|
30
|
-
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await
|
|
31
|
-
const pkce = await
|
|
32
|
-
const state =
|
|
30
|
+
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkX6G6QERR_js.getAuthorizationEndpoint(opts.issuer ?? chunkX6G6QERR_js.DEFAULT_ISSUER);
|
|
31
|
+
const pkce = await chunkX6G6QERR_js.generatePkce();
|
|
32
|
+
const state = chunkX6G6QERR_js.generateState();
|
|
33
33
|
const params = new URLSearchParams({
|
|
34
34
|
response_type: RESPONSE_TYPE_CODE,
|
|
35
35
|
response_mode: RESPONSE_MODE_WEB_MESSAGE,
|
|
@@ -183,379 +183,379 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "ActivityService", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkJ3UYIBKH_js.ActivityService; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkJ3UYIBKH_js.CimplifyClient; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "DeliveryService", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkJ3UYIBKH_js.DeliveryService; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "PlacesService", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkJ3UYIBKH_js.PlacesService; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkJ3UYIBKH_js.StoreCreditQueries; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkJ3UYIBKH_js.SubscriptionService; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "SupportService", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkJ3UYIBKH_js.SupportService; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "UploadService", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkJ3UYIBKH_js.UploadService; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkJ3UYIBKH_js.createCimplifyClient; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkX6G6QERR_js.AUTHORIZATION_TYPE; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkX6G6QERR_js.AUTH_MUTATION; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "AuthService", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkX6G6QERR_js.AuthService; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "BusinessService", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkX6G6QERR_js.BusinessService; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkX6G6QERR_js.CHECKOUT_MODE; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkX6G6QERR_js.CHECKOUT_MUTATION; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkX6G6QERR_js.CHECKOUT_STEP; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkX6G6QERR_js.CONTACT_TYPE; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "CartOperations", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkX6G6QERR_js.CartOperations; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkX6G6QERR_js.CatalogueQueries; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkX6G6QERR_js.CheckoutService; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "CheckoutService", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkX6G6QERR_js.CheckoutService; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkX6G6QERR_js.CimplifyElement; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkX6G6QERR_js.CimplifyElements; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkX6G6QERR_js.DEFAULT_COUNTRY; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkX6G6QERR_js.DEFAULT_CURRENCY; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkX6G6QERR_js.DEVICE_TYPE; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkX6G6QERR_js.ELEMENTS_AUTH_CONTACT_TYPES; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkX6G6QERR_js.ELEMENTS_AUTH_MODES; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkX6G6QERR_js.ELEMENTS_AUTH_PROMPTS; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkX6G6QERR_js.ELEMENT_TYPES; }
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkX6G6QERR_js.EVENT_TYPES; }
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "FxService", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkX6G6QERR_js.FxService; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "InventoryService", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkX6G6QERR_js.InventoryService; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkX6G6QERR_js.LINK_MUTATION; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkX6G6QERR_js.LINK_QUERY; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "LinkService", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkX6G6QERR_js.LinkService; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "LiteService", {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkX6G6QERR_js.LiteService; }
|
|
331
331
|
});
|
|
332
332
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
333
333
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkX6G6QERR_js.MESSAGE_TYPES; }
|
|
335
335
|
});
|
|
336
336
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
337
337
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkX6G6QERR_js.MOBILE_MONEY_PROVIDER; }
|
|
339
339
|
});
|
|
340
340
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkX6G6QERR_js.ORDER_MUTATION; }
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkX6G6QERR_js.ORDER_TYPE; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "OrderQueries", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkX6G6QERR_js.OrderQueries; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkX6G6QERR_js.PAYMENT_METHOD; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkX6G6QERR_js.PAYMENT_MUTATION; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkX6G6QERR_js.PAYMENT_STATE; }
|
|
363
363
|
});
|
|
364
364
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkX6G6QERR_js.PICKUP_TIME_TYPE; }
|
|
367
367
|
});
|
|
368
368
|
Object.defineProperty(exports, "SchedulingService", {
|
|
369
369
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkX6G6QERR_js.SchedulingService; }
|
|
371
371
|
});
|
|
372
372
|
Object.defineProperty(exports, "combine", {
|
|
373
373
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkX6G6QERR_js.combine; }
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "combineObject", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkX6G6QERR_js.combineObject; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "createElements", {
|
|
381
381
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkX6G6QERR_js.createElements; }
|
|
383
383
|
});
|
|
384
384
|
Object.defineProperty(exports, "err", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkX6G6QERR_js.err; }
|
|
387
387
|
});
|
|
388
388
|
Object.defineProperty(exports, "flatMap", {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkX6G6QERR_js.flatMap; }
|
|
391
391
|
});
|
|
392
392
|
Object.defineProperty(exports, "fromPromise", {
|
|
393
393
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkX6G6QERR_js.fromPromise; }
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
397
397
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkX6G6QERR_js.generateIdempotencyKey; }
|
|
399
399
|
});
|
|
400
400
|
Object.defineProperty(exports, "getOrElse", {
|
|
401
401
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkX6G6QERR_js.getOrElse; }
|
|
403
403
|
});
|
|
404
404
|
Object.defineProperty(exports, "isErr", {
|
|
405
405
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkX6G6QERR_js.isErr; }
|
|
407
407
|
});
|
|
408
408
|
Object.defineProperty(exports, "isOk", {
|
|
409
409
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkX6G6QERR_js.isOk; }
|
|
411
411
|
});
|
|
412
412
|
Object.defineProperty(exports, "mapError", {
|
|
413
413
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkX6G6QERR_js.mapError; }
|
|
415
415
|
});
|
|
416
416
|
Object.defineProperty(exports, "mapResult", {
|
|
417
417
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkX6G6QERR_js.mapResult; }
|
|
419
419
|
});
|
|
420
420
|
Object.defineProperty(exports, "ok", {
|
|
421
421
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkX6G6QERR_js.ok; }
|
|
423
423
|
});
|
|
424
424
|
Object.defineProperty(exports, "startSignIn", {
|
|
425
425
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkX6G6QERR_js.startSignIn; }
|
|
427
427
|
});
|
|
428
428
|
Object.defineProperty(exports, "toNullable", {
|
|
429
429
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkX6G6QERR_js.toNullable; }
|
|
431
431
|
});
|
|
432
432
|
Object.defineProperty(exports, "tryCatch", {
|
|
433
433
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkX6G6QERR_js.tryCatch; }
|
|
435
435
|
});
|
|
436
436
|
Object.defineProperty(exports, "unwrap", {
|
|
437
437
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkX6G6QERR_js.unwrap; }
|
|
439
439
|
});
|
|
440
440
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
441
441
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunk64EDCDBR_js.CURRENCY_SYMBOLS; }
|
|
443
443
|
});
|
|
444
444
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
|
|
445
445
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunk64EDCDBR_js.MOBILE_MONEY_PROVIDERS; }
|
|
447
447
|
});
|
|
448
448
|
Object.defineProperty(exports, "categorizePaymentError", {
|
|
449
449
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunk64EDCDBR_js.categorizePaymentError; }
|
|
451
451
|
});
|
|
452
452
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
453
453
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunk64EDCDBR_js.detectMobileMoneyProvider; }
|
|
455
455
|
});
|
|
456
456
|
Object.defineProperty(exports, "formatMoney", {
|
|
457
457
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
458
|
+
get: function () { return chunk64EDCDBR_js.formatMoney; }
|
|
459
459
|
});
|
|
460
460
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
461
461
|
enumerable: true,
|
|
462
|
-
get: function () { return
|
|
462
|
+
get: function () { return chunk64EDCDBR_js.formatNumberCompact; }
|
|
463
463
|
});
|
|
464
464
|
Object.defineProperty(exports, "formatPrice", {
|
|
465
465
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunk64EDCDBR_js.formatPrice; }
|
|
467
467
|
});
|
|
468
468
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
469
469
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunk64EDCDBR_js.formatPriceAdjustment; }
|
|
471
471
|
});
|
|
472
472
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
473
473
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
474
|
+
get: function () { return chunk64EDCDBR_js.formatPriceCompact; }
|
|
475
475
|
});
|
|
476
476
|
Object.defineProperty(exports, "formatPriceRange", {
|
|
477
477
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunk64EDCDBR_js.formatPriceRange; }
|
|
479
479
|
});
|
|
480
480
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
481
481
|
enumerable: true,
|
|
482
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunk64EDCDBR_js.formatPriceWithTax; }
|
|
483
483
|
});
|
|
484
484
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
485
485
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunk64EDCDBR_js.formatProductPrice; }
|
|
487
487
|
});
|
|
488
488
|
Object.defineProperty(exports, "getBasePrice", {
|
|
489
489
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunk64EDCDBR_js.getBasePrice; }
|
|
491
491
|
});
|
|
492
492
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
493
493
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
494
|
+
get: function () { return chunk64EDCDBR_js.getCurrencySymbol; }
|
|
495
495
|
});
|
|
496
496
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
497
497
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunk64EDCDBR_js.getDiscountPercentage; }
|
|
499
499
|
});
|
|
500
500
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
501
501
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunk64EDCDBR_js.getDisplayPrice; }
|
|
503
503
|
});
|
|
504
504
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
505
505
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunk64EDCDBR_js.getMarkupPercentage; }
|
|
507
507
|
});
|
|
508
508
|
Object.defineProperty(exports, "getPriceRange", {
|
|
509
509
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunk64EDCDBR_js.getPriceRange; }
|
|
511
511
|
});
|
|
512
512
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
513
513
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunk64EDCDBR_js.getProductCurrency; }
|
|
515
515
|
});
|
|
516
516
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
517
517
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
518
|
+
get: function () { return chunk64EDCDBR_js.getTaxAmount; }
|
|
519
519
|
});
|
|
520
520
|
Object.defineProperty(exports, "getUnitPriceAtQuantity", {
|
|
521
521
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunk64EDCDBR_js.getUnitPriceAtQuantity; }
|
|
523
523
|
});
|
|
524
524
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
525
525
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
526
|
+
get: function () { return chunk64EDCDBR_js.hasTaxInfo; }
|
|
527
527
|
});
|
|
528
528
|
Object.defineProperty(exports, "isOnSale", {
|
|
529
529
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
530
|
+
get: function () { return chunk64EDCDBR_js.isOnSale; }
|
|
531
531
|
});
|
|
532
532
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
533
533
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunk64EDCDBR_js.isPaymentStatusFailure; }
|
|
535
535
|
});
|
|
536
536
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
537
537
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunk64EDCDBR_js.isPaymentStatusRequiresAction; }
|
|
539
539
|
});
|
|
540
540
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
541
541
|
enumerable: true,
|
|
542
|
-
get: function () { return
|
|
542
|
+
get: function () { return chunk64EDCDBR_js.isPaymentStatusSuccess; }
|
|
543
543
|
});
|
|
544
544
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
545
545
|
enumerable: true,
|
|
546
|
-
get: function () { return
|
|
546
|
+
get: function () { return chunk64EDCDBR_js.isTaxInclusive; }
|
|
547
547
|
});
|
|
548
548
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
549
549
|
enumerable: true,
|
|
550
|
-
get: function () { return
|
|
550
|
+
get: function () { return chunk64EDCDBR_js.normalizePaymentResponse; }
|
|
551
551
|
});
|
|
552
552
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
553
553
|
enumerable: true,
|
|
554
|
-
get: function () { return
|
|
554
|
+
get: function () { return chunk64EDCDBR_js.normalizeStatusResponse; }
|
|
555
555
|
});
|
|
556
556
|
Object.defineProperty(exports, "parsePrice", {
|
|
557
557
|
enumerable: true,
|
|
558
|
-
get: function () { return
|
|
558
|
+
get: function () { return chunk64EDCDBR_js.parsePrice; }
|
|
559
559
|
});
|
|
560
560
|
Object.defineProperty(exports, "CimplifyError", {
|
|
561
561
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-4G5UWFC3.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
4
|
-
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-
|
|
5
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-
|
|
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-
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-GWKIDFN6.mjs';
|
|
4
|
+
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-OX5L6XE7.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-OX5L6XE7.mjs';
|
|
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-V5TU5JKA.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';
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-BKV6TBj_.mjs';
|
|
2
2
|
|
|
3
|
-
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
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";
|
|
5
5
|
type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
|
|
6
6
|
mobile_money: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-BKV6TBj_.js';
|
|
2
2
|
|
|
3
|
-
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
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";
|
|
5
5
|
type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
|
|
6
6
|
mobile_money: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-BKV6TBj_.mjs';
|
|
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-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-BKV6TBj_.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|