@cimplify/sdk 0.90.0 → 0.92.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-JVWFIFQ7.js → chunk-3MBMIEWT.js} +4 -4
- package/dist/{chunk-2UDEWILL.mjs → chunk-3XD2FVP4.mjs} +117 -35
- package/dist/{chunk-NGE37REW.mjs → chunk-54H2YYIW.mjs} +2 -2
- package/dist/{chunk-BN4V4ONE.js → chunk-DCRN67NO.js} +158 -73
- package/dist/{chunk-T7Z25EY4.js → chunk-HKN3YG76.js} +84 -0
- package/dist/{chunk-GHFDYM5K.js → chunk-IVJEUGWF.js} +10 -1
- package/dist/{chunk-KJP4U6L3.js → chunk-OAHSF542.js} +12 -0
- package/dist/{chunk-NNGKC3MM.mjs → chunk-PYBFTMHI.mjs} +12 -0
- package/dist/{chunk-OZDDHSIB.mjs → chunk-RRBY35TJ.mjs} +80 -1
- package/dist/{chunk-ZU4ZRYUR.mjs → chunk-T7LDBZZZ.mjs} +10 -1
- package/dist/{client-YiSelM7x.d.mts → client-BQbSKlHS.d.mts} +90 -11
- package/dist/{client-DMttx1xk.d.mts → client-Bw4HtLP1.d.mts} +2 -2
- package/dist/{client-CR1f94wY.d.ts → client-CeW3acve.d.ts} +90 -11
- package/dist/{client-CqpOcbin.d.ts → client-Otzv_rgP.d.ts} +2 -2
- package/dist/{index-DD9z396M.d.mts → index-CmIboQjl.d.mts} +3 -3
- package/dist/{index-CxTVu0HZ.d.ts → index-DgoRwz8l.d.ts} +3 -3
- package/dist/index.d.mts +49 -7
- package/dist/index.d.ts +49 -7
- package/dist/index.js +103 -83
- package/dist/index.mjs +5 -5
- package/dist/mock/cli.mjs +12 -0
- package/dist/mock/library.js +12 -0
- package/dist/mock/library.mjs +12 -0
- package/dist/mock/msw.js +12 -0
- package/dist/mock/msw.mjs +12 -0
- package/dist/{payment-5d8FTA1q.d.mts → payment-BFtLqiG2.d.mts} +1 -1
- package/dist/{payment-BX7ccIKY.d.ts → payment-Cq8FT1B6.d.ts} +1 -1
- package/dist/{price-DtfP_Xfq.d.ts → price-DaFXT-Lr.d.ts} +1 -1
- package/dist/{price-arl_4Rzn.d.mts → price-DleDWk_s.d.mts} +1 -1
- package/dist/{product-DZX4QuKS.d.ts → product-bZ8G5Z8D.d.mts} +38 -0
- package/dist/{product-DZX4QuKS.d.mts → product-bZ8G5Z8D.d.ts} +38 -0
- package/dist/react.d.mts +71 -6
- package/dist/react.d.ts +71 -6
- package/dist/react.js +466 -337
- package/dist/react.mjs +398 -272
- package/dist/{server-BceZMxcK.d.mts → server-D-iK-bNt.d.mts} +1 -1
- package/dist/{server-DoJGSC7L.d.ts → server-DwsY9hlX.d.ts} +1 -1
- 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/booking-page.json +1 -1
- package/registry/chat-widget.json +1 -1
- package/registry/customer-input-fields.json +1 -1
- package/registry/date-slot-picker.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/rental-service-card.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHKN3YG76_js = require('./chunk-HKN3YG76.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkDCRN67NO_js = require('./chunk-DCRN67NO.js');
|
|
6
|
+
var chunkIVJEUGWF_js = require('./chunk-IVJEUGWF.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');
|
|
10
10
|
|
|
11
|
-
// src/
|
|
11
|
+
// src/chat-cards.ts
|
|
12
12
|
function chatMessageCards(message) {
|
|
13
13
|
const cards = message.metadata?.["cards"];
|
|
14
14
|
return Array.isArray(cards) ? cards : [];
|
|
@@ -33,9 +33,9 @@ async function signInSilent(opts) {
|
|
|
33
33
|
} catch {
|
|
34
34
|
}
|
|
35
35
|
const callbackUri = opts.callbackUri ?? "/auth/callback";
|
|
36
|
-
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await
|
|
37
|
-
const pkce = await
|
|
38
|
-
const state =
|
|
36
|
+
const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkIVJEUGWF_js.getAuthorizationEndpoint(opts.issuer ?? chunkIVJEUGWF_js.DEFAULT_ISSUER);
|
|
37
|
+
const pkce = await chunkIVJEUGWF_js.generatePkce();
|
|
38
|
+
const state = chunkIVJEUGWF_js.generateState();
|
|
39
39
|
const params = new URLSearchParams({
|
|
40
40
|
response_type: RESPONSE_TYPE_CODE,
|
|
41
41
|
response_mode: RESPONSE_MODE_WEB_MESSAGE,
|
|
@@ -105,51 +105,71 @@ async function signInSilent(opts) {
|
|
|
105
105
|
|
|
106
106
|
Object.defineProperty(exports, "BOUNDARY_KIND", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkHKN3YG76_js.BOUNDARY_KIND; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "CIMPLIFY_CDN_HOSTS", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkHKN3YG76_js.CIMPLIFY_CDN_HOSTS; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "DEFAULT_CDN_BASE_URL", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkHKN3YG76_js.DEFAULT_CDN_BASE_URL; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkHKN3YG76_js.DURATION_UNIT; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkHKN3YG76_js.INPUT_FIELD_TYPE; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkHKN3YG76_js.PRODUCT_TYPE; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "RENDER_HINT", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkHKN3YG76_js.RENDER_HINT; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "allGalleryImages", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkHKN3YG76_js.allGalleryImages; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "assetUrl", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkHKN3YG76_js.assetUrl; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkHKN3YG76_js.getVariantDisplayName; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "isCimplifyAsset", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkHKN3YG76_js.isCimplifyAsset; }
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "isMultiDayService", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunkHKN3YG76_js.isMultiDayService; }
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "priceBasisLabel", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () { return chunkHKN3YG76_js.priceBasisLabel; }
|
|
149
157
|
});
|
|
150
158
|
Object.defineProperty(exports, "resolveGallery", {
|
|
151
159
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkHKN3YG76_js.resolveGallery; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "serviceBillingMultiplier", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkHKN3YG76_js.serviceBillingMultiplier; }
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "stayLength", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return chunkHKN3YG76_js.stayLength; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "stayPeriods", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return chunkHKN3YG76_js.stayPeriods; }
|
|
153
173
|
});
|
|
154
174
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
155
175
|
enumerable: true,
|
|
@@ -165,259 +185,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
165
185
|
});
|
|
166
186
|
Object.defineProperty(exports, "ActivityService", {
|
|
167
187
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkDCRN67NO_js.ActivityService; }
|
|
169
189
|
});
|
|
170
190
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
171
191
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkDCRN67NO_js.CimplifyClient; }
|
|
173
193
|
});
|
|
174
194
|
Object.defineProperty(exports, "DeliveryService", {
|
|
175
195
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkDCRN67NO_js.DeliveryService; }
|
|
177
197
|
});
|
|
178
198
|
Object.defineProperty(exports, "PlacesService", {
|
|
179
199
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkDCRN67NO_js.PlacesService; }
|
|
181
201
|
});
|
|
182
202
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
183
203
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkDCRN67NO_js.StoreCreditQueries; }
|
|
185
205
|
});
|
|
186
206
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
187
207
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkDCRN67NO_js.SubscriptionService; }
|
|
189
209
|
});
|
|
190
210
|
Object.defineProperty(exports, "SupportService", {
|
|
191
211
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkDCRN67NO_js.SupportService; }
|
|
193
213
|
});
|
|
194
214
|
Object.defineProperty(exports, "UploadService", {
|
|
195
215
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkDCRN67NO_js.UploadService; }
|
|
197
217
|
});
|
|
198
218
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
199
219
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkDCRN67NO_js.createCimplifyClient; }
|
|
201
221
|
});
|
|
202
222
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
203
223
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkIVJEUGWF_js.AUTHORIZATION_TYPE; }
|
|
205
225
|
});
|
|
206
226
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
207
227
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkIVJEUGWF_js.AUTH_MUTATION; }
|
|
209
229
|
});
|
|
210
230
|
Object.defineProperty(exports, "AuthService", {
|
|
211
231
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkIVJEUGWF_js.AuthService; }
|
|
213
233
|
});
|
|
214
234
|
Object.defineProperty(exports, "BusinessService", {
|
|
215
235
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkIVJEUGWF_js.BusinessService; }
|
|
217
237
|
});
|
|
218
238
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
219
239
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkIVJEUGWF_js.CHECKOUT_MODE; }
|
|
221
241
|
});
|
|
222
242
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
223
243
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkIVJEUGWF_js.CHECKOUT_MUTATION; }
|
|
225
245
|
});
|
|
226
246
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
227
247
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkIVJEUGWF_js.CHECKOUT_STEP; }
|
|
229
249
|
});
|
|
230
250
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
231
251
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkIVJEUGWF_js.CONTACT_TYPE; }
|
|
233
253
|
});
|
|
234
254
|
Object.defineProperty(exports, "CartOperations", {
|
|
235
255
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkIVJEUGWF_js.CartOperations; }
|
|
237
257
|
});
|
|
238
258
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
239
259
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkIVJEUGWF_js.CatalogueQueries; }
|
|
241
261
|
});
|
|
242
262
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
243
263
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkIVJEUGWF_js.CheckoutService; }
|
|
245
265
|
});
|
|
246
266
|
Object.defineProperty(exports, "CheckoutService", {
|
|
247
267
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkIVJEUGWF_js.CheckoutService; }
|
|
249
269
|
});
|
|
250
270
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
251
271
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkIVJEUGWF_js.CimplifyElement; }
|
|
253
273
|
});
|
|
254
274
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
255
275
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkIVJEUGWF_js.CimplifyElements; }
|
|
257
277
|
});
|
|
258
278
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
259
279
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkIVJEUGWF_js.DEFAULT_COUNTRY; }
|
|
261
281
|
});
|
|
262
282
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
263
283
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkIVJEUGWF_js.DEFAULT_CURRENCY; }
|
|
265
285
|
});
|
|
266
286
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
267
287
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkIVJEUGWF_js.DEVICE_TYPE; }
|
|
269
289
|
});
|
|
270
290
|
Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
|
|
271
291
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_CONTACT_TYPES; }
|
|
273
293
|
});
|
|
274
294
|
Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
|
|
275
295
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_MODES; }
|
|
277
297
|
});
|
|
278
298
|
Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
|
|
279
299
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_PROMPTS; }
|
|
281
301
|
});
|
|
282
302
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
283
303
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkIVJEUGWF_js.ELEMENT_TYPES; }
|
|
285
305
|
});
|
|
286
306
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
287
307
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkIVJEUGWF_js.EVENT_TYPES; }
|
|
289
309
|
});
|
|
290
310
|
Object.defineProperty(exports, "FxService", {
|
|
291
311
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkIVJEUGWF_js.FxService; }
|
|
293
313
|
});
|
|
294
314
|
Object.defineProperty(exports, "InventoryService", {
|
|
295
315
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkIVJEUGWF_js.InventoryService; }
|
|
297
317
|
});
|
|
298
318
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
299
319
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkIVJEUGWF_js.LINK_MUTATION; }
|
|
301
321
|
});
|
|
302
322
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
303
323
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkIVJEUGWF_js.LINK_QUERY; }
|
|
305
325
|
});
|
|
306
326
|
Object.defineProperty(exports, "LinkService", {
|
|
307
327
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkIVJEUGWF_js.LinkService; }
|
|
309
329
|
});
|
|
310
330
|
Object.defineProperty(exports, "LiteService", {
|
|
311
331
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkIVJEUGWF_js.LiteService; }
|
|
313
333
|
});
|
|
314
334
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
315
335
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkIVJEUGWF_js.MESSAGE_TYPES; }
|
|
317
337
|
});
|
|
318
338
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
319
339
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkIVJEUGWF_js.MOBILE_MONEY_PROVIDER; }
|
|
321
341
|
});
|
|
322
342
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
323
343
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkIVJEUGWF_js.ORDER_MUTATION; }
|
|
325
345
|
});
|
|
326
346
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
327
347
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkIVJEUGWF_js.ORDER_TYPE; }
|
|
329
349
|
});
|
|
330
350
|
Object.defineProperty(exports, "OrderQueries", {
|
|
331
351
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkIVJEUGWF_js.OrderQueries; }
|
|
333
353
|
});
|
|
334
354
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
335
355
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkIVJEUGWF_js.PAYMENT_METHOD; }
|
|
337
357
|
});
|
|
338
358
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
339
359
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkIVJEUGWF_js.PAYMENT_MUTATION; }
|
|
341
361
|
});
|
|
342
362
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
343
363
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkIVJEUGWF_js.PAYMENT_STATE; }
|
|
345
365
|
});
|
|
346
366
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
347
367
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkIVJEUGWF_js.PICKUP_TIME_TYPE; }
|
|
349
369
|
});
|
|
350
370
|
Object.defineProperty(exports, "SchedulingService", {
|
|
351
371
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkIVJEUGWF_js.SchedulingService; }
|
|
353
373
|
});
|
|
354
374
|
Object.defineProperty(exports, "combine", {
|
|
355
375
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkIVJEUGWF_js.combine; }
|
|
357
377
|
});
|
|
358
378
|
Object.defineProperty(exports, "combineObject", {
|
|
359
379
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkIVJEUGWF_js.combineObject; }
|
|
361
381
|
});
|
|
362
382
|
Object.defineProperty(exports, "createElements", {
|
|
363
383
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkIVJEUGWF_js.createElements; }
|
|
365
385
|
});
|
|
366
386
|
Object.defineProperty(exports, "err", {
|
|
367
387
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkIVJEUGWF_js.err; }
|
|
369
389
|
});
|
|
370
390
|
Object.defineProperty(exports, "flatMap", {
|
|
371
391
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkIVJEUGWF_js.flatMap; }
|
|
373
393
|
});
|
|
374
394
|
Object.defineProperty(exports, "fromPromise", {
|
|
375
395
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkIVJEUGWF_js.fromPromise; }
|
|
377
397
|
});
|
|
378
398
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
379
399
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkIVJEUGWF_js.generateIdempotencyKey; }
|
|
381
401
|
});
|
|
382
402
|
Object.defineProperty(exports, "getOrElse", {
|
|
383
403
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkIVJEUGWF_js.getOrElse; }
|
|
385
405
|
});
|
|
386
406
|
Object.defineProperty(exports, "isErr", {
|
|
387
407
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkIVJEUGWF_js.isErr; }
|
|
389
409
|
});
|
|
390
410
|
Object.defineProperty(exports, "isOk", {
|
|
391
411
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkIVJEUGWF_js.isOk; }
|
|
393
413
|
});
|
|
394
414
|
Object.defineProperty(exports, "mapError", {
|
|
395
415
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkIVJEUGWF_js.mapError; }
|
|
397
417
|
});
|
|
398
418
|
Object.defineProperty(exports, "mapResult", {
|
|
399
419
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkIVJEUGWF_js.mapResult; }
|
|
401
421
|
});
|
|
402
422
|
Object.defineProperty(exports, "ok", {
|
|
403
423
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkIVJEUGWF_js.ok; }
|
|
405
425
|
});
|
|
406
426
|
Object.defineProperty(exports, "startSignIn", {
|
|
407
427
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkIVJEUGWF_js.startSignIn; }
|
|
409
429
|
});
|
|
410
430
|
Object.defineProperty(exports, "toNullable", {
|
|
411
431
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkIVJEUGWF_js.toNullable; }
|
|
413
433
|
});
|
|
414
434
|
Object.defineProperty(exports, "tryCatch", {
|
|
415
435
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkIVJEUGWF_js.tryCatch; }
|
|
417
437
|
});
|
|
418
438
|
Object.defineProperty(exports, "unwrap", {
|
|
419
439
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkIVJEUGWF_js.unwrap; }
|
|
421
441
|
});
|
|
422
442
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
423
443
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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-
|
|
1
|
+
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-RRBY35TJ.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
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-3XD2FVP4.mjs';
|
|
4
|
+
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-T7LDBZZZ.mjs';
|
|
5
|
+
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-T7LDBZZZ.mjs';
|
|
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';
|
|
9
9
|
|
|
10
|
-
// src/
|
|
10
|
+
// src/chat-cards.ts
|
|
11
11
|
function chatMessageCards(message) {
|
|
12
12
|
const cards = message.metadata?.["cards"];
|
|
13
13
|
return Array.isArray(cards) ? cards : [];
|
package/dist/mock/cli.mjs
CHANGED
|
@@ -3506,6 +3506,18 @@ function buildV1(deps) {
|
|
|
3506
3506
|
return tryRoute(c, () => deps.support.react(c.req.param("messageId"), body.emoji ?? ""));
|
|
3507
3507
|
});
|
|
3508
3508
|
app.post("/support/conversation/handoff", (c) => c.json({ data: { requested: true } }));
|
|
3509
|
+
app.post("/support/conversation/claim", async (c) => {
|
|
3510
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3511
|
+
if (!body.access_token) return c.json({ error: "access_token is required" }, 400);
|
|
3512
|
+
const session = c.var.session;
|
|
3513
|
+
return c.json({
|
|
3514
|
+
data: {
|
|
3515
|
+
session_token: session.token,
|
|
3516
|
+
thread_id: null,
|
|
3517
|
+
customer_name: session.customer_name ?? "Test User"
|
|
3518
|
+
}
|
|
3519
|
+
});
|
|
3520
|
+
});
|
|
3509
3521
|
app.get(
|
|
3510
3522
|
"/support/conversation/ws",
|
|
3511
3523
|
(c) => c.json({ note: "WebSocket connection \u2014 connect via ws:// at the same path", supported: false }, 426)
|
package/dist/mock/library.js
CHANGED
|
@@ -2568,6 +2568,18 @@ function buildV1(deps) {
|
|
|
2568
2568
|
return tryRoute(c, () => deps.support.react(c.req.param("messageId"), body.emoji ?? ""));
|
|
2569
2569
|
});
|
|
2570
2570
|
app.post("/support/conversation/handoff", (c) => c.json({ data: { requested: true } }));
|
|
2571
|
+
app.post("/support/conversation/claim", async (c) => {
|
|
2572
|
+
const body = await c.req.json().catch(() => ({}));
|
|
2573
|
+
if (!body.access_token) return c.json({ error: "access_token is required" }, 400);
|
|
2574
|
+
const session = c.var.session;
|
|
2575
|
+
return c.json({
|
|
2576
|
+
data: {
|
|
2577
|
+
session_token: session.token,
|
|
2578
|
+
thread_id: null,
|
|
2579
|
+
customer_name: session.customer_name ?? "Test User"
|
|
2580
|
+
}
|
|
2581
|
+
});
|
|
2582
|
+
});
|
|
2571
2583
|
app.get(
|
|
2572
2584
|
"/support/conversation/ws",
|
|
2573
2585
|
(c) => c.json({ note: "WebSocket connection \u2014 connect via ws:// at the same path", supported: false }, 426)
|
package/dist/mock/library.mjs
CHANGED
|
@@ -2566,6 +2566,18 @@ function buildV1(deps) {
|
|
|
2566
2566
|
return tryRoute(c, () => deps.support.react(c.req.param("messageId"), body.emoji ?? ""));
|
|
2567
2567
|
});
|
|
2568
2568
|
app.post("/support/conversation/handoff", (c) => c.json({ data: { requested: true } }));
|
|
2569
|
+
app.post("/support/conversation/claim", async (c) => {
|
|
2570
|
+
const body = await c.req.json().catch(() => ({}));
|
|
2571
|
+
if (!body.access_token) return c.json({ error: "access_token is required" }, 400);
|
|
2572
|
+
const session = c.var.session;
|
|
2573
|
+
return c.json({
|
|
2574
|
+
data: {
|
|
2575
|
+
session_token: session.token,
|
|
2576
|
+
thread_id: null,
|
|
2577
|
+
customer_name: session.customer_name ?? "Test User"
|
|
2578
|
+
}
|
|
2579
|
+
});
|
|
2580
|
+
});
|
|
2569
2581
|
app.get(
|
|
2570
2582
|
"/support/conversation/ws",
|
|
2571
2583
|
(c) => c.json({ note: "WebSocket connection \u2014 connect via ws:// at the same path", supported: false }, 426)
|
package/dist/mock/msw.js
CHANGED
|
@@ -2566,6 +2566,18 @@ function buildV1(deps) {
|
|
|
2566
2566
|
return tryRoute(c, () => deps.support.react(c.req.param("messageId"), body.emoji ?? ""));
|
|
2567
2567
|
});
|
|
2568
2568
|
app.post("/support/conversation/handoff", (c) => c.json({ data: { requested: true } }));
|
|
2569
|
+
app.post("/support/conversation/claim", async (c) => {
|
|
2570
|
+
const body = await c.req.json().catch(() => ({}));
|
|
2571
|
+
if (!body.access_token) return c.json({ error: "access_token is required" }, 400);
|
|
2572
|
+
const session = c.var.session;
|
|
2573
|
+
return c.json({
|
|
2574
|
+
data: {
|
|
2575
|
+
session_token: session.token,
|
|
2576
|
+
thread_id: null,
|
|
2577
|
+
customer_name: session.customer_name ?? "Test User"
|
|
2578
|
+
}
|
|
2579
|
+
});
|
|
2580
|
+
});
|
|
2569
2581
|
app.get(
|
|
2570
2582
|
"/support/conversation/ws",
|
|
2571
2583
|
(c) => c.json({ note: "WebSocket connection \u2014 connect via ws:// at the same path", supported: false }, 426)
|
package/dist/mock/msw.mjs
CHANGED
|
@@ -2564,6 +2564,18 @@ function buildV1(deps) {
|
|
|
2564
2564
|
return tryRoute(c, () => deps.support.react(c.req.param("messageId"), body.emoji ?? ""));
|
|
2565
2565
|
});
|
|
2566
2566
|
app.post("/support/conversation/handoff", (c) => c.json({ data: { requested: true } }));
|
|
2567
|
+
app.post("/support/conversation/claim", async (c) => {
|
|
2568
|
+
const body = await c.req.json().catch(() => ({}));
|
|
2569
|
+
if (!body.access_token) return c.json({ error: "access_token is required" }, 400);
|
|
2570
|
+
const session = c.var.session;
|
|
2571
|
+
return c.json({
|
|
2572
|
+
data: {
|
|
2573
|
+
session_token: session.token,
|
|
2574
|
+
thread_id: null,
|
|
2575
|
+
customer_name: session.customer_name ?? "Test User"
|
|
2576
|
+
}
|
|
2577
|
+
});
|
|
2578
|
+
});
|
|
2567
2579
|
app.get(
|
|
2568
2580
|
"/support/conversation/ws",
|
|
2569
2581
|
(c) => c.json({ note: "WebSocket connection \u2014 connect via ws:// at the same path", supported: false }, 426)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-bZ8G5Z8D.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 { aO as Money, ad as CurrencyCode } from './product-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode } from './product-bZ8G5Z8D.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 { 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-bZ8G5Z8D.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-bZ8G5Z8D.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|