@cimplify/sdk 0.100.4 → 0.100.6
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/{chunk-RWR7JF7F.mjs → chunk-BMFWQNYZ.mjs} +9 -2
- package/dist/{chunk-LMD7B33E.js → chunk-BSZJSR62.js} +2 -2
- package/dist/{chunk-JEVCHTKZ.js → chunk-D3FWJB7Y.js} +9 -2
- package/dist/{chunk-HSDQWJLA.mjs → chunk-KLJLKT6C.mjs} +1 -1
- package/dist/index.js +10 -10
- package/dist/index.mjs +1 -1
- package/dist/lint-rules.json +1 -1
- package/dist/lint.d.mts +10 -7
- package/dist/lint.d.ts +10 -7
- package/dist/lint.js +1 -1
- package/dist/lint.mjs +1 -1
- package/dist/react.js +10 -10
- package/dist/react.mjs +1 -1
- package/dist/server.js +2 -2
- package/dist/server.mjs +1 -1
- package/dist/testing/suite.js +21 -21
- package/dist/testing/suite.mjs +2 -2
- package/dist/testing.js +77 -77
- package/dist/testing.mjs +3 -3
- package/package.json +1 -1
|
@@ -726,6 +726,7 @@ var SESSION_TOKEN_STORAGE_KEY = "cimplify_session_token";
|
|
|
726
726
|
var SESSION_SYNC_STORAGE_KEY = "cimplify_session_sync";
|
|
727
727
|
var ORDER_TOKEN_PREFIX = "cimplify_ot_";
|
|
728
728
|
var SESSION_TOKEN_HEADER = "x-session-token";
|
|
729
|
+
var LOCATION_ID_QUERY_PARAMETER = "location_id";
|
|
729
730
|
var ORDER_TOKEN_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
730
731
|
var DEFAULT_TIMEOUT_MS = 5e3;
|
|
731
732
|
var DEFAULT_MAX_RETRIES = 3;
|
|
@@ -878,8 +879,14 @@ var CimplifyClient = class {
|
|
|
878
879
|
const url = `${base}${path}`;
|
|
879
880
|
const locationId = this.context.location_id;
|
|
880
881
|
if (!locationId) return url;
|
|
881
|
-
const
|
|
882
|
-
|
|
882
|
+
const fragmentIndex = url.indexOf("#");
|
|
883
|
+
const urlWithoutFragment = fragmentIndex === -1 ? url : url.slice(0, fragmentIndex);
|
|
884
|
+
const fragment = fragmentIndex === -1 ? "" : url.slice(fragmentIndex);
|
|
885
|
+
const queryIndex = urlWithoutFragment.indexOf("?");
|
|
886
|
+
const query = queryIndex === -1 ? "" : urlWithoutFragment.slice(queryIndex + 1);
|
|
887
|
+
if (new URLSearchParams(query).has(LOCATION_ID_QUERY_PARAMETER)) return url;
|
|
888
|
+
const separator = queryIndex === -1 ? "?" : "&";
|
|
889
|
+
return `${urlWithoutFragment}${separator}${LOCATION_ID_QUERY_PARAMETER}=${encodeURIComponent(locationId)}${fragment}`;
|
|
883
890
|
}
|
|
884
891
|
stopTrackingPageViews() {
|
|
885
892
|
this.stopPageViewTracking?.();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkPNTINRAU_js = require('./chunk-PNTINRAU.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkD3FWJB7Y_js = require('./chunk-D3FWJB7Y.js');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
7
7
|
var cimplifyRegistry = zod.z.registry();
|
|
@@ -619,7 +619,7 @@ function createTestClient(options = {}) {
|
|
|
619
619
|
if (echoed) sessionToken = echoed;
|
|
620
620
|
return res;
|
|
621
621
|
};
|
|
622
|
-
const client =
|
|
622
|
+
const client = chunkD3FWJB7Y_js.createCimplifyClient({
|
|
623
623
|
baseUrl: TEST_BASE_URL,
|
|
624
624
|
// Link mock lives at /v1/link on the same Hono app, so point the SDK's
|
|
625
625
|
// separate Link transport at the same TEST_BASE_URL.
|
|
@@ -728,6 +728,7 @@ var SESSION_TOKEN_STORAGE_KEY = "cimplify_session_token";
|
|
|
728
728
|
var SESSION_SYNC_STORAGE_KEY = "cimplify_session_sync";
|
|
729
729
|
var ORDER_TOKEN_PREFIX = "cimplify_ot_";
|
|
730
730
|
var SESSION_TOKEN_HEADER = "x-session-token";
|
|
731
|
+
var LOCATION_ID_QUERY_PARAMETER = "location_id";
|
|
731
732
|
var ORDER_TOKEN_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
732
733
|
var DEFAULT_TIMEOUT_MS = 5e3;
|
|
733
734
|
var DEFAULT_MAX_RETRIES = 3;
|
|
@@ -880,8 +881,14 @@ var CimplifyClient = class {
|
|
|
880
881
|
const url = `${base}${path}`;
|
|
881
882
|
const locationId = this.context.location_id;
|
|
882
883
|
if (!locationId) return url;
|
|
883
|
-
const
|
|
884
|
-
|
|
884
|
+
const fragmentIndex = url.indexOf("#");
|
|
885
|
+
const urlWithoutFragment = fragmentIndex === -1 ? url : url.slice(0, fragmentIndex);
|
|
886
|
+
const fragment = fragmentIndex === -1 ? "" : url.slice(fragmentIndex);
|
|
887
|
+
const queryIndex = urlWithoutFragment.indexOf("?");
|
|
888
|
+
const query = queryIndex === -1 ? "" : urlWithoutFragment.slice(queryIndex + 1);
|
|
889
|
+
if (new URLSearchParams(query).has(LOCATION_ID_QUERY_PARAMETER)) return url;
|
|
890
|
+
const separator = queryIndex === -1 ? "?" : "&";
|
|
891
|
+
return `${urlWithoutFragment}${separator}${LOCATION_ID_QUERY_PARAMETER}=${encodeURIComponent(locationId)}${fragment}`;
|
|
885
892
|
}
|
|
886
893
|
stopTrackingPageViews() {
|
|
887
894
|
this.stopPageViewTracking?.();
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkQPRI2NII_js = require('./chunk-QPRI2NII.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkD3FWJB7Y_js = require('./chunk-D3FWJB7Y.js');
|
|
6
6
|
var chunk3HU5I5VG_js = require('./chunk-3HU5I5VG.js');
|
|
7
7
|
var chunkWMEC5JWN_js = require('./chunk-WMEC5JWN.js');
|
|
8
8
|
var chunkNIOUSKQQ_js = require('./chunk-NIOUSKQQ.js');
|
|
@@ -183,39 +183,39 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "ActivityService", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkD3FWJB7Y_js.ActivityService; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkD3FWJB7Y_js.CimplifyClient; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "DeliveryService", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkD3FWJB7Y_js.DeliveryService; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "PlacesService", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkD3FWJB7Y_js.PlacesService; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "StoreCreditQueries", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkD3FWJB7Y_js.StoreCreditQueries; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkD3FWJB7Y_js.SubscriptionService; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "SupportService", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkD3FWJB7Y_js.SupportService; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "UploadService", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkD3FWJB7Y_js.UploadService; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkD3FWJB7Y_js.createCimplifyClient; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
221
221
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-4G5UWFC3.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-BMFWQNYZ.mjs';
|
|
4
4
|
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-Z7M6GAHS.mjs';
|
|
5
5
|
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-Z7M6GAHS.mjs';
|
|
6
6
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-DLW3RWRK.mjs';
|
package/dist/lint-rules.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"name":"@cimplify/sdk/starter","rules":[{"id":"sdk/check-result-ok","severity":"error","message":"Check `result.ok` before reading `result.value`.","help":"Cimplify SDK calls return Result values. Handle the error branch before using the value.","primitive":{"kind":"required-result-check","factories":[{"source":"@cimplify/sdk","imported":["createCimplifyClient"]},{"source":"@cimplify/sdk/server","imported":["getServerClient"]}],"guardProperty":"ok","valueProperty":"value"}},{"id":"sdk/render-price-component","severity":"error","message":"Render money with the SDK `Price` component.","help":"`Price` applies the active business currency and locale consistently.","primitive":{"kind":"required-wrapper-call","context":"jsx-child","activationImports":[{"value":"@cimplify/sdk","match":"prefix"}],"subjectNamePattern":"(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
1
|
+
{"schemaVersion":1,"name":"@cimplify/sdk/starter","rules":[{"id":"sdk/check-result-ok","severity":"error","message":"Check `result.ok` before reading `result.value`.","help":"Cimplify SDK calls return Result values. Handle the error branch before using the value.","primitive":{"kind":"required-result-check","factories":[{"source":"@cimplify/sdk","imported":["createCimplifyClient"]},{"source":"@cimplify/sdk/server","imported":["getServerClient"]}],"guardProperty":"ok","valueProperty":"value"}},{"id":"sdk/render-price-component","severity":"error","message":"Render money with the SDK `Price` component.","help":"`Price` applies the active business currency and locale consistently.","primitive":{"kind":"required-wrapper-call","context":"jsx-child","activationImports":[{"value":"@cimplify/sdk","match":"prefix"}],"subjectNamePattern":"(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$","wrapper":{"syntax":"jsx","source":"@cimplify/sdk/react","imported":"Price","prop":"amount"}},"fix":{"kind":"wrap-jsx-expression"}},{"id":"sdk/parse-price-before-math","severity":"error","message":"Call `parsePrice` before using a money value in numeric operations.","help":"Money arrives over the wire as a decimal string; implicit coercion can produce incorrect comparisons and totals.","primitive":{"kind":"required-wrapper-call","context":"numeric-operation","activationImports":[{"value":"@cimplify/sdk","match":"prefix"}],"subjectNamePattern":"(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$","wrapper":{"syntax":"call","imports":[{"source":"@cimplify/sdk","imported":["parsePrice"]},{"source":"@cimplify/sdk/utils","imported":["parsePrice"]}]},"operators":["+","-","*","/","%","**","<","<=",">",">="]}},{"id":"sdk/no-react-query","severity":"error","message":"Use Cimplify SDK hooks instead of React Query.","help":"Use the SDK hooks and their provider-owned cache so cart, catalogue, and account state stay coherent.","primitive":{"kind":"banned-import","sources":[{"value":"react-query","match":"exact"},{"value":"@tanstack/react-query","match":"prefix"}]}},{"id":"sdk/no-cookie-in-cache-key","severity":"error","message":"Remove the Cookie header from this cacheable request.","help":"Cookie-bearing requests bypass the shared cache by design. Keep personalized cart/account reads in a client island.","primitive":{"kind":"banned-call-argument","callees":["fetch","Request"],"globalCalleesOnly":true,"argumentIndexes":[1],"objectPaths":[["headers","cookie"]],"caseInsensitive":true},"fix":{"kind":"remove-object-property"}},{"id":"ui/no-raw-img","severity":"warning","message":"Use `next/image` instead of a raw `<img>` element.","help":"The storefront image loader supplies responsive sizes, modern formats, and intrinsic dimensions.","primitive":{"kind":"banned-jsx-element","elements":["img"]}},{"id":"ui/theme-tokens-only","severity":"warning","message":"Use storefront theme tokens instead of hard-coded color utilities.","help":"Define palette changes in `app/globals.css` and consume semantic utilities such as `bg-background` and `text-foreground`.","primitive":{"kind":"banned-classname-pattern","patterns":["^(?:accent|bg|border|caret|decoration|divide|fill|from|outline|placeholder|ring|shadow|stroke|text|to|via)-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950)$","^(?:accent|bg|border|caret|decoration|divide|fill|from|outline|placeholder|ring|shadow|stroke|text|to|via)-(?:black|white)$","^(?:accent|bg|border|caret|decoration|divide|fill|from|outline|placeholder|ring|shadow|stroke|text|to|via)-\\[(?:#|rgba?\\(|hsla?\\(|oklch\\(|oklab\\(|lab\\(|lch\\(|color:)"],"replacements":[{"from":"bg-white","to":"bg-background"},{"from":"bg-black","to":"bg-foreground"},{"from":"text-black","to":"text-foreground"},{"from":"border-black","to":"border-foreground"},{"from":"border-white","to":"border-background"}]},"fix":{"kind":"replace-classname"}}]}
|
package/dist/lint.d.mts
CHANGED
|
@@ -30,7 +30,10 @@ interface RequiredWrapperCallPrimitive {
|
|
|
30
30
|
readonly context: WrapperContext;
|
|
31
31
|
/** The rule is inactive unless the file imports one of these modules. */
|
|
32
32
|
readonly activationImports: readonly ImportSourcePattern[];
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Regular-expression source matched case-insensitively against both the raw identifier/property
|
|
35
|
+
* name and a camelCase/PascalCase form normalized to lowercase snake_case.
|
|
36
|
+
*/
|
|
34
37
|
readonly subjectNamePattern: string;
|
|
35
38
|
readonly wrapper: JsxWrapper | CallWrapper;
|
|
36
39
|
readonly operators?: readonly string[];
|
|
@@ -137,7 +140,7 @@ declare const renderPriceComponentRule: {
|
|
|
137
140
|
readonly value: "@cimplify/sdk";
|
|
138
141
|
readonly match: "prefix";
|
|
139
142
|
}];
|
|
140
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
143
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
141
144
|
readonly wrapper: {
|
|
142
145
|
readonly syntax: "jsx";
|
|
143
146
|
readonly source: "@cimplify/sdk/react";
|
|
@@ -161,7 +164,7 @@ declare const parsePriceBeforeMathRule: {
|
|
|
161
164
|
readonly value: "@cimplify/sdk";
|
|
162
165
|
readonly match: "prefix";
|
|
163
166
|
}];
|
|
164
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
167
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
165
168
|
readonly wrapper: {
|
|
166
169
|
readonly syntax: "call";
|
|
167
170
|
readonly imports: readonly [{
|
|
@@ -281,7 +284,7 @@ declare const starterLintRuleSet: LintRuleSet & {
|
|
|
281
284
|
readonly value: "@cimplify/sdk";
|
|
282
285
|
readonly match: "prefix";
|
|
283
286
|
}];
|
|
284
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
287
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
285
288
|
readonly wrapper: {
|
|
286
289
|
readonly syntax: "jsx";
|
|
287
290
|
readonly source: "@cimplify/sdk/react";
|
|
@@ -304,7 +307,7 @@ declare const starterLintRuleSet: LintRuleSet & {
|
|
|
304
307
|
readonly value: "@cimplify/sdk";
|
|
305
308
|
readonly match: "prefix";
|
|
306
309
|
}];
|
|
307
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
310
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
308
311
|
readonly wrapper: {
|
|
309
312
|
readonly syntax: "call";
|
|
310
313
|
readonly imports: readonly [{
|
|
@@ -416,7 +419,7 @@ declare const starterLintRules: readonly LintRule[] & readonly [{
|
|
|
416
419
|
readonly value: "@cimplify/sdk";
|
|
417
420
|
readonly match: "prefix";
|
|
418
421
|
}];
|
|
419
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
422
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
420
423
|
readonly wrapper: {
|
|
421
424
|
readonly syntax: "jsx";
|
|
422
425
|
readonly source: "@cimplify/sdk/react";
|
|
@@ -439,7 +442,7 @@ declare const starterLintRules: readonly LintRule[] & readonly [{
|
|
|
439
442
|
readonly value: "@cimplify/sdk";
|
|
440
443
|
readonly match: "prefix";
|
|
441
444
|
}];
|
|
442
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
445
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
443
446
|
readonly wrapper: {
|
|
444
447
|
readonly syntax: "call";
|
|
445
448
|
readonly imports: readonly [{
|
package/dist/lint.d.ts
CHANGED
|
@@ -30,7 +30,10 @@ interface RequiredWrapperCallPrimitive {
|
|
|
30
30
|
readonly context: WrapperContext;
|
|
31
31
|
/** The rule is inactive unless the file imports one of these modules. */
|
|
32
32
|
readonly activationImports: readonly ImportSourcePattern[];
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Regular-expression source matched case-insensitively against both the raw identifier/property
|
|
35
|
+
* name and a camelCase/PascalCase form normalized to lowercase snake_case.
|
|
36
|
+
*/
|
|
34
37
|
readonly subjectNamePattern: string;
|
|
35
38
|
readonly wrapper: JsxWrapper | CallWrapper;
|
|
36
39
|
readonly operators?: readonly string[];
|
|
@@ -137,7 +140,7 @@ declare const renderPriceComponentRule: {
|
|
|
137
140
|
readonly value: "@cimplify/sdk";
|
|
138
141
|
readonly match: "prefix";
|
|
139
142
|
}];
|
|
140
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
143
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
141
144
|
readonly wrapper: {
|
|
142
145
|
readonly syntax: "jsx";
|
|
143
146
|
readonly source: "@cimplify/sdk/react";
|
|
@@ -161,7 +164,7 @@ declare const parsePriceBeforeMathRule: {
|
|
|
161
164
|
readonly value: "@cimplify/sdk";
|
|
162
165
|
readonly match: "prefix";
|
|
163
166
|
}];
|
|
164
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
167
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
165
168
|
readonly wrapper: {
|
|
166
169
|
readonly syntax: "call";
|
|
167
170
|
readonly imports: readonly [{
|
|
@@ -281,7 +284,7 @@ declare const starterLintRuleSet: LintRuleSet & {
|
|
|
281
284
|
readonly value: "@cimplify/sdk";
|
|
282
285
|
readonly match: "prefix";
|
|
283
286
|
}];
|
|
284
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
287
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
285
288
|
readonly wrapper: {
|
|
286
289
|
readonly syntax: "jsx";
|
|
287
290
|
readonly source: "@cimplify/sdk/react";
|
|
@@ -304,7 +307,7 @@ declare const starterLintRuleSet: LintRuleSet & {
|
|
|
304
307
|
readonly value: "@cimplify/sdk";
|
|
305
308
|
readonly match: "prefix";
|
|
306
309
|
}];
|
|
307
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
310
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
308
311
|
readonly wrapper: {
|
|
309
312
|
readonly syntax: "call";
|
|
310
313
|
readonly imports: readonly [{
|
|
@@ -416,7 +419,7 @@ declare const starterLintRules: readonly LintRule[] & readonly [{
|
|
|
416
419
|
readonly value: "@cimplify/sdk";
|
|
417
420
|
readonly match: "prefix";
|
|
418
421
|
}];
|
|
419
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
422
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
420
423
|
readonly wrapper: {
|
|
421
424
|
readonly syntax: "jsx";
|
|
422
425
|
readonly source: "@cimplify/sdk/react";
|
|
@@ -439,7 +442,7 @@ declare const starterLintRules: readonly LintRule[] & readonly [{
|
|
|
439
442
|
readonly value: "@cimplify/sdk";
|
|
440
443
|
readonly match: "prefix";
|
|
441
444
|
}];
|
|
442
|
-
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
445
|
+
readonly subjectNamePattern: "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
443
446
|
readonly wrapper: {
|
|
444
447
|
readonly syntax: "call";
|
|
445
448
|
readonly imports: readonly [{
|
package/dist/lint.js
CHANGED
|
@@ -395,7 +395,7 @@ function defineLintRuleSet(options) {
|
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
// src/lint/rules.ts
|
|
398
|
-
var MONEY_NAME_PATTERN = "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
398
|
+
var MONEY_NAME_PATTERN = "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
399
399
|
var SDK_CLIENT_FACTORIES = [
|
|
400
400
|
{ source: "@cimplify/sdk", imported: ["createCimplifyClient"] },
|
|
401
401
|
{ source: "@cimplify/sdk/server", imported: ["getServerClient"] }
|
package/dist/lint.mjs
CHANGED
|
@@ -393,7 +393,7 @@ function defineLintRuleSet(options) {
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
// src/lint/rules.ts
|
|
396
|
-
var MONEY_NAME_PATTERN = "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)
|
|
396
|
+
var MONEY_NAME_PATTERN = "(?:^|_)(?:price|amount|subtotal|total|tax|fee|discount|cost)$";
|
|
397
397
|
var SDK_CLIENT_FACTORIES = [
|
|
398
398
|
{ source: "@cimplify/sdk", imported: ["createCimplifyClient"] },
|
|
399
399
|
{ source: "@cimplify/sdk/server", imported: ["getServerClient"] }
|
package/dist/react.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkXREIZ56K_js = require('./chunk-XREIZ56K.js');
|
|
5
5
|
var chunkQPRI2NII_js = require('./chunk-QPRI2NII.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkD3FWJB7Y_js = require('./chunk-D3FWJB7Y.js');
|
|
7
7
|
var chunk3HU5I5VG_js = require('./chunk-3HU5I5VG.js');
|
|
8
8
|
var chunkWMEC5JWN_js = require('./chunk-WMEC5JWN.js');
|
|
9
9
|
var chunkNIOUSKQQ_js = require('./chunk-NIOUSKQQ.js');
|
|
@@ -845,7 +845,7 @@ async function syncFromServer(entry) {
|
|
|
845
845
|
return next;
|
|
846
846
|
}
|
|
847
847
|
function emitMutationError(entry, operation, opId, idempotencyKey, error) {
|
|
848
|
-
entry.client.events.emit(
|
|
848
|
+
entry.client.events.emit(chunkD3FWJB7Y_js.MUTATION_ERROR, {
|
|
849
849
|
service: "cart",
|
|
850
850
|
operation,
|
|
851
851
|
opId,
|
|
@@ -885,10 +885,10 @@ function getOrCreateStore(params) {
|
|
|
885
885
|
syncTail: Promise.resolve(),
|
|
886
886
|
failedOpRemovers: /* @__PURE__ */ new Set()
|
|
887
887
|
};
|
|
888
|
-
client.events.on(
|
|
888
|
+
client.events.on(chunkD3FWJB7Y_js.SESSION_CLAIMED, () => {
|
|
889
889
|
if (entry.initialized) void syncFromServer(entry);
|
|
890
890
|
});
|
|
891
|
-
client.events.on(
|
|
891
|
+
client.events.on(chunkD3FWJB7Y_js.SESSION_CLEARED, () => {
|
|
892
892
|
if (entry.initialized) void syncFromServer(entry);
|
|
893
893
|
});
|
|
894
894
|
cartStores.set(storeKey, entry);
|
|
@@ -1192,7 +1192,7 @@ var DEFAULT_COUNTRY = "US";
|
|
|
1192
1192
|
function createDefaultClient() {
|
|
1193
1193
|
const processRef = globalThis.process;
|
|
1194
1194
|
const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
1195
|
-
return
|
|
1195
|
+
return chunkD3FWJB7Y_js.createCimplifyClient({ publicKey: envPublicKey });
|
|
1196
1196
|
}
|
|
1197
1197
|
function getStoredLocationId() {
|
|
1198
1198
|
if (typeof window === "undefined" || !window.localStorage) {
|
|
@@ -4972,9 +4972,9 @@ function useClientSessionEpoch(client) {
|
|
|
4972
4972
|
const subscribe = React14.useCallback(
|
|
4973
4973
|
(notify) => {
|
|
4974
4974
|
const unsubscribe = [
|
|
4975
|
-
client.events.on(
|
|
4976
|
-
client.events.on(
|
|
4977
|
-
client.events.on(
|
|
4975
|
+
client.events.on(chunkD3FWJB7Y_js.AUTH_TOKEN_CHANGED, notify),
|
|
4976
|
+
client.events.on(chunkD3FWJB7Y_js.SESSION_CLAIMED, notify),
|
|
4977
|
+
client.events.on(chunkD3FWJB7Y_js.SESSION_CLEARED, notify)
|
|
4978
4978
|
];
|
|
4979
4979
|
return () => {
|
|
4980
4980
|
for (const stopListening of unsubscribe) {
|
|
@@ -6304,7 +6304,7 @@ function useChat(options = {}) {
|
|
|
6304
6304
|
const watchSessionClaims = React14.useCallback(() => {
|
|
6305
6305
|
const c = clientRef.current;
|
|
6306
6306
|
if (!c || claimUnsubRef.current) return;
|
|
6307
|
-
const unsubClaimed = c.events.on(
|
|
6307
|
+
const unsubClaimed = c.events.on(chunkD3FWJB7Y_js.SESSION_CLAIMED, (event) => {
|
|
6308
6308
|
setClaimedAs(event.customerName || c.support.claimedCustomerName || null);
|
|
6309
6309
|
if (!openedRef.current) {
|
|
6310
6310
|
void openIfExisting();
|
|
@@ -6313,7 +6313,7 @@ function useChat(options = {}) {
|
|
|
6313
6313
|
connectWebSocket();
|
|
6314
6314
|
void resyncConversation();
|
|
6315
6315
|
});
|
|
6316
|
-
const unsubCleared = c.events.on(
|
|
6316
|
+
const unsubCleared = c.events.on(chunkD3FWJB7Y_js.SESSION_CLEARED, resetConversation);
|
|
6317
6317
|
claimUnsubRef.current = () => {
|
|
6318
6318
|
unsubClaimed();
|
|
6319
6319
|
unsubCleared();
|
package/dist/react.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitGenUIContent, messagePreview } from './chunk-U4MW6PYU.mjs';
|
|
|
3
3
|
export { messagePreview, splitGenUIContent } from './chunk-U4MW6PYU.mjs';
|
|
4
4
|
import { DURATION_UNIT, getVariantDisplayName, INPUT_FIELD_TYPE, isMultiDayService, serviceBillingMultiplier, PRODUCT_TYPE, BOUNDARY_KIND, resolveGallery, chatMessageCards, RENDER_HINT, DEFAULT_CDN_BASE_URL } from './chunk-4G5UWFC3.mjs';
|
|
5
5
|
export { getVariantDisplayName } from './chunk-4G5UWFC3.mjs';
|
|
6
|
-
import { SESSION_CLAIMED, SESSION_CLEARED, createCimplifyClient, AUTH_TOKEN_CHANGED, MUTATION_ERROR } from './chunk-
|
|
6
|
+
import { SESSION_CLAIMED, SESSION_CLEARED, createCimplifyClient, AUTH_TOKEN_CHANGED, MUTATION_ERROR } from './chunk-BMFWQNYZ.mjs';
|
|
7
7
|
import { generateIdempotencyKey, ELEMENT_TYPES, EVENT_TYPES, startSignIn } from './chunk-Z7M6GAHS.mjs';
|
|
8
8
|
import { parsePrice, formatMoney, formatPrice, getVariantUnitPrice, getProductCurrency, getUnitPriceAtQuantity, isOnSale, getDiscountPercentage, getBasePrice, getPriceRange, formatPriceRange } from './chunk-DLW3RWRK.mjs';
|
|
9
9
|
import { isSupportedCurrency, currencyCode, CimplifyError } from './chunk-O3YUHLZL.mjs';
|
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkD3FWJB7Y_js = require('./chunk-D3FWJB7Y.js');
|
|
4
4
|
var chunk3HU5I5VG_js = require('./chunk-3HU5I5VG.js');
|
|
5
5
|
require('./chunk-WMEC5JWN.js');
|
|
6
6
|
var chunkNIOUSKQQ_js = require('./chunk-NIOUSKQQ.js');
|
|
@@ -26,7 +26,7 @@ function readEnv(...keys) {
|
|
|
26
26
|
var getServerClient = react.cache((opts = {}) => {
|
|
27
27
|
const baseUrl = opts.apiUrl ?? readEnv("CIMPLIFY_API_URL", "NEXT_PUBLIC_CIMPLIFY_API_URL") ?? defaultBaseUrl();
|
|
28
28
|
const publicKey = opts.secretKey ?? readEnv("CIMPLIFY_SECRET_KEY", "NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY") ?? "mock-dev";
|
|
29
|
-
const client =
|
|
29
|
+
const client = chunkD3FWJB7Y_js.createCimplifyClient({
|
|
30
30
|
baseUrl,
|
|
31
31
|
publicKey,
|
|
32
32
|
suppressPublicKeyWarning: true
|
package/dist/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCimplifyClient } from './chunk-
|
|
1
|
+
import { createCimplifyClient } from './chunk-BMFWQNYZ.mjs';
|
|
2
2
|
import { PKCE_COOKIE, decodePkceState, PKCE_COOKIE_PATH, DEFAULT_ISSUER } from './chunk-Z7M6GAHS.mjs';
|
|
3
3
|
import './chunk-DLW3RWRK.mjs';
|
|
4
4
|
export { CimplifyError } from './chunk-O3YUHLZL.mjs';
|
package/dist/testing/suite.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBSZJSR62_js = require('../chunk-BSZJSR62.js');
|
|
4
4
|
require('../chunk-PNTINRAU.js');
|
|
5
5
|
require('../chunk-XREIZ56K.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-D3FWJB7Y.js');
|
|
7
7
|
require('../chunk-3HU5I5VG.js');
|
|
8
8
|
require('../chunk-WMEC5JWN.js');
|
|
9
9
|
require('../chunk-NIOUSKQQ.js');
|
|
@@ -21,11 +21,11 @@ var PLACEHOLDER_PHRASES = [
|
|
|
21
21
|
function createBrandSuite(opts) {
|
|
22
22
|
vitest.describe(opts.label ?? "brand schema", () => {
|
|
23
23
|
vitest.it("conforms to the Cimplify brand contract", () => {
|
|
24
|
-
vitest.expect(() =>
|
|
24
|
+
vitest.expect(() => chunkBSZJSR62_js.assertBrand(opts.brand)).not.toThrow();
|
|
25
25
|
});
|
|
26
26
|
vitest.it("declares a known mock seed", () => {
|
|
27
27
|
const b = opts.brand;
|
|
28
|
-
vitest.expect(
|
|
28
|
+
vitest.expect(chunkBSZJSR62_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
|
|
29
29
|
});
|
|
30
30
|
vitest.it("has no placeholder copy left in", () => {
|
|
31
31
|
const offenders = [];
|
|
@@ -57,7 +57,7 @@ ${msg}`);
|
|
|
57
57
|
vitest.expect(b.mock?.businessId).toMatch(/^bus_/);
|
|
58
58
|
});
|
|
59
59
|
vitest.it("zod-parses cleanly", () => {
|
|
60
|
-
const result =
|
|
60
|
+
const result = chunkBSZJSR62_js.BrandSchema.safeParse(opts.brand);
|
|
61
61
|
if (!result.success) {
|
|
62
62
|
throw new Error(
|
|
63
63
|
"Brand schema violations:\n" + result.error.issues.map((i) => ` \u2022 brand.${i.path.join(".")}: ${i.message}`).join("\n")
|
|
@@ -72,23 +72,23 @@ function createCartFlowSuite(opts = {}) {
|
|
|
72
72
|
vitest.describe(opts.label ?? "cart flow against in-process mock", () => {
|
|
73
73
|
let h;
|
|
74
74
|
vitest.beforeEach(() => {
|
|
75
|
-
h =
|
|
75
|
+
h = chunkBSZJSR62_js.createTestClient(opts);
|
|
76
76
|
});
|
|
77
77
|
vitest.afterEach(() => h.dispose());
|
|
78
78
|
vitest.it("starts with an empty cart matching the canonical shape", async () => {
|
|
79
79
|
const res = await h.client.cart.get();
|
|
80
80
|
vitest.expect(res.ok).toBe(true);
|
|
81
81
|
if (!res.ok) return;
|
|
82
|
-
vitest.expect(() =>
|
|
82
|
+
vitest.expect(() => chunkBSZJSR62_js.assertCart(res.value)).not.toThrow();
|
|
83
83
|
vitest.expect(res.value.items).toHaveLength(0);
|
|
84
84
|
});
|
|
85
85
|
vitest.it("adds the first product, persists it, and returns a shape-valid cart", async () => {
|
|
86
|
-
const { product, variantId } = await
|
|
86
|
+
const { product, variantId } = await chunkBSZJSR62_js.fixtures.addFirstProduct(h.client);
|
|
87
87
|
vitest.expect(product.id).toBeTruthy();
|
|
88
88
|
const get = await h.client.cart.get();
|
|
89
89
|
vitest.expect(get.ok).toBe(true);
|
|
90
90
|
if (!get.ok) return;
|
|
91
|
-
vitest.expect(() =>
|
|
91
|
+
vitest.expect(() => chunkBSZJSR62_js.assertCart(get.value)).not.toThrow();
|
|
92
92
|
vitest.expect(get.value.items).toHaveLength(1);
|
|
93
93
|
vitest.expect(get.value.items[0]?.item_id).toBe(product.id);
|
|
94
94
|
if (variantId) {
|
|
@@ -99,8 +99,8 @@ function createCartFlowSuite(opts = {}) {
|
|
|
99
99
|
vitest.expect(parseFloat(String(get.value.pricing.subtotal))).toBeGreaterThan(0);
|
|
100
100
|
});
|
|
101
101
|
vitest.it("dedupes by line_key when adding the same product twice", async () => {
|
|
102
|
-
await
|
|
103
|
-
await
|
|
102
|
+
await chunkBSZJSR62_js.fixtures.addFirstProduct(h.client);
|
|
103
|
+
await chunkBSZJSR62_js.fixtures.addFirstProduct(h.client);
|
|
104
104
|
const res = await h.client.cart.get();
|
|
105
105
|
vitest.expect(res.ok).toBe(true);
|
|
106
106
|
if (!res.ok) return;
|
|
@@ -108,7 +108,7 @@ function createCartFlowSuite(opts = {}) {
|
|
|
108
108
|
vitest.expect(res.value.items[0]?.quantity).toBe(2);
|
|
109
109
|
});
|
|
110
110
|
vitest.it("removes items and zeroes the subtotal", async () => {
|
|
111
|
-
await
|
|
111
|
+
await chunkBSZJSR62_js.fixtures.addFirstProduct(h.client);
|
|
112
112
|
const before = await h.client.cart.get();
|
|
113
113
|
if (!before.ok) throw before.error;
|
|
114
114
|
const itemId = before.value.items[0]?.id;
|
|
@@ -134,28 +134,28 @@ function createContractSuite(opts = {}) {
|
|
|
134
134
|
vitest.describe(opts.label ?? "SDK \u2194 mock contract", () => {
|
|
135
135
|
let h;
|
|
136
136
|
vitest.beforeEach(() => {
|
|
137
|
-
h =
|
|
137
|
+
h = chunkBSZJSR62_js.createTestClient(opts);
|
|
138
138
|
});
|
|
139
139
|
vitest.afterEach(() => h.dispose());
|
|
140
140
|
vitest.it("AddItemPayload schema accepts a minimal valid body", () => {
|
|
141
|
-
const result =
|
|
141
|
+
const result = chunkBSZJSR62_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
|
|
142
142
|
vitest.expect(result.success).toBe(true);
|
|
143
143
|
});
|
|
144
144
|
vitest.it("AddItemPayload schema rejects negative quantity", () => {
|
|
145
|
-
const result =
|
|
145
|
+
const result = chunkBSZJSR62_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
|
|
146
146
|
vitest.expect(result.success).toBe(false);
|
|
147
147
|
});
|
|
148
148
|
vitest.it("AddItemPayload schema rejects empty item_id", () => {
|
|
149
|
-
const result =
|
|
149
|
+
const result = chunkBSZJSR62_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
|
|
150
150
|
vitest.expect(result.success).toBe(false);
|
|
151
151
|
});
|
|
152
152
|
vitest.it("Cart line items returned by the mock match CartItemSchema", async () => {
|
|
153
|
-
const { product } = await
|
|
153
|
+
const { product } = await chunkBSZJSR62_js.fixtures.addFirstProduct(h.client);
|
|
154
154
|
const get = await h.client.cart.get();
|
|
155
155
|
if (!get.ok) throw get.error;
|
|
156
156
|
vitest.expect(get.value.items.length).toBeGreaterThan(0);
|
|
157
157
|
for (const item of get.value.items) {
|
|
158
|
-
const result =
|
|
158
|
+
const result = chunkBSZJSR62_js.CartItemSchema.safeParse(item);
|
|
159
159
|
if (!result.success) {
|
|
160
160
|
const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
|
|
161
161
|
throw new Error(`Cart item shape mismatch for ${product.name}:
|
|
@@ -165,19 +165,19 @@ ${issues}`);
|
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
vitest.it("CheckoutResponse from the mock includes bill_token", async () => {
|
|
168
|
-
await
|
|
168
|
+
await chunkBSZJSR62_js.fixtures.addFirstProduct(h.client);
|
|
169
169
|
const cartRes = await h.client.cart.get();
|
|
170
170
|
if (!cartRes.ok) throw cartRes.error;
|
|
171
171
|
const checkout = await h.client.checkout.process({
|
|
172
172
|
cart_id: cartRes.value.id,
|
|
173
|
-
customer:
|
|
173
|
+
customer: chunkBSZJSR62_js.fixtures.customer(),
|
|
174
174
|
order_type: "delivery",
|
|
175
175
|
payment_method: "mobile_money",
|
|
176
176
|
mobile_money_details: { phone_number: "+233244000000", provider: "mtn" }
|
|
177
177
|
});
|
|
178
178
|
vitest.expect(checkout.ok).toBe(true);
|
|
179
179
|
if (!checkout.ok) return;
|
|
180
|
-
const result =
|
|
180
|
+
const result = chunkBSZJSR62_js.CheckoutResponseSchema.safeParse(checkout.value);
|
|
181
181
|
if (!result.success) {
|
|
182
182
|
const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
|
|
183
183
|
throw new Error(`CheckoutResponse shape mismatch:
|
package/dist/testing/suite.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-
|
|
1
|
+
import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-KLJLKT6C.mjs';
|
|
2
2
|
import '../chunk-RQPXLXB2.mjs';
|
|
3
3
|
import '../chunk-U4MW6PYU.mjs';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-BMFWQNYZ.mjs';
|
|
5
5
|
import '../chunk-Z7M6GAHS.mjs';
|
|
6
6
|
import '../chunk-DLW3RWRK.mjs';
|
|
7
7
|
import '../chunk-O3YUHLZL.mjs';
|
package/dist/testing.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBSZJSR62_js = require('./chunk-BSZJSR62.js');
|
|
4
4
|
require('./chunk-PNTINRAU.js');
|
|
5
5
|
require('./chunk-XREIZ56K.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-D3FWJB7Y.js');
|
|
7
7
|
require('./chunk-3HU5I5VG.js');
|
|
8
8
|
require('./chunk-WMEC5JWN.js');
|
|
9
9
|
require('./chunk-NIOUSKQQ.js');
|
|
@@ -11,20 +11,20 @@ require('./chunk-OWW5GUSB.js');
|
|
|
11
11
|
var zod = require('zod');
|
|
12
12
|
|
|
13
13
|
var PUBLIC_SCHEMAS = {
|
|
14
|
-
Brand:
|
|
15
|
-
AddItemPayload:
|
|
16
|
-
Cart:
|
|
17
|
-
CartItem:
|
|
18
|
-
CartPricing:
|
|
19
|
-
CheckoutBody:
|
|
20
|
-
CheckoutResponse:
|
|
21
|
-
VariantInfo:
|
|
14
|
+
Brand: chunkBSZJSR62_js.BrandSchema,
|
|
15
|
+
AddItemPayload: chunkBSZJSR62_js.AddItemPayloadSchema,
|
|
16
|
+
Cart: chunkBSZJSR62_js.CartSchema,
|
|
17
|
+
CartItem: chunkBSZJSR62_js.CartItemSchema,
|
|
18
|
+
CartPricing: chunkBSZJSR62_js.CartPricingSchema,
|
|
19
|
+
CheckoutBody: chunkBSZJSR62_js.CheckoutBodySchema,
|
|
20
|
+
CheckoutResponse: chunkBSZJSR62_js.CheckoutResponseSchema,
|
|
21
|
+
VariantInfo: chunkBSZJSR62_js.VariantInfoSchema
|
|
22
22
|
};
|
|
23
23
|
function exportJsonSchemas() {
|
|
24
24
|
const out = {};
|
|
25
25
|
for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
26
|
-
const meta =
|
|
27
|
-
const json = zod.z.toJSONSchema(schema, { metadata:
|
|
26
|
+
const meta = chunkBSZJSR62_js.cimplifyRegistry.get(schema);
|
|
27
|
+
const json = zod.z.toJSONSchema(schema, { metadata: chunkBSZJSR62_js.cimplifyRegistry });
|
|
28
28
|
if (meta) {
|
|
29
29
|
json.$id = meta.id;
|
|
30
30
|
json["x-cimplify-version"] = meta.version;
|
|
@@ -36,16 +36,16 @@ function exportJsonSchemas() {
|
|
|
36
36
|
function listRegisteredSchemas() {
|
|
37
37
|
const entries = [];
|
|
38
38
|
for (const schema of [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
chunkBSZJSR62_js.BrandSchema,
|
|
40
|
+
chunkBSZJSR62_js.AddItemPayloadSchema,
|
|
41
|
+
chunkBSZJSR62_js.CartSchema,
|
|
42
|
+
chunkBSZJSR62_js.CartItemSchema,
|
|
43
|
+
chunkBSZJSR62_js.CartPricingSchema,
|
|
44
|
+
chunkBSZJSR62_js.CheckoutBodySchema,
|
|
45
|
+
chunkBSZJSR62_js.CheckoutResponseSchema,
|
|
46
|
+
chunkBSZJSR62_js.VariantInfoSchema
|
|
47
47
|
]) {
|
|
48
|
-
const meta =
|
|
48
|
+
const meta = chunkBSZJSR62_js.cimplifyRegistry.get(schema);
|
|
49
49
|
if (meta) entries.push({ schema, meta });
|
|
50
50
|
}
|
|
51
51
|
return entries;
|
|
@@ -53,227 +53,227 @@ function listRegisteredSchemas() {
|
|
|
53
53
|
|
|
54
54
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkBSZJSR62_js.AddItemPayloadSchema; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkBSZJSR62_js.AddOnDetailsSchema; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkBSZJSR62_js.AddOnGroupDetailsSchema; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkBSZJSR62_js.AddOnInDetailsSchema; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkBSZJSR62_js.AddOnOptionDetailsSchema; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkBSZJSR62_js.AuthorizationTypeSchema; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkBSZJSR62_js.BrandContactSchema; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkBSZJSR62_js.BrandFaqSchema; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkBSZJSR62_js.BrandHeroSchema; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkBSZJSR62_js.BrandNavLinkSchema; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkBSZJSR62_js.BrandPolicyPageSchema; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkBSZJSR62_js.BrandPolicySectionSchema; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "BrandSchema", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkBSZJSR62_js.BrandSchema; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkBSZJSR62_js.BrandSocialSchema; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkBSZJSR62_js.BundleResolvedSchema; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkBSZJSR62_js.BundleSelectionInputSchema; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkBSZJSR62_js.CartItemSchema; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkBSZJSR62_js.CartPricingSchema; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "CartSchema", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkBSZJSR62_js.CartSchema; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkBSZJSR62_js.CheckoutBodySchema; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkBSZJSR62_js.CheckoutCustomerSchema; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkBSZJSR62_js.CheckoutResponseSchema; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkBSZJSR62_js.ChosenPriceSchema; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkBSZJSR62_js.CompositeResolvedSchema; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkBSZJSR62_js.CompositeSelectionInputSchema; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkBSZJSR62_js.CountryCodeSchema; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkBSZJSR62_js.CurrencyCodeSchema; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkBSZJSR62_js.CustomerInputValueSchema; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkBSZJSR62_js.DiscountDetailsSchema; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkBSZJSR62_js.IsoDateTimeSchema; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkBSZJSR62_js.LineTypeSchema; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkBSZJSR62_js.LocaleSchema; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkBSZJSR62_js.MoneyLooseSchema; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "MoneySchema", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkBSZJSR62_js.MoneySchema; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkBSZJSR62_js.NextActionSchema; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkBSZJSR62_js.PhoneE164Schema; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkBSZJSR62_js.ProductTypeSchema; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkBSZJSR62_js.SchemaViolationError; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkBSZJSR62_js.SeedNameSchema; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkBSZJSR62_js.SelectedAddOnOptionSchema; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkBSZJSR62_js.ServiceStatusSchema; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkBSZJSR62_js.TimestampSchema; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkBSZJSR62_js.VariantDetailsSchema; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkBSZJSR62_js.VariantDisplayAttributeSchema; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkBSZJSR62_js.VariantInfoSchema; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkBSZJSR62_js.assertAddItemPayload; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "assertBrand", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkBSZJSR62_js.assertBrand; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "assertCart", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkBSZJSR62_js.assertCart; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "assertCartItem", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkBSZJSR62_js.assertCartItem; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkBSZJSR62_js.assertCheckoutBody; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkBSZJSR62_js.assertCheckoutResponse; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkBSZJSR62_js.cimplifyRegistry; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "createTestClient", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkBSZJSR62_js.createTestClient; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "fixtures", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkBSZJSR62_js.fixtures; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "makeAssertion", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkBSZJSR62_js.makeAssertion; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "registerSchema", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkBSZJSR62_js.registerSchema; }
|
|
277
277
|
});
|
|
278
278
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
279
279
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-
|
|
2
|
-
export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-
|
|
1
|
+
import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-KLJLKT6C.mjs';
|
|
2
|
+
export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-KLJLKT6C.mjs';
|
|
3
3
|
import './chunk-RQPXLXB2.mjs';
|
|
4
4
|
import './chunk-U4MW6PYU.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-BMFWQNYZ.mjs';
|
|
6
6
|
import './chunk-Z7M6GAHS.mjs';
|
|
7
7
|
import './chunk-DLW3RWRK.mjs';
|
|
8
8
|
import './chunk-O3YUHLZL.mjs';
|