@cimplify/sdk 0.106.0 → 0.106.1
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/{catalogue-CB44dO-g.d.mts → catalogue-CVKH9faR.d.mts} +2 -0
- package/dist/{catalogue-lUdp-1hu.d.ts → catalogue-ChBjPPME.d.ts} +2 -0
- package/dist/{chunk-DPVDLMLI.mjs → chunk-ABAK4YVY.mjs} +2 -39
- package/dist/{chunk-3BTMAWL7.mjs → chunk-IWXVKW22.mjs} +1 -1
- package/dist/{chunk-7SEOB5UW.js → chunk-LJSQ7TUV.js} +2 -2
- package/dist/{chunk-YARZTZTB.js → chunk-QKL5L5IU.js} +87 -128
- package/dist/{chunk-H2WXUTMT.js → chunk-SFG2LMRD.js} +65 -0
- package/dist/{chunk-RQT5BZ2Y.mjs → chunk-YHR6LFQ7.mjs} +61 -1
- package/dist/{client-BWe1KWMf.d.mts → client-BfKFK7cn.d.mts} +1 -1
- package/dist/{client-BQ_8FtA4.d.ts → client-DoczTJbs.d.ts} +1 -1
- package/dist/{index-aIQzSiP_.d.mts → index-DEUorPUO.d.mts} +1 -1
- package/dist/{index-C0k9om1S.d.ts → index-Dn6xCpDe.d.ts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +67 -67
- package/dist/index.mjs +3 -3
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +31 -31
- package/dist/react.mjs +2 -2
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +115 -115
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { j as AuthService, y as BusinessService, J as CartOperations, K as CatalogueQueries, _ as CheckoutOperations, _ as CheckoutService, a0 as CimplifyElement, a1 as CimplifyElements, ao as FetchQuoteInput, ax as FxService, aB as GetProductsOptions, aE as InventoryService, aI as LinkService, aM as LiteService, bb as OrderQueries, bs as PriceQuote, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bE as QuoteDynamicBuckets, bF as QuoteStatus, bG as QuoteUiMessage, bH as RefreshQuoteInput, bI as RefreshQuoteResult, c6 as SchedulingService, cL as createElements } from './catalogue-
|
|
1
|
+
export { j as AuthService, y as BusinessService, J as CartOperations, K as CatalogueQueries, _ as CheckoutOperations, _ as CheckoutService, a0 as CimplifyElement, a1 as CimplifyElements, ao as FetchQuoteInput, ax as FxService, aB as GetProductsOptions, aE as InventoryService, aI as LinkService, aM as LiteService, bb as OrderQueries, bs as PriceQuote, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bE as QuoteDynamicBuckets, bF as QuoteStatus, bG as QuoteUiMessage, bH as RefreshQuoteInput, bI as RefreshQuoteResult, c6 as SchedulingService, cL as createElements } from './catalogue-CVKH9faR.mjs';
|
|
2
2
|
export { bQ as ELEMENT_TYPES, bS as EVENT_TYPES, bV as ElementEventType, bW as ElementOptions, bX as ElementType, c0 as ElementsCheckoutData, c1 as ElementsCheckoutResult, c3 as ElementsOptions, cg as IframeToParentMessage, cy as MESSAGE_TYPES, df as ParentToIframeMessage } from './checkout-XoV4HNg2.mjs';
|
|
3
|
-
export { g as generateIdempotencyKey } from './index-
|
|
3
|
+
export { g as generateIdempotencyKey } from './index-DEUorPUO.mjs';
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { j as AuthService, y as BusinessService, J as CartOperations, K as CatalogueQueries, _ as CheckoutOperations, _ as CheckoutService, a0 as CimplifyElement, a1 as CimplifyElements, ao as FetchQuoteInput, ax as FxService, aB as GetProductsOptions, aE as InventoryService, aI as LinkService, aM as LiteService, bb as OrderQueries, bs as PriceQuote, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bE as QuoteDynamicBuckets, bF as QuoteStatus, bG as QuoteUiMessage, bH as RefreshQuoteInput, bI as RefreshQuoteResult, c6 as SchedulingService, cL as createElements } from './catalogue-
|
|
1
|
+
export { j as AuthService, y as BusinessService, J as CartOperations, K as CatalogueQueries, _ as CheckoutOperations, _ as CheckoutService, a0 as CimplifyElement, a1 as CimplifyElements, ao as FetchQuoteInput, ax as FxService, aB as GetProductsOptions, aE as InventoryService, aI as LinkService, aM as LiteService, bb as OrderQueries, bs as PriceQuote, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bE as QuoteDynamicBuckets, bF as QuoteStatus, bG as QuoteUiMessage, bH as RefreshQuoteInput, bI as RefreshQuoteResult, c6 as SchedulingService, cL as createElements } from './catalogue-ChBjPPME.js';
|
|
2
2
|
export { bQ as ELEMENT_TYPES, bS as EVENT_TYPES, bV as ElementEventType, bW as ElementOptions, bX as ElementType, c0 as ElementsCheckoutData, c1 as ElementsCheckoutResult, c3 as ElementsOptions, cg as IframeToParentMessage, cy as MESSAGE_TYPES, df as ParentToIframeMessage } from './checkout-XoV4HNg2.js';
|
|
3
|
-
export { g as generateIdempotencyKey } from './index-
|
|
3
|
+
export { g as generateIdempotencyKey } from './index-Dn6xCpDe.js';
|
package/dist/advanced.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSFG2LMRD_js = require('./chunk-SFG2LMRD.js');
|
|
4
4
|
require('./chunk-EV2EVOYS.js');
|
|
5
5
|
require('./chunk-UYFTOIFW.js');
|
|
6
6
|
require('./chunk-AVXA4F6G.js');
|
|
@@ -10,77 +10,77 @@ require('./chunk-OWW5GUSB.js');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AuthService", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSFG2LMRD_js.AuthService; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BusinessService", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSFG2LMRD_js.BusinessService; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "CartOperations", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkSFG2LMRD_js.CartOperations; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkSFG2LMRD_js.CatalogueQueries; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkSFG2LMRD_js.CheckoutService; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "CheckoutService", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkSFG2LMRD_js.CheckoutService; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkSFG2LMRD_js.CimplifyElement; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkSFG2LMRD_js.CimplifyElements; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkSFG2LMRD_js.ELEMENT_TYPES; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkSFG2LMRD_js.EVENT_TYPES; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FxService", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkSFG2LMRD_js.FxService; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "InventoryService", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkSFG2LMRD_js.InventoryService; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "LinkService", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkSFG2LMRD_js.LinkService; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "LiteService", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkSFG2LMRD_js.LiteService; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkSFG2LMRD_js.MESSAGE_TYPES; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "OrderQueries", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkSFG2LMRD_js.OrderQueries; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "SchedulingService", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkSFG2LMRD_js.SchedulingService; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "createElements", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkSFG2LMRD_js.createElements; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkSFG2LMRD_js.generateIdempotencyKey; }
|
|
86
86
|
});
|
package/dist/advanced.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-
|
|
1
|
+
export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-YHR6LFQ7.mjs';
|
|
2
2
|
import './chunk-33VCYWVL.mjs';
|
|
3
3
|
import './chunk-NYDVVNZI.mjs';
|
|
4
4
|
import './chunk-NJYR6GGM.mjs';
|
|
@@ -2057,6 +2057,8 @@ declare class CimplifyElements {
|
|
|
2057
2057
|
private businessIdResolvePromise;
|
|
2058
2058
|
private debug;
|
|
2059
2059
|
constructor(client: CimplifyClient, businessId?: string, options?: ElementsOptions);
|
|
2060
|
+
private stopSessionSync;
|
|
2061
|
+
private syncHostSession;
|
|
2060
2062
|
create(type: ElementType, options?: ElementOptions): CimplifyElement;
|
|
2061
2063
|
getElement(type: ElementType): CimplifyElement | undefined;
|
|
2062
2064
|
_removeElement(type: ElementType, instance: CimplifyElement): void;
|
|
@@ -2057,6 +2057,8 @@ declare class CimplifyElements {
|
|
|
2057
2057
|
private businessIdResolvePromise;
|
|
2058
2058
|
private debug;
|
|
2059
2059
|
constructor(client: CimplifyClient, businessId?: string, options?: ElementsOptions);
|
|
2060
|
+
private stopSessionSync;
|
|
2061
|
+
private syncHostSession;
|
|
2060
2062
|
create(type: ElementType, options?: ElementOptions): CimplifyElement;
|
|
2061
2063
|
getElement(type: ElementType): CimplifyElement | undefined;
|
|
2062
2064
|
_removeElement(type: ElementType, instance: CimplifyElement): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { messagePreview } from './chunk-U4MW6PYU.mjs';
|
|
2
|
-
import { ok, err, safe, generateIdempotencyKey, createDefaultPaymentAuthorizationAdapterRegistry, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-
|
|
2
|
+
import { ok, err, safe, generateIdempotencyKey, SESSION_CLEARED, SESSION_CLAIMED, createClientEvents, createDefaultPaymentAuthorizationAdapterRegistry, AUTH_TOKEN_CHANGED, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-YHR6LFQ7.mjs';
|
|
3
3
|
import { PURCHASE_INTENT_RESOLVE_STATUS, PURCHASE_INTENT_CONFIRM_STATUS, PURCHASE_INTENT_RESOLUTION_KIND, PURCHASE_INTENT_ACTION_DECISION, CimplifyError, PURCHASE_INTENT_ERROR_CODE, ErrorCode, IdempotencyMismatchError, enrichError } from './chunk-NJYR6GGM.mjs';
|
|
4
4
|
|
|
5
5
|
// src/types/observability.ts
|
|
@@ -1075,43 +1075,6 @@ function chatRealtimeUpdateFromWire(envelope) {
|
|
|
1075
1075
|
return { kind: "none" };
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
|
-
// src/internal/events.ts
|
|
1079
|
-
var MUTATION_ERROR = "mutation:error";
|
|
1080
|
-
var AUTH_TOKEN_CHANGED = "auth:token-changed";
|
|
1081
|
-
var SESSION_CLAIMED = "session:claimed";
|
|
1082
|
-
var SESSION_CLEARED = "session:cleared";
|
|
1083
|
-
function createClientEvents() {
|
|
1084
|
-
const listeners = /* @__PURE__ */ new Map();
|
|
1085
|
-
return {
|
|
1086
|
-
on(name, listener) {
|
|
1087
|
-
let set = listeners.get(name);
|
|
1088
|
-
if (!set) {
|
|
1089
|
-
set = /* @__PURE__ */ new Set();
|
|
1090
|
-
listeners.set(name, set);
|
|
1091
|
-
}
|
|
1092
|
-
set.add(listener);
|
|
1093
|
-
return () => {
|
|
1094
|
-
set?.delete(listener);
|
|
1095
|
-
};
|
|
1096
|
-
},
|
|
1097
|
-
off(name, listener) {
|
|
1098
|
-
listeners.get(name)?.delete(listener);
|
|
1099
|
-
},
|
|
1100
|
-
emit(name, payload) {
|
|
1101
|
-
const set = listeners.get(name);
|
|
1102
|
-
if (!set) return;
|
|
1103
|
-
const snapshot = Array.from(set);
|
|
1104
|
-
for (const listener of snapshot) {
|
|
1105
|
-
try {
|
|
1106
|
-
listener(payload);
|
|
1107
|
-
} catch (err2) {
|
|
1108
|
-
console.error(`[Cimplify] event listener for "${name}" threw:`, err2);
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
1078
|
// src/support.ts
|
|
1116
1079
|
var CLAIM_TIMEOUT_MS = 15e3;
|
|
1117
1080
|
var SupportService = class {
|
|
@@ -2428,4 +2391,4 @@ function createCimplifyClient(config = {}) {
|
|
|
2428
2391
|
return new CimplifyClient(config);
|
|
2429
2392
|
}
|
|
2430
2393
|
|
|
2431
|
-
export {
|
|
2394
|
+
export { ActivityService, CimplifyClient, DeliveryService, HostedPurchaseIntentService, PURCHASE_INTENT_ROUTE, PlacesService, PurchaseIntentResolver, PurchaseIntentService, SESSION_CHANGE_SOURCE, StoreCreditQueries, SubscriptionService, SupportService, UploadService, chatRealtimeUpdateFromWire, createCimplifyClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createMockApp } from './chunk-L4XKIMUO.mjs';
|
|
2
|
-
import { createCimplifyClient } from './chunk-
|
|
2
|
+
import { createCimplifyClient } from './chunk-ABAK4YVY.mjs';
|
|
3
3
|
import { PAYMENT_METHOD, ORDER_TYPE, AUTHORIZATION_TYPE, CHECKOUT_NEXT_ACTION } from './chunk-33VCYWVL.mjs';
|
|
4
4
|
import { PURCHASE_INTENT_SOURCE_KIND, PURCHASE_INTENT_SELLABLE_KIND, PURCHASE_INTENT_OFFER_KIND, PURCHASE_INTENT_LINE_CONFIGURATION_KIND, PURCHASE_INTENT_PAYMENT_METHOD, PURCHASE_INTENT_MOBILE_MONEY_NETWORK, MOBILE_MONEY_TENDER_AUTHORITY_KIND, CHECKOUT_COMPLIANCE_REASON, CHECKOUT_COMPLIANCE_LANE, PURCHASE_SURFACE, PURCHASE_DISPOSITION, PAYMENT_INSTRUMENT_DISPLAY_KIND, CHECKOUT_PROTECTION_STATUS, PAYMENT_OPTION_NEXT_ACTION, PAYMENT_OPTION_STATUS, PURCHASE_INTENT_PAYMENT_PROVIDER, PAYMENT_COLLECTION_MODE, PURCHASING_PRINCIPAL_KIND, CHECKOUT_PURCHASE_SURFACE, NATIVE_PURCHASE_PLATFORM, PURCHASE_INTENT_STATUS, CHECKOUT_TERMS_COMPONENT, CHECKOUT_TERMS_DELTA_KIND, CHECKOUT_MATERIAL_TERMS_COMPONENT, PURCHASE_INTENT_CONFIRM_STATUS, CHECKOUT_INVALIDATION_REASON } from './chunk-NJYR6GGM.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkNJK3THWT_js = require('./chunk-NJK3THWT.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkQKL5L5IU_js = require('./chunk-QKL5L5IU.js');
|
|
5
5
|
var chunkEV2EVOYS_js = require('./chunk-EV2EVOYS.js');
|
|
6
6
|
var chunkAVXA4F6G_js = require('./chunk-AVXA4F6G.js');
|
|
7
7
|
var zod = require('zod');
|
|
@@ -1204,7 +1204,7 @@ function createTestClient(options = {}) {
|
|
|
1204
1204
|
if (echoed) sessionToken = echoed;
|
|
1205
1205
|
return res;
|
|
1206
1206
|
};
|
|
1207
|
-
const client =
|
|
1207
|
+
const client = chunkQKL5L5IU_js.createCimplifyClient({
|
|
1208
1208
|
baseUrl: TEST_BASE_URL,
|
|
1209
1209
|
// Link mock lives at /v1/link on the same Hono app, so point the SDK's
|
|
1210
1210
|
// separate Link transport at the same TEST_BASE_URL.
|