@cimplify/sdk 0.94.0 → 0.94.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.
@@ -1,4 +1,4 @@
1
- import { createMockApp } from './chunk-X36FZZT6.mjs';
1
+ import { createMockApp } from './chunk-BRYMPBEN.mjs';
2
2
  import { createCimplifyClient } from './chunk-FKARGZK3.mjs';
3
3
  import { z } from 'zod';
4
4
 
@@ -3575,8 +3575,8 @@ function createBus(opts) {
3575
3575
  var SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
3576
3576
  function createAuthService(opts) {
3577
3577
  const { registry, clock, ids, options } = opts;
3578
- const newSession = (authenticated, profile) => {
3579
- const id = ids.session();
3578
+ const newSession = (authenticated, profile, token) => {
3579
+ const id = token || ids.session();
3580
3580
  const session = {
3581
3581
  id,
3582
3582
  token: id,
@@ -3607,9 +3607,9 @@ function createAuthService(opts) {
3607
3607
  const existing = this.resolveSession(token);
3608
3608
  if (existing) return existing;
3609
3609
  if (options.mode === "strict") {
3610
- return newSession(false);
3610
+ return newSession(false, void 0, token);
3611
3611
  }
3612
- return newSession(true, { name: "Guest" });
3612
+ return newSession(true, { name: "Guest" }, token);
3613
3613
  },
3614
3614
  requestOtp(contact) {
3615
3615
  const otp_id = ids.raw("otp");
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk6Y7KC5YZ_js = require('./chunk-6Y7KC5YZ.js');
3
+ var chunkXVOHMOGU_js = require('./chunk-XVOHMOGU.js');
4
4
  var chunkQLGZIBRO_js = require('./chunk-QLGZIBRO.js');
5
5
  var zod = require('zod');
6
6
 
@@ -600,7 +600,7 @@ async function toForwardedRequest(input, init) {
600
600
  };
601
601
  }
602
602
  function createTestClient(options = {}) {
603
- const mock = chunk6Y7KC5YZ_js.createMockApp(options);
603
+ const mock = chunkXVOHMOGU_js.createMockApp(options);
604
604
  let sessionToken;
605
605
  const fetchImpl = async (input, init) => {
606
606
  const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
@@ -3577,8 +3577,8 @@ function createBus(opts) {
3577
3577
  var SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
3578
3578
  function createAuthService(opts) {
3579
3579
  const { registry, clock, ids, options } = opts;
3580
- const newSession = (authenticated, profile) => {
3581
- const id = ids.session();
3580
+ const newSession = (authenticated, profile, token) => {
3581
+ const id = token || ids.session();
3582
3582
  const session = {
3583
3583
  id,
3584
3584
  token: id,
@@ -3609,9 +3609,9 @@ function createAuthService(opts) {
3609
3609
  const existing = this.resolveSession(token);
3610
3610
  if (existing) return existing;
3611
3611
  if (options.mode === "strict") {
3612
- return newSession(false);
3612
+ return newSession(false, void 0, token);
3613
3613
  }
3614
- return newSession(true, { name: "Guest" });
3614
+ return newSession(true, { name: "Guest" }, token);
3615
3615
  },
3616
3616
  requestOtp(contact) {
3617
3617
  const otp_id = ids.raw("otp");
package/dist/mock/cli.mjs CHANGED
@@ -4585,8 +4585,8 @@ function createBus(opts) {
4585
4585
  var SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
4586
4586
  function createAuthService(opts) {
4587
4587
  const { registry, clock, ids, options } = opts;
4588
- const newSession = (authenticated, profile) => {
4589
- const id = ids.session();
4588
+ const newSession = (authenticated, profile, token) => {
4589
+ const id = token || ids.session();
4590
4590
  const session = {
4591
4591
  id,
4592
4592
  token: id,
@@ -4617,9 +4617,9 @@ function createAuthService(opts) {
4617
4617
  const existing = this.resolveSession(token);
4618
4618
  if (existing) return existing;
4619
4619
  if (options.mode === "strict") {
4620
- return newSession(false);
4620
+ return newSession(false, void 0, token);
4621
4621
  }
4622
- return newSession(true, { name: "Guest" });
4622
+ return newSession(true, { name: "Guest" }, token);
4623
4623
  },
4624
4624
  requestOtp(contact) {
4625
4625
  const otp_id = ids.raw("otp");
@@ -3647,8 +3647,8 @@ function createBus(opts) {
3647
3647
  var SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
3648
3648
  function createAuthService(opts) {
3649
3649
  const { registry, clock, ids, options } = opts;
3650
- const newSession = (authenticated, profile) => {
3651
- const id = ids.session();
3650
+ const newSession = (authenticated, profile, token) => {
3651
+ const id = token || ids.session();
3652
3652
  const session = {
3653
3653
  id,
3654
3654
  token: id,
@@ -3679,9 +3679,9 @@ function createAuthService(opts) {
3679
3679
  const existing = this.resolveSession(token);
3680
3680
  if (existing) return existing;
3681
3681
  if (options.mode === "strict") {
3682
- return newSession(false);
3682
+ return newSession(false, void 0, token);
3683
3683
  }
3684
- return newSession(true, { name: "Guest" });
3684
+ return newSession(true, { name: "Guest" }, token);
3685
3685
  },
3686
3686
  requestOtp(contact) {
3687
3687
  const otp_id = ids.raw("otp");
@@ -3645,8 +3645,8 @@ function createBus(opts) {
3645
3645
  var SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
3646
3646
  function createAuthService(opts) {
3647
3647
  const { registry, clock, ids, options } = opts;
3648
- const newSession = (authenticated, profile) => {
3649
- const id = ids.session();
3648
+ const newSession = (authenticated, profile, token) => {
3649
+ const id = token || ids.session();
3650
3650
  const session = {
3651
3651
  id,
3652
3652
  token: id,
@@ -3677,9 +3677,9 @@ function createAuthService(opts) {
3677
3677
  const existing = this.resolveSession(token);
3678
3678
  if (existing) return existing;
3679
3679
  if (options.mode === "strict") {
3680
- return newSession(false);
3680
+ return newSession(false, void 0, token);
3681
3681
  }
3682
- return newSession(true, { name: "Guest" });
3682
+ return newSession(true, { name: "Guest" }, token);
3683
3683
  },
3684
3684
  requestOtp(contact) {
3685
3685
  const otp_id = ids.raw("otp");
package/dist/mock/msw.js CHANGED
@@ -3645,8 +3645,8 @@ function createBus(opts) {
3645
3645
  var SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
3646
3646
  function createAuthService(opts) {
3647
3647
  const { registry, clock, ids, options } = opts;
3648
- const newSession = (authenticated, profile) => {
3649
- const id = ids.session();
3648
+ const newSession = (authenticated, profile, token) => {
3649
+ const id = token || ids.session();
3650
3650
  const session = {
3651
3651
  id,
3652
3652
  token: id,
@@ -3677,9 +3677,9 @@ function createAuthService(opts) {
3677
3677
  const existing = this.resolveSession(token);
3678
3678
  if (existing) return existing;
3679
3679
  if (options.mode === "strict") {
3680
- return newSession(false);
3680
+ return newSession(false, void 0, token);
3681
3681
  }
3682
- return newSession(true, { name: "Guest" });
3682
+ return newSession(true, { name: "Guest" }, token);
3683
3683
  },
3684
3684
  requestOtp(contact) {
3685
3685
  const otp_id = ids.raw("otp");
package/dist/mock/msw.mjs CHANGED
@@ -3643,8 +3643,8 @@ function createBus(opts) {
3643
3643
  var SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
3644
3644
  function createAuthService(opts) {
3645
3645
  const { registry, clock, ids, options } = opts;
3646
- const newSession = (authenticated, profile) => {
3647
- const id = ids.session();
3646
+ const newSession = (authenticated, profile, token) => {
3647
+ const id = token || ids.session();
3648
3648
  const session = {
3649
3649
  id,
3650
3650
  token: id,
@@ -3675,9 +3675,9 @@ function createAuthService(opts) {
3675
3675
  const existing = this.resolveSession(token);
3676
3676
  if (existing) return existing;
3677
3677
  if (options.mode === "strict") {
3678
- return newSession(false);
3678
+ return newSession(false, void 0, token);
3679
3679
  }
3680
- return newSession(true, { name: "Guest" });
3680
+ return newSession(true, { name: "Guest" }, token);
3681
3681
  },
3682
3682
  requestOtp(contact) {
3683
3683
  const otp_id = ids.raw("otp");
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk6Y7KC5YZ_js = require('../chunk-6Y7KC5YZ.js');
3
+ var chunkXVOHMOGU_js = require('../chunk-XVOHMOGU.js');
4
4
  require('../chunk-XREIZ56K.js');
5
5
  require('../chunk-AETVRBKI.js');
6
6
  require('../chunk-OWW5GUSB.js');
@@ -8,7 +8,7 @@ require('../chunk-OWW5GUSB.js');
8
8
  // src/mock/msw.ts
9
9
  async function createMswHandlers(options = {}) {
10
10
  const baseUrl = options.baseUrl ?? "http://localhost:8787";
11
- const handle = chunk6Y7KC5YZ_js.createMockApp(options);
11
+ const handle = chunkXVOHMOGU_js.createMockApp(options);
12
12
  const msw = await import('msw').catch(() => {
13
13
  throw new Error("msw is required to use @cimplify/sdk/mock/msw \u2014 install it as a peer dependency");
14
14
  });
@@ -1,4 +1,4 @@
1
- import { createMockApp } from '../chunk-X36FZZT6.mjs';
1
+ import { createMockApp } from '../chunk-BRYMPBEN.mjs';
2
2
  import '../chunk-U4MW6PYU.mjs';
3
3
  import '../chunk-K5EN2W2Q.mjs';
4
4
  import '../chunk-3G6RQLXK.mjs';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkAWNWP5J3_js = require('../chunk-AWNWP5J3.js');
4
- require('../chunk-6Y7KC5YZ.js');
3
+ var chunkQL6VROSG_js = require('../chunk-QL6VROSG.js');
4
+ require('../chunk-XVOHMOGU.js');
5
5
  require('../chunk-XREIZ56K.js');
6
6
  require('../chunk-QLGZIBRO.js');
7
7
  require('../chunk-VEOAMBEX.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(() => chunkAWNWP5J3_js.assertBrand(opts.brand)).not.toThrow();
24
+ vitest.expect(() => chunkQL6VROSG_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(chunkAWNWP5J3_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
28
+ vitest.expect(chunkQL6VROSG_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 = chunkAWNWP5J3_js.BrandSchema.safeParse(opts.brand);
60
+ const result = chunkQL6VROSG_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 = chunkAWNWP5J3_js.createTestClient(opts);
75
+ h = chunkQL6VROSG_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(() => chunkAWNWP5J3_js.assertCart(res.value)).not.toThrow();
82
+ vitest.expect(() => chunkQL6VROSG_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 chunkAWNWP5J3_js.fixtures.addFirstProduct(h.client);
86
+ const { product, variantId } = await chunkQL6VROSG_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(() => chunkAWNWP5J3_js.assertCart(get.value)).not.toThrow();
91
+ vitest.expect(() => chunkQL6VROSG_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 chunkAWNWP5J3_js.fixtures.addFirstProduct(h.client);
103
- await chunkAWNWP5J3_js.fixtures.addFirstProduct(h.client);
102
+ await chunkQL6VROSG_js.fixtures.addFirstProduct(h.client);
103
+ await chunkQL6VROSG_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 chunkAWNWP5J3_js.fixtures.addFirstProduct(h.client);
111
+ await chunkQL6VROSG_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 = chunkAWNWP5J3_js.createTestClient(opts);
137
+ h = chunkQL6VROSG_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 = chunkAWNWP5J3_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
141
+ const result = chunkQL6VROSG_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 = chunkAWNWP5J3_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
145
+ const result = chunkQL6VROSG_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 = chunkAWNWP5J3_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
149
+ const result = chunkQL6VROSG_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 chunkAWNWP5J3_js.fixtures.addFirstProduct(h.client);
153
+ const { product } = await chunkQL6VROSG_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 = chunkAWNWP5J3_js.CartItemSchema.safeParse(item);
158
+ const result = chunkQL6VROSG_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 chunkAWNWP5J3_js.fixtures.addFirstProduct(h.client);
168
+ await chunkQL6VROSG_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: chunkAWNWP5J3_js.fixtures.customer(),
173
+ customer: chunkQL6VROSG_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 = chunkAWNWP5J3_js.CheckoutResponseSchema.safeParse(checkout.value);
180
+ const result = chunkQL6VROSG_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:
@@ -1,5 +1,5 @@
1
- import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-QXWX7CD2.mjs';
2
- import '../chunk-X36FZZT6.mjs';
1
+ import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-7A3YHBVW.mjs';
2
+ import '../chunk-BRYMPBEN.mjs';
3
3
  import '../chunk-U4MW6PYU.mjs';
4
4
  import '../chunk-FKARGZK3.mjs';
5
5
  import '../chunk-VUSHG3HA.mjs';
@@ -54,8 +54,8 @@ declare const CountryCodeSchema: z.ZodString;
54
54
  declare const LocaleSchema: z.ZodString;
55
55
  declare const PhoneE164Schema: z.ZodString;
56
56
  declare const SeedNameSchema: z.ZodEnum<{
57
- default: "default";
58
57
  empty: "empty";
58
+ default: "default";
59
59
  "reesa-storefront": "reesa-storefront";
60
60
  restaurant: "restaurant";
61
61
  retail: "retail";
@@ -71,11 +71,11 @@ declare const ProductTypeSchema: z.ZodEnum<{
71
71
  composite: "composite";
72
72
  }>;
73
73
  declare const LineTypeSchema: z.ZodEnum<{
74
+ simple: "simple";
74
75
  service: "service";
75
76
  digital: "digital";
76
77
  bundle: "bundle";
77
78
  composite: "composite";
78
- simple: "simple";
79
79
  }>;
80
80
  declare const ServiceStatusSchema: z.ZodEnum<{
81
81
  pending: "pending";
@@ -365,8 +365,8 @@ declare const BrandSchema: z.ZodObject<{
365
365
  }, z.core.$strip>;
366
366
  mock: z.ZodObject<{
367
367
  seed: z.ZodEnum<{
368
- default: "default";
369
368
  empty: "empty";
369
+ default: "default";
370
370
  "reesa-storefront": "reesa-storefront";
371
371
  restaurant: "restaurant";
372
372
  retail: "retail";
@@ -531,7 +531,7 @@ declare const assertBrand: (value: unknown) => asserts value is {
531
531
  summary: string;
532
532
  };
533
533
  mock: {
534
- seed: "default" | "empty" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
534
+ seed: "empty" | "default" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
535
535
  businessId: string;
536
536
  };
537
537
  trustItems?: {
@@ -780,11 +780,11 @@ declare const CartItemSchema: z.ZodObject<{
780
780
  quantity: z.ZodNumber;
781
781
  line_key: z.ZodString;
782
782
  line_type: z.ZodEnum<{
783
+ simple: "simple";
783
784
  service: "service";
784
785
  digital: "digital";
785
786
  bundle: "bundle";
786
787
  composite: "composite";
787
- simple: "simple";
788
788
  }>;
789
789
  name: z.ZodString;
790
790
  description: z.ZodOptional<z.ZodString>;
@@ -926,7 +926,7 @@ declare const assertCartItem: (value: unknown) => asserts value is {
926
926
  item_id: string;
927
927
  quantity: number;
928
928
  line_key: string;
929
- line_type: "service" | "digital" | "bundle" | "composite" | "simple";
929
+ line_type: "simple" | "service" | "digital" | "bundle" | "composite";
930
930
  name: string;
931
931
  is_available: boolean;
932
932
  base_price: string;
@@ -1079,11 +1079,11 @@ declare const CartSchema: z.ZodObject<{
1079
1079
  quantity: z.ZodNumber;
1080
1080
  line_key: z.ZodString;
1081
1081
  line_type: z.ZodEnum<{
1082
+ simple: "simple";
1082
1083
  service: "service";
1083
1084
  digital: "digital";
1084
1085
  bundle: "bundle";
1085
1086
  composite: "composite";
1086
- simple: "simple";
1087
1087
  }>;
1088
1088
  name: z.ZodString;
1089
1089
  description: z.ZodOptional<z.ZodString>;
@@ -1256,7 +1256,7 @@ declare const assertCart: (value: unknown) => asserts value is {
1256
1256
  item_id: string;
1257
1257
  quantity: number;
1258
1258
  line_key: string;
1259
- line_type: "service" | "digital" | "bundle" | "composite" | "simple";
1259
+ line_type: "simple" | "service" | "digital" | "bundle" | "composite";
1260
1260
  name: string;
1261
1261
  is_available: boolean;
1262
1262
  base_price: string;
@@ -1475,10 +1475,10 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1475
1475
  };
1476
1476
  declare const AuthorizationTypeSchema: z.ZodEnum<{
1477
1477
  phone: "phone";
1478
- address: "address";
1479
1478
  otp: "otp";
1480
1479
  pin: "pin";
1481
1480
  birthday: "birthday";
1481
+ address: "address";
1482
1482
  }>;
1483
1483
  declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1484
1484
  type: z.ZodLiteral<"none">;
@@ -1498,10 +1498,10 @@ declare const CheckoutResponseSchema: z.ZodObject<{
1498
1498
  requires_authorization: z.ZodBoolean;
1499
1499
  authorization_type: z.ZodOptional<z.ZodEnum<{
1500
1500
  phone: "phone";
1501
- address: "address";
1502
1501
  otp: "otp";
1503
1502
  pin: "pin";
1504
1503
  birthday: "birthday";
1504
+ address: "address";
1505
1505
  }>>;
1506
1506
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1507
1507
  type: z.ZodLiteral<"none">;
@@ -1538,7 +1538,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
1538
1538
  display_text?: string | undefined;
1539
1539
  };
1540
1540
  payment_reference?: string | undefined;
1541
- authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | undefined;
1541
+ authorization_type?: "phone" | "otp" | "pin" | "birthday" | "address" | undefined;
1542
1542
  provider?: string | undefined;
1543
1543
  authorization_url?: string | undefined;
1544
1544
  display_text?: string | undefined;
@@ -1737,8 +1737,8 @@ declare const PUBLIC_SCHEMAS: {
1737
1737
  }, z.core.$strip>;
1738
1738
  mock: z.ZodObject<{
1739
1739
  seed: z.ZodEnum<{
1740
- default: "default";
1741
1740
  empty: "empty";
1741
+ default: "default";
1742
1742
  "reesa-storefront": "reesa-storefront";
1743
1743
  restaurant: "restaurant";
1744
1744
  retail: "retail";
@@ -1798,11 +1798,11 @@ declare const PUBLIC_SCHEMAS: {
1798
1798
  quantity: z.ZodNumber;
1799
1799
  line_key: z.ZodString;
1800
1800
  line_type: z.ZodEnum<{
1801
+ simple: "simple";
1801
1802
  service: "service";
1802
1803
  digital: "digital";
1803
1804
  bundle: "bundle";
1804
1805
  composite: "composite";
1805
- simple: "simple";
1806
1806
  }>;
1807
1807
  name: z.ZodString;
1808
1808
  description: z.ZodOptional<z.ZodString>;
@@ -1970,11 +1970,11 @@ declare const PUBLIC_SCHEMAS: {
1970
1970
  quantity: z.ZodNumber;
1971
1971
  line_key: z.ZodString;
1972
1972
  line_type: z.ZodEnum<{
1973
+ simple: "simple";
1973
1974
  service: "service";
1974
1975
  digital: "digital";
1975
1976
  bundle: "bundle";
1976
1977
  composite: "composite";
1977
- simple: "simple";
1978
1978
  }>;
1979
1979
  name: z.ZodString;
1980
1980
  description: z.ZodOptional<z.ZodString>;
@@ -2152,10 +2152,10 @@ declare const PUBLIC_SCHEMAS: {
2152
2152
  requires_authorization: z.ZodBoolean;
2153
2153
  authorization_type: z.ZodOptional<z.ZodEnum<{
2154
2154
  phone: "phone";
2155
- address: "address";
2156
2155
  otp: "otp";
2157
2156
  pin: "pin";
2158
2157
  birthday: "birthday";
2158
+ address: "address";
2159
2159
  }>>;
2160
2160
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2161
2161
  type: z.ZodLiteral<"none">;
package/dist/testing.d.ts CHANGED
@@ -54,8 +54,8 @@ declare const CountryCodeSchema: z.ZodString;
54
54
  declare const LocaleSchema: z.ZodString;
55
55
  declare const PhoneE164Schema: z.ZodString;
56
56
  declare const SeedNameSchema: z.ZodEnum<{
57
- default: "default";
58
57
  empty: "empty";
58
+ default: "default";
59
59
  "reesa-storefront": "reesa-storefront";
60
60
  restaurant: "restaurant";
61
61
  retail: "retail";
@@ -71,11 +71,11 @@ declare const ProductTypeSchema: z.ZodEnum<{
71
71
  composite: "composite";
72
72
  }>;
73
73
  declare const LineTypeSchema: z.ZodEnum<{
74
+ simple: "simple";
74
75
  service: "service";
75
76
  digital: "digital";
76
77
  bundle: "bundle";
77
78
  composite: "composite";
78
- simple: "simple";
79
79
  }>;
80
80
  declare const ServiceStatusSchema: z.ZodEnum<{
81
81
  pending: "pending";
@@ -365,8 +365,8 @@ declare const BrandSchema: z.ZodObject<{
365
365
  }, z.core.$strip>;
366
366
  mock: z.ZodObject<{
367
367
  seed: z.ZodEnum<{
368
- default: "default";
369
368
  empty: "empty";
369
+ default: "default";
370
370
  "reesa-storefront": "reesa-storefront";
371
371
  restaurant: "restaurant";
372
372
  retail: "retail";
@@ -531,7 +531,7 @@ declare const assertBrand: (value: unknown) => asserts value is {
531
531
  summary: string;
532
532
  };
533
533
  mock: {
534
- seed: "default" | "empty" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
534
+ seed: "empty" | "default" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
535
535
  businessId: string;
536
536
  };
537
537
  trustItems?: {
@@ -780,11 +780,11 @@ declare const CartItemSchema: z.ZodObject<{
780
780
  quantity: z.ZodNumber;
781
781
  line_key: z.ZodString;
782
782
  line_type: z.ZodEnum<{
783
+ simple: "simple";
783
784
  service: "service";
784
785
  digital: "digital";
785
786
  bundle: "bundle";
786
787
  composite: "composite";
787
- simple: "simple";
788
788
  }>;
789
789
  name: z.ZodString;
790
790
  description: z.ZodOptional<z.ZodString>;
@@ -926,7 +926,7 @@ declare const assertCartItem: (value: unknown) => asserts value is {
926
926
  item_id: string;
927
927
  quantity: number;
928
928
  line_key: string;
929
- line_type: "service" | "digital" | "bundle" | "composite" | "simple";
929
+ line_type: "simple" | "service" | "digital" | "bundle" | "composite";
930
930
  name: string;
931
931
  is_available: boolean;
932
932
  base_price: string;
@@ -1079,11 +1079,11 @@ declare const CartSchema: z.ZodObject<{
1079
1079
  quantity: z.ZodNumber;
1080
1080
  line_key: z.ZodString;
1081
1081
  line_type: z.ZodEnum<{
1082
+ simple: "simple";
1082
1083
  service: "service";
1083
1084
  digital: "digital";
1084
1085
  bundle: "bundle";
1085
1086
  composite: "composite";
1086
- simple: "simple";
1087
1087
  }>;
1088
1088
  name: z.ZodString;
1089
1089
  description: z.ZodOptional<z.ZodString>;
@@ -1256,7 +1256,7 @@ declare const assertCart: (value: unknown) => asserts value is {
1256
1256
  item_id: string;
1257
1257
  quantity: number;
1258
1258
  line_key: string;
1259
- line_type: "service" | "digital" | "bundle" | "composite" | "simple";
1259
+ line_type: "simple" | "service" | "digital" | "bundle" | "composite";
1260
1260
  name: string;
1261
1261
  is_available: boolean;
1262
1262
  base_price: string;
@@ -1475,10 +1475,10 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1475
1475
  };
1476
1476
  declare const AuthorizationTypeSchema: z.ZodEnum<{
1477
1477
  phone: "phone";
1478
- address: "address";
1479
1478
  otp: "otp";
1480
1479
  pin: "pin";
1481
1480
  birthday: "birthday";
1481
+ address: "address";
1482
1482
  }>;
1483
1483
  declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1484
1484
  type: z.ZodLiteral<"none">;
@@ -1498,10 +1498,10 @@ declare const CheckoutResponseSchema: z.ZodObject<{
1498
1498
  requires_authorization: z.ZodBoolean;
1499
1499
  authorization_type: z.ZodOptional<z.ZodEnum<{
1500
1500
  phone: "phone";
1501
- address: "address";
1502
1501
  otp: "otp";
1503
1502
  pin: "pin";
1504
1503
  birthday: "birthday";
1504
+ address: "address";
1505
1505
  }>>;
1506
1506
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1507
1507
  type: z.ZodLiteral<"none">;
@@ -1538,7 +1538,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
1538
1538
  display_text?: string | undefined;
1539
1539
  };
1540
1540
  payment_reference?: string | undefined;
1541
- authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | undefined;
1541
+ authorization_type?: "phone" | "otp" | "pin" | "birthday" | "address" | undefined;
1542
1542
  provider?: string | undefined;
1543
1543
  authorization_url?: string | undefined;
1544
1544
  display_text?: string | undefined;
@@ -1737,8 +1737,8 @@ declare const PUBLIC_SCHEMAS: {
1737
1737
  }, z.core.$strip>;
1738
1738
  mock: z.ZodObject<{
1739
1739
  seed: z.ZodEnum<{
1740
- default: "default";
1741
1740
  empty: "empty";
1741
+ default: "default";
1742
1742
  "reesa-storefront": "reesa-storefront";
1743
1743
  restaurant: "restaurant";
1744
1744
  retail: "retail";
@@ -1798,11 +1798,11 @@ declare const PUBLIC_SCHEMAS: {
1798
1798
  quantity: z.ZodNumber;
1799
1799
  line_key: z.ZodString;
1800
1800
  line_type: z.ZodEnum<{
1801
+ simple: "simple";
1801
1802
  service: "service";
1802
1803
  digital: "digital";
1803
1804
  bundle: "bundle";
1804
1805
  composite: "composite";
1805
- simple: "simple";
1806
1806
  }>;
1807
1807
  name: z.ZodString;
1808
1808
  description: z.ZodOptional<z.ZodString>;
@@ -1970,11 +1970,11 @@ declare const PUBLIC_SCHEMAS: {
1970
1970
  quantity: z.ZodNumber;
1971
1971
  line_key: z.ZodString;
1972
1972
  line_type: z.ZodEnum<{
1973
+ simple: "simple";
1973
1974
  service: "service";
1974
1975
  digital: "digital";
1975
1976
  bundle: "bundle";
1976
1977
  composite: "composite";
1977
- simple: "simple";
1978
1978
  }>;
1979
1979
  name: z.ZodString;
1980
1980
  description: z.ZodOptional<z.ZodString>;
@@ -2152,10 +2152,10 @@ declare const PUBLIC_SCHEMAS: {
2152
2152
  requires_authorization: z.ZodBoolean;
2153
2153
  authorization_type: z.ZodOptional<z.ZodEnum<{
2154
2154
  phone: "phone";
2155
- address: "address";
2156
2155
  otp: "otp";
2157
2156
  pin: "pin";
2158
2157
  birthday: "birthday";
2158
+ address: "address";
2159
2159
  }>>;
2160
2160
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2161
2161
  type: z.ZodLiteral<"none">;
package/dist/testing.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkAWNWP5J3_js = require('./chunk-AWNWP5J3.js');
4
- require('./chunk-6Y7KC5YZ.js');
3
+ var chunkQL6VROSG_js = require('./chunk-QL6VROSG.js');
4
+ require('./chunk-XVOHMOGU.js');
5
5
  require('./chunk-XREIZ56K.js');
6
6
  require('./chunk-QLGZIBRO.js');
7
7
  require('./chunk-VEOAMBEX.js');
@@ -11,20 +11,20 @@ require('./chunk-OWW5GUSB.js');
11
11
  var zod = require('zod');
12
12
 
13
13
  var PUBLIC_SCHEMAS = {
14
- Brand: chunkAWNWP5J3_js.BrandSchema,
15
- AddItemPayload: chunkAWNWP5J3_js.AddItemPayloadSchema,
16
- Cart: chunkAWNWP5J3_js.CartSchema,
17
- CartItem: chunkAWNWP5J3_js.CartItemSchema,
18
- CartPricing: chunkAWNWP5J3_js.CartPricingSchema,
19
- CheckoutBody: chunkAWNWP5J3_js.CheckoutBodySchema,
20
- CheckoutResponse: chunkAWNWP5J3_js.CheckoutResponseSchema,
21
- VariantInfo: chunkAWNWP5J3_js.VariantInfoSchema
14
+ Brand: chunkQL6VROSG_js.BrandSchema,
15
+ AddItemPayload: chunkQL6VROSG_js.AddItemPayloadSchema,
16
+ Cart: chunkQL6VROSG_js.CartSchema,
17
+ CartItem: chunkQL6VROSG_js.CartItemSchema,
18
+ CartPricing: chunkQL6VROSG_js.CartPricingSchema,
19
+ CheckoutBody: chunkQL6VROSG_js.CheckoutBodySchema,
20
+ CheckoutResponse: chunkQL6VROSG_js.CheckoutResponseSchema,
21
+ VariantInfo: chunkQL6VROSG_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 = chunkAWNWP5J3_js.cimplifyRegistry.get(schema);
27
- const json = zod.z.toJSONSchema(schema, { metadata: chunkAWNWP5J3_js.cimplifyRegistry });
26
+ const meta = chunkQL6VROSG_js.cimplifyRegistry.get(schema);
27
+ const json = zod.z.toJSONSchema(schema, { metadata: chunkQL6VROSG_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
- chunkAWNWP5J3_js.BrandSchema,
40
- chunkAWNWP5J3_js.AddItemPayloadSchema,
41
- chunkAWNWP5J3_js.CartSchema,
42
- chunkAWNWP5J3_js.CartItemSchema,
43
- chunkAWNWP5J3_js.CartPricingSchema,
44
- chunkAWNWP5J3_js.CheckoutBodySchema,
45
- chunkAWNWP5J3_js.CheckoutResponseSchema,
46
- chunkAWNWP5J3_js.VariantInfoSchema
39
+ chunkQL6VROSG_js.BrandSchema,
40
+ chunkQL6VROSG_js.AddItemPayloadSchema,
41
+ chunkQL6VROSG_js.CartSchema,
42
+ chunkQL6VROSG_js.CartItemSchema,
43
+ chunkQL6VROSG_js.CartPricingSchema,
44
+ chunkQL6VROSG_js.CheckoutBodySchema,
45
+ chunkQL6VROSG_js.CheckoutResponseSchema,
46
+ chunkQL6VROSG_js.VariantInfoSchema
47
47
  ]) {
48
- const meta = chunkAWNWP5J3_js.cimplifyRegistry.get(schema);
48
+ const meta = chunkQL6VROSG_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 chunkAWNWP5J3_js.AddItemPayloadSchema; }
56
+ get: function () { return chunkQL6VROSG_js.AddItemPayloadSchema; }
57
57
  });
58
58
  Object.defineProperty(exports, "AddOnDetailsSchema", {
59
59
  enumerable: true,
60
- get: function () { return chunkAWNWP5J3_js.AddOnDetailsSchema; }
60
+ get: function () { return chunkQL6VROSG_js.AddOnDetailsSchema; }
61
61
  });
62
62
  Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
63
63
  enumerable: true,
64
- get: function () { return chunkAWNWP5J3_js.AddOnGroupDetailsSchema; }
64
+ get: function () { return chunkQL6VROSG_js.AddOnGroupDetailsSchema; }
65
65
  });
66
66
  Object.defineProperty(exports, "AddOnInDetailsSchema", {
67
67
  enumerable: true,
68
- get: function () { return chunkAWNWP5J3_js.AddOnInDetailsSchema; }
68
+ get: function () { return chunkQL6VROSG_js.AddOnInDetailsSchema; }
69
69
  });
70
70
  Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
71
71
  enumerable: true,
72
- get: function () { return chunkAWNWP5J3_js.AddOnOptionDetailsSchema; }
72
+ get: function () { return chunkQL6VROSG_js.AddOnOptionDetailsSchema; }
73
73
  });
74
74
  Object.defineProperty(exports, "AuthorizationTypeSchema", {
75
75
  enumerable: true,
76
- get: function () { return chunkAWNWP5J3_js.AuthorizationTypeSchema; }
76
+ get: function () { return chunkQL6VROSG_js.AuthorizationTypeSchema; }
77
77
  });
78
78
  Object.defineProperty(exports, "BrandContactSchema", {
79
79
  enumerable: true,
80
- get: function () { return chunkAWNWP5J3_js.BrandContactSchema; }
80
+ get: function () { return chunkQL6VROSG_js.BrandContactSchema; }
81
81
  });
82
82
  Object.defineProperty(exports, "BrandFaqSchema", {
83
83
  enumerable: true,
84
- get: function () { return chunkAWNWP5J3_js.BrandFaqSchema; }
84
+ get: function () { return chunkQL6VROSG_js.BrandFaqSchema; }
85
85
  });
86
86
  Object.defineProperty(exports, "BrandHeroSchema", {
87
87
  enumerable: true,
88
- get: function () { return chunkAWNWP5J3_js.BrandHeroSchema; }
88
+ get: function () { return chunkQL6VROSG_js.BrandHeroSchema; }
89
89
  });
90
90
  Object.defineProperty(exports, "BrandNavLinkSchema", {
91
91
  enumerable: true,
92
- get: function () { return chunkAWNWP5J3_js.BrandNavLinkSchema; }
92
+ get: function () { return chunkQL6VROSG_js.BrandNavLinkSchema; }
93
93
  });
94
94
  Object.defineProperty(exports, "BrandPolicyPageSchema", {
95
95
  enumerable: true,
96
- get: function () { return chunkAWNWP5J3_js.BrandPolicyPageSchema; }
96
+ get: function () { return chunkQL6VROSG_js.BrandPolicyPageSchema; }
97
97
  });
98
98
  Object.defineProperty(exports, "BrandPolicySectionSchema", {
99
99
  enumerable: true,
100
- get: function () { return chunkAWNWP5J3_js.BrandPolicySectionSchema; }
100
+ get: function () { return chunkQL6VROSG_js.BrandPolicySectionSchema; }
101
101
  });
102
102
  Object.defineProperty(exports, "BrandSchema", {
103
103
  enumerable: true,
104
- get: function () { return chunkAWNWP5J3_js.BrandSchema; }
104
+ get: function () { return chunkQL6VROSG_js.BrandSchema; }
105
105
  });
106
106
  Object.defineProperty(exports, "BrandSocialSchema", {
107
107
  enumerable: true,
108
- get: function () { return chunkAWNWP5J3_js.BrandSocialSchema; }
108
+ get: function () { return chunkQL6VROSG_js.BrandSocialSchema; }
109
109
  });
110
110
  Object.defineProperty(exports, "BundleResolvedSchema", {
111
111
  enumerable: true,
112
- get: function () { return chunkAWNWP5J3_js.BundleResolvedSchema; }
112
+ get: function () { return chunkQL6VROSG_js.BundleResolvedSchema; }
113
113
  });
114
114
  Object.defineProperty(exports, "BundleSelectionInputSchema", {
115
115
  enumerable: true,
116
- get: function () { return chunkAWNWP5J3_js.BundleSelectionInputSchema; }
116
+ get: function () { return chunkQL6VROSG_js.BundleSelectionInputSchema; }
117
117
  });
118
118
  Object.defineProperty(exports, "CartItemSchema", {
119
119
  enumerable: true,
120
- get: function () { return chunkAWNWP5J3_js.CartItemSchema; }
120
+ get: function () { return chunkQL6VROSG_js.CartItemSchema; }
121
121
  });
122
122
  Object.defineProperty(exports, "CartPricingSchema", {
123
123
  enumerable: true,
124
- get: function () { return chunkAWNWP5J3_js.CartPricingSchema; }
124
+ get: function () { return chunkQL6VROSG_js.CartPricingSchema; }
125
125
  });
126
126
  Object.defineProperty(exports, "CartSchema", {
127
127
  enumerable: true,
128
- get: function () { return chunkAWNWP5J3_js.CartSchema; }
128
+ get: function () { return chunkQL6VROSG_js.CartSchema; }
129
129
  });
130
130
  Object.defineProperty(exports, "CheckoutBodySchema", {
131
131
  enumerable: true,
132
- get: function () { return chunkAWNWP5J3_js.CheckoutBodySchema; }
132
+ get: function () { return chunkQL6VROSG_js.CheckoutBodySchema; }
133
133
  });
134
134
  Object.defineProperty(exports, "CheckoutCustomerSchema", {
135
135
  enumerable: true,
136
- get: function () { return chunkAWNWP5J3_js.CheckoutCustomerSchema; }
136
+ get: function () { return chunkQL6VROSG_js.CheckoutCustomerSchema; }
137
137
  });
138
138
  Object.defineProperty(exports, "CheckoutResponseSchema", {
139
139
  enumerable: true,
140
- get: function () { return chunkAWNWP5J3_js.CheckoutResponseSchema; }
140
+ get: function () { return chunkQL6VROSG_js.CheckoutResponseSchema; }
141
141
  });
142
142
  Object.defineProperty(exports, "ChosenPriceSchema", {
143
143
  enumerable: true,
144
- get: function () { return chunkAWNWP5J3_js.ChosenPriceSchema; }
144
+ get: function () { return chunkQL6VROSG_js.ChosenPriceSchema; }
145
145
  });
146
146
  Object.defineProperty(exports, "CompositeResolvedSchema", {
147
147
  enumerable: true,
148
- get: function () { return chunkAWNWP5J3_js.CompositeResolvedSchema; }
148
+ get: function () { return chunkQL6VROSG_js.CompositeResolvedSchema; }
149
149
  });
150
150
  Object.defineProperty(exports, "CompositeSelectionInputSchema", {
151
151
  enumerable: true,
152
- get: function () { return chunkAWNWP5J3_js.CompositeSelectionInputSchema; }
152
+ get: function () { return chunkQL6VROSG_js.CompositeSelectionInputSchema; }
153
153
  });
154
154
  Object.defineProperty(exports, "CountryCodeSchema", {
155
155
  enumerable: true,
156
- get: function () { return chunkAWNWP5J3_js.CountryCodeSchema; }
156
+ get: function () { return chunkQL6VROSG_js.CountryCodeSchema; }
157
157
  });
158
158
  Object.defineProperty(exports, "CurrencyCodeSchema", {
159
159
  enumerable: true,
160
- get: function () { return chunkAWNWP5J3_js.CurrencyCodeSchema; }
160
+ get: function () { return chunkQL6VROSG_js.CurrencyCodeSchema; }
161
161
  });
162
162
  Object.defineProperty(exports, "CustomerInputValueSchema", {
163
163
  enumerable: true,
164
- get: function () { return chunkAWNWP5J3_js.CustomerInputValueSchema; }
164
+ get: function () { return chunkQL6VROSG_js.CustomerInputValueSchema; }
165
165
  });
166
166
  Object.defineProperty(exports, "DiscountDetailsSchema", {
167
167
  enumerable: true,
168
- get: function () { return chunkAWNWP5J3_js.DiscountDetailsSchema; }
168
+ get: function () { return chunkQL6VROSG_js.DiscountDetailsSchema; }
169
169
  });
170
170
  Object.defineProperty(exports, "IsoDateTimeSchema", {
171
171
  enumerable: true,
172
- get: function () { return chunkAWNWP5J3_js.IsoDateTimeSchema; }
172
+ get: function () { return chunkQL6VROSG_js.IsoDateTimeSchema; }
173
173
  });
174
174
  Object.defineProperty(exports, "LineTypeSchema", {
175
175
  enumerable: true,
176
- get: function () { return chunkAWNWP5J3_js.LineTypeSchema; }
176
+ get: function () { return chunkQL6VROSG_js.LineTypeSchema; }
177
177
  });
178
178
  Object.defineProperty(exports, "LocaleSchema", {
179
179
  enumerable: true,
180
- get: function () { return chunkAWNWP5J3_js.LocaleSchema; }
180
+ get: function () { return chunkQL6VROSG_js.LocaleSchema; }
181
181
  });
182
182
  Object.defineProperty(exports, "MoneyLooseSchema", {
183
183
  enumerable: true,
184
- get: function () { return chunkAWNWP5J3_js.MoneyLooseSchema; }
184
+ get: function () { return chunkQL6VROSG_js.MoneyLooseSchema; }
185
185
  });
186
186
  Object.defineProperty(exports, "MoneySchema", {
187
187
  enumerable: true,
188
- get: function () { return chunkAWNWP5J3_js.MoneySchema; }
188
+ get: function () { return chunkQL6VROSG_js.MoneySchema; }
189
189
  });
190
190
  Object.defineProperty(exports, "NextActionSchema", {
191
191
  enumerable: true,
192
- get: function () { return chunkAWNWP5J3_js.NextActionSchema; }
192
+ get: function () { return chunkQL6VROSG_js.NextActionSchema; }
193
193
  });
194
194
  Object.defineProperty(exports, "PhoneE164Schema", {
195
195
  enumerable: true,
196
- get: function () { return chunkAWNWP5J3_js.PhoneE164Schema; }
196
+ get: function () { return chunkQL6VROSG_js.PhoneE164Schema; }
197
197
  });
198
198
  Object.defineProperty(exports, "ProductTypeSchema", {
199
199
  enumerable: true,
200
- get: function () { return chunkAWNWP5J3_js.ProductTypeSchema; }
200
+ get: function () { return chunkQL6VROSG_js.ProductTypeSchema; }
201
201
  });
202
202
  Object.defineProperty(exports, "SchemaViolationError", {
203
203
  enumerable: true,
204
- get: function () { return chunkAWNWP5J3_js.SchemaViolationError; }
204
+ get: function () { return chunkQL6VROSG_js.SchemaViolationError; }
205
205
  });
206
206
  Object.defineProperty(exports, "SeedNameSchema", {
207
207
  enumerable: true,
208
- get: function () { return chunkAWNWP5J3_js.SeedNameSchema; }
208
+ get: function () { return chunkQL6VROSG_js.SeedNameSchema; }
209
209
  });
210
210
  Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
211
211
  enumerable: true,
212
- get: function () { return chunkAWNWP5J3_js.SelectedAddOnOptionSchema; }
212
+ get: function () { return chunkQL6VROSG_js.SelectedAddOnOptionSchema; }
213
213
  });
214
214
  Object.defineProperty(exports, "ServiceStatusSchema", {
215
215
  enumerable: true,
216
- get: function () { return chunkAWNWP5J3_js.ServiceStatusSchema; }
216
+ get: function () { return chunkQL6VROSG_js.ServiceStatusSchema; }
217
217
  });
218
218
  Object.defineProperty(exports, "TimestampSchema", {
219
219
  enumerable: true,
220
- get: function () { return chunkAWNWP5J3_js.TimestampSchema; }
220
+ get: function () { return chunkQL6VROSG_js.TimestampSchema; }
221
221
  });
222
222
  Object.defineProperty(exports, "VariantDetailsSchema", {
223
223
  enumerable: true,
224
- get: function () { return chunkAWNWP5J3_js.VariantDetailsSchema; }
224
+ get: function () { return chunkQL6VROSG_js.VariantDetailsSchema; }
225
225
  });
226
226
  Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
227
227
  enumerable: true,
228
- get: function () { return chunkAWNWP5J3_js.VariantDisplayAttributeSchema; }
228
+ get: function () { return chunkQL6VROSG_js.VariantDisplayAttributeSchema; }
229
229
  });
230
230
  Object.defineProperty(exports, "VariantInfoSchema", {
231
231
  enumerable: true,
232
- get: function () { return chunkAWNWP5J3_js.VariantInfoSchema; }
232
+ get: function () { return chunkQL6VROSG_js.VariantInfoSchema; }
233
233
  });
234
234
  Object.defineProperty(exports, "assertAddItemPayload", {
235
235
  enumerable: true,
236
- get: function () { return chunkAWNWP5J3_js.assertAddItemPayload; }
236
+ get: function () { return chunkQL6VROSG_js.assertAddItemPayload; }
237
237
  });
238
238
  Object.defineProperty(exports, "assertBrand", {
239
239
  enumerable: true,
240
- get: function () { return chunkAWNWP5J3_js.assertBrand; }
240
+ get: function () { return chunkQL6VROSG_js.assertBrand; }
241
241
  });
242
242
  Object.defineProperty(exports, "assertCart", {
243
243
  enumerable: true,
244
- get: function () { return chunkAWNWP5J3_js.assertCart; }
244
+ get: function () { return chunkQL6VROSG_js.assertCart; }
245
245
  });
246
246
  Object.defineProperty(exports, "assertCartItem", {
247
247
  enumerable: true,
248
- get: function () { return chunkAWNWP5J3_js.assertCartItem; }
248
+ get: function () { return chunkQL6VROSG_js.assertCartItem; }
249
249
  });
250
250
  Object.defineProperty(exports, "assertCheckoutBody", {
251
251
  enumerable: true,
252
- get: function () { return chunkAWNWP5J3_js.assertCheckoutBody; }
252
+ get: function () { return chunkQL6VROSG_js.assertCheckoutBody; }
253
253
  });
254
254
  Object.defineProperty(exports, "assertCheckoutResponse", {
255
255
  enumerable: true,
256
- get: function () { return chunkAWNWP5J3_js.assertCheckoutResponse; }
256
+ get: function () { return chunkQL6VROSG_js.assertCheckoutResponse; }
257
257
  });
258
258
  Object.defineProperty(exports, "cimplifyRegistry", {
259
259
  enumerable: true,
260
- get: function () { return chunkAWNWP5J3_js.cimplifyRegistry; }
260
+ get: function () { return chunkQL6VROSG_js.cimplifyRegistry; }
261
261
  });
262
262
  Object.defineProperty(exports, "createTestClient", {
263
263
  enumerable: true,
264
- get: function () { return chunkAWNWP5J3_js.createTestClient; }
264
+ get: function () { return chunkQL6VROSG_js.createTestClient; }
265
265
  });
266
266
  Object.defineProperty(exports, "fixtures", {
267
267
  enumerable: true,
268
- get: function () { return chunkAWNWP5J3_js.fixtures; }
268
+ get: function () { return chunkQL6VROSG_js.fixtures; }
269
269
  });
270
270
  Object.defineProperty(exports, "makeAssertion", {
271
271
  enumerable: true,
272
- get: function () { return chunkAWNWP5J3_js.makeAssertion; }
272
+ get: function () { return chunkQL6VROSG_js.makeAssertion; }
273
273
  });
274
274
  Object.defineProperty(exports, "registerSchema", {
275
275
  enumerable: true,
276
- get: function () { return chunkAWNWP5J3_js.registerSchema; }
276
+ get: function () { return chunkQL6VROSG_js.registerSchema; }
277
277
  });
278
278
  exports.exportJsonSchemas = exportJsonSchemas;
279
279
  exports.listRegisteredSchemas = listRegisteredSchemas;
package/dist/testing.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-QXWX7CD2.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-QXWX7CD2.mjs';
3
- import './chunk-X36FZZT6.mjs';
1
+ import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-7A3YHBVW.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-7A3YHBVW.mjs';
3
+ import './chunk-BRYMPBEN.mjs';
4
4
  import './chunk-U4MW6PYU.mjs';
5
5
  import './chunk-FKARGZK3.mjs';
6
6
  import './chunk-VUSHG3HA.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.94.0",
3
+ "version": "0.94.1",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",