@cimplify/sdk 0.18.0 → 0.19.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 +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-DYKFSV77.js → chunk-6SRY4DPY.js} +12 -0
- package/dist/{chunk-2JI47EYJ.mjs → chunk-7ACYNCNM.mjs} +12 -0
- package/dist/{chunk-KTTQC5HG.mjs → chunk-AFEE43MQ.mjs} +1 -1
- package/dist/{chunk-MJECWMOY.js → chunk-B2RTVYJR.js} +13 -13
- package/dist/{client-BFFfuzJr.d.mts → client-B3payjUV.d.mts} +3 -1
- package/dist/{client-B1UtuyOg.d.ts → client-FNZzXO_v.d.ts} +3 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +57 -57
- package/dist/index.mjs +2 -2
- package/dist/{payment-D9FTaOse.d.mts → payment-CO2tRThu.d.mts} +11 -1
- package/dist/{payment-D9FTaOse.d.ts → payment-CO2tRThu.d.ts} +11 -1
- package/dist/{price-BD1iioLh.d.ts → price-Bp6JlVzW.d.ts} +1 -1
- package/dist/{price-9JsPuknm.d.mts → price-Dg7MJEsL.d.mts} +1 -1
- package/dist/react.d.mts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/react.js +19 -19
- package/dist/react.mjs +3 -3
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, k as CheckoutOperations, k as CheckoutService, w as CimplifyElement, v as CimplifyElements, y as ELEMENT_TYPES, E as EVENT_TYPES, J as ElementEventType, D as ElementOptions, H as ElementType, z as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M 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, x as createElements, l as generateIdempotencyKey } from './client-
|
|
2
|
-
import './payment-
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, k as CheckoutOperations, k as CheckoutService, w as CimplifyElement, v as CimplifyElements, y as ELEMENT_TYPES, E as EVENT_TYPES, J as ElementEventType, D as ElementOptions, H as ElementType, z as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M 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, x as createElements, l as generateIdempotencyKey } from './client-B3payjUV.mjs';
|
|
2
|
+
import './payment-CO2tRThu.mjs';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
|
5
5
|
type SortOrder = "asc" | "desc";
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, k as CheckoutOperations, k as CheckoutService, w as CimplifyElement, v as CimplifyElements, y as ELEMENT_TYPES, E as EVENT_TYPES, J as ElementEventType, D as ElementOptions, H as ElementType, z as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M 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, x as createElements, l as generateIdempotencyKey } from './client-
|
|
2
|
-
import './payment-
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, k as CheckoutOperations, k as CheckoutService, w as CimplifyElement, v as CimplifyElements, y as ELEMENT_TYPES, E as EVENT_TYPES, J as ElementEventType, D as ElementOptions, H as ElementType, z as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M 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, x as createElements, l as generateIdempotencyKey } from './client-FNZzXO_v.js';
|
|
2
|
+
import './payment-CO2tRThu.js';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
|
5
5
|
type SortOrder = "asc" | "desc";
|
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 chunk6SRY4DPY_js = require('./chunk-6SRY4DPY.js');
|
|
5
5
|
require('./chunk-RYQ5IPWX.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 chunk6SRY4DPY_js.AuthService; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "BusinessService", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk6SRY4DPY_js.BusinessService; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "CartOperations", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk6SRY4DPY_js.CartOperations; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk6SRY4DPY_js.CatalogueQueries; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk6SRY4DPY_js.CheckoutService; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "CheckoutService", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk6SRY4DPY_js.CheckoutService; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk6SRY4DPY_js.CimplifyElement; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk6SRY4DPY_js.CimplifyElements; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk6SRY4DPY_js.ELEMENT_TYPES; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk6SRY4DPY_js.EVENT_TYPES; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "FxService", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk6SRY4DPY_js.FxService; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "InventoryService", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk6SRY4DPY_js.InventoryService; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "LinkService", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk6SRY4DPY_js.LinkService; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "LiteService", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk6SRY4DPY_js.LiteService; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk6SRY4DPY_js.MESSAGE_TYPES; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "OrderQueries", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk6SRY4DPY_js.OrderQueries; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "SchedulingService", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk6SRY4DPY_js.SchedulingService; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "createElements", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk6SRY4DPY_js.createElements; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk6SRY4DPY_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-7ACYNCNM.mjs';
|
|
3
3
|
import './chunk-FTL2SXCG.mjs';
|
|
@@ -501,6 +501,18 @@ var CatalogueQueries = class {
|
|
|
501
501
|
)
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
+
async searchKnowledge(query, limit) {
|
|
505
|
+
const path = withQuery("/api/v1/catalogue/knowledge-base/search", {
|
|
506
|
+
q: query,
|
|
507
|
+
limit: limit ?? 5
|
|
508
|
+
});
|
|
509
|
+
return safe(this.client.get(path));
|
|
510
|
+
}
|
|
511
|
+
async getKnowledgeArticles() {
|
|
512
|
+
return safe(
|
|
513
|
+
this.client.get("/api/v1/catalogue/knowledge-base/articles")
|
|
514
|
+
);
|
|
515
|
+
}
|
|
504
516
|
};
|
|
505
517
|
|
|
506
518
|
// src/cart.ts
|
|
@@ -499,6 +499,18 @@ var CatalogueQueries = class {
|
|
|
499
499
|
)
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
|
+
async searchKnowledge(query, limit) {
|
|
503
|
+
const path = withQuery("/api/v1/catalogue/knowledge-base/search", {
|
|
504
|
+
q: query,
|
|
505
|
+
limit: limit ?? 5
|
|
506
|
+
});
|
|
507
|
+
return safe(this.client.get(path));
|
|
508
|
+
}
|
|
509
|
+
async getKnowledgeArticles() {
|
|
510
|
+
return safe(
|
|
511
|
+
this.client.get("/api/v1/catalogue/knowledge-base/articles")
|
|
512
|
+
);
|
|
513
|
+
}
|
|
502
514
|
};
|
|
503
515
|
|
|
504
516
|
// src/cart.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-
|
|
1
|
+
import { CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-7ACYNCNM.mjs';
|
|
2
2
|
import { CimplifyError, ErrorCode, enrichError } from './chunk-FTL2SXCG.mjs';
|
|
3
3
|
|
|
4
4
|
// src/activity.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6SRY4DPY_js = require('./chunk-6SRY4DPY.js');
|
|
4
4
|
var chunkRYQ5IPWX_js = require('./chunk-RYQ5IPWX.js');
|
|
5
5
|
|
|
6
6
|
// src/activity.ts
|
|
@@ -568,67 +568,67 @@ var CimplifyClient = class {
|
|
|
568
568
|
}
|
|
569
569
|
get catalogue() {
|
|
570
570
|
if (!this._catalogue) {
|
|
571
|
-
this._catalogue = new
|
|
571
|
+
this._catalogue = new chunk6SRY4DPY_js.CatalogueQueries(this);
|
|
572
572
|
}
|
|
573
573
|
return this._catalogue;
|
|
574
574
|
}
|
|
575
575
|
get cart() {
|
|
576
576
|
if (!this._cart) {
|
|
577
|
-
this._cart = new
|
|
577
|
+
this._cart = new chunk6SRY4DPY_js.CartOperations(this);
|
|
578
578
|
}
|
|
579
579
|
return this._cart;
|
|
580
580
|
}
|
|
581
581
|
get checkout() {
|
|
582
582
|
if (!this._checkout) {
|
|
583
|
-
this._checkout = new
|
|
583
|
+
this._checkout = new chunk6SRY4DPY_js.CheckoutService(this);
|
|
584
584
|
}
|
|
585
585
|
return this._checkout;
|
|
586
586
|
}
|
|
587
587
|
get orders() {
|
|
588
588
|
if (!this._orders) {
|
|
589
|
-
this._orders = new
|
|
589
|
+
this._orders = new chunk6SRY4DPY_js.OrderQueries(this);
|
|
590
590
|
}
|
|
591
591
|
return this._orders;
|
|
592
592
|
}
|
|
593
593
|
get link() {
|
|
594
594
|
if (!this._link) {
|
|
595
|
-
this._link = new
|
|
595
|
+
this._link = new chunk6SRY4DPY_js.LinkService(this);
|
|
596
596
|
}
|
|
597
597
|
return this._link;
|
|
598
598
|
}
|
|
599
599
|
get auth() {
|
|
600
600
|
if (!this._auth) {
|
|
601
|
-
this._auth = new
|
|
601
|
+
this._auth = new chunk6SRY4DPY_js.AuthService(this);
|
|
602
602
|
}
|
|
603
603
|
return this._auth;
|
|
604
604
|
}
|
|
605
605
|
get business() {
|
|
606
606
|
if (!this._business) {
|
|
607
|
-
this._business = new
|
|
607
|
+
this._business = new chunk6SRY4DPY_js.BusinessService(this);
|
|
608
608
|
}
|
|
609
609
|
return this._business;
|
|
610
610
|
}
|
|
611
611
|
get inventory() {
|
|
612
612
|
if (!this._inventory) {
|
|
613
|
-
this._inventory = new
|
|
613
|
+
this._inventory = new chunk6SRY4DPY_js.InventoryService(this);
|
|
614
614
|
}
|
|
615
615
|
return this._inventory;
|
|
616
616
|
}
|
|
617
617
|
get scheduling() {
|
|
618
618
|
if (!this._scheduling) {
|
|
619
|
-
this._scheduling = new
|
|
619
|
+
this._scheduling = new chunk6SRY4DPY_js.SchedulingService(this);
|
|
620
620
|
}
|
|
621
621
|
return this._scheduling;
|
|
622
622
|
}
|
|
623
623
|
get lite() {
|
|
624
624
|
if (!this._lite) {
|
|
625
|
-
this._lite = new
|
|
625
|
+
this._lite = new chunk6SRY4DPY_js.LiteService(this);
|
|
626
626
|
}
|
|
627
627
|
return this._lite;
|
|
628
628
|
}
|
|
629
629
|
get fx() {
|
|
630
630
|
if (!this._fx) {
|
|
631
|
-
this._fx = new
|
|
631
|
+
this._fx = new chunk6SRY4DPY_js.FxService(this);
|
|
632
632
|
}
|
|
633
633
|
return this._fx;
|
|
634
634
|
}
|
|
@@ -642,7 +642,7 @@ var CimplifyClient = class {
|
|
|
642
642
|
if (businessId) {
|
|
643
643
|
this.setBusinessId(businessId);
|
|
644
644
|
}
|
|
645
|
-
return
|
|
645
|
+
return chunk6SRY4DPY_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
|
|
646
646
|
}
|
|
647
647
|
};
|
|
648
648
|
function createCimplifyClient(config = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as Category, y as Product, U as AddOnWithOptions, b as Pagination, g as CimplifyError, z as ProductWithDetails, B as ProductVariant, H as VariantAxis, Q as VariantAxisSelection, R as AddOn, a0 as Collection, a5 as BundleSummary, a4 as Bundle, ah as Composite, ao as ComponentSelectionInput, ap as CompositePriceResult, aN as ChosenPrice, aw as ProductTaxonomy, ax as TaxonomyWithChildren, av as ProductTimeProfile, ay as ProductAvailabilityNow, aA as Deal, aB as ProductDealInfo, aC as DiscountValidation, aE as TagsResponse, t as CustomAttributeDefinition, x as PropertyFacet, T as TaxonomyAttributeTemplate, K as KnowledgeArticle, bg as UICart, b1 as Cart, b2 as CartItem, bk as CartSummary, bi as AddToCartInput, bj as UpdateCartItemInput, aR as DiscountDetails, M as Money, C as CurrencyCode, b0 as LineConfiguration, bp as AuthorizationType, br as PaymentMethod, bt as InitializePaymentResult, bx as SubmitAuthorizationInput, bv as PaymentStatusResponse } from './payment-CO2tRThu.mjs';
|
|
2
2
|
|
|
3
3
|
interface RequestContext {
|
|
4
4
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -245,6 +245,8 @@ declare class CatalogueQueries {
|
|
|
245
245
|
product_type?: string;
|
|
246
246
|
}): Promise<Result<PropertyFacet[], CimplifyError>>;
|
|
247
247
|
getTaxonomyAttributes(taxonomyId: string): Promise<Result<TaxonomyAttributeTemplate[], CimplifyError>>;
|
|
248
|
+
searchKnowledge(query: string, limit?: number): Promise<Result<KnowledgeArticle[], CimplifyError>>;
|
|
249
|
+
getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
|
|
248
250
|
}
|
|
249
251
|
|
|
250
252
|
declare class CartOperations {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as Category, y as Product, U as AddOnWithOptions, b as Pagination, g as CimplifyError, z as ProductWithDetails, B as ProductVariant, H as VariantAxis, Q as VariantAxisSelection, R as AddOn, a0 as Collection, a5 as BundleSummary, a4 as Bundle, ah as Composite, ao as ComponentSelectionInput, ap as CompositePriceResult, aN as ChosenPrice, aw as ProductTaxonomy, ax as TaxonomyWithChildren, av as ProductTimeProfile, ay as ProductAvailabilityNow, aA as Deal, aB as ProductDealInfo, aC as DiscountValidation, aE as TagsResponse, t as CustomAttributeDefinition, x as PropertyFacet, T as TaxonomyAttributeTemplate, K as KnowledgeArticle, bg as UICart, b1 as Cart, b2 as CartItem, bk as CartSummary, bi as AddToCartInput, bj as UpdateCartItemInput, aR as DiscountDetails, M as Money, C as CurrencyCode, b0 as LineConfiguration, bp as AuthorizationType, br as PaymentMethod, bt as InitializePaymentResult, bx as SubmitAuthorizationInput, bv as PaymentStatusResponse } from './payment-CO2tRThu.js';
|
|
2
2
|
|
|
3
3
|
interface RequestContext {
|
|
4
4
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -245,6 +245,8 @@ declare class CatalogueQueries {
|
|
|
245
245
|
product_type?: string;
|
|
246
246
|
}): Promise<Result<PropertyFacet[], CimplifyError>>;
|
|
247
247
|
getTaxonomyAttributes(taxonomyId: string): Promise<Result<TaxonomyAttributeTemplate[], CimplifyError>>;
|
|
248
|
+
searchKnowledge(query: string, limit?: number): Promise<Result<KnowledgeArticle[], CimplifyError>>;
|
|
249
|
+
getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
|
|
248
250
|
}
|
|
249
251
|
|
|
250
252
|
declare class CartOperations {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ae as AUTHORIZATION_TYPE, aj as AUTH_MUTATION, a3 as AbortablePromise, r as ActivityService, cc as AddressData, cF as AddressInfo, aT as AmountToPay, cn as AuthResponse, A as AuthService, n as AuthStatus, cH as AuthenticatedCustomer, cJ as AuthenticatedData, c2 as AvailabilityResult, bJ as AvailableSlot, bM as Booking, bL as BookingStatus, bN as BookingWithDetails, bb as BufferTimes, bq as Business, bE as BusinessHours, bp as BusinessPreferences, B as BusinessService, bD as BusinessSettings, bo as BusinessType, bB as BusinessWithLocations, a7 as CHECKOUT_MODE, ak as CHECKOUT_MUTATION, aa as CHECKOUT_STEP, ag as CONTACT_TYPE, bU as CancelBookingInput, bV as CancelBookingResult, b5 as CancelOrderInput, bd as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aG as CatalogueResult, aH as CatalogueSnapshot, bF as CategoryInfo, bR as CheckSlotAvailabilityInput, bS as CheckSlotAvailabilityResult, cq as CheckoutAddressInfo, cN as CheckoutCartData, cM as CheckoutCartItem, cs as CheckoutCustomerInfo, X as CheckoutFormData, b3 as CheckoutInput, K as CheckoutMode, k as CheckoutOperations, N as CheckoutOrderType, V as CheckoutPaymentMethod, Y as CheckoutResult, k as CheckoutService, a1 as CheckoutStatus, a2 as CheckoutStatusContext, W as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, w as CimplifyElement, v as CimplifyElements, a6 as ContactType, c8 as CreateAddressInput, ca as CreateMobileMoneyInput, c3 as Customer, c4 as CustomerAddress, bP as CustomerBooking, bO as CustomerBookingServiceItem, c6 as CustomerLinkPreferences, c5 as CustomerMobileMoney, ba as CustomerServicePreferences, ao as DEFAULT_COUNTRY, an as DEFAULT_CURRENCY, af as DEVICE_TYPE, bK as DayAvailability, bk as DepositResult, a5 as DeviceType, y as ELEMENT_TYPES, E as EVENT_TYPES, cE as ElementAppearance, cQ as ElementEventHandler, J as ElementEventType, D as ElementOptions, H as ElementType, cK as ElementsCheckoutData, cL as ElementsCheckoutResult, cI as ElementsCustomerInfo, z as ElementsOptions, ce as EnrollAndLinkOrderInput, ch as EnrollAndLinkOrderResult, cb as EnrollmentData, ar as Err, aS as FeeBearerType, F as FetchQuoteInput, aQ as FulfillmentLink, aP as FulfillmentStatus, aO as FulfillmentType, cu as FxQuote, ct as FxQuoteRequest, cv as FxRateResponse, q as FxService, bQ as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, cP as IframeToParentMessage, I as InventoryService, ai as LINK_MUTATION, ah as LINK_QUERY, aU as LineItem, aL as LineType, c7 as LinkData, cg as LinkEnrollResult, L as LinkService, ci as LinkSession, cf as LinkStatusResult, t as LiteBootstrap, p as LiteService, bt as Location, bn as LocationAppointment, c1 as LocationStock, br as LocationTaxBehavior, bs as LocationTaxOverrides, bw as LocationTimeProfile, bC as LocationWithDetails, M as MESSAGE_TYPES, ad as MOBILE_MONEY_PROVIDER, cd as MobileMoneyData, cr as MobileMoneyDetails, a4 as MobileMoneyProvider, Z as NextAction, am as ORDER_MUTATION, a8 as ORDER_TYPE, cC as ObservabilityHooks, aq as Ok, aV as Order, aK as OrderChannel, b2 as OrderFilter, aR as OrderFulfillmentSummary, aY as OrderGroup, b0 as OrderGroupDetails, aZ as OrderGroupPayment, aX as OrderGroupPaymentState, a$ as OrderGroupPaymentSummary, aW as OrderHistory, aM as OrderLineState, aN as OrderLineStatus, b1 as OrderPaymentEvent, O as OrderQueries, a_ as OrderSplitDetail, aI as OrderStatus, cD as OrderType, o as OtpResult, a9 as PAYMENT_METHOD, al as PAYMENT_MUTATION, ab as PAYMENT_STATE, ac as PICKUP_TIME_TYPE, cO as ParentToIframeMessage, cG as PaymentMethodInfo, aJ as PaymentState, cp as PickupTime, co as PickupTimeType, P as PriceQuote, bf as PricingOverrides, a0 as ProcessAndResolveOptions, _ as ProcessCheckoutOptions, $ as ProcessCheckoutResult, b$ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, b6 as RefundOrderInput, b9 as ReminderMethod, bc as ReminderSettings, cw as RequestContext, cz as RequestErrorEvent, cl as RequestOtpInput, h as RequestSource, cx as RequestStartEvent, cy as RequestSuccessEvent, bT as RescheduleBookingInput, bW as RescheduleBookingResult, bi as ResourceAssignment, ap as Result, cA as RetryEvent, ck as RevokeAllSessionsResult, cj as RevokeSessionResult, by as Room, bg as SchedulingMetadata, bj as SchedulingResult, S as SchedulingService, bG as Service, bX as ServiceAvailabilityParams, bY as ServiceAvailabilityResult, bz as ServiceCharge, be as ServiceNotes, bl as ServiceScheduleRequest, b7 as ServiceStatus, cB as SessionChangeEvent, bH as Staff, bh as StaffAssignment, b8 as StaffRole, bm as StaffScheduleItem, b_ as StockLevel, bZ as StockStatus, bA as StorefrontBootstrap, bx as Table, u as TableInfo, bu as TimeRange, bv as TimeRanges, bI as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, c9 as UpdateAddressInput, b4 as UpdateOrderStatusInput, U as UpdateProfileInput, c0 as VariantStock, cm as VerifyOtpInput, aE as combine, aF as combineObject, c as createCimplifyClient, x as createElements, at as err, ay as flatMap, aC as fromPromise, l as generateIdempotencyKey, az as getOrElse, av as isErr, au as isOk, ax as mapError, aw as mapResult, as as ok, aB as toNullable, aD as tryCatch, aA as unwrap } from './client-
|
|
1
|
+
export { ae as AUTHORIZATION_TYPE, aj as AUTH_MUTATION, a3 as AbortablePromise, r as ActivityService, cc as AddressData, cF as AddressInfo, aT as AmountToPay, cn as AuthResponse, A as AuthService, n as AuthStatus, cH as AuthenticatedCustomer, cJ as AuthenticatedData, c2 as AvailabilityResult, bJ as AvailableSlot, bM as Booking, bL as BookingStatus, bN as BookingWithDetails, bb as BufferTimes, bq as Business, bE as BusinessHours, bp as BusinessPreferences, B as BusinessService, bD as BusinessSettings, bo as BusinessType, bB as BusinessWithLocations, a7 as CHECKOUT_MODE, ak as CHECKOUT_MUTATION, aa as CHECKOUT_STEP, ag as CONTACT_TYPE, bU as CancelBookingInput, bV as CancelBookingResult, b5 as CancelOrderInput, bd as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aG as CatalogueResult, aH as CatalogueSnapshot, bF as CategoryInfo, bR as CheckSlotAvailabilityInput, bS as CheckSlotAvailabilityResult, cq as CheckoutAddressInfo, cN as CheckoutCartData, cM as CheckoutCartItem, cs as CheckoutCustomerInfo, X as CheckoutFormData, b3 as CheckoutInput, K as CheckoutMode, k as CheckoutOperations, N as CheckoutOrderType, V as CheckoutPaymentMethod, Y as CheckoutResult, k as CheckoutService, a1 as CheckoutStatus, a2 as CheckoutStatusContext, W as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, w as CimplifyElement, v as CimplifyElements, a6 as ContactType, c8 as CreateAddressInput, ca as CreateMobileMoneyInput, c3 as Customer, c4 as CustomerAddress, bP as CustomerBooking, bO as CustomerBookingServiceItem, c6 as CustomerLinkPreferences, c5 as CustomerMobileMoney, ba as CustomerServicePreferences, ao as DEFAULT_COUNTRY, an as DEFAULT_CURRENCY, af as DEVICE_TYPE, bK as DayAvailability, bk as DepositResult, a5 as DeviceType, y as ELEMENT_TYPES, E as EVENT_TYPES, cE as ElementAppearance, cQ as ElementEventHandler, J as ElementEventType, D as ElementOptions, H as ElementType, cK as ElementsCheckoutData, cL as ElementsCheckoutResult, cI as ElementsCustomerInfo, z as ElementsOptions, ce as EnrollAndLinkOrderInput, ch as EnrollAndLinkOrderResult, cb as EnrollmentData, ar as Err, aS as FeeBearerType, F as FetchQuoteInput, aQ as FulfillmentLink, aP as FulfillmentStatus, aO as FulfillmentType, cu as FxQuote, ct as FxQuoteRequest, cv as FxRateResponse, q as FxService, bQ as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, cP as IframeToParentMessage, I as InventoryService, ai as LINK_MUTATION, ah as LINK_QUERY, aU as LineItem, aL as LineType, c7 as LinkData, cg as LinkEnrollResult, L as LinkService, ci as LinkSession, cf as LinkStatusResult, t as LiteBootstrap, p as LiteService, bt as Location, bn as LocationAppointment, c1 as LocationStock, br as LocationTaxBehavior, bs as LocationTaxOverrides, bw as LocationTimeProfile, bC as LocationWithDetails, M as MESSAGE_TYPES, ad as MOBILE_MONEY_PROVIDER, cd as MobileMoneyData, cr as MobileMoneyDetails, a4 as MobileMoneyProvider, Z as NextAction, am as ORDER_MUTATION, a8 as ORDER_TYPE, cC as ObservabilityHooks, aq as Ok, aV as Order, aK as OrderChannel, b2 as OrderFilter, aR as OrderFulfillmentSummary, aY as OrderGroup, b0 as OrderGroupDetails, aZ as OrderGroupPayment, aX as OrderGroupPaymentState, a$ as OrderGroupPaymentSummary, aW as OrderHistory, aM as OrderLineState, aN as OrderLineStatus, b1 as OrderPaymentEvent, O as OrderQueries, a_ as OrderSplitDetail, aI as OrderStatus, cD as OrderType, o as OtpResult, a9 as PAYMENT_METHOD, al as PAYMENT_MUTATION, ab as PAYMENT_STATE, ac as PICKUP_TIME_TYPE, cO as ParentToIframeMessage, cG as PaymentMethodInfo, aJ as PaymentState, cp as PickupTime, co as PickupTimeType, P as PriceQuote, bf as PricingOverrides, a0 as ProcessAndResolveOptions, _ as ProcessCheckoutOptions, $ as ProcessCheckoutResult, b$ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, b6 as RefundOrderInput, b9 as ReminderMethod, bc as ReminderSettings, cw as RequestContext, cz as RequestErrorEvent, cl as RequestOtpInput, h as RequestSource, cx as RequestStartEvent, cy as RequestSuccessEvent, bT as RescheduleBookingInput, bW as RescheduleBookingResult, bi as ResourceAssignment, ap as Result, cA as RetryEvent, ck as RevokeAllSessionsResult, cj as RevokeSessionResult, by as Room, bg as SchedulingMetadata, bj as SchedulingResult, S as SchedulingService, bG as Service, bX as ServiceAvailabilityParams, bY as ServiceAvailabilityResult, bz as ServiceCharge, be as ServiceNotes, bl as ServiceScheduleRequest, b7 as ServiceStatus, cB as SessionChangeEvent, bH as Staff, bh as StaffAssignment, b8 as StaffRole, bm as StaffScheduleItem, b_ as StockLevel, bZ as StockStatus, bA as StorefrontBootstrap, bx as Table, u as TableInfo, bu as TimeRange, bv as TimeRanges, bI as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, c9 as UpdateAddressInput, b4 as UpdateOrderStatusInput, U as UpdateProfileInput, c0 as VariantStock, cm as VerifyOtpInput, aE as combine, aF as combineObject, c as createCimplifyClient, x as createElements, at as err, ay as flatMap, aC as fromPromise, l as generateIdempotencyKey, az as getOrElse, av as isErr, au as isOk, ax as mapError, aw as mapResult, as as ok, aB as toNullable, aD as tryCatch, aA as unwrap } from './client-B3payjUV.mjs';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.mjs';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export {
|
|
3
|
+
import { A as ApiError } from './payment-CO2tRThu.mjs';
|
|
4
|
+
export { R as AddOn, aT as AddOnDetails, bd as AddOnGroupDetails, W as AddOnOption, bc as AddOnOptionDetails, X as AddOnOptionPrice, U as AddOnWithOptions, bi as AddToCartInput, bo as AddressAuthorizationData, aI as AdjustmentType, aP as AppliedDiscount, s as AttributeAppliesTo, r as AttributeType, bp as AuthorizationType, aO as BenefitType, a4 as Bundle, a8 as BundleComponentData, a9 as BundleComponentInfo, ab as BundleComponentVariantView, aa as BundleComponentView, a3 as BundlePriceType, a6 as BundleProduct, aY as BundleSelectionData, aW as BundleSelectionInput, aX as BundleStoredSelection, a5 as BundleSummary, a7 as BundleWithDetails, b1 as Cart, aU as CartAddOn, aG as CartChannel, b2 as CartItem, bf as CartItemDetails, aF as CartStatus, bk as CartSummary, b3 as CartTotals, _ as Category, $ as CategorySummary, aN as ChosenPrice, g as CimplifyError, a0 as Collection, a2 as CollectionProduct, a1 as CollectionSummary, aj as ComponentGroup, ak as ComponentGroupWithComponents, aq as ComponentPriceBreakdown, ao as ComponentSelectionInput, ag as ComponentSourceType, ah as Composite, an as CompositeComponent, am as CompositeComponentView, al as CompositeGroupView, a_ as CompositePriceBreakdown, ap as CompositePriceResult, ae as CompositePricingMode, a$ as CompositeSelectionData, ao as CompositeSelectionInput, aZ as CompositeStoredSelection, ai as CompositeWithDetails, C as CurrencyCode, t as CustomAttributeDefinition, u as CustomAttributeValue, aA as Deal, az as DealBenefitType, q as DepositType, p as DigitalProductType, aQ as DiscountBreakdown, aR as DiscountDetails, aC as DiscountValidation, b6 as DisplayAddOn, b7 as DisplayAddOnOption, b4 as DisplayCart, b5 as DisplayCartItem, D as DisplayMode, f as ERROR_HINTS, E as ErrorCode, d as ErrorCodeType, e as ErrorHint, F as FacetValue, af as GroupPricingBehavior, bt as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b0 as LineConfiguration, at as LocationProductPrice, M as Money, b as Pagination, P as PaginationParams, bs as Payment, bw as PaymentErrorDetails, br as PaymentMethod, bn as PaymentMethodType, bq as PaymentProcessingState, bm as PaymentProvider, bu as PaymentResponse, bl as PaymentStatus, bv as PaymentStatusResponse, as as Price, aJ as PriceAdjustment, aM as PriceDecisionPath, ar as PriceEntryType, aL as PricePathTaxInfo, aH as PriceSource, y as Product, Y as ProductAddOn, au as ProductAvailability, ay as ProductAvailabilityNow, aB as ProductDealInfo, w as ProductProperty, o as ProductRenderHint, aw as ProductTaxonomy, av as ProductTimeProfile, n as ProductType, B as ProductVariant, N as ProductVariantValue, z as ProductWithDetails, x as PropertyFacet, v as PropertySource, S as SalesChannel, aS as SelectedAddOnOption, bx as SubmitAuthorizationInput, aD as Tag, aE as TagsResponse, aK as TaxPathComponent, T as TaxonomyAttributeTemplate, ax as TaxonomyWithChildren, bg as UICart, b8 as UICartBusiness, ba as UICartCustomer, b9 as UICartLocation, bb as UICartPricing, bh as UICartResponse, bj as UpdateCartItemInput, H as VariantAxis, Q as VariantAxisSelection, L as VariantAxisValue, ad as VariantAxisValueView, ac as VariantAxisView, J as VariantAxisWithValues, aV as VariantDetails, be as VariantDetailsDTO, G as VariantDisplayAttribute, O as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, h as isCimplifyError, l as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-CO2tRThu.mjs';
|
|
5
5
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, isValidPhoneForContext, normalizePaymentResponse, normalizePhoneToE164, normalizeStatusResponse, parsePrice, resolvePhoneCountryCode } from './utils.mjs';
|
|
6
6
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
7
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-Dg7MJEsL.mjs';
|
|
8
8
|
import 'libphonenumber-js';
|
|
9
9
|
|
|
10
10
|
interface FrontendContext {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ae as AUTHORIZATION_TYPE, aj as AUTH_MUTATION, a3 as AbortablePromise, r as ActivityService, cc as AddressData, cF as AddressInfo, aT as AmountToPay, cn as AuthResponse, A as AuthService, n as AuthStatus, cH as AuthenticatedCustomer, cJ as AuthenticatedData, c2 as AvailabilityResult, bJ as AvailableSlot, bM as Booking, bL as BookingStatus, bN as BookingWithDetails, bb as BufferTimes, bq as Business, bE as BusinessHours, bp as BusinessPreferences, B as BusinessService, bD as BusinessSettings, bo as BusinessType, bB as BusinessWithLocations, a7 as CHECKOUT_MODE, ak as CHECKOUT_MUTATION, aa as CHECKOUT_STEP, ag as CONTACT_TYPE, bU as CancelBookingInput, bV as CancelBookingResult, b5 as CancelOrderInput, bd as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aG as CatalogueResult, aH as CatalogueSnapshot, bF as CategoryInfo, bR as CheckSlotAvailabilityInput, bS as CheckSlotAvailabilityResult, cq as CheckoutAddressInfo, cN as CheckoutCartData, cM as CheckoutCartItem, cs as CheckoutCustomerInfo, X as CheckoutFormData, b3 as CheckoutInput, K as CheckoutMode, k as CheckoutOperations, N as CheckoutOrderType, V as CheckoutPaymentMethod, Y as CheckoutResult, k as CheckoutService, a1 as CheckoutStatus, a2 as CheckoutStatusContext, W as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, w as CimplifyElement, v as CimplifyElements, a6 as ContactType, c8 as CreateAddressInput, ca as CreateMobileMoneyInput, c3 as Customer, c4 as CustomerAddress, bP as CustomerBooking, bO as CustomerBookingServiceItem, c6 as CustomerLinkPreferences, c5 as CustomerMobileMoney, ba as CustomerServicePreferences, ao as DEFAULT_COUNTRY, an as DEFAULT_CURRENCY, af as DEVICE_TYPE, bK as DayAvailability, bk as DepositResult, a5 as DeviceType, y as ELEMENT_TYPES, E as EVENT_TYPES, cE as ElementAppearance, cQ as ElementEventHandler, J as ElementEventType, D as ElementOptions, H as ElementType, cK as ElementsCheckoutData, cL as ElementsCheckoutResult, cI as ElementsCustomerInfo, z as ElementsOptions, ce as EnrollAndLinkOrderInput, ch as EnrollAndLinkOrderResult, cb as EnrollmentData, ar as Err, aS as FeeBearerType, F as FetchQuoteInput, aQ as FulfillmentLink, aP as FulfillmentStatus, aO as FulfillmentType, cu as FxQuote, ct as FxQuoteRequest, cv as FxRateResponse, q as FxService, bQ as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, cP as IframeToParentMessage, I as InventoryService, ai as LINK_MUTATION, ah as LINK_QUERY, aU as LineItem, aL as LineType, c7 as LinkData, cg as LinkEnrollResult, L as LinkService, ci as LinkSession, cf as LinkStatusResult, t as LiteBootstrap, p as LiteService, bt as Location, bn as LocationAppointment, c1 as LocationStock, br as LocationTaxBehavior, bs as LocationTaxOverrides, bw as LocationTimeProfile, bC as LocationWithDetails, M as MESSAGE_TYPES, ad as MOBILE_MONEY_PROVIDER, cd as MobileMoneyData, cr as MobileMoneyDetails, a4 as MobileMoneyProvider, Z as NextAction, am as ORDER_MUTATION, a8 as ORDER_TYPE, cC as ObservabilityHooks, aq as Ok, aV as Order, aK as OrderChannel, b2 as OrderFilter, aR as OrderFulfillmentSummary, aY as OrderGroup, b0 as OrderGroupDetails, aZ as OrderGroupPayment, aX as OrderGroupPaymentState, a$ as OrderGroupPaymentSummary, aW as OrderHistory, aM as OrderLineState, aN as OrderLineStatus, b1 as OrderPaymentEvent, O as OrderQueries, a_ as OrderSplitDetail, aI as OrderStatus, cD as OrderType, o as OtpResult, a9 as PAYMENT_METHOD, al as PAYMENT_MUTATION, ab as PAYMENT_STATE, ac as PICKUP_TIME_TYPE, cO as ParentToIframeMessage, cG as PaymentMethodInfo, aJ as PaymentState, cp as PickupTime, co as PickupTimeType, P as PriceQuote, bf as PricingOverrides, a0 as ProcessAndResolveOptions, _ as ProcessCheckoutOptions, $ as ProcessCheckoutResult, b$ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, b6 as RefundOrderInput, b9 as ReminderMethod, bc as ReminderSettings, cw as RequestContext, cz as RequestErrorEvent, cl as RequestOtpInput, h as RequestSource, cx as RequestStartEvent, cy as RequestSuccessEvent, bT as RescheduleBookingInput, bW as RescheduleBookingResult, bi as ResourceAssignment, ap as Result, cA as RetryEvent, ck as RevokeAllSessionsResult, cj as RevokeSessionResult, by as Room, bg as SchedulingMetadata, bj as SchedulingResult, S as SchedulingService, bG as Service, bX as ServiceAvailabilityParams, bY as ServiceAvailabilityResult, bz as ServiceCharge, be as ServiceNotes, bl as ServiceScheduleRequest, b7 as ServiceStatus, cB as SessionChangeEvent, bH as Staff, bh as StaffAssignment, b8 as StaffRole, bm as StaffScheduleItem, b_ as StockLevel, bZ as StockStatus, bA as StorefrontBootstrap, bx as Table, u as TableInfo, bu as TimeRange, bv as TimeRanges, bI as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, c9 as UpdateAddressInput, b4 as UpdateOrderStatusInput, U as UpdateProfileInput, c0 as VariantStock, cm as VerifyOtpInput, aE as combine, aF as combineObject, c as createCimplifyClient, x as createElements, at as err, ay as flatMap, aC as fromPromise, l as generateIdempotencyKey, az as getOrElse, av as isErr, au as isOk, ax as mapError, aw as mapResult, as as ok, aB as toNullable, aD as tryCatch, aA as unwrap } from './client-
|
|
1
|
+
export { ae as AUTHORIZATION_TYPE, aj as AUTH_MUTATION, a3 as AbortablePromise, r as ActivityService, cc as AddressData, cF as AddressInfo, aT as AmountToPay, cn as AuthResponse, A as AuthService, n as AuthStatus, cH as AuthenticatedCustomer, cJ as AuthenticatedData, c2 as AvailabilityResult, bJ as AvailableSlot, bM as Booking, bL as BookingStatus, bN as BookingWithDetails, bb as BufferTimes, bq as Business, bE as BusinessHours, bp as BusinessPreferences, B as BusinessService, bD as BusinessSettings, bo as BusinessType, bB as BusinessWithLocations, a7 as CHECKOUT_MODE, ak as CHECKOUT_MUTATION, aa as CHECKOUT_STEP, ag as CONTACT_TYPE, bU as CancelBookingInput, bV as CancelBookingResult, b5 as CancelOrderInput, bd as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aG as CatalogueResult, aH as CatalogueSnapshot, bF as CategoryInfo, bR as CheckSlotAvailabilityInput, bS as CheckSlotAvailabilityResult, cq as CheckoutAddressInfo, cN as CheckoutCartData, cM as CheckoutCartItem, cs as CheckoutCustomerInfo, X as CheckoutFormData, b3 as CheckoutInput, K as CheckoutMode, k as CheckoutOperations, N as CheckoutOrderType, V as CheckoutPaymentMethod, Y as CheckoutResult, k as CheckoutService, a1 as CheckoutStatus, a2 as CheckoutStatusContext, W as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, w as CimplifyElement, v as CimplifyElements, a6 as ContactType, c8 as CreateAddressInput, ca as CreateMobileMoneyInput, c3 as Customer, c4 as CustomerAddress, bP as CustomerBooking, bO as CustomerBookingServiceItem, c6 as CustomerLinkPreferences, c5 as CustomerMobileMoney, ba as CustomerServicePreferences, ao as DEFAULT_COUNTRY, an as DEFAULT_CURRENCY, af as DEVICE_TYPE, bK as DayAvailability, bk as DepositResult, a5 as DeviceType, y as ELEMENT_TYPES, E as EVENT_TYPES, cE as ElementAppearance, cQ as ElementEventHandler, J as ElementEventType, D as ElementOptions, H as ElementType, cK as ElementsCheckoutData, cL as ElementsCheckoutResult, cI as ElementsCustomerInfo, z as ElementsOptions, ce as EnrollAndLinkOrderInput, ch as EnrollAndLinkOrderResult, cb as EnrollmentData, ar as Err, aS as FeeBearerType, F as FetchQuoteInput, aQ as FulfillmentLink, aP as FulfillmentStatus, aO as FulfillmentType, cu as FxQuote, ct as FxQuoteRequest, cv as FxRateResponse, q as FxService, bQ as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, cP as IframeToParentMessage, I as InventoryService, ai as LINK_MUTATION, ah as LINK_QUERY, aU as LineItem, aL as LineType, c7 as LinkData, cg as LinkEnrollResult, L as LinkService, ci as LinkSession, cf as LinkStatusResult, t as LiteBootstrap, p as LiteService, bt as Location, bn as LocationAppointment, c1 as LocationStock, br as LocationTaxBehavior, bs as LocationTaxOverrides, bw as LocationTimeProfile, bC as LocationWithDetails, M as MESSAGE_TYPES, ad as MOBILE_MONEY_PROVIDER, cd as MobileMoneyData, cr as MobileMoneyDetails, a4 as MobileMoneyProvider, Z as NextAction, am as ORDER_MUTATION, a8 as ORDER_TYPE, cC as ObservabilityHooks, aq as Ok, aV as Order, aK as OrderChannel, b2 as OrderFilter, aR as OrderFulfillmentSummary, aY as OrderGroup, b0 as OrderGroupDetails, aZ as OrderGroupPayment, aX as OrderGroupPaymentState, a$ as OrderGroupPaymentSummary, aW as OrderHistory, aM as OrderLineState, aN as OrderLineStatus, b1 as OrderPaymentEvent, O as OrderQueries, a_ as OrderSplitDetail, aI as OrderStatus, cD as OrderType, o as OtpResult, a9 as PAYMENT_METHOD, al as PAYMENT_MUTATION, ab as PAYMENT_STATE, ac as PICKUP_TIME_TYPE, cO as ParentToIframeMessage, cG as PaymentMethodInfo, aJ as PaymentState, cp as PickupTime, co as PickupTimeType, P as PriceQuote, bf as PricingOverrides, a0 as ProcessAndResolveOptions, _ as ProcessCheckoutOptions, $ as ProcessCheckoutResult, b$ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, b6 as RefundOrderInput, b9 as ReminderMethod, bc as ReminderSettings, cw as RequestContext, cz as RequestErrorEvent, cl as RequestOtpInput, h as RequestSource, cx as RequestStartEvent, cy as RequestSuccessEvent, bT as RescheduleBookingInput, bW as RescheduleBookingResult, bi as ResourceAssignment, ap as Result, cA as RetryEvent, ck as RevokeAllSessionsResult, cj as RevokeSessionResult, by as Room, bg as SchedulingMetadata, bj as SchedulingResult, S as SchedulingService, bG as Service, bX as ServiceAvailabilityParams, bY as ServiceAvailabilityResult, bz as ServiceCharge, be as ServiceNotes, bl as ServiceScheduleRequest, b7 as ServiceStatus, cB as SessionChangeEvent, bH as Staff, bh as StaffAssignment, b8 as StaffRole, bm as StaffScheduleItem, b_ as StockLevel, bZ as StockStatus, bA as StorefrontBootstrap, bx as Table, u as TableInfo, bu as TimeRange, bv as TimeRanges, bI as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, c9 as UpdateAddressInput, b4 as UpdateOrderStatusInput, U as UpdateProfileInput, c0 as VariantStock, cm as VerifyOtpInput, aE as combine, aF as combineObject, c as createCimplifyClient, x as createElements, at as err, ay as flatMap, aC as fromPromise, l as generateIdempotencyKey, az as getOrElse, av as isErr, au as isOk, ax as mapError, aw as mapResult, as as ok, aB as toNullable, aD as tryCatch, aA as unwrap } from './client-FNZzXO_v.js';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.js';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export {
|
|
3
|
+
import { A as ApiError } from './payment-CO2tRThu.js';
|
|
4
|
+
export { R as AddOn, aT as AddOnDetails, bd as AddOnGroupDetails, W as AddOnOption, bc as AddOnOptionDetails, X as AddOnOptionPrice, U as AddOnWithOptions, bi as AddToCartInput, bo as AddressAuthorizationData, aI as AdjustmentType, aP as AppliedDiscount, s as AttributeAppliesTo, r as AttributeType, bp as AuthorizationType, aO as BenefitType, a4 as Bundle, a8 as BundleComponentData, a9 as BundleComponentInfo, ab as BundleComponentVariantView, aa as BundleComponentView, a3 as BundlePriceType, a6 as BundleProduct, aY as BundleSelectionData, aW as BundleSelectionInput, aX as BundleStoredSelection, a5 as BundleSummary, a7 as BundleWithDetails, b1 as Cart, aU as CartAddOn, aG as CartChannel, b2 as CartItem, bf as CartItemDetails, aF as CartStatus, bk as CartSummary, b3 as CartTotals, _ as Category, $ as CategorySummary, aN as ChosenPrice, g as CimplifyError, a0 as Collection, a2 as CollectionProduct, a1 as CollectionSummary, aj as ComponentGroup, ak as ComponentGroupWithComponents, aq as ComponentPriceBreakdown, ao as ComponentSelectionInput, ag as ComponentSourceType, ah as Composite, an as CompositeComponent, am as CompositeComponentView, al as CompositeGroupView, a_ as CompositePriceBreakdown, ap as CompositePriceResult, ae as CompositePricingMode, a$ as CompositeSelectionData, ao as CompositeSelectionInput, aZ as CompositeStoredSelection, ai as CompositeWithDetails, C as CurrencyCode, t as CustomAttributeDefinition, u as CustomAttributeValue, aA as Deal, az as DealBenefitType, q as DepositType, p as DigitalProductType, aQ as DiscountBreakdown, aR as DiscountDetails, aC as DiscountValidation, b6 as DisplayAddOn, b7 as DisplayAddOnOption, b4 as DisplayCart, b5 as DisplayCartItem, D as DisplayMode, f as ERROR_HINTS, E as ErrorCode, d as ErrorCodeType, e as ErrorHint, F as FacetValue, af as GroupPricingBehavior, bt as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b0 as LineConfiguration, at as LocationProductPrice, M as Money, b as Pagination, P as PaginationParams, bs as Payment, bw as PaymentErrorDetails, br as PaymentMethod, bn as PaymentMethodType, bq as PaymentProcessingState, bm as PaymentProvider, bu as PaymentResponse, bl as PaymentStatus, bv as PaymentStatusResponse, as as Price, aJ as PriceAdjustment, aM as PriceDecisionPath, ar as PriceEntryType, aL as PricePathTaxInfo, aH as PriceSource, y as Product, Y as ProductAddOn, au as ProductAvailability, ay as ProductAvailabilityNow, aB as ProductDealInfo, w as ProductProperty, o as ProductRenderHint, aw as ProductTaxonomy, av as ProductTimeProfile, n as ProductType, B as ProductVariant, N as ProductVariantValue, z as ProductWithDetails, x as PropertyFacet, v as PropertySource, S as SalesChannel, aS as SelectedAddOnOption, bx as SubmitAuthorizationInput, aD as Tag, aE as TagsResponse, aK as TaxPathComponent, T as TaxonomyAttributeTemplate, ax as TaxonomyWithChildren, bg as UICart, b8 as UICartBusiness, ba as UICartCustomer, b9 as UICartLocation, bb as UICartPricing, bh as UICartResponse, bj as UpdateCartItemInput, H as VariantAxis, Q as VariantAxisSelection, L as VariantAxisValue, ad as VariantAxisValueView, ac as VariantAxisView, J as VariantAxisWithValues, aV as VariantDetails, be as VariantDetailsDTO, G as VariantDisplayAttribute, O as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, h as isCimplifyError, l as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-CO2tRThu.js';
|
|
5
5
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, isValidPhoneForContext, normalizePaymentResponse, normalizePhoneToE164, normalizeStatusResponse, parsePrice, resolvePhoneCountryCode } from './utils.js';
|
|
6
6
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
7
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-Bp6JlVzW.js';
|
|
8
8
|
import 'libphonenumber-js';
|
|
9
9
|
|
|
10
10
|
interface FrontendContext {
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB2RTVYJR_js = require('./chunk-B2RTVYJR.js');
|
|
4
4
|
var chunkS6TU55KP_js = require('./chunk-S6TU55KP.js');
|
|
5
5
|
var chunkFLPI2VVJ_js = require('./chunk-FLPI2VVJ.js');
|
|
6
|
-
var
|
|
6
|
+
var chunk6SRY4DPY_js = require('./chunk-6SRY4DPY.js');
|
|
7
7
|
var chunkRYQ5IPWX_js = require('./chunk-RYQ5IPWX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ActivityService", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkB2RTVYJR_js.ActivityService; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkB2RTVYJR_js.CimplifyClient; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkB2RTVYJR_js.createCimplifyClient; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkB2RTVYJR_js.getVariantDisplayName; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
28
28
|
enumerable: true,
|
|
@@ -46,207 +46,207 @@ Object.defineProperty(exports, "query", {
|
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk6SRY4DPY_js.AUTHORIZATION_TYPE; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk6SRY4DPY_js.AUTH_MUTATION; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "AuthService", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk6SRY4DPY_js.AuthService; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "BusinessService", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk6SRY4DPY_js.BusinessService; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk6SRY4DPY_js.CHECKOUT_MODE; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk6SRY4DPY_js.CHECKOUT_MUTATION; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk6SRY4DPY_js.CHECKOUT_STEP; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk6SRY4DPY_js.CONTACT_TYPE; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "CartOperations", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk6SRY4DPY_js.CartOperations; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk6SRY4DPY_js.CatalogueQueries; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk6SRY4DPY_js.CheckoutService; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "CheckoutService", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk6SRY4DPY_js.CheckoutService; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk6SRY4DPY_js.CimplifyElement; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk6SRY4DPY_js.CimplifyElements; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk6SRY4DPY_js.DEFAULT_COUNTRY; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk6SRY4DPY_js.DEFAULT_CURRENCY; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk6SRY4DPY_js.DEVICE_TYPE; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk6SRY4DPY_js.ELEMENT_TYPES; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk6SRY4DPY_js.EVENT_TYPES; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "FxService", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk6SRY4DPY_js.FxService; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "InventoryService", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk6SRY4DPY_js.InventoryService; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk6SRY4DPY_js.LINK_MUTATION; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk6SRY4DPY_js.LINK_QUERY; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "LinkService", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk6SRY4DPY_js.LinkService; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "LiteService", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk6SRY4DPY_js.LiteService; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk6SRY4DPY_js.MESSAGE_TYPES; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk6SRY4DPY_js.MOBILE_MONEY_PROVIDER; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk6SRY4DPY_js.ORDER_MUTATION; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk6SRY4DPY_js.ORDER_TYPE; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "OrderQueries", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk6SRY4DPY_js.OrderQueries; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk6SRY4DPY_js.PAYMENT_METHOD; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk6SRY4DPY_js.PAYMENT_MUTATION; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk6SRY4DPY_js.PAYMENT_STATE; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk6SRY4DPY_js.PICKUP_TIME_TYPE; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "SchedulingService", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunk6SRY4DPY_js.SchedulingService; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "combine", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunk6SRY4DPY_js.combine; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "combineObject", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunk6SRY4DPY_js.combineObject; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "createElements", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk6SRY4DPY_js.createElements; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "err", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunk6SRY4DPY_js.err; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "flatMap", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunk6SRY4DPY_js.flatMap; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "fromPromise", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunk6SRY4DPY_js.fromPromise; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunk6SRY4DPY_js.generateIdempotencyKey; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "getOrElse", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunk6SRY4DPY_js.getOrElse; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "isErr", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunk6SRY4DPY_js.isErr; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "isOk", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunk6SRY4DPY_js.isOk; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "mapError", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunk6SRY4DPY_js.mapError; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "mapResult", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunk6SRY4DPY_js.mapResult; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "ok", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunk6SRY4DPY_js.ok; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "toNullable", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunk6SRY4DPY_js.toNullable; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "tryCatch", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunk6SRY4DPY_js.tryCatch; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "unwrap", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk6SRY4DPY_js.unwrap; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
252
252
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ActivityService, CimplifyClient, createCimplifyClient, getVariantDisplayName } from './chunk-
|
|
1
|
+
export { ActivityService, CimplifyClient, createCimplifyClient, getVariantDisplayName } from './chunk-AFEE43MQ.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-WDIMISRC.mjs';
|
|
3
3
|
export { QueryBuilder, query } from './chunk-LM3CJ4L7.mjs';
|
|
4
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-
|
|
4
|
+
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-7ACYNCNM.mjs';
|
|
5
5
|
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-FTL2SXCG.mjs';
|
|
@@ -155,6 +155,16 @@ interface TaxonomyAttributeTemplate {
|
|
|
155
155
|
gpc_attribute_code?: number;
|
|
156
156
|
created_at: string;
|
|
157
157
|
}
|
|
158
|
+
interface KnowledgeArticle {
|
|
159
|
+
id: string;
|
|
160
|
+
title: string;
|
|
161
|
+
slug: string;
|
|
162
|
+
content: string;
|
|
163
|
+
category?: string;
|
|
164
|
+
tags: string[];
|
|
165
|
+
created_at: string;
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
158
168
|
interface Product {
|
|
159
169
|
id: string;
|
|
160
170
|
business_id: string;
|
|
@@ -1305,4 +1315,4 @@ interface SubmitAuthorizationInput {
|
|
|
1305
1315
|
value: string;
|
|
1306
1316
|
}
|
|
1307
1317
|
|
|
1308
|
-
export { type
|
|
1318
|
+
export { type CategorySummary as $, type ApiError as A, type ProductVariant as B, type CurrencyCode as C, type DisplayMode as D, ErrorCode as E, type FacetValue as F, type VariantDisplayAttribute as G, type VariantAxis as H, type InventoryType as I, type VariantAxisWithValues as J, type KnowledgeArticle as K, type VariantAxisValue as L, type Money as M, type ProductVariantValue as N, type VariantLocationAvailability as O, type PaginationParams as P, type VariantAxisSelection as Q, type AddOn as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddOnWithOptions as U, type VariantStrategy as V, type AddOnOption as W, type AddOnOptionPrice as X, type ProductAddOn as Y, ZERO as Z, type Category as _, moneyFromNumber as a, type CompositeSelectionData as a$, type Collection as a0, type CollectionSummary as a1, type CollectionProduct as a2, type BundlePriceType as a3, type Bundle as a4, type BundleSummary as a5, type BundleProduct as a6, type BundleWithDetails as a7, type BundleComponentData as a8, type BundleComponentInfo as a9, type Deal as aA, type ProductDealInfo as aB, type DiscountValidation as aC, type Tag as aD, type TagsResponse as aE, type CartStatus as aF, type CartChannel as aG, type PriceSource as aH, type AdjustmentType as aI, type PriceAdjustment as aJ, type TaxPathComponent as aK, type PricePathTaxInfo as aL, type PriceDecisionPath as aM, type ChosenPrice as aN, type BenefitType as aO, type AppliedDiscount as aP, type DiscountBreakdown as aQ, type DiscountDetails as aR, type SelectedAddOnOption as aS, type AddOnDetails as aT, type CartAddOn as aU, type VariantDetails as aV, type BundleSelectionInput as aW, type BundleStoredSelection as aX, type BundleSelectionData as aY, type CompositeStoredSelection as aZ, type CompositePriceBreakdown as a_, type BundleComponentView as aa, type BundleComponentVariantView as ab, type VariantAxisView as ac, type VariantAxisValueView as ad, type CompositePricingMode as ae, type GroupPricingBehavior as af, type ComponentSourceType as ag, type Composite as ah, type CompositeWithDetails as ai, type ComponentGroup as aj, type ComponentGroupWithComponents as ak, type CompositeGroupView as al, type CompositeComponentView as am, type CompositeComponent as an, type ComponentSelectionInput as ao, type CompositePriceResult as ap, type ComponentPriceBreakdown as aq, type PriceEntryType as ar, type Price as as, type LocationProductPrice as at, type ProductAvailability as au, type ProductTimeProfile as av, type ProductTaxonomy as aw, type TaxonomyWithChildren as ax, type ProductAvailabilityNow as ay, type DealBenefitType as az, type Pagination as b, type LineConfiguration as b0, type Cart as b1, type CartItem as b2, type CartTotals as b3, type DisplayCart as b4, type DisplayCartItem as b5, type DisplayAddOn as b6, type DisplayAddOnOption as b7, type UICartBusiness as b8, type UICartLocation as b9, type UICartCustomer as ba, type UICartPricing as bb, type AddOnOptionDetails as bc, type AddOnGroupDetails as bd, type VariantDetailsDTO as be, type CartItemDetails as bf, type UICart as bg, type UICartResponse as bh, type AddToCartInput as bi, type UpdateCartItemInput as bj, type CartSummary as bk, type PaymentStatus as bl, type PaymentProvider as bm, type PaymentMethodType as bn, type AddressAuthorizationData as bo, type AuthorizationType as bp, type PaymentProcessingState as bq, type PaymentMethod as br, type Payment as bs, type InitializePaymentResult as bt, type PaymentResponse as bu, type PaymentStatusResponse as bv, type PaymentErrorDetails as bw, type SubmitAuthorizationInput as bx, currencyCode as c, type ErrorCodeType as d, type ErrorHint as e, ERROR_HINTS as f, CimplifyError as g, isCimplifyError as h, isSupportedCurrency as i, getErrorHint as j, enrichError as k, isRetryableError as l, money as m, type ProductType as n, type ProductRenderHint as o, type DigitalProductType as p, type DepositType as q, type AttributeType as r, type AttributeAppliesTo as s, type CustomAttributeDefinition as t, type CustomAttributeValue as u, type PropertySource as v, type ProductProperty as w, type PropertyFacet as x, type Product as y, type ProductWithDetails as z };
|
|
@@ -155,6 +155,16 @@ interface TaxonomyAttributeTemplate {
|
|
|
155
155
|
gpc_attribute_code?: number;
|
|
156
156
|
created_at: string;
|
|
157
157
|
}
|
|
158
|
+
interface KnowledgeArticle {
|
|
159
|
+
id: string;
|
|
160
|
+
title: string;
|
|
161
|
+
slug: string;
|
|
162
|
+
content: string;
|
|
163
|
+
category?: string;
|
|
164
|
+
tags: string[];
|
|
165
|
+
created_at: string;
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
158
168
|
interface Product {
|
|
159
169
|
id: string;
|
|
160
170
|
business_id: string;
|
|
@@ -1305,4 +1315,4 @@ interface SubmitAuthorizationInput {
|
|
|
1305
1315
|
value: string;
|
|
1306
1316
|
}
|
|
1307
1317
|
|
|
1308
|
-
export { type
|
|
1318
|
+
export { type CategorySummary as $, type ApiError as A, type ProductVariant as B, type CurrencyCode as C, type DisplayMode as D, ErrorCode as E, type FacetValue as F, type VariantDisplayAttribute as G, type VariantAxis as H, type InventoryType as I, type VariantAxisWithValues as J, type KnowledgeArticle as K, type VariantAxisValue as L, type Money as M, type ProductVariantValue as N, type VariantLocationAvailability as O, type PaginationParams as P, type VariantAxisSelection as Q, type AddOn as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddOnWithOptions as U, type VariantStrategy as V, type AddOnOption as W, type AddOnOptionPrice as X, type ProductAddOn as Y, ZERO as Z, type Category as _, moneyFromNumber as a, type CompositeSelectionData as a$, type Collection as a0, type CollectionSummary as a1, type CollectionProduct as a2, type BundlePriceType as a3, type Bundle as a4, type BundleSummary as a5, type BundleProduct as a6, type BundleWithDetails as a7, type BundleComponentData as a8, type BundleComponentInfo as a9, type Deal as aA, type ProductDealInfo as aB, type DiscountValidation as aC, type Tag as aD, type TagsResponse as aE, type CartStatus as aF, type CartChannel as aG, type PriceSource as aH, type AdjustmentType as aI, type PriceAdjustment as aJ, type TaxPathComponent as aK, type PricePathTaxInfo as aL, type PriceDecisionPath as aM, type ChosenPrice as aN, type BenefitType as aO, type AppliedDiscount as aP, type DiscountBreakdown as aQ, type DiscountDetails as aR, type SelectedAddOnOption as aS, type AddOnDetails as aT, type CartAddOn as aU, type VariantDetails as aV, type BundleSelectionInput as aW, type BundleStoredSelection as aX, type BundleSelectionData as aY, type CompositeStoredSelection as aZ, type CompositePriceBreakdown as a_, type BundleComponentView as aa, type BundleComponentVariantView as ab, type VariantAxisView as ac, type VariantAxisValueView as ad, type CompositePricingMode as ae, type GroupPricingBehavior as af, type ComponentSourceType as ag, type Composite as ah, type CompositeWithDetails as ai, type ComponentGroup as aj, type ComponentGroupWithComponents as ak, type CompositeGroupView as al, type CompositeComponentView as am, type CompositeComponent as an, type ComponentSelectionInput as ao, type CompositePriceResult as ap, type ComponentPriceBreakdown as aq, type PriceEntryType as ar, type Price as as, type LocationProductPrice as at, type ProductAvailability as au, type ProductTimeProfile as av, type ProductTaxonomy as aw, type TaxonomyWithChildren as ax, type ProductAvailabilityNow as ay, type DealBenefitType as az, type Pagination as b, type LineConfiguration as b0, type Cart as b1, type CartItem as b2, type CartTotals as b3, type DisplayCart as b4, type DisplayCartItem as b5, type DisplayAddOn as b6, type DisplayAddOnOption as b7, type UICartBusiness as b8, type UICartLocation as b9, type UICartCustomer as ba, type UICartPricing as bb, type AddOnOptionDetails as bc, type AddOnGroupDetails as bd, type VariantDetailsDTO as be, type CartItemDetails as bf, type UICart as bg, type UICartResponse as bh, type AddToCartInput as bi, type UpdateCartItemInput as bj, type CartSummary as bk, type PaymentStatus as bl, type PaymentProvider as bm, type PaymentMethodType as bn, type AddressAuthorizationData as bo, type AuthorizationType as bp, type PaymentProcessingState as bq, type PaymentMethod as br, type Payment as bs, type InitializePaymentResult as bt, type PaymentResponse as bu, type PaymentStatusResponse as bv, type PaymentErrorDetails as bw, type SubmitAuthorizationInput as bx, currencyCode as c, type ErrorCodeType as d, type ErrorHint as e, ERROR_HINTS as f, CimplifyError as g, isCimplifyError as h, isSupportedCurrency as i, getErrorHint as j, enrichError as k, isRetryableError as l, money as m, type ProductType as n, type ProductRenderHint as o, type DigitalProductType as p, type DepositType as q, type AttributeType as r, type AttributeAppliesTo as s, type CustomAttributeDefinition as t, type CustomAttributeValue as u, type PropertySource as v, type ProductProperty as w, type PropertyFacet as x, type Product as y, type ProductWithDetails as z };
|
package/dist/react.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.mjs';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
4
|
-
import { C as CimplifyClient, $ as ProcessCheckoutResult, a1 as CheckoutStatus, a2 as CheckoutStatusContext, bt as Location, bq as Business, aV as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, aI as OrderStatus, bG as Service, bJ as AvailableSlot, bK as DayAvailability, bP as CustomerBooking, bV as CancelBookingResult, z as ElementsOptions, cJ as AuthenticatedData, cF as AddressInfo, cG as PaymentMethodInfo, v as CimplifyElements, cL as ElementsCheckoutResult, _ as ProcessCheckoutOptions, aU as LineItem, bH as Staff } from './client-
|
|
5
|
-
import { y as Product, b as Pagination, g as CimplifyError, z as ProductWithDetails,
|
|
6
|
-
import { P as ProductWithPrice } from './price-
|
|
4
|
+
import { C as CimplifyClient, $ as ProcessCheckoutResult, a1 as CheckoutStatus, a2 as CheckoutStatusContext, bt as Location, bq as Business, aV as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, aI as OrderStatus, bG as Service, bJ as AvailableSlot, bK as DayAvailability, bP as CustomerBooking, bV as CancelBookingResult, z as ElementsOptions, cJ as AuthenticatedData, cF as AddressInfo, cG as PaymentMethodInfo, v as CimplifyElements, cL as ElementsCheckoutResult, _ as ProcessCheckoutOptions, aU as LineItem, bH as Staff } from './client-B3payjUV.mjs';
|
|
5
|
+
import { y as Product, b as Pagination, g as CimplifyError, z as ProductWithDetails, _ as Category, M as Money, aW as BundleSelectionInput, ao as ComponentSelectionInput, a0 as Collection, aw as ProductTaxonomy, ax as TaxonomyWithChildren, av as ProductTimeProfile, aA as Deal, aB as ProductDealInfo, aC as DiscountValidation, a5 as BundleSummary, ap as CompositePriceResult, C as CurrencyCode, B as ProductVariant, J as VariantAxisWithValues, U as AddOnWithOptions, aa as BundleComponentView, a3 as BundlePriceType, al as CompositeGroupView } from './payment-CO2tRThu.mjs';
|
|
6
|
+
import { P as ProductWithPrice } from './price-Dg7MJEsL.mjs';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
8
|
|
|
9
9
|
interface UserIdentity {
|
package/dist/react.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.js';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
4
|
-
import { C as CimplifyClient, $ as ProcessCheckoutResult, a1 as CheckoutStatus, a2 as CheckoutStatusContext, bt as Location, bq as Business, aV as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, aI as OrderStatus, bG as Service, bJ as AvailableSlot, bK as DayAvailability, bP as CustomerBooking, bV as CancelBookingResult, z as ElementsOptions, cJ as AuthenticatedData, cF as AddressInfo, cG as PaymentMethodInfo, v as CimplifyElements, cL as ElementsCheckoutResult, _ as ProcessCheckoutOptions, aU as LineItem, bH as Staff } from './client-
|
|
5
|
-
import { y as Product, b as Pagination, g as CimplifyError, z as ProductWithDetails,
|
|
6
|
-
import { P as ProductWithPrice } from './price-
|
|
4
|
+
import { C as CimplifyClient, $ as ProcessCheckoutResult, a1 as CheckoutStatus, a2 as CheckoutStatusContext, bt as Location, bq as Business, aV as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, aI as OrderStatus, bG as Service, bJ as AvailableSlot, bK as DayAvailability, bP as CustomerBooking, bV as CancelBookingResult, z as ElementsOptions, cJ as AuthenticatedData, cF as AddressInfo, cG as PaymentMethodInfo, v as CimplifyElements, cL as ElementsCheckoutResult, _ as ProcessCheckoutOptions, aU as LineItem, bH as Staff } from './client-FNZzXO_v.js';
|
|
5
|
+
import { y as Product, b as Pagination, g as CimplifyError, z as ProductWithDetails, _ as Category, M as Money, aW as BundleSelectionInput, ao as ComponentSelectionInput, a0 as Collection, aw as ProductTaxonomy, ax as TaxonomyWithChildren, av as ProductTimeProfile, aA as Deal, aB as ProductDealInfo, aC as DiscountValidation, a5 as BundleSummary, ap as CompositePriceResult, C as CurrencyCode, B as ProductVariant, J as VariantAxisWithValues, U as AddOnWithOptions, aa as BundleComponentView, a3 as BundlePriceType, al as CompositeGroupView } from './payment-CO2tRThu.js';
|
|
6
|
+
import { P as ProductWithPrice } from './price-Bp6JlVzW.js';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
8
|
|
|
9
9
|
interface UserIdentity {
|
package/dist/react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkB2RTVYJR_js = require('./chunk-B2RTVYJR.js');
|
|
5
|
+
var chunk6SRY4DPY_js = require('./chunk-6SRY4DPY.js');
|
|
6
6
|
var chunkRYQ5IPWX_js = require('./chunk-RYQ5IPWX.js');
|
|
7
7
|
var React3 = require('react');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1011,7 +1011,7 @@ var DEFAULT_COUNTRY = "US";
|
|
|
1011
1011
|
function createDefaultClient() {
|
|
1012
1012
|
const processRef = globalThis.process;
|
|
1013
1013
|
const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
1014
|
-
return
|
|
1014
|
+
return chunkB2RTVYJR_js.createCimplifyClient({ publicKey: envPublicKey });
|
|
1015
1015
|
}
|
|
1016
1016
|
function getStoredLocationId() {
|
|
1017
1017
|
if (typeof window === "undefined" || !window.localStorage) {
|
|
@@ -4069,19 +4069,19 @@ function AuthElement({
|
|
|
4069
4069
|
}, [onReady, onAuthenticated, onRequiresOtp, onError]);
|
|
4070
4070
|
React3.useEffect(() => {
|
|
4071
4071
|
if (!elements || !containerRef.current) return;
|
|
4072
|
-
const element = elements.create(
|
|
4072
|
+
const element = elements.create(chunk6SRY4DPY_js.ELEMENT_TYPES.AUTH, { prefillEmail });
|
|
4073
4073
|
elementRef.current = element;
|
|
4074
|
-
element.on(
|
|
4074
|
+
element.on(chunk6SRY4DPY_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
4075
4075
|
element.on(
|
|
4076
|
-
|
|
4076
|
+
chunk6SRY4DPY_js.EVENT_TYPES.AUTHENTICATED,
|
|
4077
4077
|
(data) => onAuthenticatedRef.current?.(data)
|
|
4078
4078
|
);
|
|
4079
4079
|
element.on(
|
|
4080
|
-
|
|
4080
|
+
chunk6SRY4DPY_js.EVENT_TYPES.REQUIRES_OTP,
|
|
4081
4081
|
(data) => onRequiresOtpRef.current?.(data)
|
|
4082
4082
|
);
|
|
4083
4083
|
element.on(
|
|
4084
|
-
|
|
4084
|
+
chunk6SRY4DPY_js.EVENT_TYPES.ERROR,
|
|
4085
4085
|
(data) => onErrorRef.current?.(data)
|
|
4086
4086
|
);
|
|
4087
4087
|
element.mount(containerRef.current);
|
|
@@ -4110,15 +4110,15 @@ function AddressElement({
|
|
|
4110
4110
|
}, [onReady, onChange, onError]);
|
|
4111
4111
|
React3.useEffect(() => {
|
|
4112
4112
|
if (!elements || !containerRef.current) return;
|
|
4113
|
-
const element = elements.create(
|
|
4113
|
+
const element = elements.create(chunk6SRY4DPY_js.ELEMENT_TYPES.ADDRESS, { mode });
|
|
4114
4114
|
elementRef.current = element;
|
|
4115
|
-
element.on(
|
|
4115
|
+
element.on(chunk6SRY4DPY_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
4116
4116
|
element.on(
|
|
4117
|
-
|
|
4117
|
+
chunk6SRY4DPY_js.EVENT_TYPES.CHANGE,
|
|
4118
4118
|
(data) => onChangeRef.current?.(data)
|
|
4119
4119
|
);
|
|
4120
4120
|
element.on(
|
|
4121
|
-
|
|
4121
|
+
chunk6SRY4DPY_js.EVENT_TYPES.ERROR,
|
|
4122
4122
|
(data) => onErrorRef.current?.(data)
|
|
4123
4123
|
);
|
|
4124
4124
|
element.mount(containerRef.current);
|
|
@@ -4148,15 +4148,15 @@ function PaymentElement({
|
|
|
4148
4148
|
}, [onReady, onChange, onError]);
|
|
4149
4149
|
React3.useEffect(() => {
|
|
4150
4150
|
if (!elements || !containerRef.current) return;
|
|
4151
|
-
const element = elements.create(
|
|
4151
|
+
const element = elements.create(chunk6SRY4DPY_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
|
|
4152
4152
|
elementRef.current = element;
|
|
4153
|
-
element.on(
|
|
4153
|
+
element.on(chunk6SRY4DPY_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
4154
4154
|
element.on(
|
|
4155
|
-
|
|
4155
|
+
chunk6SRY4DPY_js.EVENT_TYPES.CHANGE,
|
|
4156
4156
|
(data) => onChangeRef.current?.(data)
|
|
4157
4157
|
);
|
|
4158
4158
|
element.on(
|
|
4159
|
-
|
|
4159
|
+
chunk6SRY4DPY_js.EVENT_TYPES.ERROR,
|
|
4160
4160
|
(data) => onErrorRef.current?.(data)
|
|
4161
4161
|
);
|
|
4162
4162
|
element.mount(containerRef.current);
|
|
@@ -4419,7 +4419,7 @@ function VariantSelector({
|
|
|
4419
4419
|
{
|
|
4420
4420
|
"data-cimplify-variant-name": true,
|
|
4421
4421
|
className: cn("flex-1 min-w-0 text-sm", classNames?.name),
|
|
4422
|
-
children:
|
|
4422
|
+
children: chunkB2RTVYJR_js.getVariantDisplayName(variant, productName)
|
|
4423
4423
|
}
|
|
4424
4424
|
),
|
|
4425
4425
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { "data-cimplify-variant-pricing": true, className: cn("text-sm text-muted-foreground", classNames?.pricing), children: [
|
|
@@ -5608,7 +5608,7 @@ function CartLineItemRow({
|
|
|
5608
5608
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-cimplify-cart-item": true, children: [
|
|
5609
5609
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-cimplify-cart-item-info": true, children: [
|
|
5610
5610
|
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-cimplify-cart-item-name": true, children: item.product.name }),
|
|
5611
|
-
item.variant && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-cimplify-cart-item-variant": true, children:
|
|
5611
|
+
item.variant && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-cimplify-cart-item-variant": true, children: chunkB2RTVYJR_js.getVariantDisplayName(item.variant, item.product.name) }),
|
|
5612
5612
|
item.addOnOptions && item.addOnOptions.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-cimplify-cart-item-addons": true, children: [
|
|
5613
5613
|
"+ ",
|
|
5614
5614
|
item.addOnOptions.map((opt) => opt.name).join(", ")
|
|
@@ -8470,7 +8470,7 @@ function BookingsPage({
|
|
|
8470
8470
|
|
|
8471
8471
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
8472
8472
|
enumerable: true,
|
|
8473
|
-
get: function () { return
|
|
8473
|
+
get: function () { return chunkB2RTVYJR_js.getVariantDisplayName; }
|
|
8474
8474
|
});
|
|
8475
8475
|
exports.Ad = Ad;
|
|
8476
8476
|
exports.AdProvider = AdProvider;
|
package/dist/react.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getVariantDisplayName, createCimplifyClient } from './chunk-
|
|
3
|
-
export { getVariantDisplayName } from './chunk-
|
|
4
|
-
import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-
|
|
2
|
+
import { getVariantDisplayName, createCimplifyClient } from './chunk-AFEE43MQ.mjs';
|
|
3
|
+
export { getVariantDisplayName } from './chunk-AFEE43MQ.mjs';
|
|
4
|
+
import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-7ACYNCNM.mjs';
|
|
5
5
|
import { isSupportedCurrency, formatPrice, parsePrice, isOnSale, getDiscountPercentage, getBasePrice } from './chunk-FTL2SXCG.mjs';
|
|
6
6
|
import React3, { createContext, useContext, useState, useEffect, useRef, useMemo, useSyncExternalStore, useCallback, useId } from 'react';
|
|
7
7
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Money, C as CurrencyCode,
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
1
|
+
import { M as Money, C as CurrencyCode, aL as PricePathTaxInfo, bw as PaymentErrorDetails, bu as PaymentResponse, bv as PaymentStatusResponse } from './payment-CO2tRThu.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-Dg7MJEsL.mjs';
|
|
3
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
4
4
|
|
|
5
5
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Money, C as CurrencyCode,
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
1
|
+
import { M as Money, C as CurrencyCode, aL as PricePathTaxInfo, bw as PaymentErrorDetails, bu as PaymentResponse, bv as PaymentStatusResponse } from './payment-CO2tRThu.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-Bp6JlVzW.js';
|
|
3
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
4
4
|
|
|
5
5
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|