@cimplify/sdk 0.51.1 → 0.52.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.
Files changed (51) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +23 -22
  4. package/dist/advanced.mjs +4 -3
  5. package/dist/chunk-3G6RQLXK.mjs +21 -0
  6. package/dist/{chunk-GUZXQSGI.mjs → chunk-4QDCMYYB.mjs} +10 -21
  7. package/dist/{chunk-CAG3TEXO.js → chunk-7A3D3LFI.js} +4 -4
  8. package/dist/{chunk-6RP6OPYO.js → chunk-7Y2O3E4D.js} +3 -3
  9. package/dist/{chunk-Z2AYLZDF.mjs → chunk-AMZXALF6.mjs} +1 -21
  10. package/dist/{chunk-VOWMB2KR.js → chunk-EQLT46ZR.js} +75 -78
  11. package/dist/{chunk-FXACV333.mjs → chunk-GLAVTDDE.mjs} +55 -58
  12. package/dist/chunk-OWW5GUSB.js +28 -0
  13. package/dist/{chunk-GEWFWQYK.js → chunk-Q5VGDCQF.js} +235 -234
  14. package/dist/{chunk-632JEJUS.mjs → chunk-R3F55BRN.mjs} +2 -1
  15. package/dist/{chunk-QCS6D4XW.mjs → chunk-RDORJT7Y.mjs} +2 -2
  16. package/dist/{chunk-XY2DFX5K.mjs → chunk-TD3AY34U.mjs} +1 -1
  17. package/dist/{chunk-FJQC4VSN.js → chunk-W6CCBNGL.js} +68 -79
  18. package/dist/{chunk-TKOTACKZ.js → chunk-XA3ZNR75.js} +0 -26
  19. package/dist/{client-CF2pmEE9.d.mts → client-C6J_RGlr.d.mts} +27 -45
  20. package/dist/{client-B6x53-Al.d.ts → client-CX7IFIkL.d.ts} +27 -45
  21. package/dist/{client-BbrCopIS.d.mts → client-DdefKjcs.d.mts} +1 -1
  22. package/dist/{client-BvEjhvwq.d.ts → client-Lt7uGLmT.d.ts} +1 -1
  23. package/dist/index.d.mts +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +110 -109
  26. package/dist/index.mjs +5 -4
  27. package/dist/react.d.mts +1 -1
  28. package/dist/react.d.ts +1 -1
  29. package/dist/react.js +86 -85
  30. package/dist/react.mjs +5 -4
  31. package/dist/server/evict.d.mts +31 -0
  32. package/dist/server/evict.d.ts +31 -0
  33. package/dist/server/evict.js +75 -0
  34. package/dist/server/evict.mjs +73 -0
  35. package/dist/server.d.mts +11 -48
  36. package/dist/server.d.ts +11 -48
  37. package/dist/server.js +7 -76
  38. package/dist/server.mjs +6 -74
  39. package/dist/testing/msw.js +4 -3
  40. package/dist/testing/msw.mjs +3 -2
  41. package/dist/testing/suite.d.mts +2 -2
  42. package/dist/testing/suite.d.ts +2 -2
  43. package/dist/testing/suite.js +26 -25
  44. package/dist/testing/suite.mjs +7 -6
  45. package/dist/testing.d.mts +2 -2
  46. package/dist/testing.d.ts +2 -2
  47. package/dist/testing.js +82 -81
  48. package/dist/testing.mjs +8 -7
  49. package/dist/utils.js +30 -29
  50. package/dist/utils.mjs +3 -2
  51. package/package.json +7 -1
@@ -1,11 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkCAG3TEXO_js = require('../chunk-CAG3TEXO.js');
4
- require('../chunk-FJQC4VSN.js');
5
- require('../chunk-VOWMB2KR.js');
6
- require('../chunk-6RP6OPYO.js');
7
- require('../chunk-GEWFWQYK.js');
8
- require('../chunk-TKOTACKZ.js');
3
+ var chunk7A3D3LFI_js = require('../chunk-7A3D3LFI.js');
4
+ require('../chunk-Q5VGDCQF.js');
5
+ require('../chunk-W6CCBNGL.js');
6
+ require('../chunk-EQLT46ZR.js');
7
+ require('../chunk-7Y2O3E4D.js');
8
+ require('../chunk-XA3ZNR75.js');
9
+ require('../chunk-OWW5GUSB.js');
9
10
  var vitest = require('vitest');
10
11
 
