@cimplify/sdk 0.86.0 → 0.88.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 +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-ESGKWRQS.js → chunk-6JA4HBBD.js} +4 -4
- package/dist/{chunk-MRL53WP6.mjs → chunk-A7NODD4Q.mjs} +12 -1
- package/dist/{chunk-D6JWYYTG.mjs → chunk-APBLFZ2I.mjs} +3 -3
- package/dist/{chunk-VUG4HTUM.js → chunk-GHFDYM5K.js} +113 -5
- package/dist/{chunk-E6T5VJMG.mjs → chunk-OZDDHSIB.mjs} +9 -1
- package/dist/{chunk-X4UNISYG.js → chunk-ROBTTS3Q.js} +3 -3
- package/dist/{chunk-IQLJJW2H.js → chunk-T7Z25EY4.js} +9 -0
- package/dist/{chunk-A2GXDCSI.mjs → chunk-VU5LFNEX.mjs} +2 -2
- package/dist/{chunk-HJEKXCG2.js → chunk-W5BVGAO6.js} +48 -37
- package/dist/{chunk-NN3WC7XZ.mjs → chunk-ZU4ZRYUR.mjs} +113 -5
- package/dist/{client-DowGNrTh.d.mts → client-B-8ceVyt.d.mts} +2 -2
- package/dist/{client-CMJO_8zo.d.ts → client-B3FBDfTg.d.ts} +2 -2
- package/dist/{client-BQSRj4iK.d.mts → client-D0PrO1-Q.d.ts} +29 -8
- package/dist/{client-BdI24jUT.d.ts → client-r5VSGFRU.d.mts} +29 -8
- package/dist/{index-BRwHpMY-.d.ts → index-C-Pxrzna.d.ts} +3 -3
- package/dist/{index-DLb_Ldl6.d.mts → index-DLulxmF1.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +85 -81
- package/dist/index.mjs +4 -4
- package/dist/mock/cli.mjs +3 -3
- package/dist/mock/library.js +3 -3
- package/dist/mock/library.mjs +3 -3
- package/dist/mock/msw.js +3 -3
- package/dist/mock/msw.mjs +3 -3
- package/dist/{payment-BA7KNBxg.d.ts → payment-Cfoo9MT7.d.ts} +1 -1
- package/dist/{payment-CFev-fOE.d.mts → payment-TnJUoHqL.d.mts} +1 -1
- package/dist/{price-BNhGVB5q.d.ts → price-CCDSrIsc.d.ts} +1 -1
- package/dist/{price-nRxqVNGq.d.mts → price-CM0zVSyM.d.mts} +1 -1
- package/dist/{product-BGxIfTqJ.d.mts → product-DoA36Eqh.d.mts} +65 -4
- package/dist/{product-BGxIfTqJ.d.ts → product-DoA36Eqh.d.ts} +65 -4
- package/dist/react.d.mts +22 -5
- package/dist/react.d.ts +22 -5
- package/dist/react.js +101 -63
- package/dist/react.mjs +40 -5
- package/dist/{server-BH7DTaaz.d.ts → server-CHfYeTAa.d.ts} +2 -2
- package/dist/{server-9u0LiG5U.d.mts → server-CI1CUFVu.d.mts} +2 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +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/package.json +1 -1
- package/registry/product-card.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkT7Z25EY4_js = require('./chunk-T7Z25EY4.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkW5BVGAO6_js = require('./chunk-W5BVGAO6.js');
|
|
6
|
+
var chunkGHFDYM5K_js = require('./chunk-GHFDYM5K.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');
|
|
@@ -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 chunkGHFDYM5K_js.getAuthorizationEndpoint(opts.issuer ?? chunkGHFDYM5K_js.DEFAULT_ISSUER);
|
|
31
|
+
const pkce = await chunkGHFDYM5K_js.generatePkce();
|
|
32
|
+
const state = chunkGHFDYM5K_js.generateState();
|
|
33
33
|
const params = new URLSearchParams({
|
|
34
34
|
response_type: RESPONSE_TYPE_CODE,
|
|
35
35
|
response_mode: RESPONSE_MODE_WEB_MESSAGE,
|
|
@@ -97,49 +97,53 @@ async function signInSilent(opts) {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
Object.defineProperty(exports, "BOUNDARY_KIND", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkT7Z25EY4_js.BOUNDARY_KIND; }
|
|
103
|
+
});
|
|
100
104
|
Object.defineProperty(exports, "CIMPLIFY_CDN_HOSTS", {
|
|
101
105
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkT7Z25EY4_js.CIMPLIFY_CDN_HOSTS; }
|
|
103
107
|
});
|
|
104
108
|
Object.defineProperty(exports, "DEFAULT_CDN_BASE_URL", {
|
|
105
109
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkT7Z25EY4_js.DEFAULT_CDN_BASE_URL; }
|
|
107
111
|
});
|
|
108
112
|
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
109
113
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkT7Z25EY4_js.DURATION_UNIT; }
|
|
111
115
|
});
|
|
112
116
|
Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
|
|
113
117
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkT7Z25EY4_js.INPUT_FIELD_TYPE; }
|
|
115
119
|
});
|
|
116
120
|
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
117
121
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkT7Z25EY4_js.PRODUCT_TYPE; }
|
|
119
123
|
});
|
|
120
124
|
Object.defineProperty(exports, "RENDER_HINT", {
|
|
121
125
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkT7Z25EY4_js.RENDER_HINT; }
|
|
123
127
|
});
|
|
124
128
|
Object.defineProperty(exports, "allGalleryImages", {
|
|
125
129
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkT7Z25EY4_js.allGalleryImages; }
|
|
127
131
|
});
|
|
128
132
|
Object.defineProperty(exports, "assetUrl", {
|
|
129
133
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkT7Z25EY4_js.assetUrl; }
|
|
131
135
|
});
|
|
132
136
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
133
137
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkT7Z25EY4_js.getVariantDisplayName; }
|
|
135
139
|
});
|
|
136
140
|
Object.defineProperty(exports, "isCimplifyAsset", {
|
|
137
141
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkT7Z25EY4_js.isCimplifyAsset; }
|
|
139
143
|
});
|
|
140
144
|
Object.defineProperty(exports, "resolveGallery", {
|
|
141
145
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkT7Z25EY4_js.resolveGallery; }
|
|
143
147
|
});
|
|
144
148
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
145
149
|
enumerable: true,
|
|
@@ -155,259 +159,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
155
159
|
});
|
|
156
160
|
Object.defineProperty(exports, "ActivityService", {
|
|
157
161
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkW5BVGAO6_js.ActivityService; }
|
|
159
163
|
});
|
|
160
164
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
161
165
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkW5BVGAO6_js.CimplifyClient; }
|
|
163
167
|
});
|
|
164
168
|
Object.defineProperty(exports, "DeliveryService", {
|
|
165
169
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkW5BVGAO6_js.DeliveryService; }
|
|
167
171
|
});
|
|
168
172
|
Object.defineProperty(exports, "PlacesService", {
|
|
169
173
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkW5BVGAO6_js.PlacesService; }
|
|
171
175
|
});
|
|
172
176
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
173
177
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkW5BVGAO6_js.StoreCreditQueries; }
|
|
175
179
|
});
|
|
176
180
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
177
181
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkW5BVGAO6_js.SubscriptionService; }
|
|
179
183
|
});
|
|
180
184
|
Object.defineProperty(exports, "SupportService", {
|
|
181
185
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkW5BVGAO6_js.SupportService; }
|
|
183
187
|
});
|
|
184
188
|
Object.defineProperty(exports, "UploadService", {
|
|
185
189
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkW5BVGAO6_js.UploadService; }
|
|
187
191
|
});
|
|
188
192
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
189
193
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkW5BVGAO6_js.createCimplifyClient; }
|
|
191
195
|
});
|
|
192
196
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
193
197
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkGHFDYM5K_js.AUTHORIZATION_TYPE; }
|
|
195
199
|
});
|
|
196
200
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
197
201
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkGHFDYM5K_js.AUTH_MUTATION; }
|
|
199
203
|
});
|
|
200
204
|
Object.defineProperty(exports, "AuthService", {
|
|
201
205
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkGHFDYM5K_js.AuthService; }
|
|
203
207
|
});
|
|
204
208
|
Object.defineProperty(exports, "BusinessService", {
|
|
205
209
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkGHFDYM5K_js.BusinessService; }
|
|
207
211
|
});
|
|
208
212
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
209
213
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkGHFDYM5K_js.CHECKOUT_MODE; }
|
|
211
215
|
});
|
|
212
216
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
213
217
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkGHFDYM5K_js.CHECKOUT_MUTATION; }
|
|
215
219
|
});
|
|
216
220
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
217
221
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkGHFDYM5K_js.CHECKOUT_STEP; }
|
|
219
223
|
});
|
|
220
224
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
221
225
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkGHFDYM5K_js.CONTACT_TYPE; }
|
|
223
227
|
});
|
|
224
228
|
Object.defineProperty(exports, "CartOperations", {
|
|
225
229
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkGHFDYM5K_js.CartOperations; }
|
|
227
231
|
});
|
|
228
232
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
229
233
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkGHFDYM5K_js.CatalogueQueries; }
|
|
231
235
|
});
|
|
232
236
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
233
237
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkGHFDYM5K_js.CheckoutService; }
|
|
235
239
|
});
|
|
236
240
|
Object.defineProperty(exports, "CheckoutService", {
|
|
237
241
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkGHFDYM5K_js.CheckoutService; }
|
|
239
243
|
});
|
|
240
244
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
241
245
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkGHFDYM5K_js.CimplifyElement; }
|
|
243
247
|
});
|
|
244
248
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
245
249
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkGHFDYM5K_js.CimplifyElements; }
|
|
247
251
|
});
|
|
248
252
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
249
253
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkGHFDYM5K_js.DEFAULT_COUNTRY; }
|
|
251
255
|
});
|
|
252
256
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
253
257
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkGHFDYM5K_js.DEFAULT_CURRENCY; }
|
|
255
259
|
});
|
|
256
260
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
257
261
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkGHFDYM5K_js.DEVICE_TYPE; }
|
|
259
263
|
});
|
|
260
264
|
Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
|
|
261
265
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_CONTACT_TYPES; }
|
|
263
267
|
});
|
|
264
268
|
Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
|
|
265
269
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_MODES; }
|
|
267
271
|
});
|
|
268
272
|
Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
|
|
269
273
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_PROMPTS; }
|
|
271
275
|
});
|
|
272
276
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
273
277
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkGHFDYM5K_js.ELEMENT_TYPES; }
|
|
275
279
|
});
|
|
276
280
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
277
281
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkGHFDYM5K_js.EVENT_TYPES; }
|
|
279
283
|
});
|
|
280
284
|
Object.defineProperty(exports, "FxService", {
|
|
281
285
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkGHFDYM5K_js.FxService; }
|
|
283
287
|
});
|
|
284
288
|
Object.defineProperty(exports, "InventoryService", {
|
|
285
289
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkGHFDYM5K_js.InventoryService; }
|
|
287
291
|
});
|
|
288
292
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
289
293
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkGHFDYM5K_js.LINK_MUTATION; }
|
|
291
295
|
});
|
|
292
296
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
293
297
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkGHFDYM5K_js.LINK_QUERY; }
|
|
295
299
|
});
|
|
296
300
|
Object.defineProperty(exports, "LinkService", {
|
|
297
301
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkGHFDYM5K_js.LinkService; }
|
|
299
303
|
});
|
|
300
304
|
Object.defineProperty(exports, "LiteService", {
|
|
301
305
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkGHFDYM5K_js.LiteService; }
|
|
303
307
|
});
|
|
304
308
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
305
309
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkGHFDYM5K_js.MESSAGE_TYPES; }
|
|
307
311
|
});
|
|
308
312
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
309
313
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkGHFDYM5K_js.MOBILE_MONEY_PROVIDER; }
|
|
311
315
|
});
|
|
312
316
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
313
317
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkGHFDYM5K_js.ORDER_MUTATION; }
|
|
315
319
|
});
|
|
316
320
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
317
321
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkGHFDYM5K_js.ORDER_TYPE; }
|
|
319
323
|
});
|
|
320
324
|
Object.defineProperty(exports, "OrderQueries", {
|
|
321
325
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkGHFDYM5K_js.OrderQueries; }
|
|
323
327
|
});
|
|
324
328
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
325
329
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkGHFDYM5K_js.PAYMENT_METHOD; }
|
|
327
331
|
});
|
|
328
332
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
329
333
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkGHFDYM5K_js.PAYMENT_MUTATION; }
|
|
331
335
|
});
|
|
332
336
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
333
337
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkGHFDYM5K_js.PAYMENT_STATE; }
|
|
335
339
|
});
|
|
336
340
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
337
341
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkGHFDYM5K_js.PICKUP_TIME_TYPE; }
|
|
339
343
|
});
|
|
340
344
|
Object.defineProperty(exports, "SchedulingService", {
|
|
341
345
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkGHFDYM5K_js.SchedulingService; }
|
|
343
347
|
});
|
|
344
348
|
Object.defineProperty(exports, "combine", {
|
|
345
349
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkGHFDYM5K_js.combine; }
|
|
347
351
|
});
|
|
348
352
|
Object.defineProperty(exports, "combineObject", {
|
|
349
353
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkGHFDYM5K_js.combineObject; }
|
|
351
355
|
});
|
|
352
356
|
Object.defineProperty(exports, "createElements", {
|
|
353
357
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkGHFDYM5K_js.createElements; }
|
|
355
359
|
});
|
|
356
360
|
Object.defineProperty(exports, "err", {
|
|
357
361
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkGHFDYM5K_js.err; }
|
|
359
363
|
});
|
|
360
364
|
Object.defineProperty(exports, "flatMap", {
|
|
361
365
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkGHFDYM5K_js.flatMap; }
|
|
363
367
|
});
|
|
364
368
|
Object.defineProperty(exports, "fromPromise", {
|
|
365
369
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkGHFDYM5K_js.fromPromise; }
|
|
367
371
|
});
|
|
368
372
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
369
373
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkGHFDYM5K_js.generateIdempotencyKey; }
|
|
371
375
|
});
|
|
372
376
|
Object.defineProperty(exports, "getOrElse", {
|
|
373
377
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkGHFDYM5K_js.getOrElse; }
|
|
375
379
|
});
|
|
376
380
|
Object.defineProperty(exports, "isErr", {
|
|
377
381
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkGHFDYM5K_js.isErr; }
|
|
379
383
|
});
|
|
380
384
|
Object.defineProperty(exports, "isOk", {
|
|
381
385
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkGHFDYM5K_js.isOk; }
|
|
383
387
|
});
|
|
384
388
|
Object.defineProperty(exports, "mapError", {
|
|
385
389
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkGHFDYM5K_js.mapError; }
|
|
387
391
|
});
|
|
388
392
|
Object.defineProperty(exports, "mapResult", {
|
|
389
393
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkGHFDYM5K_js.mapResult; }
|
|
391
395
|
});
|
|
392
396
|
Object.defineProperty(exports, "ok", {
|
|
393
397
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkGHFDYM5K_js.ok; }
|
|
395
399
|
});
|
|
396
400
|
Object.defineProperty(exports, "startSignIn", {
|
|
397
401
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkGHFDYM5K_js.startSignIn; }
|
|
399
403
|
});
|
|
400
404
|
Object.defineProperty(exports, "toNullable", {
|
|
401
405
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkGHFDYM5K_js.toNullable; }
|
|
403
407
|
});
|
|
404
408
|
Object.defineProperty(exports, "tryCatch", {
|
|
405
409
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkGHFDYM5K_js.tryCatch; }
|
|
407
411
|
});
|
|
408
412
|
Object.defineProperty(exports, "unwrap", {
|
|
409
413
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkGHFDYM5K_js.unwrap; }
|
|
411
415
|
});
|
|
412
416
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
413
417
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, resolveGallery } from './chunk-
|
|
1
|
+
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, resolveGallery } from './chunk-OZDDHSIB.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
4
|
-
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-
|
|
5
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-A7NODD4Q.mjs';
|
|
4
|
+
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-ZU4ZRYUR.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-ZU4ZRYUR.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
|
@@ -3452,7 +3452,7 @@ function buildV1(deps) {
|
|
|
3452
3452
|
return tryRoute(c, () => deps.scheduling.cancelBooking(c.req.param("booking_id"), body.reason));
|
|
3453
3453
|
});
|
|
3454
3454
|
app.get("/lite/bootstrap", (c) => tryRoute(c, () => deps.lite.bootstrap(deps.defaultBusinessId)));
|
|
3455
|
-
app.get("/lite/
|
|
3455
|
+
app.get("/lite/resources/:resource_id", (c) => tryRoute(c, () => deps.lite.getResource(c.req.param("resource_id"))));
|
|
3456
3456
|
app.get("/lite/menu", (c) => tryRoute(c, () => deps.lite.getMenu(deps.defaultBusinessId)));
|
|
3457
3457
|
app.get("/lite/menu/categories/:category_id", (c) => tryRoute(c, () => deps.lite.getMenuCategory(c.req.param("category_id"))));
|
|
3458
3458
|
app.get("/fx/rate", (c) => tryRoute(c, () => deps.fx.getRate(c.req.query("from") ?? "USD", c.req.query("to") ?? "GHS")));
|
|
@@ -6555,8 +6555,8 @@ function createLiteService(opts) {
|
|
|
6555
6555
|
tables: []
|
|
6556
6556
|
};
|
|
6557
6557
|
},
|
|
6558
|
-
|
|
6559
|
-
return { id:
|
|
6558
|
+
getResource(resourceId) {
|
|
6559
|
+
return { id: resourceId, table_number: resourceId.slice(-2), capacity: 4, occupied: false };
|
|
6560
6560
|
},
|
|
6561
6561
|
getMenu(businessId) {
|
|
6562
6562
|
const products = registry.products.list((p) => p.business_id === businessId);
|
package/dist/mock/library.js
CHANGED
|
@@ -2514,7 +2514,7 @@ function buildV1(deps) {
|
|
|
2514
2514
|
return tryRoute(c, () => deps.scheduling.cancelBooking(c.req.param("booking_id"), body.reason));
|
|
2515
2515
|
});
|
|
2516
2516
|
app.get("/lite/bootstrap", (c) => tryRoute(c, () => deps.lite.bootstrap(deps.defaultBusinessId)));
|
|
2517
|
-
app.get("/lite/
|
|
2517
|
+
app.get("/lite/resources/:resource_id", (c) => tryRoute(c, () => deps.lite.getResource(c.req.param("resource_id"))));
|
|
2518
2518
|
app.get("/lite/menu", (c) => tryRoute(c, () => deps.lite.getMenu(deps.defaultBusinessId)));
|
|
2519
2519
|
app.get("/lite/menu/categories/:category_id", (c) => tryRoute(c, () => deps.lite.getMenuCategory(c.req.param("category_id"))));
|
|
2520
2520
|
app.get("/fx/rate", (c) => tryRoute(c, () => deps.fx.getRate(c.req.query("from") ?? "USD", c.req.query("to") ?? "GHS")));
|
|
@@ -5617,8 +5617,8 @@ function createLiteService(opts) {
|
|
|
5617
5617
|
tables: []
|
|
5618
5618
|
};
|
|
5619
5619
|
},
|
|
5620
|
-
|
|
5621
|
-
return { id:
|
|
5620
|
+
getResource(resourceId) {
|
|
5621
|
+
return { id: resourceId, table_number: resourceId.slice(-2), capacity: 4, occupied: false };
|
|
5622
5622
|
},
|
|
5623
5623
|
getMenu(businessId) {
|
|
5624
5624
|
const products = registry.products.list((p) => p.business_id === businessId);
|
package/dist/mock/library.mjs
CHANGED
|
@@ -2512,7 +2512,7 @@ function buildV1(deps) {
|
|
|
2512
2512
|
return tryRoute(c, () => deps.scheduling.cancelBooking(c.req.param("booking_id"), body.reason));
|
|
2513
2513
|
});
|
|
2514
2514
|
app.get("/lite/bootstrap", (c) => tryRoute(c, () => deps.lite.bootstrap(deps.defaultBusinessId)));
|
|
2515
|
-
app.get("/lite/
|
|
2515
|
+
app.get("/lite/resources/:resource_id", (c) => tryRoute(c, () => deps.lite.getResource(c.req.param("resource_id"))));
|
|
2516
2516
|
app.get("/lite/menu", (c) => tryRoute(c, () => deps.lite.getMenu(deps.defaultBusinessId)));
|
|
2517
2517
|
app.get("/lite/menu/categories/:category_id", (c) => tryRoute(c, () => deps.lite.getMenuCategory(c.req.param("category_id"))));
|
|
2518
2518
|
app.get("/fx/rate", (c) => tryRoute(c, () => deps.fx.getRate(c.req.query("from") ?? "USD", c.req.query("to") ?? "GHS")));
|
|
@@ -5615,8 +5615,8 @@ function createLiteService(opts) {
|
|
|
5615
5615
|
tables: []
|
|
5616
5616
|
};
|
|
5617
5617
|
},
|
|
5618
|
-
|
|
5619
|
-
return { id:
|
|
5618
|
+
getResource(resourceId) {
|
|
5619
|
+
return { id: resourceId, table_number: resourceId.slice(-2), capacity: 4, occupied: false };
|
|
5620
5620
|
},
|
|
5621
5621
|
getMenu(businessId) {
|
|
5622
5622
|
const products = registry.products.list((p) => p.business_id === businessId);
|
package/dist/mock/msw.js
CHANGED
|
@@ -2512,7 +2512,7 @@ function buildV1(deps) {
|
|
|
2512
2512
|
return tryRoute(c, () => deps.scheduling.cancelBooking(c.req.param("booking_id"), body.reason));
|
|
2513
2513
|
});
|
|
2514
2514
|
app.get("/lite/bootstrap", (c) => tryRoute(c, () => deps.lite.bootstrap(deps.defaultBusinessId)));
|
|
2515
|
-
app.get("/lite/
|
|
2515
|
+
app.get("/lite/resources/:resource_id", (c) => tryRoute(c, () => deps.lite.getResource(c.req.param("resource_id"))));
|
|
2516
2516
|
app.get("/lite/menu", (c) => tryRoute(c, () => deps.lite.getMenu(deps.defaultBusinessId)));
|
|
2517
2517
|
app.get("/lite/menu/categories/:category_id", (c) => tryRoute(c, () => deps.lite.getMenuCategory(c.req.param("category_id"))));
|
|
2518
2518
|
app.get("/fx/rate", (c) => tryRoute(c, () => deps.fx.getRate(c.req.query("from") ?? "USD", c.req.query("to") ?? "GHS")));
|
|
@@ -5615,8 +5615,8 @@ function createLiteService(opts) {
|
|
|
5615
5615
|
tables: []
|
|
5616
5616
|
};
|
|
5617
5617
|
},
|
|
5618
|
-
|
|
5619
|
-
return { id:
|
|
5618
|
+
getResource(resourceId) {
|
|
5619
|
+
return { id: resourceId, table_number: resourceId.slice(-2), capacity: 4, occupied: false };
|
|
5620
5620
|
},
|
|
5621
5621
|
getMenu(businessId) {
|
|
5622
5622
|
const products = registry.products.list((p) => p.business_id === businessId);
|
package/dist/mock/msw.mjs
CHANGED
|
@@ -2510,7 +2510,7 @@ function buildV1(deps) {
|
|
|
2510
2510
|
return tryRoute(c, () => deps.scheduling.cancelBooking(c.req.param("booking_id"), body.reason));
|
|
2511
2511
|
});
|
|
2512
2512
|
app.get("/lite/bootstrap", (c) => tryRoute(c, () => deps.lite.bootstrap(deps.defaultBusinessId)));
|
|
2513
|
-
app.get("/lite/
|
|
2513
|
+
app.get("/lite/resources/:resource_id", (c) => tryRoute(c, () => deps.lite.getResource(c.req.param("resource_id"))));
|
|
2514
2514
|
app.get("/lite/menu", (c) => tryRoute(c, () => deps.lite.getMenu(deps.defaultBusinessId)));
|
|
2515
2515
|
app.get("/lite/menu/categories/:category_id", (c) => tryRoute(c, () => deps.lite.getMenuCategory(c.req.param("category_id"))));
|
|
2516
2516
|
app.get("/fx/rate", (c) => tryRoute(c, () => deps.fx.getRate(c.req.query("from") ?? "USD", c.req.query("to") ?? "GHS")));
|
|
@@ -5613,8 +5613,8 @@ function createLiteService(opts) {
|
|
|
5613
5613
|
tables: []
|
|
5614
5614
|
};
|
|
5615
5615
|
},
|
|
5616
|
-
|
|
5617
|
-
return { id:
|
|
5616
|
+
getResource(resourceId) {
|
|
5617
|
+
return { id: resourceId, table_number: resourceId.slice(-2), capacity: 4, occupied: false };
|
|
5618
5618
|
},
|
|
5619
5619
|
getMenu(businessId) {
|
|
5620
5620
|
const products = registry.products.list((p) => p.business_id === businessId);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-DoA36Eqh.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 {
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-DoA36Eqh.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 {
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-DoA36Eqh.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-DoA36Eqh.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|