@cimplify/sdk 0.46.3 → 0.47.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 +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-6HYKWYUF.mjs → chunk-24FK7VFL.mjs} +1 -1
- package/dist/{chunk-Z2MLAIID.js → chunk-CYGLTD7D.js} +35 -35
- package/dist/{chunk-TW4OFRWV.js → chunk-D22UVSFN.js} +2 -2
- package/dist/{chunk-7ZACMER7.js → chunk-DR4UPU6P.js} +0 -1
- package/dist/{chunk-WUIERJ6J.mjs → chunk-MBR2DBEN.mjs} +1 -1
- package/dist/{chunk-CKRMA5F7.mjs → chunk-OFNVLUH4.mjs} +0 -1
- package/dist/{client-QVINYu1X.d.ts → client-B8tJnOde.d.ts} +0 -1
- package/dist/{client-G2WCoxv2.d.mts → client-BZZK1txR.d.mts} +0 -1
- package/dist/{client-B76ZNW5r.d.ts → client-BdbvMtOU.d.ts} +1 -1
- package/dist/{client-CT9NwIDX.d.mts → client-BqCAm5vI.d.mts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -61
- package/dist/index.mjs +2 -2
- package/dist/react.d.mts +2 -5
- package/dist/react.d.ts +2 -5
- package/dist/react.js +51 -195
- package/dist/react.mjs +37 -181
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +3 -3
- package/dist/server.mjs +2 -2
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +22 -22
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +78 -78
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-BZZK1txR.mjs';
|
|
2
2
|
import './product-C-xLzh7Q.mjs';
|
|
3
3
|
import './payment-9L_-GWqQ.mjs';
|
|
4
4
|
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-B8tJnOde.js';
|
|
2
2
|
import './product-C-xLzh7Q.js';
|
|
3
3
|
import './payment-_e99nSRj.js';
|
|
4
4
|
|
package/dist/advanced.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDR4UPU6P_js = require('./chunk-DR4UPU6P.js');
|
|
4
4
|
require('./chunk-6RP6OPYO.js');
|
|
5
5
|
require('./chunk-TKOTACKZ.js');
|
|
6
6
|
|
|
@@ -8,77 +8,77 @@ require('./chunk-TKOTACKZ.js');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "AuthService", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkDR4UPU6P_js.AuthService; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "BusinessService", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkDR4UPU6P_js.BusinessService; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "CartOperations", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkDR4UPU6P_js.CartOperations; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkDR4UPU6P_js.CatalogueQueries; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkDR4UPU6P_js.CheckoutService; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "CheckoutService", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkDR4UPU6P_js.CheckoutService; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkDR4UPU6P_js.CimplifyElement; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkDR4UPU6P_js.CimplifyElements; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkDR4UPU6P_js.ELEMENT_TYPES; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkDR4UPU6P_js.EVENT_TYPES; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "FxService", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkDR4UPU6P_js.FxService; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "InventoryService", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkDR4UPU6P_js.InventoryService; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "LinkService", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkDR4UPU6P_js.LinkService; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "LiteService", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkDR4UPU6P_js.LiteService; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkDR4UPU6P_js.MESSAGE_TYPES; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "OrderQueries", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkDR4UPU6P_js.OrderQueries; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "SchedulingService", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkDR4UPU6P_js.SchedulingService; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "createElements", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkDR4UPU6P_js.createElements; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkDR4UPU6P_js.generateIdempotencyKey; }
|
|
84
84
|
});
|
package/dist/advanced.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-
|
|
1
|
+
export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-OFNVLUH4.mjs';
|
|
2
2
|
import './chunk-XY2DFX5K.mjs';
|
|
3
3
|
import './chunk-Z2AYLZDF.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDR4UPU6P_js = require('./chunk-DR4UPU6P.js');
|
|
4
4
|
var chunkTKOTACKZ_js = require('./chunk-TKOTACKZ.js');
|
|
5
5
|
|
|
6
6
|
// src/activity.ts
|
|
@@ -29,7 +29,7 @@ var ActivityService = class {
|
|
|
29
29
|
this.sendEvents([event]);
|
|
30
30
|
}
|
|
31
31
|
async getState() {
|
|
32
|
-
return
|
|
32
|
+
return chunkDR4UPU6P_js.safe(this.client.get("/api/v1/activity/state"));
|
|
33
33
|
}
|
|
34
34
|
async getRecommendations(options) {
|
|
35
35
|
const params = new URLSearchParams();
|
|
@@ -37,10 +37,10 @@ var ActivityService = class {
|
|
|
37
37
|
if (options?.limit) params.set("limit", String(options.limit));
|
|
38
38
|
const query = params.toString();
|
|
39
39
|
const path = query ? `/api/v1/activity/recommendations?${query}` : "/api/v1/activity/recommendations";
|
|
40
|
-
return
|
|
40
|
+
return chunkDR4UPU6P_js.safe(this.client.get(path));
|
|
41
41
|
}
|
|
42
42
|
async dismissMessage(code) {
|
|
43
|
-
return
|
|
43
|
+
return chunkDR4UPU6P_js.safe(
|
|
44
44
|
this.client.post("/api/v1/activity/messages/dismiss", { code })
|
|
45
45
|
);
|
|
46
46
|
}
|
|
@@ -62,16 +62,16 @@ var SubscriptionService = class {
|
|
|
62
62
|
this.client = client;
|
|
63
63
|
}
|
|
64
64
|
async list() {
|
|
65
|
-
return
|
|
65
|
+
return chunkDR4UPU6P_js.safe(this.client.get("/api/v1/subscriptions"));
|
|
66
66
|
}
|
|
67
67
|
async get(id) {
|
|
68
68
|
const encodedId = encodeURIComponent(id);
|
|
69
|
-
return
|
|
69
|
+
return chunkDR4UPU6P_js.safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
|
|
70
70
|
}
|
|
71
71
|
async cancel(id, reason, opts) {
|
|
72
72
|
const encodedId = encodeURIComponent(id);
|
|
73
|
-
const idempotencyKey = opts?.idempotencyKey ??
|
|
74
|
-
return
|
|
73
|
+
const idempotencyKey = opts?.idempotencyKey ?? chunkDR4UPU6P_js.generateIdempotencyKey();
|
|
74
|
+
return chunkDR4UPU6P_js.safe(
|
|
75
75
|
this.client.post(
|
|
76
76
|
`/api/v1/subscriptions/${encodedId}/cancel`,
|
|
77
77
|
{ reason },
|
|
@@ -81,20 +81,20 @@ var SubscriptionService = class {
|
|
|
81
81
|
}
|
|
82
82
|
async pause(id) {
|
|
83
83
|
const encodedId = encodeURIComponent(id);
|
|
84
|
-
return
|
|
84
|
+
return chunkDR4UPU6P_js.safe(
|
|
85
85
|
this.client.post(`/api/v1/subscriptions/${encodedId}/pause`)
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
88
|
async resume(id) {
|
|
89
89
|
const encodedId = encodeURIComponent(id);
|
|
90
|
-
return
|
|
90
|
+
return chunkDR4UPU6P_js.safe(
|
|
91
91
|
this.client.post(`/api/v1/subscriptions/${encodedId}/resume`)
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
94
|
async skipNextRenewal(id, opts) {
|
|
95
95
|
const encodedId = encodeURIComponent(id);
|
|
96
|
-
const idempotencyKey = opts?.idempotencyKey ??
|
|
97
|
-
return
|
|
96
|
+
const idempotencyKey = opts?.idempotencyKey ?? chunkDR4UPU6P_js.generateIdempotencyKey();
|
|
97
|
+
return chunkDR4UPU6P_js.safe(
|
|
98
98
|
this.client.post(
|
|
99
99
|
`/api/v1/subscriptions/${encodedId}/skip`,
|
|
100
100
|
void 0,
|
|
@@ -110,8 +110,8 @@ var UploadService = class {
|
|
|
110
110
|
this.client = client;
|
|
111
111
|
}
|
|
112
112
|
async init(filename, contentType, sizeBytes, opts) {
|
|
113
|
-
const idempotencyKey = opts?.idempotencyKey ??
|
|
114
|
-
return
|
|
113
|
+
const idempotencyKey = opts?.idempotencyKey ?? chunkDR4UPU6P_js.generateIdempotencyKey();
|
|
114
|
+
return chunkDR4UPU6P_js.safe(
|
|
115
115
|
this.client.post(
|
|
116
116
|
"/api/v1/uploads/init",
|
|
117
117
|
{
|
|
@@ -124,7 +124,7 @@ var UploadService = class {
|
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
126
|
async confirm(uploadId) {
|
|
127
|
-
return
|
|
127
|
+
return chunkDR4UPU6P_js.safe(
|
|
128
128
|
this.client.post("/api/v1/uploads/confirm", {
|
|
129
129
|
upload_id: uploadId
|
|
130
130
|
})
|
|
@@ -170,7 +170,7 @@ var PlacesService = class {
|
|
|
170
170
|
this.client = client;
|
|
171
171
|
}
|
|
172
172
|
async autocomplete(input, sessionToken) {
|
|
173
|
-
return
|
|
173
|
+
return chunkDR4UPU6P_js.safe(
|
|
174
174
|
this.client.post("/api/v1/places/autocomplete", {
|
|
175
175
|
input,
|
|
176
176
|
sessionToken
|
|
@@ -178,7 +178,7 @@ var PlacesService = class {
|
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
180
|
async details(placeId, sessionToken) {
|
|
181
|
-
return
|
|
181
|
+
return chunkDR4UPU6P_js.safe(
|
|
182
182
|
this.client.post("/api/v1/places/details", {
|
|
183
183
|
place_id: placeId,
|
|
184
184
|
sessionToken
|
|
@@ -197,7 +197,7 @@ var DeliveryService = class {
|
|
|
197
197
|
params.set("dropoff_lat", String(dropoffLat));
|
|
198
198
|
params.set("dropoff_lng", String(dropoffLng));
|
|
199
199
|
if (country) params.set("country", country);
|
|
200
|
-
return
|
|
200
|
+
return chunkDR4UPU6P_js.safe(
|
|
201
201
|
this.client.get(`/api/v1/delivery/fee?${params.toString()}`)
|
|
202
202
|
);
|
|
203
203
|
}
|
|
@@ -210,8 +210,8 @@ var SupportService = class {
|
|
|
210
210
|
}
|
|
211
211
|
/** Open (or resume) the customer's widget conversation. */
|
|
212
212
|
async openConversation(opts) {
|
|
213
|
-
const idempotencyKey = opts?.idempotencyKey ??
|
|
214
|
-
return
|
|
213
|
+
const idempotencyKey = opts?.idempotencyKey ?? chunkDR4UPU6P_js.generateIdempotencyKey();
|
|
214
|
+
return chunkDR4UPU6P_js.safe(
|
|
215
215
|
this.client.post("/api/v1/support/conversation", void 0, {
|
|
216
216
|
idempotencyKey
|
|
217
217
|
})
|
|
@@ -219,8 +219,8 @@ var SupportService = class {
|
|
|
219
219
|
}
|
|
220
220
|
/** Send a message in the active conversation. */
|
|
221
221
|
async sendMessage(content, opts) {
|
|
222
|
-
const idempotencyKey = opts?.idempotencyKey ??
|
|
223
|
-
return
|
|
222
|
+
const idempotencyKey = opts?.idempotencyKey ?? chunkDR4UPU6P_js.generateIdempotencyKey();
|
|
223
|
+
return chunkDR4UPU6P_js.safe(
|
|
224
224
|
this.client.post(
|
|
225
225
|
"/api/v1/support/conversation/messages",
|
|
226
226
|
{ content },
|
|
@@ -235,7 +235,7 @@ var SupportService = class {
|
|
|
235
235
|
if (options.limit) params.set("limit", String(options.limit));
|
|
236
236
|
const query = params.toString();
|
|
237
237
|
const path = query ? `/api/v1/support/conversation/messages?${query}` : "/api/v1/support/conversation/messages";
|
|
238
|
-
return
|
|
238
|
+
return chunkDR4UPU6P_js.safe(this.client.get(path));
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
241
|
|
|
@@ -822,25 +822,25 @@ var CimplifyClient = class {
|
|
|
822
822
|
}
|
|
823
823
|
get catalogue() {
|
|
824
824
|
if (!this._catalogue) {
|
|
825
|
-
this._catalogue = new
|
|
825
|
+
this._catalogue = new chunkDR4UPU6P_js.CatalogueQueries(this);
|
|
826
826
|
}
|
|
827
827
|
return this._catalogue;
|
|
828
828
|
}
|
|
829
829
|
get cart() {
|
|
830
830
|
if (!this._cart) {
|
|
831
|
-
this._cart = new
|
|
831
|
+
this._cart = new chunkDR4UPU6P_js.CartOperations(this);
|
|
832
832
|
}
|
|
833
833
|
return this._cart;
|
|
834
834
|
}
|
|
835
835
|
get checkout() {
|
|
836
836
|
if (!this._checkout) {
|
|
837
|
-
this._checkout = new
|
|
837
|
+
this._checkout = new chunkDR4UPU6P_js.CheckoutService(this);
|
|
838
838
|
}
|
|
839
839
|
return this._checkout;
|
|
840
840
|
}
|
|
841
841
|
get orders() {
|
|
842
842
|
if (!this._orders) {
|
|
843
|
-
this._orders = new
|
|
843
|
+
this._orders = new chunkDR4UPU6P_js.OrderQueries(this);
|
|
844
844
|
}
|
|
845
845
|
return this._orders;
|
|
846
846
|
}
|
|
@@ -864,43 +864,43 @@ var CimplifyClient = class {
|
|
|
864
864
|
}
|
|
865
865
|
get link() {
|
|
866
866
|
if (!this._link) {
|
|
867
|
-
this._link = new
|
|
867
|
+
this._link = new chunkDR4UPU6P_js.LinkService(this);
|
|
868
868
|
}
|
|
869
869
|
return this._link;
|
|
870
870
|
}
|
|
871
871
|
get auth() {
|
|
872
872
|
if (!this._auth) {
|
|
873
|
-
this._auth = new
|
|
873
|
+
this._auth = new chunkDR4UPU6P_js.AuthService(this);
|
|
874
874
|
}
|
|
875
875
|
return this._auth;
|
|
876
876
|
}
|
|
877
877
|
get business() {
|
|
878
878
|
if (!this._business) {
|
|
879
|
-
this._business = new
|
|
879
|
+
this._business = new chunkDR4UPU6P_js.BusinessService(this);
|
|
880
880
|
}
|
|
881
881
|
return this._business;
|
|
882
882
|
}
|
|
883
883
|
get inventory() {
|
|
884
884
|
if (!this._inventory) {
|
|
885
|
-
this._inventory = new
|
|
885
|
+
this._inventory = new chunkDR4UPU6P_js.InventoryService(this);
|
|
886
886
|
}
|
|
887
887
|
return this._inventory;
|
|
888
888
|
}
|
|
889
889
|
get scheduling() {
|
|
890
890
|
if (!this._scheduling) {
|
|
891
|
-
this._scheduling = new
|
|
891
|
+
this._scheduling = new chunkDR4UPU6P_js.SchedulingService(this);
|
|
892
892
|
}
|
|
893
893
|
return this._scheduling;
|
|
894
894
|
}
|
|
895
895
|
get lite() {
|
|
896
896
|
if (!this._lite) {
|
|
897
|
-
this._lite = new
|
|
897
|
+
this._lite = new chunkDR4UPU6P_js.LiteService(this);
|
|
898
898
|
}
|
|
899
899
|
return this._lite;
|
|
900
900
|
}
|
|
901
901
|
get fx() {
|
|
902
902
|
if (!this._fx) {
|
|
903
|
-
this._fx = new
|
|
903
|
+
this._fx = new chunkDR4UPU6P_js.FxService(this);
|
|
904
904
|
}
|
|
905
905
|
return this._fx;
|
|
906
906
|
}
|
|
@@ -935,7 +935,7 @@ var CimplifyClient = class {
|
|
|
935
935
|
if (businessId) {
|
|
936
936
|
this.setBusinessId(businessId);
|
|
937
937
|
}
|
|
938
|
-
return
|
|
938
|
+
return chunkDR4UPU6P_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
function createCimplifyClient(config = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCYGLTD7D_js = require('./chunk-CYGLTD7D.js');
|
|
4
4
|
var chunkGEWFWQYK_js = require('./chunk-GEWFWQYK.js');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
@@ -614,7 +614,7 @@ function createTestClient(options = {}) {
|
|
|
614
614
|
if (echoed) sessionToken = echoed;
|
|
615
615
|
return res;
|
|
616
616
|
};
|
|
617
|
-
const client =
|
|
617
|
+
const client = chunkCYGLTD7D_js.createCimplifyClient({
|
|
618
618
|
baseUrl: TEST_BASE_URL,
|
|
619
619
|
// Link mock lives at /v1/link on the same Hono app, so point the SDK's
|
|
620
620
|
// separate Link transport at the same TEST_BASE_URL.
|
|
@@ -2911,7 +2911,6 @@ var CimplifyElement = class {
|
|
|
2911
2911
|
type: MESSAGE_TYPES.INIT,
|
|
2912
2912
|
businessId: this.pendingInit.businessId,
|
|
2913
2913
|
publicKey,
|
|
2914
|
-
demoMode: publicKey.length === 0,
|
|
2915
2914
|
prefillEmail: this.options.prefillEmail,
|
|
2916
2915
|
appearance: this.parent.getAppearance(),
|
|
2917
2916
|
orderTypes: this.options.orderTypes,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { safe, generateIdempotencyKey, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-
|
|
1
|
+
import { safe, generateIdempotencyKey, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-OFNVLUH4.mjs';
|
|
2
2
|
import { CimplifyError, ErrorCode, IdempotencyMismatchError, enrichError } from './chunk-Z2AYLZDF.mjs';
|
|
3
3
|
|
|
4
4
|
// src/activity.ts
|
|
@@ -2909,7 +2909,6 @@ var CimplifyElement = class {
|
|
|
2909
2909
|
type: MESSAGE_TYPES.INIT,
|
|
2910
2910
|
businessId: this.pendingInit.businessId,
|
|
2911
2911
|
publicKey,
|
|
2912
|
-
demoMode: publicKey.length === 0,
|
|
2913
2912
|
prefillEmail: this.options.prefillEmail,
|
|
2914
2913
|
appearance: this.parent.getAppearance(),
|
|
2915
2914
|
orderTypes: this.options.orderTypes,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aC as AUTHORIZATION_TYPE, aH as AUTH_MUTATION, ar as AbortablePromise, K as ActivityRecommendation, M as ActivityRecommendationsResponse, s as ActivityService, J as ActivityStateResponse, cJ as AddressData, da as AddressInfo, bf as AmountToPay, cU as AuthResponse, A as AuthService, n as AuthStatus, dc as AuthenticatedCustomer, de as AuthenticatedData, x as AutocompletePrediction, y as AutocompleteResponse, cz as AvailabilityResult, cf as AvailableSlot, ci as Booking, cs as BookingModificationType, ch as BookingStatus, cj as BookingWithDetails, bB as BufferTimes, bW as Business, c8 as BusinessHours, bV as BusinessPreferences, B as BusinessService, c7 as BusinessSettings, bU as BusinessType, c5 as BusinessWithLocations, av as CHECKOUT_MODE, aI as CHECKOUT_MUTATION, ay as CHECKOUT_STEP, aE as CONTACT_TYPE, cq as CancelBookingInput, cr as CancelBookingResult, bv as CancelOrderInput, bD as CancellationPolicy, j as CartOperations, b as CatalogueQueries, b2 as CatalogueResult, b3 as CatalogueSnapshot, c9 as CategoryInfo, $ as ChatAttachment, Z as ChatConversation, _ as ChatConversationResponse, Y as ChatMessage, a0 as ChatWidgetStarter, cn as CheckSlotAvailabilityInput, co as CheckSlotAvailabilityResult, cX as CheckoutAddressInfo, di as CheckoutCartData, dh as CheckoutCartItem, cZ as CheckoutCustomerInfo, aj as CheckoutFormData, bt as CheckoutInput, af as CheckoutMode, l as CheckoutOperations, ag as CheckoutOrderType, ah as CheckoutPaymentMethod, ak as CheckoutResult, l as CheckoutService, ap as CheckoutStatus, aq as CheckoutStatusContext, ai as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a6 as CimplifyElement, a5 as CimplifyElements, au as ContactType, a2 as ContentType, cF as CreateAddressInput, cH as CreateMobileMoneyInput, cA as Customer, cB as CustomerAddress, cl as CustomerBooking, ck as CustomerBookingServiceItem, cD as CustomerLinkPreferences, cC as CustomerMobileMoney, bA as CustomerServicePreferences, aM as DEFAULT_COUNTRY, aL as DEFAULT_CURRENCY, aD as DEVICE_TYPE, cg as DayAvailability, bP as DeliveryFeeDetails, W as DeliveryFeeResponse, V as DeliveryService, bK as DepositResult, at as DeviceType, N as DismissMessageResponse, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, d9 as ElementAppearance, dl as ElementEventHandler, ae as ElementEventType, ac as ElementOptions, ad as ElementType, df as ElementsCheckoutData, dg as ElementsCheckoutResult, dd as ElementsCustomerInfo, ab as ElementsOptions, cL as EnrollAndLinkOrderInput, cO as EnrollAndLinkOrderResult, cI as EnrollmentData, aP as Err, be as FeeBearerType, F as FetchQuoteInput, bc as FulfillmentLink, bb as FulfillmentStatus, ba as FulfillmentType, c$ as FxQuote, c_ as FxQuoteRequest, d0 as FxRateResponse, r as FxService, cm as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, dk as IframeToParentMessage, I as InventoryService, aG as LINK_MUTATION, aF as LINK_QUERY, bg as LineItem, b7 as LineType, cE as LinkData, cN as LinkEnrollResult, L as LinkService, cP as LinkSession, cM as LinkStatusResult, a3 as LiteBootstrap, q as LiteService, bZ as Location, bN as LocationBooking, bX as LocationTaxBehavior, bY as LocationTaxOverrides, c0 as LocationTimeProfile, c6 as LocationWithDetails, a8 as MESSAGE_TYPES, aB as MOBILE_MONEY_PROVIDER, cK as MobileMoneyData, cY as MobileMoneyDetails, as as MobileMoneyProvider, al as NextAction, aK as ORDER_MUTATION, aw as ORDER_TYPE, d7 as ObservabilityHooks, aO as Ok, bh as Order, b6 as OrderChannel, bs as OrderFilter, bd as OrderFulfillmentSummary, bm as OrderGroup, bq as OrderGroupDetails, bn as OrderGroupPayment, bk as OrderGroupPaymentState, bl as OrderGroupPaymentStatus, bp as OrderGroupPaymentSummary, bj as OrderGroupStatus, bi as OrderHistory, b8 as OrderLineState, b9 as OrderLineStatus, br as OrderPaymentEvent, O as OrderQueries, bo as OrderSplitDetail, b4 as OrderStatus, d8 as OrderType, o as OtpResult, ax as PAYMENT_METHOD, aJ as PAYMENT_MUTATION, az as PAYMENT_STATE, aA as PICKUP_TIME_TYPE, dj as ParentToIframeMessage, db as PaymentMethodInfo, b5 as PaymentState, cW as PickupTime, cV as PickupTimeType, z as PlaceDetailsResponse, w as PlacesService, P as PriceQuote, bF as PricingOverrides, ao as ProcessAndResolveOptions, am as ProcessCheckoutOptions, an as ProcessCheckoutResult, bO as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bw as RefundOrderInput, bS as RelatedCandidate, bR as RelatedProduct, bT as RelatedProductsEnrichment, bQ as RelationType, bz as ReminderMethod, bC as ReminderSettings, k as ReorderResult, d1 as RequestContext, d4 as RequestErrorEvent, cS as RequestOtpInput, h as RequestSource, d2 as RequestStartEvent, d3 as RequestSuccessEvent, cp as RescheduleBookingInput, ct as RescheduleBookingResult, cw as RescheduleHistoryRecord, bI as ResourceAssignment, aN as Result, d5 as RetryEvent, cR as RevokeAllSessionsResult, cQ as RevokeSessionResult, c2 as Room, bG as SchedulingMetadata, bJ as SchedulingResult, p as SchedulingService, a1 as SenderType, ca as Service, cu as ServiceAvailabilityParams, cv as ServiceAvailabilityResult, c3 as ServiceCharge, bE as ServiceNotes, bL as ServiceScheduleRequest, bx as ServiceStatus, H as SessionActivityData, d6 as SessionChangeEvent, E as SessionMessage, cd as SlotResourceInfo, ce as SlotStaffInfo, cb as Staff, bH as StaffAssignment, by as StaffRole, bM as StaffScheduleItem, cy as StockLevel, cx as StockStatus, c4 as StorefrontBootstrap, S as SubscriptionService, X as SupportService, c1 as Table, a4 as TableInfo, b_ as TimeRange, b$ as TimeRanges, cc as TimeSlot, D as TrackCategoryViewOptions, T as TrackProductViewOptions, cG as UpdateAddressInput, bu as UpdateOrderStatusInput, U as UpdateProfileInput, v as UploadInitResponse, u as UploadResult, t as UploadService, cT as VerifyOtpInput, b0 as combine, b1 as combineObject, c as createCimplifyClient, a7 as createElements, aR as err, aW as flatMap, a_ as fromPromise, aX as getOrElse, aT as isErr, aS as isOk, aV as mapError, aU as mapResult, aQ as ok, aZ as toNullable, a$ as tryCatch, aY as unwrap } from './client-
|
|
1
|
+
export { aC as AUTHORIZATION_TYPE, aH as AUTH_MUTATION, ar as AbortablePromise, K as ActivityRecommendation, M as ActivityRecommendationsResponse, s as ActivityService, J as ActivityStateResponse, cJ as AddressData, da as AddressInfo, bf as AmountToPay, cU as AuthResponse, A as AuthService, n as AuthStatus, dc as AuthenticatedCustomer, de as AuthenticatedData, x as AutocompletePrediction, y as AutocompleteResponse, cz as AvailabilityResult, cf as AvailableSlot, ci as Booking, cs as BookingModificationType, ch as BookingStatus, cj as BookingWithDetails, bB as BufferTimes, bW as Business, c8 as BusinessHours, bV as BusinessPreferences, B as BusinessService, c7 as BusinessSettings, bU as BusinessType, c5 as BusinessWithLocations, av as CHECKOUT_MODE, aI as CHECKOUT_MUTATION, ay as CHECKOUT_STEP, aE as CONTACT_TYPE, cq as CancelBookingInput, cr as CancelBookingResult, bv as CancelOrderInput, bD as CancellationPolicy, j as CartOperations, b as CatalogueQueries, b2 as CatalogueResult, b3 as CatalogueSnapshot, c9 as CategoryInfo, $ as ChatAttachment, Z as ChatConversation, _ as ChatConversationResponse, Y as ChatMessage, a0 as ChatWidgetStarter, cn as CheckSlotAvailabilityInput, co as CheckSlotAvailabilityResult, cX as CheckoutAddressInfo, di as CheckoutCartData, dh as CheckoutCartItem, cZ as CheckoutCustomerInfo, aj as CheckoutFormData, bt as CheckoutInput, af as CheckoutMode, l as CheckoutOperations, ag as CheckoutOrderType, ah as CheckoutPaymentMethod, ak as CheckoutResult, l as CheckoutService, ap as CheckoutStatus, aq as CheckoutStatusContext, ai as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a6 as CimplifyElement, a5 as CimplifyElements, au as ContactType, a2 as ContentType, cF as CreateAddressInput, cH as CreateMobileMoneyInput, cA as Customer, cB as CustomerAddress, cl as CustomerBooking, ck as CustomerBookingServiceItem, cD as CustomerLinkPreferences, cC as CustomerMobileMoney, bA as CustomerServicePreferences, aM as DEFAULT_COUNTRY, aL as DEFAULT_CURRENCY, aD as DEVICE_TYPE, cg as DayAvailability, bP as DeliveryFeeDetails, W as DeliveryFeeResponse, V as DeliveryService, bK as DepositResult, at as DeviceType, N as DismissMessageResponse, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, d9 as ElementAppearance, dl as ElementEventHandler, ae as ElementEventType, ac as ElementOptions, ad as ElementType, df as ElementsCheckoutData, dg as ElementsCheckoutResult, dd as ElementsCustomerInfo, ab as ElementsOptions, cL as EnrollAndLinkOrderInput, cO as EnrollAndLinkOrderResult, cI as EnrollmentData, aP as Err, be as FeeBearerType, F as FetchQuoteInput, bc as FulfillmentLink, bb as FulfillmentStatus, ba as FulfillmentType, c$ as FxQuote, c_ as FxQuoteRequest, d0 as FxRateResponse, r as FxService, cm as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, dk as IframeToParentMessage, I as InventoryService, aG as LINK_MUTATION, aF as LINK_QUERY, bg as LineItem, b7 as LineType, cE as LinkData, cN as LinkEnrollResult, L as LinkService, cP as LinkSession, cM as LinkStatusResult, a3 as LiteBootstrap, q as LiteService, bZ as Location, bN as LocationBooking, bX as LocationTaxBehavior, bY as LocationTaxOverrides, c0 as LocationTimeProfile, c6 as LocationWithDetails, a8 as MESSAGE_TYPES, aB as MOBILE_MONEY_PROVIDER, cK as MobileMoneyData, cY as MobileMoneyDetails, as as MobileMoneyProvider, al as NextAction, aK as ORDER_MUTATION, aw as ORDER_TYPE, d7 as ObservabilityHooks, aO as Ok, bh as Order, b6 as OrderChannel, bs as OrderFilter, bd as OrderFulfillmentSummary, bm as OrderGroup, bq as OrderGroupDetails, bn as OrderGroupPayment, bk as OrderGroupPaymentState, bl as OrderGroupPaymentStatus, bp as OrderGroupPaymentSummary, bj as OrderGroupStatus, bi as OrderHistory, b8 as OrderLineState, b9 as OrderLineStatus, br as OrderPaymentEvent, O as OrderQueries, bo as OrderSplitDetail, b4 as OrderStatus, d8 as OrderType, o as OtpResult, ax as PAYMENT_METHOD, aJ as PAYMENT_MUTATION, az as PAYMENT_STATE, aA as PICKUP_TIME_TYPE, dj as ParentToIframeMessage, db as PaymentMethodInfo, b5 as PaymentState, cW as PickupTime, cV as PickupTimeType, z as PlaceDetailsResponse, w as PlacesService, P as PriceQuote, bF as PricingOverrides, ao as ProcessAndResolveOptions, am as ProcessCheckoutOptions, an as ProcessCheckoutResult, bO as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bw as RefundOrderInput, bS as RelatedCandidate, bR as RelatedProduct, bT as RelatedProductsEnrichment, bQ as RelationType, bz as ReminderMethod, bC as ReminderSettings, k as ReorderResult, d1 as RequestContext, d4 as RequestErrorEvent, cS as RequestOtpInput, h as RequestSource, d2 as RequestStartEvent, d3 as RequestSuccessEvent, cp as RescheduleBookingInput, ct as RescheduleBookingResult, cw as RescheduleHistoryRecord, bI as ResourceAssignment, aN as Result, d5 as RetryEvent, cR as RevokeAllSessionsResult, cQ as RevokeSessionResult, c2 as Room, bG as SchedulingMetadata, bJ as SchedulingResult, p as SchedulingService, a1 as SenderType, ca as Service, cu as ServiceAvailabilityParams, cv as ServiceAvailabilityResult, c3 as ServiceCharge, bE as ServiceNotes, bL as ServiceScheduleRequest, bx as ServiceStatus, H as SessionActivityData, d6 as SessionChangeEvent, E as SessionMessage, cd as SlotResourceInfo, ce as SlotStaffInfo, cb as Staff, bH as StaffAssignment, by as StaffRole, bM as StaffScheduleItem, cy as StockLevel, cx as StockStatus, c4 as StorefrontBootstrap, S as SubscriptionService, X as SupportService, c1 as Table, a4 as TableInfo, b_ as TimeRange, b$ as TimeRanges, cc as TimeSlot, D as TrackCategoryViewOptions, T as TrackProductViewOptions, cG as UpdateAddressInput, bu as UpdateOrderStatusInput, U as UpdateProfileInput, v as UploadInitResponse, u as UploadResult, t as UploadService, cT as VerifyOtpInput, b0 as combine, b1 as combineObject, c as createCimplifyClient, a7 as createElements, aR as err, aW as flatMap, a_ as fromPromise, aX as getOrElse, aT as isErr, aS as isOk, aV as mapError, aU as mapResult, aQ as ok, aZ as toNullable, a$ as tryCatch, aY as unwrap } from './client-BZZK1txR.mjs';
|
|
2
2
|
import { A as ApiError } from './product-C-xLzh7Q.mjs';
|
|
3
3
|
export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.mjs';
|
|
4
4
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-Bo0NjgR6.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aC as AUTHORIZATION_TYPE, aH as AUTH_MUTATION, ar as AbortablePromise, K as ActivityRecommendation, M as ActivityRecommendationsResponse, s as ActivityService, J as ActivityStateResponse, cJ as AddressData, da as AddressInfo, bf as AmountToPay, cU as AuthResponse, A as AuthService, n as AuthStatus, dc as AuthenticatedCustomer, de as AuthenticatedData, x as AutocompletePrediction, y as AutocompleteResponse, cz as AvailabilityResult, cf as AvailableSlot, ci as Booking, cs as BookingModificationType, ch as BookingStatus, cj as BookingWithDetails, bB as BufferTimes, bW as Business, c8 as BusinessHours, bV as BusinessPreferences, B as BusinessService, c7 as BusinessSettings, bU as BusinessType, c5 as BusinessWithLocations, av as CHECKOUT_MODE, aI as CHECKOUT_MUTATION, ay as CHECKOUT_STEP, aE as CONTACT_TYPE, cq as CancelBookingInput, cr as CancelBookingResult, bv as CancelOrderInput, bD as CancellationPolicy, j as CartOperations, b as CatalogueQueries, b2 as CatalogueResult, b3 as CatalogueSnapshot, c9 as CategoryInfo, $ as ChatAttachment, Z as ChatConversation, _ as ChatConversationResponse, Y as ChatMessage, a0 as ChatWidgetStarter, cn as CheckSlotAvailabilityInput, co as CheckSlotAvailabilityResult, cX as CheckoutAddressInfo, di as CheckoutCartData, dh as CheckoutCartItem, cZ as CheckoutCustomerInfo, aj as CheckoutFormData, bt as CheckoutInput, af as CheckoutMode, l as CheckoutOperations, ag as CheckoutOrderType, ah as CheckoutPaymentMethod, ak as CheckoutResult, l as CheckoutService, ap as CheckoutStatus, aq as CheckoutStatusContext, ai as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a6 as CimplifyElement, a5 as CimplifyElements, au as ContactType, a2 as ContentType, cF as CreateAddressInput, cH as CreateMobileMoneyInput, cA as Customer, cB as CustomerAddress, cl as CustomerBooking, ck as CustomerBookingServiceItem, cD as CustomerLinkPreferences, cC as CustomerMobileMoney, bA as CustomerServicePreferences, aM as DEFAULT_COUNTRY, aL as DEFAULT_CURRENCY, aD as DEVICE_TYPE, cg as DayAvailability, bP as DeliveryFeeDetails, W as DeliveryFeeResponse, V as DeliveryService, bK as DepositResult, at as DeviceType, N as DismissMessageResponse, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, d9 as ElementAppearance, dl as ElementEventHandler, ae as ElementEventType, ac as ElementOptions, ad as ElementType, df as ElementsCheckoutData, dg as ElementsCheckoutResult, dd as ElementsCustomerInfo, ab as ElementsOptions, cL as EnrollAndLinkOrderInput, cO as EnrollAndLinkOrderResult, cI as EnrollmentData, aP as Err, be as FeeBearerType, F as FetchQuoteInput, bc as FulfillmentLink, bb as FulfillmentStatus, ba as FulfillmentType, c$ as FxQuote, c_ as FxQuoteRequest, d0 as FxRateResponse, r as FxService, cm as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, dk as IframeToParentMessage, I as InventoryService, aG as LINK_MUTATION, aF as LINK_QUERY, bg as LineItem, b7 as LineType, cE as LinkData, cN as LinkEnrollResult, L as LinkService, cP as LinkSession, cM as LinkStatusResult, a3 as LiteBootstrap, q as LiteService, bZ as Location, bN as LocationBooking, bX as LocationTaxBehavior, bY as LocationTaxOverrides, c0 as LocationTimeProfile, c6 as LocationWithDetails, a8 as MESSAGE_TYPES, aB as MOBILE_MONEY_PROVIDER, cK as MobileMoneyData, cY as MobileMoneyDetails, as as MobileMoneyProvider, al as NextAction, aK as ORDER_MUTATION, aw as ORDER_TYPE, d7 as ObservabilityHooks, aO as Ok, bh as Order, b6 as OrderChannel, bs as OrderFilter, bd as OrderFulfillmentSummary, bm as OrderGroup, bq as OrderGroupDetails, bn as OrderGroupPayment, bk as OrderGroupPaymentState, bl as OrderGroupPaymentStatus, bp as OrderGroupPaymentSummary, bj as OrderGroupStatus, bi as OrderHistory, b8 as OrderLineState, b9 as OrderLineStatus, br as OrderPaymentEvent, O as OrderQueries, bo as OrderSplitDetail, b4 as OrderStatus, d8 as OrderType, o as OtpResult, ax as PAYMENT_METHOD, aJ as PAYMENT_MUTATION, az as PAYMENT_STATE, aA as PICKUP_TIME_TYPE, dj as ParentToIframeMessage, db as PaymentMethodInfo, b5 as PaymentState, cW as PickupTime, cV as PickupTimeType, z as PlaceDetailsResponse, w as PlacesService, P as PriceQuote, bF as PricingOverrides, ao as ProcessAndResolveOptions, am as ProcessCheckoutOptions, an as ProcessCheckoutResult, bO as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bw as RefundOrderInput, bS as RelatedCandidate, bR as RelatedProduct, bT as RelatedProductsEnrichment, bQ as RelationType, bz as ReminderMethod, bC as ReminderSettings, k as ReorderResult, d1 as RequestContext, d4 as RequestErrorEvent, cS as RequestOtpInput, h as RequestSource, d2 as RequestStartEvent, d3 as RequestSuccessEvent, cp as RescheduleBookingInput, ct as RescheduleBookingResult, cw as RescheduleHistoryRecord, bI as ResourceAssignment, aN as Result, d5 as RetryEvent, cR as RevokeAllSessionsResult, cQ as RevokeSessionResult, c2 as Room, bG as SchedulingMetadata, bJ as SchedulingResult, p as SchedulingService, a1 as SenderType, ca as Service, cu as ServiceAvailabilityParams, cv as ServiceAvailabilityResult, c3 as ServiceCharge, bE as ServiceNotes, bL as ServiceScheduleRequest, bx as ServiceStatus, H as SessionActivityData, d6 as SessionChangeEvent, E as SessionMessage, cd as SlotResourceInfo, ce as SlotStaffInfo, cb as Staff, bH as StaffAssignment, by as StaffRole, bM as StaffScheduleItem, cy as StockLevel, cx as StockStatus, c4 as StorefrontBootstrap, S as SubscriptionService, X as SupportService, c1 as Table, a4 as TableInfo, b_ as TimeRange, b$ as TimeRanges, cc as TimeSlot, D as TrackCategoryViewOptions, T as TrackProductViewOptions, cG as UpdateAddressInput, bu as UpdateOrderStatusInput, U as UpdateProfileInput, v as UploadInitResponse, u as UploadResult, t as UploadService, cT as VerifyOtpInput, b0 as combine, b1 as combineObject, c as createCimplifyClient, a7 as createElements, aR as err, aW as flatMap, a_ as fromPromise, aX as getOrElse, aT as isErr, aS as isOk, aV as mapError, aU as mapResult, aQ as ok, aZ as toNullable, a$ as tryCatch, aY as unwrap } from './client-
|
|
1
|
+
export { aC as AUTHORIZATION_TYPE, aH as AUTH_MUTATION, ar as AbortablePromise, K as ActivityRecommendation, M as ActivityRecommendationsResponse, s as ActivityService, J as ActivityStateResponse, cJ as AddressData, da as AddressInfo, bf as AmountToPay, cU as AuthResponse, A as AuthService, n as AuthStatus, dc as AuthenticatedCustomer, de as AuthenticatedData, x as AutocompletePrediction, y as AutocompleteResponse, cz as AvailabilityResult, cf as AvailableSlot, ci as Booking, cs as BookingModificationType, ch as BookingStatus, cj as BookingWithDetails, bB as BufferTimes, bW as Business, c8 as BusinessHours, bV as BusinessPreferences, B as BusinessService, c7 as BusinessSettings, bU as BusinessType, c5 as BusinessWithLocations, av as CHECKOUT_MODE, aI as CHECKOUT_MUTATION, ay as CHECKOUT_STEP, aE as CONTACT_TYPE, cq as CancelBookingInput, cr as CancelBookingResult, bv as CancelOrderInput, bD as CancellationPolicy, j as CartOperations, b as CatalogueQueries, b2 as CatalogueResult, b3 as CatalogueSnapshot, c9 as CategoryInfo, $ as ChatAttachment, Z as ChatConversation, _ as ChatConversationResponse, Y as ChatMessage, a0 as ChatWidgetStarter, cn as CheckSlotAvailabilityInput, co as CheckSlotAvailabilityResult, cX as CheckoutAddressInfo, di as CheckoutCartData, dh as CheckoutCartItem, cZ as CheckoutCustomerInfo, aj as CheckoutFormData, bt as CheckoutInput, af as CheckoutMode, l as CheckoutOperations, ag as CheckoutOrderType, ah as CheckoutPaymentMethod, ak as CheckoutResult, l as CheckoutService, ap as CheckoutStatus, aq as CheckoutStatusContext, ai as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a6 as CimplifyElement, a5 as CimplifyElements, au as ContactType, a2 as ContentType, cF as CreateAddressInput, cH as CreateMobileMoneyInput, cA as Customer, cB as CustomerAddress, cl as CustomerBooking, ck as CustomerBookingServiceItem, cD as CustomerLinkPreferences, cC as CustomerMobileMoney, bA as CustomerServicePreferences, aM as DEFAULT_COUNTRY, aL as DEFAULT_CURRENCY, aD as DEVICE_TYPE, cg as DayAvailability, bP as DeliveryFeeDetails, W as DeliveryFeeResponse, V as DeliveryService, bK as DepositResult, at as DeviceType, N as DismissMessageResponse, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, d9 as ElementAppearance, dl as ElementEventHandler, ae as ElementEventType, ac as ElementOptions, ad as ElementType, df as ElementsCheckoutData, dg as ElementsCheckoutResult, dd as ElementsCustomerInfo, ab as ElementsOptions, cL as EnrollAndLinkOrderInput, cO as EnrollAndLinkOrderResult, cI as EnrollmentData, aP as Err, be as FeeBearerType, F as FetchQuoteInput, bc as FulfillmentLink, bb as FulfillmentStatus, ba as FulfillmentType, c$ as FxQuote, c_ as FxQuoteRequest, d0 as FxRateResponse, r as FxService, cm as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, dk as IframeToParentMessage, I as InventoryService, aG as LINK_MUTATION, aF as LINK_QUERY, bg as LineItem, b7 as LineType, cE as LinkData, cN as LinkEnrollResult, L as LinkService, cP as LinkSession, cM as LinkStatusResult, a3 as LiteBootstrap, q as LiteService, bZ as Location, bN as LocationBooking, bX as LocationTaxBehavior, bY as LocationTaxOverrides, c0 as LocationTimeProfile, c6 as LocationWithDetails, a8 as MESSAGE_TYPES, aB as MOBILE_MONEY_PROVIDER, cK as MobileMoneyData, cY as MobileMoneyDetails, as as MobileMoneyProvider, al as NextAction, aK as ORDER_MUTATION, aw as ORDER_TYPE, d7 as ObservabilityHooks, aO as Ok, bh as Order, b6 as OrderChannel, bs as OrderFilter, bd as OrderFulfillmentSummary, bm as OrderGroup, bq as OrderGroupDetails, bn as OrderGroupPayment, bk as OrderGroupPaymentState, bl as OrderGroupPaymentStatus, bp as OrderGroupPaymentSummary, bj as OrderGroupStatus, bi as OrderHistory, b8 as OrderLineState, b9 as OrderLineStatus, br as OrderPaymentEvent, O as OrderQueries, bo as OrderSplitDetail, b4 as OrderStatus, d8 as OrderType, o as OtpResult, ax as PAYMENT_METHOD, aJ as PAYMENT_MUTATION, az as PAYMENT_STATE, aA as PICKUP_TIME_TYPE, dj as ParentToIframeMessage, db as PaymentMethodInfo, b5 as PaymentState, cW as PickupTime, cV as PickupTimeType, z as PlaceDetailsResponse, w as PlacesService, P as PriceQuote, bF as PricingOverrides, ao as ProcessAndResolveOptions, am as ProcessCheckoutOptions, an as ProcessCheckoutResult, bO as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bw as RefundOrderInput, bS as RelatedCandidate, bR as RelatedProduct, bT as RelatedProductsEnrichment, bQ as RelationType, bz as ReminderMethod, bC as ReminderSettings, k as ReorderResult, d1 as RequestContext, d4 as RequestErrorEvent, cS as RequestOtpInput, h as RequestSource, d2 as RequestStartEvent, d3 as RequestSuccessEvent, cp as RescheduleBookingInput, ct as RescheduleBookingResult, cw as RescheduleHistoryRecord, bI as ResourceAssignment, aN as Result, d5 as RetryEvent, cR as RevokeAllSessionsResult, cQ as RevokeSessionResult, c2 as Room, bG as SchedulingMetadata, bJ as SchedulingResult, p as SchedulingService, a1 as SenderType, ca as Service, cu as ServiceAvailabilityParams, cv as ServiceAvailabilityResult, c3 as ServiceCharge, bE as ServiceNotes, bL as ServiceScheduleRequest, bx as ServiceStatus, H as SessionActivityData, d6 as SessionChangeEvent, E as SessionMessage, cd as SlotResourceInfo, ce as SlotStaffInfo, cb as Staff, bH as StaffAssignment, by as StaffRole, bM as StaffScheduleItem, cy as StockLevel, cx as StockStatus, c4 as StorefrontBootstrap, S as SubscriptionService, X as SupportService, c1 as Table, a4 as TableInfo, b_ as TimeRange, b$ as TimeRanges, cc as TimeSlot, D as TrackCategoryViewOptions, T as TrackProductViewOptions, cG as UpdateAddressInput, bu as UpdateOrderStatusInput, U as UpdateProfileInput, v as UploadInitResponse, u as UploadResult, t as UploadService, cT as VerifyOtpInput, b0 as combine, b1 as combineObject, c as createCimplifyClient, a7 as createElements, aR as err, aW as flatMap, a_ as fromPromise, aX as getOrElse, aT as isErr, aS as isOk, aV as mapError, aU as mapResult, aQ as ok, aZ as toNullable, a$ as tryCatch, aY as unwrap } from './client-B8tJnOde.js';
|
|
2
2
|
import { A as ApiError } from './product-C-xLzh7Q.js';
|
|
3
3
|
export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.js';
|
|
4
4
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-BAohYhdg.js';
|