@cimplify/sdk 0.20.2 → 0.21.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-WXFEO3LT.js → chunk-A7IQN5EK.js} +17 -17
- package/dist/{chunk-VTMRPTQ7.mjs → chunk-R4EYMPSN.mjs} +39 -0
- package/dist/{chunk-UVBJDWIV.js → chunk-VYSXEDBV.js} +39 -0
- package/dist/{chunk-X23RNZAD.mjs → chunk-W3DMONZR.mjs} +1 -1
- package/dist/{client-D4E9aJy7.d.mts → client-B8PO4NKN.d.mts} +11 -1
- package/dist/{client-VyO6Bqz2.d.ts → client-DjrlvxW7.d.ts} +11 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +58 -58
- package/dist/index.mjs +2 -2
- package/dist/react.d.mts +22 -5
- package/dist/react.d.ts +22 -5
- package/dist/react.js +89 -29
- package/dist/react.mjs +73 -13
- package/package.json +1 -1
- package/registry/order-detail-page.json +1 -1
- package/registry/order-history-page.json +1 -1
- package/registry/order-history.json +1 -1
- package/registry/order-summary.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,
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, M as CimplifyElement, K as CimplifyElements, X as ELEMENT_TYPES, W as EVENT_TYPES, $ as ElementEventType, Z as ElementOptions, _ as ElementType, Y as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, V 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, S as SchedulingService, N as createElements, m as generateIdempotencyKey } from './client-B8PO4NKN.mjs';
|
|
2
2
|
import './payment-CKqMU4xT.mjs';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries,
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, M as CimplifyElement, K as CimplifyElements, X as ELEMENT_TYPES, W as EVENT_TYPES, $ as ElementEventType, Z as ElementOptions, _ as ElementType, Y as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, V 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, S as SchedulingService, N as createElements, m as generateIdempotencyKey } from './client-DjrlvxW7.js';
|
|
2
2
|
import './payment-CKqMU4xT.js';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
package/dist/advanced.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFLPI2VVJ_js = require('./chunk-FLPI2VVJ.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkVYSXEDBV_js = require('./chunk-VYSXEDBV.js');
|
|
5
5
|
require('./chunk-64OCG2TJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
@@ -16,77 +16,77 @@ Object.defineProperty(exports, "query", {
|
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "AuthService", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkVYSXEDBV_js.AuthService; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "BusinessService", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkVYSXEDBV_js.BusinessService; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "CartOperations", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkVYSXEDBV_js.CartOperations; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkVYSXEDBV_js.CatalogueQueries; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkVYSXEDBV_js.CheckoutService; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "CheckoutService", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkVYSXEDBV_js.CheckoutService; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkVYSXEDBV_js.CimplifyElement; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkVYSXEDBV_js.CimplifyElements; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkVYSXEDBV_js.ELEMENT_TYPES; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkVYSXEDBV_js.EVENT_TYPES; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "FxService", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkVYSXEDBV_js.FxService; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "InventoryService", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkVYSXEDBV_js.InventoryService; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "LinkService", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkVYSXEDBV_js.LinkService; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "LiteService", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkVYSXEDBV_js.LiteService; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkVYSXEDBV_js.MESSAGE_TYPES; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "OrderQueries", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkVYSXEDBV_js.OrderQueries; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "SchedulingService", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkVYSXEDBV_js.SchedulingService; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "createElements", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkVYSXEDBV_js.createElements; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkVYSXEDBV_js.generateIdempotencyKey; }
|
|
92
92
|
});
|
package/dist/advanced.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { QueryBuilder, query } from './chunk-LM3CJ4L7.mjs';
|
|
2
|
-
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-
|
|
2
|
+
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-R4EYMPSN.mjs';
|
|
3
3
|
import './chunk-JFT63H34.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVYSXEDBV_js = require('./chunk-VYSXEDBV.js');
|
|
4
4
|
var chunk64OCG2TJ_js = require('./chunk-64OCG2TJ.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 chunkVYSXEDBV_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 chunkVYSXEDBV_js.safe(this.client.get(path));
|
|
41
41
|
}
|
|
42
42
|
async dismissMessage(code) {
|
|
43
|
-
return
|
|
43
|
+
return chunkVYSXEDBV_js.safe(
|
|
44
44
|
this.client.post("/api/v1/activity/messages/dismiss", { code })
|
|
45
45
|
);
|
|
46
46
|
}
|
|
@@ -66,7 +66,7 @@ var DeliveryService = class {
|
|
|
66
66
|
params.set("dropoff_lat", String(dropoffLat));
|
|
67
67
|
params.set("dropoff_lng", String(dropoffLng));
|
|
68
68
|
if (country) params.set("country", country);
|
|
69
|
-
return
|
|
69
|
+
return chunkVYSXEDBV_js.safe(
|
|
70
70
|
this.client.get(`/api/v1/delivery/fee?${params.toString()}`)
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -597,67 +597,67 @@ var CimplifyClient = class {
|
|
|
597
597
|
}
|
|
598
598
|
get catalogue() {
|
|
599
599
|
if (!this._catalogue) {
|
|
600
|
-
this._catalogue = new
|
|
600
|
+
this._catalogue = new chunkVYSXEDBV_js.CatalogueQueries(this);
|
|
601
601
|
}
|
|
602
602
|
return this._catalogue;
|
|
603
603
|
}
|
|
604
604
|
get cart() {
|
|
605
605
|
if (!this._cart) {
|
|
606
|
-
this._cart = new
|
|
606
|
+
this._cart = new chunkVYSXEDBV_js.CartOperations(this);
|
|
607
607
|
}
|
|
608
608
|
return this._cart;
|
|
609
609
|
}
|
|
610
610
|
get checkout() {
|
|
611
611
|
if (!this._checkout) {
|
|
612
|
-
this._checkout = new
|
|
612
|
+
this._checkout = new chunkVYSXEDBV_js.CheckoutService(this);
|
|
613
613
|
}
|
|
614
614
|
return this._checkout;
|
|
615
615
|
}
|
|
616
616
|
get orders() {
|
|
617
617
|
if (!this._orders) {
|
|
618
|
-
this._orders = new
|
|
618
|
+
this._orders = new chunkVYSXEDBV_js.OrderQueries(this);
|
|
619
619
|
}
|
|
620
620
|
return this._orders;
|
|
621
621
|
}
|
|
622
622
|
get link() {
|
|
623
623
|
if (!this._link) {
|
|
624
|
-
this._link = new
|
|
624
|
+
this._link = new chunkVYSXEDBV_js.LinkService(this);
|
|
625
625
|
}
|
|
626
626
|
return this._link;
|
|
627
627
|
}
|
|
628
628
|
get auth() {
|
|
629
629
|
if (!this._auth) {
|
|
630
|
-
this._auth = new
|
|
630
|
+
this._auth = new chunkVYSXEDBV_js.AuthService(this);
|
|
631
631
|
}
|
|
632
632
|
return this._auth;
|
|
633
633
|
}
|
|
634
634
|
get business() {
|
|
635
635
|
if (!this._business) {
|
|
636
|
-
this._business = new
|
|
636
|
+
this._business = new chunkVYSXEDBV_js.BusinessService(this);
|
|
637
637
|
}
|
|
638
638
|
return this._business;
|
|
639
639
|
}
|
|
640
640
|
get inventory() {
|
|
641
641
|
if (!this._inventory) {
|
|
642
|
-
this._inventory = new
|
|
642
|
+
this._inventory = new chunkVYSXEDBV_js.InventoryService(this);
|
|
643
643
|
}
|
|
644
644
|
return this._inventory;
|
|
645
645
|
}
|
|
646
646
|
get scheduling() {
|
|
647
647
|
if (!this._scheduling) {
|
|
648
|
-
this._scheduling = new
|
|
648
|
+
this._scheduling = new chunkVYSXEDBV_js.SchedulingService(this);
|
|
649
649
|
}
|
|
650
650
|
return this._scheduling;
|
|
651
651
|
}
|
|
652
652
|
get lite() {
|
|
653
653
|
if (!this._lite) {
|
|
654
|
-
this._lite = new
|
|
654
|
+
this._lite = new chunkVYSXEDBV_js.LiteService(this);
|
|
655
655
|
}
|
|
656
656
|
return this._lite;
|
|
657
657
|
}
|
|
658
658
|
get fx() {
|
|
659
659
|
if (!this._fx) {
|
|
660
|
-
this._fx = new
|
|
660
|
+
this._fx = new chunkVYSXEDBV_js.FxService(this);
|
|
661
661
|
}
|
|
662
662
|
return this._fx;
|
|
663
663
|
}
|
|
@@ -677,7 +677,7 @@ var CimplifyClient = class {
|
|
|
677
677
|
if (businessId) {
|
|
678
678
|
this.setBusinessId(businessId);
|
|
679
679
|
}
|
|
680
|
-
return
|
|
680
|
+
return chunkVYSXEDBV_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
function createCimplifyClient(config = {}) {
|
|
@@ -560,6 +560,25 @@ var CatalogueQueries = class {
|
|
|
560
560
|
};
|
|
561
561
|
|
|
562
562
|
// src/cart.ts
|
|
563
|
+
function lineItemToCartInput(item) {
|
|
564
|
+
const config = item.configuration;
|
|
565
|
+
const input = {
|
|
566
|
+
item_id: item.product_id,
|
|
567
|
+
quantity: item.quantity
|
|
568
|
+
};
|
|
569
|
+
if (config.variant) {
|
|
570
|
+
input.variant_id = config.variant.variant_id;
|
|
571
|
+
}
|
|
572
|
+
if (config.add_ons && config.add_ons.selected_options.length > 0) {
|
|
573
|
+
input.add_on_options = config.add_ons.selected_options.map((o) => o.option_id);
|
|
574
|
+
}
|
|
575
|
+
if (config.type === "bundle") {
|
|
576
|
+
input.bundle_selections = config.input;
|
|
577
|
+
} else if (config.type === "composite") {
|
|
578
|
+
input.composite_selections = config.input;
|
|
579
|
+
}
|
|
580
|
+
return input;
|
|
581
|
+
}
|
|
563
582
|
function isUICartResponse(value) {
|
|
564
583
|
return "cart" in value;
|
|
565
584
|
}
|
|
@@ -636,6 +655,26 @@ var CartOperations = class {
|
|
|
636
655
|
async removeCoupon() {
|
|
637
656
|
return safe(this.client.delete("/api/v1/cart/coupons/current"));
|
|
638
657
|
}
|
|
658
|
+
async reorderFromOrder(orderId) {
|
|
659
|
+
const orderResult = await this.client.orders.get(orderId);
|
|
660
|
+
if (!orderResult.ok) return orderResult;
|
|
661
|
+
const order = orderResult.value;
|
|
662
|
+
if (!order.items || order.items.length === 0) {
|
|
663
|
+
return ok({ added: [], failed: [] });
|
|
664
|
+
}
|
|
665
|
+
const added = [];
|
|
666
|
+
const failed = [];
|
|
667
|
+
for (const item of order.items) {
|
|
668
|
+
const input = lineItemToCartInput(item);
|
|
669
|
+
const result = await this.addItem(input);
|
|
670
|
+
if (result.ok) {
|
|
671
|
+
added.push({ item_id: input.item_id });
|
|
672
|
+
} else {
|
|
673
|
+
failed.push({ item_id: input.item_id, error: result.error });
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return ok({ added, failed });
|
|
677
|
+
}
|
|
639
678
|
async isEmpty() {
|
|
640
679
|
const countResult = await this.getCount();
|
|
641
680
|
if (!countResult.ok) return countResult;
|
|
@@ -562,6 +562,25 @@ var CatalogueQueries = class {
|
|
|
562
562
|
};
|
|
563
563
|
|
|
564
564
|
// src/cart.ts
|
|
565
|
+
function lineItemToCartInput(item) {
|
|
566
|
+
const config = item.configuration;
|
|
567
|
+
const input = {
|
|
568
|
+
item_id: item.product_id,
|
|
569
|
+
quantity: item.quantity
|
|
570
|
+
};
|
|
571
|
+
if (config.variant) {
|
|
572
|
+
input.variant_id = config.variant.variant_id;
|
|
573
|
+
}
|
|
574
|
+
if (config.add_ons && config.add_ons.selected_options.length > 0) {
|
|
575
|
+
input.add_on_options = config.add_ons.selected_options.map((o) => o.option_id);
|
|
576
|
+
}
|
|
577
|
+
if (config.type === "bundle") {
|
|
578
|
+
input.bundle_selections = config.input;
|
|
579
|
+
} else if (config.type === "composite") {
|
|
580
|
+
input.composite_selections = config.input;
|
|
581
|
+
}
|
|
582
|
+
return input;
|
|
583
|
+
}
|
|
565
584
|
function isUICartResponse(value) {
|
|
566
585
|
return "cart" in value;
|
|
567
586
|
}
|
|
@@ -638,6 +657,26 @@ var CartOperations = class {
|
|
|
638
657
|
async removeCoupon() {
|
|
639
658
|
return safe(this.client.delete("/api/v1/cart/coupons/current"));
|
|
640
659
|
}
|
|
660
|
+
async reorderFromOrder(orderId) {
|
|
661
|
+
const orderResult = await this.client.orders.get(orderId);
|
|
662
|
+
if (!orderResult.ok) return orderResult;
|
|
663
|
+
const order = orderResult.value;
|
|
664
|
+
if (!order.items || order.items.length === 0) {
|
|
665
|
+
return ok({ added: [], failed: [] });
|
|
666
|
+
}
|
|
667
|
+
const added = [];
|
|
668
|
+
const failed = [];
|
|
669
|
+
for (const item of order.items) {
|
|
670
|
+
const input = lineItemToCartInput(item);
|
|
671
|
+
const result = await this.addItem(input);
|
|
672
|
+
if (result.ok) {
|
|
673
|
+
added.push({ item_id: input.item_id });
|
|
674
|
+
} else {
|
|
675
|
+
failed.push({ item_id: input.item_id, error: result.error });
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
return ok({ added, failed });
|
|
679
|
+
}
|
|
641
680
|
async isEmpty() {
|
|
642
681
|
const countResult = await this.getCount();
|
|
643
682
|
if (!countResult.ok) return countResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { safe, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-
|
|
1
|
+
import { safe, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-R4EYMPSN.mjs';
|
|
2
2
|
import { CimplifyError, ErrorCode, enrichError } from './chunk-JFT63H34.mjs';
|
|
3
3
|
|
|
4
4
|
// src/activity.ts
|
|
@@ -257,6 +257,15 @@ declare class CatalogueQueries {
|
|
|
257
257
|
getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
interface ReorderResult {
|
|
261
|
+
added: {
|
|
262
|
+
item_id: string;
|
|
263
|
+
}[];
|
|
264
|
+
failed: {
|
|
265
|
+
item_id: string;
|
|
266
|
+
error: CimplifyError;
|
|
267
|
+
}[];
|
|
268
|
+
}
|
|
260
269
|
declare class CartOperations {
|
|
261
270
|
private client;
|
|
262
271
|
constructor(client: CimplifyClient);
|
|
@@ -273,6 +282,7 @@ declare class CartOperations {
|
|
|
273
282
|
clear(): Promise<Result<Cart, CimplifyError>>;
|
|
274
283
|
applyCoupon(code: string): Promise<Result<Cart, CimplifyError>>;
|
|
275
284
|
removeCoupon(): Promise<Result<Cart, CimplifyError>>;
|
|
285
|
+
reorderFromOrder(orderId: string): Promise<Result<ReorderResult, CimplifyError>>;
|
|
276
286
|
isEmpty(): Promise<Result<boolean, CimplifyError>>;
|
|
277
287
|
hasItem(productId: string, variantId?: string): Promise<Result<boolean, CimplifyError>>;
|
|
278
288
|
findItem(productId: string, variantId?: string): Promise<Result<CartItem | undefined, CimplifyError>>;
|
|
@@ -2176,4 +2186,4 @@ declare class CimplifyClient {
|
|
|
2176
2186
|
}
|
|
2177
2187
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2178
2188
|
|
|
2179
|
-
export { type
|
|
2189
|
+
export { type ElementEventType as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type DeliveryFeeResponse as E, type FetchQuoteInput as F, type GetProductsOptions as G, type LiteBootstrap as H, InventoryService as I, type TableInfo as J, CimplifyElements as K, LinkService as L, CimplifyElement as M, createElements as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, MESSAGE_TYPES as V, EVENT_TYPES as W, ELEMENT_TYPES as X, type ElementsOptions as Y, type ElementOptions as Z, type ElementType as _, type CimplifyConfig as a, type FeeBearerType as a$, type CheckoutMode as a0, type CheckoutOrderType as a1, type CheckoutPaymentMethod as a2, type CheckoutStep as a3, type CheckoutFormData as a4, type CheckoutResult as a5, type NextAction as a6, type ProcessCheckoutOptions as a7, type ProcessCheckoutResult as a8, type ProcessAndResolveOptions as a9, type Err as aA, ok as aB, err as aC, isOk as aD, isErr as aE, mapResult as aF, mapError as aG, flatMap as aH, getOrElse as aI, unwrap as aJ, toNullable as aK, fromPromise as aL, tryCatch as aM, combine as aN, combineObject as aO, type CatalogueResult as aP, type CatalogueSnapshot as aQ, type OrderStatus as aR, type PaymentState as aS, type OrderChannel as aT, type LineType as aU, type OrderLineState as aV, type OrderLineStatus as aW, type FulfillmentType as aX, type FulfillmentStatus as aY, type FulfillmentLink as aZ, type OrderFulfillmentSummary as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type AbortablePromise as ac, type MobileMoneyProvider as ad, type DeviceType as ae, type ContactType as af, CHECKOUT_MODE as ag, ORDER_TYPE as ah, PAYMENT_METHOD as ai, CHECKOUT_STEP as aj, PAYMENT_STATE as ak, PICKUP_TIME_TYPE as al, MOBILE_MONEY_PROVIDER as am, AUTHORIZATION_TYPE as an, DEVICE_TYPE as ao, CONTACT_TYPE as ap, LINK_QUERY as aq, LINK_MUTATION as ar, AUTH_MUTATION as as, CHECKOUT_MUTATION as at, PAYMENT_MUTATION as au, ORDER_MUTATION as av, DEFAULT_CURRENCY as aw, DEFAULT_COUNTRY as ax, type Result as ay, type Ok as az, CatalogueQueries as b, type DayAvailability as b$, type AmountToPay as b0, type LineItem as b1, type Order as b2, type OrderHistory as b3, type OrderGroupStatus as b4, type OrderGroupPaymentState as b5, type OrderGroupPaymentStatus as b6, type OrderGroup as b7, type OrderGroupPayment as b8, type OrderSplitDetail as b9, type DeliveryFeeDetails as bA, type RelationType as bB, type RelatedProduct as bC, type RelatedCandidate as bD, type RelatedProductsEnrichment as bE, type BusinessType as bF, type BusinessPreferences as bG, type Business as bH, type LocationTaxBehavior as bI, type LocationTaxOverrides as bJ, type Location as bK, type TimeRange as bL, type TimeRanges as bM, type LocationTimeProfile as bN, type Table as bO, type Room as bP, type ServiceCharge as bQ, type StorefrontBootstrap as bR, type BusinessWithLocations as bS, type LocationWithDetails as bT, type BusinessSettings as bU, type BusinessHours as bV, type CategoryInfo as bW, type Service as bX, type Staff as bY, type TimeSlot as bZ, type AvailableSlot as b_, type OrderGroupPaymentSummary as ba, type OrderGroupDetails as bb, type OrderPaymentEvent as bc, type OrderFilter as bd, type CheckoutInput as be, type UpdateOrderStatusInput as bf, type CancelOrderInput as bg, type RefundOrderInput as bh, type ServiceStatus as bi, type StaffRole as bj, type ReminderMethod as bk, type CustomerServicePreferences as bl, type BufferTimes as bm, type ReminderSettings as bn, type CancellationPolicy as bo, type ServiceNotes as bp, type PricingOverrides as bq, type SchedulingMetadata as br, type StaffAssignment as bs, type ResourceAssignment as bt, type SchedulingResult as bu, type DepositResult as bv, type ServiceScheduleRequest as bw, type StaffScheduleItem as bx, type LocationAppointment as by, type ProviderResolutionSource as bz, createCimplifyClient as c, type ElementsCheckoutData as c$, type BookingStatus as c0, type Booking as c1, type BookingWithDetails as c2, type CustomerBookingServiceItem as c3, type CustomerBooking as c4, type GetAvailableSlotsInput as c5, type CheckSlotAvailabilityInput as c6, type CheckSlotAvailabilityResult as c7, type RescheduleBookingInput as c8, type CancelBookingInput as c9, type RevokeSessionResult as cA, type RevokeAllSessionsResult as cB, type RequestOtpInput as cC, type VerifyOtpInput as cD, type AuthResponse as cE, type PickupTimeType as cF, type PickupTime as cG, type CheckoutAddressInfo as cH, type MobileMoneyDetails as cI, type CheckoutCustomerInfo as cJ, type FxQuoteRequest as cK, type FxQuote as cL, type FxRateResponse as cM, type RequestContext as cN, type RequestStartEvent as cO, type RequestSuccessEvent as cP, type RequestErrorEvent as cQ, type RetryEvent as cR, type SessionChangeEvent as cS, type ObservabilityHooks as cT, type OrderType as cU, type ElementAppearance as cV, type AddressInfo as cW, type PaymentMethodInfo as cX, type AuthenticatedCustomer as cY, type ElementsCustomerInfo as cZ, type AuthenticatedData as c_, type CancelBookingResult as ca, type RescheduleBookingResult as cb, type ServiceAvailabilityParams as cc, type ServiceAvailabilityResult as cd, type StockStatus as ce, type StockLevel as cf, type ProductStock as cg, type VariantStock as ch, type LocationStock as ci, type AvailabilityResult as cj, type Customer as ck, type CustomerAddress as cl, type CustomerMobileMoney as cm, type CustomerLinkPreferences as cn, type LinkData as co, type CreateAddressInput as cp, type UpdateAddressInput as cq, type CreateMobileMoneyInput as cr, type EnrollmentData as cs, type AddressData as ct, type MobileMoneyData as cu, type EnrollAndLinkOrderInput as cv, type LinkStatusResult as cw, type LinkEnrollResult as cx, type EnrollAndLinkOrderResult as cy, type LinkSession as cz, type QuoteBundleSelectionInput as d, type ElementsCheckoutResult as d0, type CheckoutCartItem as d1, type CheckoutCartData as d2, type ParentToIframeMessage as d3, type IframeToParentMessage as d4, type ElementEventHandler as d5, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, type ReorderResult as k, CheckoutService as l, generateIdempotencyKey as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, LiteService as q, FxService as r, ActivityService as s, type TrackCategoryViewOptions as t, type SessionMessage as u, type SessionActivityData as v, type ActivityStateResponse as w, type ActivityRecommendation as x, type ActivityRecommendationsResponse as y, DeliveryService as z };
|
|
@@ -257,6 +257,15 @@ declare class CatalogueQueries {
|
|
|
257
257
|
getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
interface ReorderResult {
|
|
261
|
+
added: {
|
|
262
|
+
item_id: string;
|
|
263
|
+
}[];
|
|
264
|
+
failed: {
|
|
265
|
+
item_id: string;
|
|
266
|
+
error: CimplifyError;
|
|
267
|
+
}[];
|
|
268
|
+
}
|
|
260
269
|
declare class CartOperations {
|
|
261
270
|
private client;
|
|
262
271
|
constructor(client: CimplifyClient);
|
|
@@ -273,6 +282,7 @@ declare class CartOperations {
|
|
|
273
282
|
clear(): Promise<Result<Cart, CimplifyError>>;
|
|
274
283
|
applyCoupon(code: string): Promise<Result<Cart, CimplifyError>>;
|
|
275
284
|
removeCoupon(): Promise<Result<Cart, CimplifyError>>;
|
|
285
|
+
reorderFromOrder(orderId: string): Promise<Result<ReorderResult, CimplifyError>>;
|
|
276
286
|
isEmpty(): Promise<Result<boolean, CimplifyError>>;
|
|
277
287
|
hasItem(productId: string, variantId?: string): Promise<Result<boolean, CimplifyError>>;
|
|
278
288
|
findItem(productId: string, variantId?: string): Promise<Result<CartItem | undefined, CimplifyError>>;
|
|
@@ -2176,4 +2186,4 @@ declare class CimplifyClient {
|
|
|
2176
2186
|
}
|
|
2177
2187
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2178
2188
|
|
|
2179
|
-
export { type
|
|
2189
|
+
export { type ElementEventType as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type DeliveryFeeResponse as E, type FetchQuoteInput as F, type GetProductsOptions as G, type LiteBootstrap as H, InventoryService as I, type TableInfo as J, CimplifyElements as K, LinkService as L, CimplifyElement as M, createElements as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, MESSAGE_TYPES as V, EVENT_TYPES as W, ELEMENT_TYPES as X, type ElementsOptions as Y, type ElementOptions as Z, type ElementType as _, type CimplifyConfig as a, type FeeBearerType as a$, type CheckoutMode as a0, type CheckoutOrderType as a1, type CheckoutPaymentMethod as a2, type CheckoutStep as a3, type CheckoutFormData as a4, type CheckoutResult as a5, type NextAction as a6, type ProcessCheckoutOptions as a7, type ProcessCheckoutResult as a8, type ProcessAndResolveOptions as a9, type Err as aA, ok as aB, err as aC, isOk as aD, isErr as aE, mapResult as aF, mapError as aG, flatMap as aH, getOrElse as aI, unwrap as aJ, toNullable as aK, fromPromise as aL, tryCatch as aM, combine as aN, combineObject as aO, type CatalogueResult as aP, type CatalogueSnapshot as aQ, type OrderStatus as aR, type PaymentState as aS, type OrderChannel as aT, type LineType as aU, type OrderLineState as aV, type OrderLineStatus as aW, type FulfillmentType as aX, type FulfillmentStatus as aY, type FulfillmentLink as aZ, type OrderFulfillmentSummary as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type AbortablePromise as ac, type MobileMoneyProvider as ad, type DeviceType as ae, type ContactType as af, CHECKOUT_MODE as ag, ORDER_TYPE as ah, PAYMENT_METHOD as ai, CHECKOUT_STEP as aj, PAYMENT_STATE as ak, PICKUP_TIME_TYPE as al, MOBILE_MONEY_PROVIDER as am, AUTHORIZATION_TYPE as an, DEVICE_TYPE as ao, CONTACT_TYPE as ap, LINK_QUERY as aq, LINK_MUTATION as ar, AUTH_MUTATION as as, CHECKOUT_MUTATION as at, PAYMENT_MUTATION as au, ORDER_MUTATION as av, DEFAULT_CURRENCY as aw, DEFAULT_COUNTRY as ax, type Result as ay, type Ok as az, CatalogueQueries as b, type DayAvailability as b$, type AmountToPay as b0, type LineItem as b1, type Order as b2, type OrderHistory as b3, type OrderGroupStatus as b4, type OrderGroupPaymentState as b5, type OrderGroupPaymentStatus as b6, type OrderGroup as b7, type OrderGroupPayment as b8, type OrderSplitDetail as b9, type DeliveryFeeDetails as bA, type RelationType as bB, type RelatedProduct as bC, type RelatedCandidate as bD, type RelatedProductsEnrichment as bE, type BusinessType as bF, type BusinessPreferences as bG, type Business as bH, type LocationTaxBehavior as bI, type LocationTaxOverrides as bJ, type Location as bK, type TimeRange as bL, type TimeRanges as bM, type LocationTimeProfile as bN, type Table as bO, type Room as bP, type ServiceCharge as bQ, type StorefrontBootstrap as bR, type BusinessWithLocations as bS, type LocationWithDetails as bT, type BusinessSettings as bU, type BusinessHours as bV, type CategoryInfo as bW, type Service as bX, type Staff as bY, type TimeSlot as bZ, type AvailableSlot as b_, type OrderGroupPaymentSummary as ba, type OrderGroupDetails as bb, type OrderPaymentEvent as bc, type OrderFilter as bd, type CheckoutInput as be, type UpdateOrderStatusInput as bf, type CancelOrderInput as bg, type RefundOrderInput as bh, type ServiceStatus as bi, type StaffRole as bj, type ReminderMethod as bk, type CustomerServicePreferences as bl, type BufferTimes as bm, type ReminderSettings as bn, type CancellationPolicy as bo, type ServiceNotes as bp, type PricingOverrides as bq, type SchedulingMetadata as br, type StaffAssignment as bs, type ResourceAssignment as bt, type SchedulingResult as bu, type DepositResult as bv, type ServiceScheduleRequest as bw, type StaffScheduleItem as bx, type LocationAppointment as by, type ProviderResolutionSource as bz, createCimplifyClient as c, type ElementsCheckoutData as c$, type BookingStatus as c0, type Booking as c1, type BookingWithDetails as c2, type CustomerBookingServiceItem as c3, type CustomerBooking as c4, type GetAvailableSlotsInput as c5, type CheckSlotAvailabilityInput as c6, type CheckSlotAvailabilityResult as c7, type RescheduleBookingInput as c8, type CancelBookingInput as c9, type RevokeSessionResult as cA, type RevokeAllSessionsResult as cB, type RequestOtpInput as cC, type VerifyOtpInput as cD, type AuthResponse as cE, type PickupTimeType as cF, type PickupTime as cG, type CheckoutAddressInfo as cH, type MobileMoneyDetails as cI, type CheckoutCustomerInfo as cJ, type FxQuoteRequest as cK, type FxQuote as cL, type FxRateResponse as cM, type RequestContext as cN, type RequestStartEvent as cO, type RequestSuccessEvent as cP, type RequestErrorEvent as cQ, type RetryEvent as cR, type SessionChangeEvent as cS, type ObservabilityHooks as cT, type OrderType as cU, type ElementAppearance as cV, type AddressInfo as cW, type PaymentMethodInfo as cX, type AuthenticatedCustomer as cY, type ElementsCustomerInfo as cZ, type AuthenticatedData as c_, type CancelBookingResult as ca, type RescheduleBookingResult as cb, type ServiceAvailabilityParams as cc, type ServiceAvailabilityResult as cd, type StockStatus as ce, type StockLevel as cf, type ProductStock as cg, type VariantStock as ch, type LocationStock as ci, type AvailabilityResult as cj, type Customer as ck, type CustomerAddress as cl, type CustomerMobileMoney as cm, type CustomerLinkPreferences as cn, type LinkData as co, type CreateAddressInput as cp, type UpdateAddressInput as cq, type CreateMobileMoneyInput as cr, type EnrollmentData as cs, type AddressData as ct, type MobileMoneyData as cu, type EnrollAndLinkOrderInput as cv, type LinkStatusResult as cw, type LinkEnrollResult as cx, type EnrollAndLinkOrderResult as cy, type LinkSession as cz, type QuoteBundleSelectionInput as d, type ElementsCheckoutResult as d0, type CheckoutCartItem as d1, type CheckoutCartData as d2, type ParentToIframeMessage as d3, type IframeToParentMessage as d4, type ElementEventHandler as d5, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, type ReorderResult as k, CheckoutService as l, generateIdempotencyKey as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, LiteService as q, FxService as r, ActivityService as s, type TrackCategoryViewOptions as t, type SessionMessage as u, type SessionActivityData as v, type ActivityStateResponse as w, type ActivityRecommendation as x, type ActivityRecommendationsResponse as y, DeliveryService as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { an as AUTHORIZATION_TYPE, as as AUTH_MUTATION, ac as AbortablePromise, x as ActivityRecommendation, y as ActivityRecommendationsResponse, s as ActivityService, w as ActivityStateResponse, ct as AddressData, cW as AddressInfo, b0 as AmountToPay, cE as AuthResponse, A as AuthService, o as AuthStatus, cY as AuthenticatedCustomer, c_ as AuthenticatedData, cj as AvailabilityResult, b_ as AvailableSlot, c1 as Booking, c0 as BookingStatus, c2 as BookingWithDetails, bm as BufferTimes, bH as Business, bV as BusinessHours, bG as BusinessPreferences, B as BusinessService, bU as BusinessSettings, bF as BusinessType, bS as BusinessWithLocations, ag as CHECKOUT_MODE, at as CHECKOUT_MUTATION, aj as CHECKOUT_STEP, ap as CONTACT_TYPE, c9 as CancelBookingInput, ca as CancelBookingResult, bg as CancelOrderInput, bo as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aP as CatalogueResult, aQ as CatalogueSnapshot, bW as CategoryInfo, c6 as CheckSlotAvailabilityInput, c7 as CheckSlotAvailabilityResult, cH as CheckoutAddressInfo, d2 as CheckoutCartData, d1 as CheckoutCartItem, cJ as CheckoutCustomerInfo, a4 as CheckoutFormData, be as CheckoutInput, a0 as CheckoutMode, l as CheckoutOperations, a1 as CheckoutOrderType, a2 as CheckoutPaymentMethod, a5 as CheckoutResult, l as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, a3 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, M as CimplifyElement, K as CimplifyElements, af as ContactType, cp as CreateAddressInput, cr as CreateMobileMoneyInput, ck as Customer, cl as CustomerAddress, c4 as CustomerBooking, c3 as CustomerBookingServiceItem, cn as CustomerLinkPreferences, cm as CustomerMobileMoney, bl as CustomerServicePreferences, ax as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ao as DEVICE_TYPE, b$ as DayAvailability, bA as DeliveryFeeDetails, E as DeliveryFeeResponse, z as DeliveryService, bv as DepositResult, ae as DeviceType, D as DismissMessageResponse, X as ELEMENT_TYPES, W as EVENT_TYPES, cV as ElementAppearance, d5 as ElementEventHandler, $ as ElementEventType, Z as ElementOptions, _ as ElementType, c$ as ElementsCheckoutData, d0 as ElementsCheckoutResult, cZ as ElementsCustomerInfo, Y as ElementsOptions, cv as EnrollAndLinkOrderInput, cy as EnrollAndLinkOrderResult, cs as EnrollmentData, aA as Err, a$ as FeeBearerType, F as FetchQuoteInput, aZ as FulfillmentLink, aY as FulfillmentStatus, aX as FulfillmentType, cL as FxQuote, cK as FxQuoteRequest, cM as FxRateResponse, r as FxService, c5 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d4 as IframeToParentMessage, I as InventoryService, ar as LINK_MUTATION, aq as LINK_QUERY, b1 as LineItem, aU as LineType, co as LinkData, cx as LinkEnrollResult, L as LinkService, cz as LinkSession, cw as LinkStatusResult, H as LiteBootstrap, q as LiteService, bK as Location, by as LocationAppointment, ci as LocationStock, bI as LocationTaxBehavior, bJ as LocationTaxOverrides, bN as LocationTimeProfile, bT as LocationWithDetails, V as MESSAGE_TYPES, am as MOBILE_MONEY_PROVIDER, cu as MobileMoneyData, cI as MobileMoneyDetails, ad as MobileMoneyProvider, a6 as NextAction, av as ORDER_MUTATION, ah as ORDER_TYPE, cT as ObservabilityHooks, az as Ok, b2 as Order, aT as OrderChannel, bd as OrderFilter, a_ as OrderFulfillmentSummary, b7 as OrderGroup, bb as OrderGroupDetails, b8 as OrderGroupPayment, b5 as OrderGroupPaymentState, b6 as OrderGroupPaymentStatus, ba as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b3 as OrderHistory, aV as OrderLineState, aW as OrderLineStatus, bc as OrderPaymentEvent, O as OrderQueries, b9 as OrderSplitDetail, aR as OrderStatus, cU as OrderType, p as OtpResult, ai as PAYMENT_METHOD, au as PAYMENT_MUTATION, ak as PAYMENT_STATE, al as PICKUP_TIME_TYPE, d3 as ParentToIframeMessage, cX as PaymentMethodInfo, aS as PaymentState, cG as PickupTime, cF as PickupTimeType, P as PriceQuote, bq as PricingOverrides, a9 as ProcessAndResolveOptions, a7 as ProcessCheckoutOptions, a8 as ProcessCheckoutResult, cg as ProductStock, bz as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bh as RefundOrderInput, bD as RelatedCandidate, bC as RelatedProduct, bE as RelatedProductsEnrichment, bB as RelationType, bk as ReminderMethod, bn as ReminderSettings, k as ReorderResult, cN as RequestContext, cQ as RequestErrorEvent, cC as RequestOtpInput, h as RequestSource, cO as RequestStartEvent, cP as RequestSuccessEvent, c8 as RescheduleBookingInput, cb as RescheduleBookingResult, bt as ResourceAssignment, ay as Result, cR as RetryEvent, cB as RevokeAllSessionsResult, cA as RevokeSessionResult, bP as Room, br as SchedulingMetadata, bu as SchedulingResult, S as SchedulingService, bX as Service, cc as ServiceAvailabilityParams, cd as ServiceAvailabilityResult, bQ as ServiceCharge, bp as ServiceNotes, bw as ServiceScheduleRequest, bi as ServiceStatus, v as SessionActivityData, cS as SessionChangeEvent, u as SessionMessage, bY as Staff, bs as StaffAssignment, bj as StaffRole, bx as StaffScheduleItem, cf as StockLevel, ce as StockStatus, bR as StorefrontBootstrap, bO as Table, J as TableInfo, bL as TimeRange, bM as TimeRanges, bZ as TimeSlot, t as TrackCategoryViewOptions, T as TrackProductViewOptions, cq as UpdateAddressInput, bf as UpdateOrderStatusInput, U as UpdateProfileInput, ch as VariantStock, cD as VerifyOtpInput, aN as combine, aO as combineObject, c as createCimplifyClient, N as createElements, aC as err, aH as flatMap, aL as fromPromise, m as generateIdempotencyKey, aI as getOrElse, aE as isErr, aD as isOk, aG as mapError, aF as mapResult, aB as ok, aK as toNullable, aM as tryCatch, aJ as unwrap } from './client-B8PO4NKN.mjs';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.mjs';
|
|
3
3
|
import { A as ApiError } from './payment-CKqMU4xT.mjs';
|
|
4
4
|
export { a0 as AddOn, aZ as AddOnDetails, bk as AddOnGroupDetails, a2 as AddOnOption, bj as AddOnOptionDetails, a3 as AddOnOptionPrice, a1 as AddOnWithOptions, bp as AddToCartInput, bv as AddressAuthorizationData, aP as AdjustmentType, aV as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bw as AuthorizationType, aU as BenefitType, bF as BillingFrequency, bH as BillingMarkupType, bG as BillingPlanType, ab as Bundle, af as BundleComponentData, ag as BundleComponentInfo, ai as BundleComponentVariantView, ah as BundleComponentView, aa as BundlePriceType, ad as BundleProduct, b3 as BundleSelectionData, b0 as BundleSelectionInput, b2 as BundleStoredSelection, ac as BundleSummary, ae as BundleWithDetails, b8 as Cart, a_ as CartAddOn, aN as CartChannel, b9 as CartItem, bm as CartItemDetails, aM as CartStatus, br as CartSummary, ba as CartTotals, a5 as Category, a6 as CategorySummary, C as ChosenPrice, h as CimplifyError, a7 as Collection, a9 as CollectionProduct, a8 as CollectionSummary, aq as ComponentGroup, ar as ComponentGroupWithComponents, ax as ComponentPriceBreakdown, b1 as ComponentSchedulingData, av as ComponentSelectionInput, an as ComponentSourceType, ao as Composite, au as CompositeComponent, at as CompositeComponentView, as as CompositeGroupView, b5 as CompositePriceBreakdown, aw as CompositePriceResult, al as CompositePricingMode, b6 as CompositeSelectionData, av as CompositeSelectionInput, b4 as CompositeStoredSelection, ap as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aH as Deal, aG as DealBenefitType, r as DepositType, q as DigitalProductType, aW as DiscountBreakdown, aX as DiscountDetails, aJ as DiscountValidation, bd as DisplayAddOn, be as DisplayAddOnOption, bb as DisplayCart, bc as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bJ as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bK as FormattedPlanOption, am as GroupPricingBehavior, bA as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b7 as LineConfiguration, aA as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bz as Payment, bD as PaymentErrorDetails, by as PaymentMethod, bu as PaymentMethodType, bx as PaymentProcessingState, bt as PaymentProvider, bB as PaymentResponse, bs as PaymentStatus, bC as PaymentStatusResponse, az as Price, aQ as PriceAdjustment, aT as PriceDecisionPath, ay as PriceEntryType, aS as PricePathTaxInfo, aO as PriceSource, J as Product, a4 as ProductAddOn, aB as ProductAvailability, aF as ProductAvailabilityNow, bI as ProductBillingPlan, aI as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aD as ProductTaxonomy, aC as ProductTimeProfile, o as ProductType, O as ProductVariant, Y as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, R as RelatedProductView, S as SalesChannel, aY as SelectedAddOnOption, bE as SubmitAuthorizationInput, aK as Tag, aL as TagsResponse, aR as TaxPathComponent, T as TaxonomyAttributeTemplate, aE as TaxonomyWithChildren, bn as UICart, bf as UICartBusiness, bh as UICartCustomer, bg as UICartLocation, bi as UICartPricing, bo as UICartResponse, bq as UpdateCartItemInput, U as VariantAxis, $ as VariantAxisSelection, X as VariantAxisValue, ak as VariantAxisValueView, aj as VariantAxisView, W as VariantAxisWithValues, a$ as VariantDetails, bl as VariantDetailsDTO, Q as VariantDisplayAttribute, _ as VariantLocationAvailability, V as VariantStrategy, N as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-CKqMU4xT.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { an as AUTHORIZATION_TYPE, as as AUTH_MUTATION, ac as AbortablePromise, x as ActivityRecommendation, y as ActivityRecommendationsResponse, s as ActivityService, w as ActivityStateResponse, ct as AddressData, cW as AddressInfo, b0 as AmountToPay, cE as AuthResponse, A as AuthService, o as AuthStatus, cY as AuthenticatedCustomer, c_ as AuthenticatedData, cj as AvailabilityResult, b_ as AvailableSlot, c1 as Booking, c0 as BookingStatus, c2 as BookingWithDetails, bm as BufferTimes, bH as Business, bV as BusinessHours, bG as BusinessPreferences, B as BusinessService, bU as BusinessSettings, bF as BusinessType, bS as BusinessWithLocations, ag as CHECKOUT_MODE, at as CHECKOUT_MUTATION, aj as CHECKOUT_STEP, ap as CONTACT_TYPE, c9 as CancelBookingInput, ca as CancelBookingResult, bg as CancelOrderInput, bo as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aP as CatalogueResult, aQ as CatalogueSnapshot, bW as CategoryInfo, c6 as CheckSlotAvailabilityInput, c7 as CheckSlotAvailabilityResult, cH as CheckoutAddressInfo, d2 as CheckoutCartData, d1 as CheckoutCartItem, cJ as CheckoutCustomerInfo, a4 as CheckoutFormData, be as CheckoutInput, a0 as CheckoutMode, l as CheckoutOperations, a1 as CheckoutOrderType, a2 as CheckoutPaymentMethod, a5 as CheckoutResult, l as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, a3 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, M as CimplifyElement, K as CimplifyElements, af as ContactType, cp as CreateAddressInput, cr as CreateMobileMoneyInput, ck as Customer, cl as CustomerAddress, c4 as CustomerBooking, c3 as CustomerBookingServiceItem, cn as CustomerLinkPreferences, cm as CustomerMobileMoney, bl as CustomerServicePreferences, ax as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ao as DEVICE_TYPE, b$ as DayAvailability, bA as DeliveryFeeDetails, E as DeliveryFeeResponse, z as DeliveryService, bv as DepositResult, ae as DeviceType, D as DismissMessageResponse, X as ELEMENT_TYPES, W as EVENT_TYPES, cV as ElementAppearance, d5 as ElementEventHandler, $ as ElementEventType, Z as ElementOptions, _ as ElementType, c$ as ElementsCheckoutData, d0 as ElementsCheckoutResult, cZ as ElementsCustomerInfo, Y as ElementsOptions, cv as EnrollAndLinkOrderInput, cy as EnrollAndLinkOrderResult, cs as EnrollmentData, aA as Err, a$ as FeeBearerType, F as FetchQuoteInput, aZ as FulfillmentLink, aY as FulfillmentStatus, aX as FulfillmentType, cL as FxQuote, cK as FxQuoteRequest, cM as FxRateResponse, r as FxService, c5 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d4 as IframeToParentMessage, I as InventoryService, ar as LINK_MUTATION, aq as LINK_QUERY, b1 as LineItem, aU as LineType, co as LinkData, cx as LinkEnrollResult, L as LinkService, cz as LinkSession, cw as LinkStatusResult, H as LiteBootstrap, q as LiteService, bK as Location, by as LocationAppointment, ci as LocationStock, bI as LocationTaxBehavior, bJ as LocationTaxOverrides, bN as LocationTimeProfile, bT as LocationWithDetails, V as MESSAGE_TYPES, am as MOBILE_MONEY_PROVIDER, cu as MobileMoneyData, cI as MobileMoneyDetails, ad as MobileMoneyProvider, a6 as NextAction, av as ORDER_MUTATION, ah as ORDER_TYPE, cT as ObservabilityHooks, az as Ok, b2 as Order, aT as OrderChannel, bd as OrderFilter, a_ as OrderFulfillmentSummary, b7 as OrderGroup, bb as OrderGroupDetails, b8 as OrderGroupPayment, b5 as OrderGroupPaymentState, b6 as OrderGroupPaymentStatus, ba as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b3 as OrderHistory, aV as OrderLineState, aW as OrderLineStatus, bc as OrderPaymentEvent, O as OrderQueries, b9 as OrderSplitDetail, aR as OrderStatus, cU as OrderType, p as OtpResult, ai as PAYMENT_METHOD, au as PAYMENT_MUTATION, ak as PAYMENT_STATE, al as PICKUP_TIME_TYPE, d3 as ParentToIframeMessage, cX as PaymentMethodInfo, aS as PaymentState, cG as PickupTime, cF as PickupTimeType, P as PriceQuote, bq as PricingOverrides, a9 as ProcessAndResolveOptions, a7 as ProcessCheckoutOptions, a8 as ProcessCheckoutResult, cg as ProductStock, bz as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bh as RefundOrderInput, bD as RelatedCandidate, bC as RelatedProduct, bE as RelatedProductsEnrichment, bB as RelationType, bk as ReminderMethod, bn as ReminderSettings, k as ReorderResult, cN as RequestContext, cQ as RequestErrorEvent, cC as RequestOtpInput, h as RequestSource, cO as RequestStartEvent, cP as RequestSuccessEvent, c8 as RescheduleBookingInput, cb as RescheduleBookingResult, bt as ResourceAssignment, ay as Result, cR as RetryEvent, cB as RevokeAllSessionsResult, cA as RevokeSessionResult, bP as Room, br as SchedulingMetadata, bu as SchedulingResult, S as SchedulingService, bX as Service, cc as ServiceAvailabilityParams, cd as ServiceAvailabilityResult, bQ as ServiceCharge, bp as ServiceNotes, bw as ServiceScheduleRequest, bi as ServiceStatus, v as SessionActivityData, cS as SessionChangeEvent, u as SessionMessage, bY as Staff, bs as StaffAssignment, bj as StaffRole, bx as StaffScheduleItem, cf as StockLevel, ce as StockStatus, bR as StorefrontBootstrap, bO as Table, J as TableInfo, bL as TimeRange, bM as TimeRanges, bZ as TimeSlot, t as TrackCategoryViewOptions, T as TrackProductViewOptions, cq as UpdateAddressInput, bf as UpdateOrderStatusInput, U as UpdateProfileInput, ch as VariantStock, cD as VerifyOtpInput, aN as combine, aO as combineObject, c as createCimplifyClient, N as createElements, aC as err, aH as flatMap, aL as fromPromise, m as generateIdempotencyKey, aI as getOrElse, aE as isErr, aD as isOk, aG as mapError, aF as mapResult, aB as ok, aK as toNullable, aM as tryCatch, aJ as unwrap } from './client-DjrlvxW7.js';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.js';
|
|
3
3
|
import { A as ApiError } from './payment-CKqMU4xT.js';
|
|
4
4
|
export { a0 as AddOn, aZ as AddOnDetails, bk as AddOnGroupDetails, a2 as AddOnOption, bj as AddOnOptionDetails, a3 as AddOnOptionPrice, a1 as AddOnWithOptions, bp as AddToCartInput, bv as AddressAuthorizationData, aP as AdjustmentType, aV as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bw as AuthorizationType, aU as BenefitType, bF as BillingFrequency, bH as BillingMarkupType, bG as BillingPlanType, ab as Bundle, af as BundleComponentData, ag as BundleComponentInfo, ai as BundleComponentVariantView, ah as BundleComponentView, aa as BundlePriceType, ad as BundleProduct, b3 as BundleSelectionData, b0 as BundleSelectionInput, b2 as BundleStoredSelection, ac as BundleSummary, ae as BundleWithDetails, b8 as Cart, a_ as CartAddOn, aN as CartChannel, b9 as CartItem, bm as CartItemDetails, aM as CartStatus, br as CartSummary, ba as CartTotals, a5 as Category, a6 as CategorySummary, C as ChosenPrice, h as CimplifyError, a7 as Collection, a9 as CollectionProduct, a8 as CollectionSummary, aq as ComponentGroup, ar as ComponentGroupWithComponents, ax as ComponentPriceBreakdown, b1 as ComponentSchedulingData, av as ComponentSelectionInput, an as ComponentSourceType, ao as Composite, au as CompositeComponent, at as CompositeComponentView, as as CompositeGroupView, b5 as CompositePriceBreakdown, aw as CompositePriceResult, al as CompositePricingMode, b6 as CompositeSelectionData, av as CompositeSelectionInput, b4 as CompositeStoredSelection, ap as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aH as Deal, aG as DealBenefitType, r as DepositType, q as DigitalProductType, aW as DiscountBreakdown, aX as DiscountDetails, aJ as DiscountValidation, bd as DisplayAddOn, be as DisplayAddOnOption, bb as DisplayCart, bc as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bJ as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bK as FormattedPlanOption, am as GroupPricingBehavior, bA as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b7 as LineConfiguration, aA as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bz as Payment, bD as PaymentErrorDetails, by as PaymentMethod, bu as PaymentMethodType, bx as PaymentProcessingState, bt as PaymentProvider, bB as PaymentResponse, bs as PaymentStatus, bC as PaymentStatusResponse, az as Price, aQ as PriceAdjustment, aT as PriceDecisionPath, ay as PriceEntryType, aS as PricePathTaxInfo, aO as PriceSource, J as Product, a4 as ProductAddOn, aB as ProductAvailability, aF as ProductAvailabilityNow, bI as ProductBillingPlan, aI as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aD as ProductTaxonomy, aC as ProductTimeProfile, o as ProductType, O as ProductVariant, Y as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, R as RelatedProductView, S as SalesChannel, aY as SelectedAddOnOption, bE as SubmitAuthorizationInput, aK as Tag, aL as TagsResponse, aR as TaxPathComponent, T as TaxonomyAttributeTemplate, aE as TaxonomyWithChildren, bn as UICart, bf as UICartBusiness, bh as UICartCustomer, bg as UICartLocation, bi as UICartPricing, bo as UICartResponse, bq as UpdateCartItemInput, U as VariantAxis, $ as VariantAxisSelection, X as VariantAxisValue, ak as VariantAxisValueView, aj as VariantAxisView, W as VariantAxisWithValues, a$ as VariantDetails, bl as VariantDetailsDTO, Q as VariantDisplayAttribute, _ as VariantLocationAvailability, V as VariantStrategy, N as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-CKqMU4xT.js';
|