11
12
  var PLACEHOLDER_PHRASES = [
@@ -19,11 +20,11 @@ var PLACEHOLDER_PHRASES = [
19
20
  function createBrandSuite(opts) {
20
21
  vitest.describe(opts.label ?? "brand schema", () => {
21
22
  vitest.it("conforms to the Cimplify brand contract", () => {
22
- vitest.expect(() => chunkCAG3TEXO_js.assertBrand(opts.brand)).not.toThrow();
23
+ vitest.expect(() => chunk7A3D3LFI_js.assertBrand(opts.brand)).not.toThrow();
23
24
  });
24
25
  vitest.it("declares a known mock seed", () => {
25
26
  const b = opts.brand;
26
- vitest.expect(chunkCAG3TEXO_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
27
+ vitest.expect(chunk7A3D3LFI_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
27
28
  });
28
29
  vitest.it("has no placeholder copy left in", () => {
29
30
  const offenders = [];
@@ -55,7 +56,7 @@ ${msg}`);
55
56
  vitest.expect(b.mock?.businessId).toMatch(/^bus_/);
56
57
  });
57
58
  vitest.it("zod-parses cleanly", () => {
58
- const result = chunkCAG3TEXO_js.BrandSchema.safeParse(opts.brand);
59
+ const result = chunk7A3D3LFI_js.BrandSchema.safeParse(opts.brand);
59
60
  if (!result.success) {
60
61
  throw new Error(
61
62
  "Brand schema violations:\n" + result.error.issues.map((i) => ` \u2022 brand.${i.path.join(".")}: ${i.message}`).join("\n")
@@ -70,23 +71,23 @@ function createCartFlowSuite(opts = {}) {
70
71
  vitest.describe(opts.label ?? "cart flow against in-process mock", () => {
71
72
  let h;
72
73
  vitest.beforeEach(() => {
73
- h = chunkCAG3TEXO_js.createTestClient(opts);
74
+ h = chunk7A3D3LFI_js.createTestClient(opts);
74
75
  });
75
76
  vitest.afterEach(() => h.dispose());
76
77
  vitest.it("starts with an empty cart matching the canonical shape", async () => {
77
78
  const res = await h.client.cart.get();
78
79
  vitest.expect(res.ok).toBe(true);
79
80
  if (!res.ok) return;
80
- vitest.expect(() => chunkCAG3TEXO_js.assertCart(res.value)).not.toThrow();
81
+ vitest.expect(() => chunk7A3D3LFI_js.assertCart(res.value)).not.toThrow();
81
82
  vitest.expect(res.value.items).toHaveLength(0);
82
83
  });
83
84
  vitest.it("adds the first product, persists it, and returns a shape-valid cart", async () => {
84
- const { product, variantId } = await chunkCAG3TEXO_js.fixtures.addFirstProduct(h.client);
85
+ const { product, variantId } = await chunk7A3D3LFI_js.fixtures.addFirstProduct(h.client);
85
86
  vitest.expect(product.id).toBeTruthy();
86
87
  const get = await h.client.cart.get();
87
88
  vitest.expect(get.ok).toBe(true);
88
89
  if (!get.ok) return;
89
- vitest.expect(() => chunkCAG3TEXO_js.assertCart(get.value)).not.toThrow();
90
+ vitest.expect(() => chunk7A3D3LFI_js.assertCart(get.value)).not.toThrow();
90
91
  vitest.expect(get.value.items).toHaveLength(1);
91
92
  vitest.expect(get.value.items[0]?.item_id).toBe(product.id);
92
93
  if (variantId) {
@@ -97,8 +98,8 @@ function createCartFlowSuite(opts = {}) {
97
98
  vitest.expect(parseFloat(String(get.value.pricing.subtotal))).toBeGreaterThan(0);
98
99
  });
99
100
  vitest.it("dedupes by line_key when adding the same product twice", async () => {
100
- await chunkCAG3TEXO_js.fixtures.addFirstProduct(h.client);
101
- await chunkCAG3TEXO_js.fixtures.addFirstProduct(h.client);
101
+ await chunk7A3D3LFI_js.fixtures.addFirstProduct(h.client);
102
+ await chunk7A3D3LFI_js.fixtures.addFirstProduct(h.client);
102
103
  const res = await h.client.cart.get();
103
104
  vitest.expect(res.ok).toBe(true);
104
105
  if (!res.ok) return;
@@ -106,7 +107,7 @@ function createCartFlowSuite(opts = {}) {
106
107
  vitest.expect(res.value.items[0]?.quantity).toBe(2);
107
108
  });
108
109
  vitest.it("removes items and zeroes the subtotal", async () => {
109
- await chunkCAG3TEXO_js.fixtures.addFirstProduct(h.client);
110
+ await chunk7A3D3LFI_js.fixtures.addFirstProduct(h.client);
110
111
  const before = await h.client.cart.get();
111
112
  if (!before.ok) throw before.error;
112
113
  const itemId = before.value.items[0]?.id;
@@ -132,28 +133,28 @@ function createContractSuite(opts = {}) {
132
133
  vitest.describe(opts.label ?? "SDK \u2194 mock contract", () => {
133
134
  let h;
134
135
  vitest.beforeEach(() => {
135
- h = chunkCAG3TEXO_js.createTestClient(opts);
136
+ h = chunk7A3D3LFI_js.createTestClient(opts);
136
137
  });
137
138
  vitest.afterEach(() => h.dispose());
138
139
  vitest.it("AddItemPayload schema accepts a minimal valid body", () => {
139
- const result = chunkCAG3TEXO_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
140
+ const result = chunk7A3D3LFI_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
140
141
  vitest.expect(result.success).toBe(true);
141
142
  });
142
143
  vitest.it("AddItemPayload schema rejects negative quantity", () => {
143
- const result = chunkCAG3TEXO_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
144
+ const result = chunk7A3D3LFI_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
144
145
  vitest.expect(result.success).toBe(false);
145
146
  });
146
147
  vitest.it("AddItemPayload schema rejects empty item_id", () => {
147
- const result = chunkCAG3TEXO_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
148
+ const result = chunk7A3D3LFI_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
148
149
  vitest.expect(result.success).toBe(false);
149
150
  });
150
151
  vitest.it("Cart line items returned by the mock match CartItemSchema", async () => {
151
- const { product } = await chunkCAG3TEXO_js.fixtures.addFirstProduct(h.client);
152
+ const { product } = await chunk7A3D3LFI_js.fixtures.addFirstProduct(h.client);
152
153
  const get = await h.client.cart.get();
153
154
  if (!get.ok) throw get.error;
154
155
  vitest.expect(get.value.items.length).toBeGreaterThan(0);
155
156
  for (const item of get.value.items) {
156
- const result = chunkCAG3TEXO_js.CartItemSchema.safeParse(item);
157
+ const result = chunk7A3D3LFI_js.CartItemSchema.safeParse(item);
157
158
  if (!result.success) {
158
159
  const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
159
160
  throw new Error(`Cart item shape mismatch for ${product.name}:
@@ -163,19 +164,19 @@ ${issues}`);
163
164
  }
164
165
  });
165
166
  vitest.it("CheckoutResponse from the mock includes bill_token", async () => {
166
- await chunkCAG3TEXO_js.fixtures.addFirstProduct(h.client);
167
+ await chunk7A3D3LFI_js.fixtures.addFirstProduct(h.client);
167
168
  const cartRes = await h.client.cart.get();
168
169
  if (!cartRes.ok) throw cartRes.error;
169
170
  const checkout = await h.client.checkout.process({
170
171
  cart_id: cartRes.value.id,
171
- customer: chunkCAG3TEXO_js.fixtures.customer(),
172
+ customer: chunk7A3D3LFI_js.fixtures.customer(),
172
173
  order_type: "delivery",
173
174
  payment_method: "mobile_money",
174
175
  mobile_money_details: { phone_number: "+233244000000", provider: "mtn" }
175
176
  });
176
177
  vitest.expect(checkout.ok).toBe(true);
177
178
  if (!checkout.ok) return;
178
- const result = chunkCAG3TEXO_js.CheckoutResponseSchema.safeParse(checkout.value);
179
+ const result = chunk7A3D3LFI_js.CheckoutResponseSchema.safeParse(checkout.value);
179
180
  if (!result.success) {
180
181
  const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
181
182
  throw new Error(`CheckoutResponse shape mismatch:
@@ -1,9 +1,10 @@
1
- import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-QCS6D4XW.mjs';
2
- import '../chunk-GUZXQSGI.mjs';
3
- import '../chunk-FXACV333.mjs';
4
- import '../chunk-XY2DFX5K.mjs';
5
- import '../chunk-632JEJUS.mjs';
6
- import '../chunk-Z2AYLZDF.mjs';
1
+ import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-RDORJT7Y.mjs';
2
+ import '../chunk-R3F55BRN.mjs';
3
+ import '../chunk-4QDCMYYB.mjs';
4
+ import '../chunk-GLAVTDDE.mjs';
5
+ import '../chunk-TD3AY34U.mjs';
6
+ import '../chunk-AMZXALF6.mjs';
7
+ import '../chunk-3G6RQLXK.mjs';
7
8
  import { describe, it, expect, beforeEach, afterEach } from 'vitest';
8
9
 
9
10
  var PLACEHOLDER_PHRASES = [
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { $ZodType } from 'zod/v4/core';
3
- export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-BbrCopIS.mjs';
4
- import './client-CF2pmEE9.mjs';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-DdefKjcs.mjs';
4
+ import './client-C6J_RGlr.mjs';
5
5
  import './product-C-xLzh7Q.mjs';
6
6
  import './payment-9L_-GWqQ.mjs';
7
7
  import './server-BgccqOLT.mjs';
package/dist/testing.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { $ZodType } from 'zod/v4/core';
3
- export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-BvEjhvwq.js';
4
- import './client-B6x53-Al.js';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-Lt7uGLmT.js';
4
+ import './client-CX7IFIkL.js';
5
5
  import './product-C-xLzh7Q.js';
6
6
  import './payment-_e99nSRj.js';
7
7
  import './server-72rzvJ4Y.js';
package/dist/testing.js CHANGED
@@ -1,28 +1,29 @@
1
1
  'use strict';
2
2
 
3
- var chunkCAG3TEXO_js = require('./chunk-CAG3TEXO.js');
4
- require('./chunk-FJQC4VSN.js');
5
- require('./chunk-VOWMB2KR.js');
6
- require('./chunk-6RP6OPYO.js');
7
- require('./chunk-GEWFWQYK.js');
8
- require('./chunk-TKOTACKZ.js');
3
+ var chunk7A3D3LFI_js = require('./chunk-7A3D3LFI.js');
4
+ require('./chunk-Q5VGDCQF.js');
5
+ require('./chunk-W6CCBNGL.js');
6
+ require('./chunk-EQLT46ZR.js');
7
+ require('./chunk-7Y2O3E4D.js');
8
+ require('./chunk-XA3ZNR75.js');
9
+ require('./chunk-OWW5GUSB.js');
9
10
  var zod = require('zod');
10
11
 
11
12
  var PUBLIC_SCHEMAS = {
12
- Brand: chunkCAG3TEXO_js.BrandSchema,
13
- AddItemPayload: chunkCAG3TEXO_js.AddItemPayloadSchema,
14
- Cart: chunkCAG3TEXO_js.CartSchema,
15
- CartItem: chunkCAG3TEXO_js.CartItemSchema,
16
- CartPricing: chunkCAG3TEXO_js.CartPricingSchema,
17
- CheckoutBody: chunkCAG3TEXO_js.CheckoutBodySchema,
18
- CheckoutResponse: chunkCAG3TEXO_js.CheckoutResponseSchema,
19
- VariantInfo: chunkCAG3TEXO_js.VariantInfoSchema
13
+ Brand: chunk7A3D3LFI_js.BrandSchema,
14
+ AddItemPayload: chunk7A3D3LFI_js.AddItemPayloadSchema,
15
+ Cart: chunk7A3D3LFI_js.CartSchema,
16
+ CartItem: chunk7A3D3LFI_js.CartItemSchema,
17
+ CartPricing: chunk7A3D3LFI_js.CartPricingSchema,
18
+ CheckoutBody: chunk7A3D3LFI_js.CheckoutBodySchema,
19
+ CheckoutResponse: chunk7A3D3LFI_js.CheckoutResponseSchema,
20
+ VariantInfo: chunk7A3D3LFI_js.VariantInfoSchema
20
21
  };
21
22
  function exportJsonSchemas() {
22
23
  const out = {};
23
24
  for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
24
- const meta = chunkCAG3TEXO_js.cimplifyRegistry.get(schema);
25
- const json = zod.z.toJSONSchema(schema, { metadata: chunkCAG3TEXO_js.cimplifyRegistry });
25
+ const meta = chunk7A3D3LFI_js.cimplifyRegistry.get(schema);
26
+ const json = zod.z.toJSONSchema(schema, { metadata: chunk7A3D3LFI_js.cimplifyRegistry });
26
27
  if (meta) {
27
28
  json.$id = meta.id;
28
29
  json["x-cimplify-version"] = meta.version;
@@ -34,16 +35,16 @@ function exportJsonSchemas() {
34
35
  function listRegisteredSchemas() {
35
36
  const entries = [];
36
37
  for (const schema of [
37
- chunkCAG3TEXO_js.BrandSchema,
38
- chunkCAG3TEXO_js.AddItemPayloadSchema,
39
- chunkCAG3TEXO_js.CartSchema,
40
- chunkCAG3TEXO_js.CartItemSchema,
41
- chunkCAG3TEXO_js.CartPricingSchema,
42
- chunkCAG3TEXO_js.CheckoutBodySchema,
43
- chunkCAG3TEXO_js.CheckoutResponseSchema,
44
- chunkCAG3TEXO_js.VariantInfoSchema
38
+ chunk7A3D3LFI_js.BrandSchema,
39
+ chunk7A3D3LFI_js.AddItemPayloadSchema,
40
+ chunk7A3D3LFI_js.CartSchema,
41
+ chunk7A3D3LFI_js.CartItemSchema,
42
+ chunk7A3D3LFI_js.CartPricingSchema,
43
+ chunk7A3D3LFI_js.CheckoutBodySchema,
44
+ chunk7A3D3LFI_js.CheckoutResponseSchema,
45
+ chunk7A3D3LFI_js.VariantInfoSchema
45
46
  ]) {
46
- const meta = chunkCAG3TEXO_js.cimplifyRegistry.get(schema);
47
+ const meta = chunk7A3D3LFI_js.cimplifyRegistry.get(schema);
47
48
  if (meta) entries.push({ schema, meta });
48
49
  }
49
50
  return entries;
@@ -51,227 +52,227 @@ function listRegisteredSchemas() {
51
52
 
52
53
  Object.defineProperty(exports, "AddItemPayloadSchema", {
53
54
  enumerable: true,
54
- get: function () { return chunkCAG3TEXO_js.AddItemPayloadSchema; }
55
+ get: function () { return chunk7A3D3LFI_js.AddItemPayloadSchema; }
55
56
  });
56
57
  Object.defineProperty(exports, "AddOnDetailsSchema", {
57
58
  enumerable: true,
58
- get: function () { return chunkCAG3TEXO_js.AddOnDetailsSchema; }
59
+ get: function () { return chunk7A3D3LFI_js.AddOnDetailsSchema; }
59
60
  });
60
61
  Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
61
62
  enumerable: true,
62
- get: function () { return chunkCAG3TEXO_js.AddOnGroupDetailsSchema; }
63
+ get: function () { return chunk7A3D3LFI_js.AddOnGroupDetailsSchema; }
63
64
  });
64
65
  Object.defineProperty(exports, "AddOnInDetailsSchema", {
65
66
  enumerable: true,
66
- get: function () { return chunkCAG3TEXO_js.AddOnInDetailsSchema; }
67
+ get: function () { return chunk7A3D3LFI_js.AddOnInDetailsSchema; }
67
68
  });
68
69
  Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
69
70
  enumerable: true,
70
- get: function () { return chunkCAG3TEXO_js.AddOnOptionDetailsSchema; }
71
+ get: function () { return chunk7A3D3LFI_js.AddOnOptionDetailsSchema; }
71
72
  });
72
73
  Object.defineProperty(exports, "AuthorizationTypeSchema", {
73
74
  enumerable: true,
74
- get: function () { return chunkCAG3TEXO_js.AuthorizationTypeSchema; }
75
+ get: function () { return chunk7A3D3LFI_js.AuthorizationTypeSchema; }
75
76
  });
76
77
  Object.defineProperty(exports, "BrandContactSchema", {
77
78
  enumerable: true,
78
- get: function () { return chunkCAG3TEXO_js.BrandContactSchema; }
79
+ get: function () { return chunk7A3D3LFI_js.BrandContactSchema; }
79
80
  });
80
81
  Object.defineProperty(exports, "BrandFaqSchema", {
81
82
  enumerable: true,
82
- get: function () { return chunkCAG3TEXO_js.BrandFaqSchema; }
83
+ get: function () { return chunk7A3D3LFI_js.BrandFaqSchema; }
83
84
  });
84
85
  Object.defineProperty(exports, "BrandHeroSchema", {
85
86
  enumerable: true,
86
- get: function () { return chunkCAG3TEXO_js.BrandHeroSchema; }
87
+ get: function () { return chunk7A3D3LFI_js.BrandHeroSchema; }
87
88
  });
88
89
  Object.defineProperty(exports, "BrandNavLinkSchema", {
89
90
  enumerable: true,
90
- get: function () { return chunkCAG3TEXO_js.BrandNavLinkSchema; }
91
+ get: function () { return chunk7A3D3LFI_js.BrandNavLinkSchema; }
91
92
  });
92
93
  Object.defineProperty(exports, "BrandPolicyPageSchema", {
93
94
  enumerable: true,
94
- get: function () { return chunkCAG3TEXO_js.BrandPolicyPageSchema; }
95
+ get: function () { return chunk7A3D3LFI_js.BrandPolicyPageSchema; }
95
96
  });
96
97
  Object.defineProperty(exports, "BrandPolicySectionSchema", {
97
98
  enumerable: true,
98
- get: function () { return chunkCAG3TEXO_js.BrandPolicySectionSchema; }
99
+ get: function () { return chunk7A3D3LFI_js.BrandPolicySectionSchema; }
99
100
  });
100
101
  Object.defineProperty(exports, "BrandSchema", {
101
102
  enumerable: true,
102
- get: function () { return chunkCAG3TEXO_js.BrandSchema; }
103
+ get: function () { return chunk7A3D3LFI_js.BrandSchema; }
103
104
  });
104
105
  Object.defineProperty(exports, "BrandSocialSchema", {
105
106
  enumerable: true,
106
- get: function () { return chunkCAG3TEXO_js.BrandSocialSchema; }
107
+ get: function () { return chunk7A3D3LFI_js.BrandSocialSchema; }
107
108
  });
108
109
  Object.defineProperty(exports, "BundleResolvedSchema", {
109
110
  enumerable: true,
110
- get: function () { return chunkCAG3TEXO_js.BundleResolvedSchema; }
111
+ get: function () { return chunk7A3D3LFI_js.BundleResolvedSchema; }
111
112
  });
112
113
  Object.defineProperty(exports, "BundleSelectionInputSchema", {
113
114
  enumerable: true,
114
- get: function () { return chunkCAG3TEXO_js.BundleSelectionInputSchema; }
115
+ get: function () { return chunk7A3D3LFI_js.BundleSelectionInputSchema; }
115
116
  });
116
117
  Object.defineProperty(exports, "CartItemSchema", {
117
118
  enumerable: true,
118
- get: function () { return chunkCAG3TEXO_js.CartItemSchema; }
119
+ get: function () { return chunk7A3D3LFI_js.CartItemSchema; }
119
120
  });
120
121
  Object.defineProperty(exports, "CartPricingSchema", {
121
122
  enumerable: true,
122
- get: function () { return chunkCAG3TEXO_js.CartPricingSchema; }
123
+ get: function () { return chunk7A3D3LFI_js.CartPricingSchema; }
123
124
  });
124
125
  Object.defineProperty(exports, "CartSchema", {
125
126
  enumerable: true,
126
- get: function () { return chunkCAG3TEXO_js.CartSchema; }
127
+ get: function () { return chunk7A3D3LFI_js.CartSchema; }
127
128
  });
128
129
  Object.defineProperty(exports, "CheckoutBodySchema", {
129
130
  enumerable: true,
130
- get: function () { return chunkCAG3TEXO_js.CheckoutBodySchema; }
131
+ get: function () { return chunk7A3D3LFI_js.CheckoutBodySchema; }
131
132
  });
132
133
  Object.defineProperty(exports, "CheckoutCustomerSchema", {
133
134
  enumerable: true,
134
- get: function () { return chunkCAG3TEXO_js.CheckoutCustomerSchema; }
135
+ get: function () { return chunk7A3D3LFI_js.CheckoutCustomerSchema; }
135
136
  });
136
137
  Object.defineProperty(exports, "CheckoutResponseSchema", {
137
138
  enumerable: true,
138
- get: function () { return chunkCAG3TEXO_js.CheckoutResponseSchema; }
139
+ get: function () { return chunk7A3D3LFI_js.CheckoutResponseSchema; }
139
140
  });
140
141
  Object.defineProperty(exports, "ChosenPriceSchema", {
141
142
  enumerable: true,
142
- get: function () { return chunkCAG3TEXO_js.ChosenPriceSchema; }
143
+ get: function () { return chunk7A3D3LFI_js.ChosenPriceSchema; }
143
144
  });
144
145
  Object.defineProperty(exports, "CompositeResolvedSchema", {
145
146
  enumerable: true,
146
- get: function () { return chunkCAG3TEXO_js.CompositeResolvedSchema; }
147
+ get: function () { return chunk7A3D3LFI_js.CompositeResolvedSchema; }
147
148
  });
148
149
  Object.defineProperty(exports, "CompositeSelectionInputSchema", {
149
150
  enumerable: true,
150
- get: function () { return chunkCAG3TEXO_js.CompositeSelectionInputSchema; }
151
+ get: function () { return chunk7A3D3LFI_js.CompositeSelectionInputSchema; }
151
152
  });
152
153
  Object.defineProperty(exports, "CountryCodeSchema", {
153
154
  enumerable: true,
154
- get: function () { return chunkCAG3TEXO_js.CountryCodeSchema; }
155
+ get: function () { return chunk7A3D3LFI_js.CountryCodeSchema; }
155
156
  });
156
157
  Object.defineProperty(exports, "CurrencyCodeSchema", {
157
158
  enumerable: true,
158
- get: function () { return chunkCAG3TEXO_js.CurrencyCodeSchema; }
159
+ get: function () { return chunk7A3D3LFI_js.CurrencyCodeSchema; }
159
160
  });
160
161
  Object.defineProperty(exports, "CustomerInputValueSchema", {
161
162
  enumerable: true,
162
- get: function () { return chunkCAG3TEXO_js.CustomerInputValueSchema; }
163
+ get: function () { return chunk7A3D3LFI_js.CustomerInputValueSchema; }
163
164
  });
164
165
  Object.defineProperty(exports, "DiscountDetailsSchema", {
165
166
  enumerable: true,
166
- get: function () { return chunkCAG3TEXO_js.DiscountDetailsSchema; }
167
+ get: function () { return chunk7A3D3LFI_js.DiscountDetailsSchema; }
167
168
  });
168
169
  Object.defineProperty(exports, "IsoDateTimeSchema", {
169
170
  enumerable: true,
170
- get: function () { return chunkCAG3TEXO_js.IsoDateTimeSchema; }
171
+ get: function () { return chunk7A3D3LFI_js.IsoDateTimeSchema; }
171
172
  });
172
173
  Object.defineProperty(exports, "LineTypeSchema", {
173
174
  enumerable: true,
174
- get: function () { return chunkCAG3TEXO_js.LineTypeSchema; }
175
+ get: function () { return chunk7A3D3LFI_js.LineTypeSchema; }
175
176
  });
176
177
  Object.defineProperty(exports, "LocaleSchema", {
177
178
  enumerable: true,
178
- get: function () { return chunkCAG3TEXO_js.LocaleSchema; }
179
+ get: function () { return chunk7A3D3LFI_js.LocaleSchema; }
179
180
  });
180
181
  Object.defineProperty(exports, "MoneyLooseSchema", {
181
182
  enumerable: true,
182
- get: function () { return chunkCAG3TEXO_js.MoneyLooseSchema; }
183
+ get: function () { return chunk7A3D3LFI_js.MoneyLooseSchema; }
183
184
  });
184
185
  Object.defineProperty(exports, "MoneySchema", {
185
186
  enumerable: true,
186
- get: function () { return chunkCAG3TEXO_js.MoneySchema; }
187
+ get: function () { return chunk7A3D3LFI_js.MoneySchema; }
187
188
  });
188
189
  Object.defineProperty(exports, "NextActionSchema", {
189
190
  enumerable: true,
190
- get: function () { return chunkCAG3TEXO_js.NextActionSchema; }
191
+ get: function () { return chunk7A3D3LFI_js.NextActionSchema; }
191
192
  });
192
193
  Object.defineProperty(exports, "PhoneE164Schema", {
193
194
  enumerable: true,
194
- get: function () { return chunkCAG3TEXO_js.PhoneE164Schema; }
195
+ get: function () { return chunk7A3D3LFI_js.PhoneE164Schema; }
195
196
  });
196
197
  Object.defineProperty(exports, "ProductTypeSchema", {
197
198
  enumerable: true,
198
- get: function () { return chunkCAG3TEXO_js.ProductTypeSchema; }
199
+ get: function () { return chunk7A3D3LFI_js.ProductTypeSchema; }
199
200
  });
200
201
  Object.defineProperty(exports, "SchemaViolationError", {
201
202
  enumerable: true,
202
- get: function () { return chunkCAG3TEXO_js.SchemaViolationError; }
203
+ get: function () { return chunk7A3D3LFI_js.SchemaViolationError; }
203
204
  });
204
205
  Object.defineProperty(exports, "SeedNameSchema", {
205
206
  enumerable: true,
206
- get: function () { return chunkCAG3TEXO_js.SeedNameSchema; }
207
+ get: function () { return chunk7A3D3LFI_js.SeedNameSchema; }
207
208
  });
208
209
  Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
209
210
  enumerable: true,
210
- get: function () { return chunkCAG3TEXO_js.SelectedAddOnOptionSchema; }
211
+ get: function () { return chunk7A3D3LFI_js.SelectedAddOnOptionSchema; }
211
212
  });
212
213
  Object.defineProperty(exports, "ServiceStatusSchema", {
213
214
  enumerable: true,
214
- get: function () { return chunkCAG3TEXO_js.ServiceStatusSchema; }
215
+ get: function () { return chunk7A3D3LFI_js.ServiceStatusSchema; }
215
216
  });
216
217
  Object.defineProperty(exports, "TimestampSchema", {
217
218
  enumerable: true,
218
- get: function () { return chunkCAG3TEXO_js.TimestampSchema; }
219
+ get: function () { return chunk7A3D3LFI_js.TimestampSchema; }
219
220
  });
220
221
  Object.defineProperty(exports, "VariantDetailsSchema", {
221
222
  enumerable: true,
222
- get: function () { return chunkCAG3TEXO_js.VariantDetailsSchema; }
223
+ get: function () { return chunk7A3D3LFI_js.VariantDetailsSchema; }
223
224
  });
224
225
  Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
225
226
  enumerable: true,
226
- get: function () { return chunkCAG3TEXO_js.VariantDisplayAttributeSchema; }
227
+ get: function () { return chunk7A3D3LFI_js.VariantDisplayAttributeSchema; }
227
228
  });
228
229
  Object.defineProperty(exports, "VariantInfoSchema", {
229
230
  enumerable: true,
230
- get: function () { return chunkCAG3TEXO_js.VariantInfoSchema; }
231
+ get: function () { return chunk7A3D3LFI_js.VariantInfoSchema; }
231
232
  });
232
233
  Object.defineProperty(exports, "assertAddItemPayload", {
233
234
  enumerable: true,
234
- get: function () { return chunkCAG3TEXO_js.assertAddItemPayload; }
235
+ get: function () { return chunk7A3D3LFI_js.assertAddItemPayload; }
235
236
  });
236
237
  Object.defineProperty(exports, "assertBrand", {
237
238
  enumerable: true,
238
- get: function () { return chunkCAG3TEXO_js.assertBrand; }
239
+ get: function () { return chunk7A3D3LFI_js.assertBrand; }
239
240
  });
240
241
  Object.defineProperty(exports, "assertCart", {
241
242
  enumerable: true,
242
- get: function () { return chunkCAG3TEXO_js.assertCart; }
243
+ get: function () { return chunk7A3D3LFI_js.assertCart; }
243
244
  });
244
245
  Object.defineProperty(exports, "assertCartItem", {
245
246
  enumerable: true,
246
- get: function () { return chunkCAG3TEXO_js.assertCartItem; }
247
+ get: function () { return chunk7A3D3LFI_js.assertCartItem; }
247
248
  });
248
249
  Object.defineProperty(exports, "assertCheckoutBody", {
249
250
  enumerable: true,
250
- get: function () { return chunkCAG3TEXO_js.assertCheckoutBody; }
251
+ get: function () { return chunk7A3D3LFI_js.assertCheckoutBody; }
251
252
  });
252
253
  Object.defineProperty(exports, "assertCheckoutResponse", {
253
254
  enumerable: true,
254
- get: function () { return chunkCAG3TEXO_js.assertCheckoutResponse; }
255
+ get: function () { return chunk7A3D3LFI_js.assertCheckoutResponse; }
255
256
  });
256
257
  Object.defineProperty(exports, "cimplifyRegistry", {
257
258
  enumerable: true,
258
- get: function () { return chunkCAG3TEXO_js.cimplifyRegistry; }
259
+ get: function () { return chunk7A3D3LFI_js.cimplifyRegistry; }
259
260
  });
260
261
  Object.defineProperty(exports, "createTestClient", {
261
262
  enumerable: true,
262
- get: function () { return chunkCAG3TEXO_js.createTestClient; }
263
+ get: function () { return chunk7A3D3LFI_js.createTestClient; }
263
264
  });
264
265
  Object.defineProperty(exports, "fixtures", {
265
266
  enumerable: true,
266
- get: function () { return chunkCAG3TEXO_js.fixtures; }
267
+ get: function () { return chunk7A3D3LFI_js.fixtures; }
267
268
  });
268
269
  Object.defineProperty(exports, "makeAssertion", {
269
270
  enumerable: true,
270
- get: function () { return chunkCAG3TEXO_js.makeAssertion; }
271
+ get: function () { return chunk7A3D3LFI_js.makeAssertion; }
271
272
  });
272
273
  Object.defineProperty(exports, "registerSchema", {
273
274
  enumerable: true,
274
- get: function () { return chunkCAG3TEXO_js.registerSchema; }
275
+ get: function () { return chunk7A3D3LFI_js.registerSchema; }
275
276
  });
276
277
  exports.exportJsonSchemas = exportJsonSchemas;
277
278
  exports.listRegisteredSchemas = listRegisteredSchemas;
package/dist/testing.mjs CHANGED
@@ -1,10 +1,11 @@
1
- import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-QCS6D4XW.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-QCS6D4XW.mjs';
3
- import './chunk-GUZXQSGI.mjs';
4
- import './chunk-FXACV333.mjs';
5
- import './chunk-XY2DFX5K.mjs';
6
- import './chunk-632JEJUS.mjs';
7
- import './chunk-Z2AYLZDF.mjs';
1
+ import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-RDORJT7Y.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-RDORJT7Y.mjs';
3
+ import './chunk-R3F55BRN.mjs';
4
+ import './chunk-4QDCMYYB.mjs';
5
+ import './chunk-GLAVTDDE.mjs';
6
+ import './chunk-TD3AY34U.mjs';
7
+ import './chunk-AMZXALF6.mjs';
8
+ import './chunk-3G6RQLXK.mjs';
8
9
  import { z } from 'zod';
9
10
 
10
11
  var PUBLIC_SCHEMAS = {