@cimplify/sdk 0.100.5 → 0.101.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 (68) hide show
  1. package/dist/advanced.d.mts +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-HSDQWJLA.mjs → chunk-7H6IL7CX.mjs} +2 -2
  6. package/dist/{chunk-RWR7JF7F.mjs → chunk-DKLHCZ5M.mjs} +13 -3
  7. package/dist/{chunk-PNTINRAU.js → chunk-H5SSGN7W.js} +28 -0
  8. package/dist/{chunk-LMD7B33E.js → chunk-ICCCSVN3.js} +4 -4
  9. package/dist/{chunk-JEVCHTKZ.js → chunk-YDA46OZ6.js} +59 -49
  10. package/dist/{chunk-3HU5I5VG.js → chunk-YER7DIOM.js} +15 -0
  11. package/dist/{chunk-RQPXLXB2.mjs → chunk-YHPMFTMN.mjs} +28 -0
  12. package/dist/{chunk-Z7M6GAHS.mjs → chunk-Z3K2D3TE.mjs} +15 -0
  13. package/dist/{client-CrPglBBz.d.ts → client-CdTx7X_X.d.mts} +12 -2
  14. package/dist/{client-CPcZIrjC.d.ts → client-D40kI8z2.d.ts} +2 -2
  15. package/dist/{client-BwRAAk4y.d.mts → client-Db554902.d.ts} +12 -2
  16. package/dist/{client-DGrvLiJv.d.mts → client-WkUcvRvO.d.mts} +2 -2
  17. package/dist/{index-D-LUYk1Y.d.mts → index-BjWUkYgY.d.mts} +3 -3
  18. package/dist/{index-B_RYmvlF.d.ts → index-D3UXgAYl.d.ts} +3 -3
  19. package/dist/index.d.mts +7 -7
  20. package/dist/index.d.ts +7 -7
  21. package/dist/index.js +69 -69
  22. package/dist/index.mjs +3 -3
  23. package/dist/mock/cli.mjs +28 -0
  24. package/dist/mock/library.js +28 -0
  25. package/dist/mock/library.mjs +28 -0
  26. package/dist/mock/msw.js +28 -0
  27. package/dist/mock/msw.mjs +28 -0
  28. package/dist/{payment-BSzy7sly.d.mts → payment-CRqjGrx6.d.mts} +1 -1
  29. package/dist/{payment-jK8ztICx.d.ts → payment-DO1Z1Ip6.d.ts} +1 -1
  30. package/dist/{price-D96h6c6L.d.mts → price-CiQUd_XX.d.mts} +1 -1
  31. package/dist/{price-CJLfcYKd.d.ts → price-D9EOj8y8.d.ts} +1 -1
  32. package/dist/{product-CeV8euw4.d.mts → product-DwKdC_to.d.mts} +727 -625
  33. package/dist/{product-CeV8euw4.d.ts → product-DwKdC_to.d.ts} +727 -625
  34. package/dist/react.d.mts +7 -4
  35. package/dist/react.d.ts +7 -4
  36. package/dist/react.js +75 -34
  37. package/dist/react.mjs +52 -11
  38. package/dist/server/evict.d.mts +12 -8
  39. package/dist/server/evict.d.ts +12 -8
  40. package/dist/server/evict.js +53 -7
  41. package/dist/server/evict.mjs +53 -7
  42. package/dist/server/tanstack.d.mts +4 -2
  43. package/dist/server/tanstack.d.ts +4 -2
  44. package/dist/server/tanstack.js +53 -14
  45. package/dist/server/tanstack.mjs +53 -14
  46. package/dist/{server-zyrpzJVn.d.ts → server-CeDb93WA.d.ts} +13 -1
  47. package/dist/{server-DRAW2OOX.d.mts → server-D-nSkrUr.d.mts} +13 -1
  48. package/dist/server.d.mts +4 -4
  49. package/dist/server.d.ts +4 -4
  50. package/dist/server.js +7 -7
  51. package/dist/server.mjs +2 -2
  52. package/dist/testing/msw.d.mts +2 -2
  53. package/dist/testing/msw.d.ts +2 -2
  54. package/dist/testing/msw.js +2 -2
  55. package/dist/testing/msw.mjs +1 -1
  56. package/dist/testing/suite.d.mts +6 -6
  57. package/dist/testing/suite.d.ts +6 -6
  58. package/dist/testing/suite.js +23 -23
  59. package/dist/testing/suite.mjs +4 -4
  60. package/dist/testing.d.mts +20 -20
  61. package/dist/testing.d.ts +20 -20
  62. package/dist/testing.js +79 -79
  63. package/dist/testing.mjs +5 -5
  64. package/dist/utils.d.mts +4 -4
  65. package/dist/utils.d.ts +4 -4
  66. package/package.json +1 -1
  67. package/registry/cart-summary.json +1 -1
  68. package/registry/chat-widget.json +1 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkLMD7B33E_js = require('../chunk-LMD7B33E.js');
4
- require('../chunk-PNTINRAU.js');
3
+ var chunkICCCSVN3_js = require('../chunk-ICCCSVN3.js');
4
+ require('../chunk-H5SSGN7W.js');
5
5
  require('../chunk-XREIZ56K.js');
6
- require('../chunk-JEVCHTKZ.js');
7
- require('../chunk-3HU5I5VG.js');
6
+ require('../chunk-YDA46OZ6.js');
7
+ require('../chunk-YER7DIOM.js');
8
8
  require('../chunk-WMEC5JWN.js');
9
9
  require('../chunk-NIOUSKQQ.js');
10
10
  require('../chunk-OWW5GUSB.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(() => chunkLMD7B33E_js.assertBrand(opts.brand)).not.toThrow();
24
+ vitest.expect(() => chunkICCCSVN3_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(chunkLMD7B33E_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
28
+ vitest.expect(chunkICCCSVN3_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 = chunkLMD7B33E_js.BrandSchema.safeParse(opts.brand);
60
+ const result = chunkICCCSVN3_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 = chunkLMD7B33E_js.createTestClient(opts);
75
+ h = chunkICCCSVN3_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(() => chunkLMD7B33E_js.assertCart(res.value)).not.toThrow();
82
+ vitest.expect(() => chunkICCCSVN3_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 chunkLMD7B33E_js.fixtures.addFirstProduct(h.client);
86
+ const { product, variantId } = await chunkICCCSVN3_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(() => chunkLMD7B33E_js.assertCart(get.value)).not.toThrow();
91
+ vitest.expect(() => chunkICCCSVN3_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 chunkLMD7B33E_js.fixtures.addFirstProduct(h.client);
103
- await chunkLMD7B33E_js.fixtures.addFirstProduct(h.client);
102
+ await chunkICCCSVN3_js.fixtures.addFirstProduct(h.client);
103
+ await chunkICCCSVN3_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 chunkLMD7B33E_js.fixtures.addFirstProduct(h.client);
111
+ await chunkICCCSVN3_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 = chunkLMD7B33E_js.createTestClient(opts);
137
+ h = chunkICCCSVN3_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 = chunkLMD7B33E_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
141
+ const result = chunkICCCSVN3_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 = chunkLMD7B33E_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
145
+ const result = chunkICCCSVN3_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 = chunkLMD7B33E_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
149
+ const result = chunkICCCSVN3_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 chunkLMD7B33E_js.fixtures.addFirstProduct(h.client);
153
+ const { product } = await chunkICCCSVN3_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 = chunkLMD7B33E_js.CartItemSchema.safeParse(item);
158
+ const result = chunkICCCSVN3_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 chunkLMD7B33E_js.fixtures.addFirstProduct(h.client);
168
+ await chunkICCCSVN3_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: chunkLMD7B33E_js.fixtures.customer(),
173
+ customer: chunkICCCSVN3_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 = chunkLMD7B33E_js.CheckoutResponseSchema.safeParse(checkout.value);
180
+ const result = chunkICCCSVN3_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,8 +1,8 @@
1
- import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-HSDQWJLA.mjs';
2
- import '../chunk-RQPXLXB2.mjs';
1
+ import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-7H6IL7CX.mjs';
2
+ import '../chunk-YHPMFTMN.mjs';
3
3
  import '../chunk-U4MW6PYU.mjs';
4
- import '../chunk-RWR7JF7F.mjs';
5
- import '../chunk-Z7M6GAHS.mjs';
4
+ import '../chunk-DKLHCZ5M.mjs';
5
+ import '../chunk-Z3K2D3TE.mjs';
6
6
  import '../chunk-DLW3RWRK.mjs';
7
7
  import '../chunk-O3YUHLZL.mjs';
8
8
  import '../chunk-3G6RQLXK.mjs';
@@ -1,10 +1,10 @@
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-DGrvLiJv.mjs';
4
- import './client-BwRAAk4y.mjs';
5
- import './product-CeV8euw4.mjs';
6
- import './payment-BSzy7sly.mjs';
7
- import './server-DRAW2OOX.mjs';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-WkUcvRvO.mjs';
4
+ import './client-CdTx7X_X.mjs';
5
+ import './product-DwKdC_to.mjs';
6
+ import './payment-CRqjGrx6.mjs';
7
+ import './server-D-nSkrUr.mjs';
8
8
  import 'hono';
9
9
 
10
10
  /**
@@ -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
- empty: "empty";
58
57
  default: "default";
58
+ empty: "empty";
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";
75
74
  service: "service";
76
75
  digital: "digital";
77
76
  bundle: "bundle";
78
77
  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
- empty: "empty";
369
368
  default: "default";
369
+ empty: "empty";
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: "empty" | "default" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
534
+ seed: "default" | "empty" | "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";
784
783
  service: "service";
785
784
  digital: "digital";
786
785
  bundle: "bundle";
787
786
  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: "simple" | "service" | "digital" | "bundle" | "composite";
929
+ line_type: "service" | "digital" | "bundle" | "composite" | "simple";
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";
1083
1082
  service: "service";
1084
1083
  digital: "digital";
1085
1084
  bundle: "bundle";
1086
1085
  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: "simple" | "service" | "digital" | "bundle" | "composite";
1259
+ line_type: "service" | "digital" | "bundle" | "composite" | "simple";
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";
1478
1479
  otp: "otp";
1479
1480
  pin: "pin";
1480
1481
  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";
1501
1502
  otp: "otp";
1502
1503
  pin: "pin";
1503
1504
  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" | "otp" | "pin" | "birthday" | "address" | undefined;
1541
+ authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | 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
- empty: "empty";
1741
1740
  default: "default";
1741
+ empty: "empty";
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";
1802
1801
  service: "service";
1803
1802
  digital: "digital";
1804
1803
  bundle: "bundle";
1805
1804
  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";
1974
1973
  service: "service";
1975
1974
  digital: "digital";
1976
1975
  bundle: "bundle";
1977
1976
  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";
2155
2156
  otp: "otp";
2156
2157
  pin: "pin";
2157
2158
  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
@@ -1,10 +1,10 @@
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-CPcZIrjC.js';
4
- import './client-CrPglBBz.js';
5
- import './product-CeV8euw4.js';
6
- import './payment-jK8ztICx.js';
7
- import './server-zyrpzJVn.js';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-D40kI8z2.js';
4
+ import './client-Db554902.js';
5
+ import './product-DwKdC_to.js';
6
+ import './payment-DO1Z1Ip6.js';
7
+ import './server-CeDb93WA.js';
8
8
  import 'hono';
9
9
 
10
10
  /**
@@ -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
- empty: "empty";
58
57
  default: "default";
58
+ empty: "empty";
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";
75
74
  service: "service";
76
75
  digital: "digital";
77
76
  bundle: "bundle";
78
77
  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
- empty: "empty";
369
368
  default: "default";
369
+ empty: "empty";
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: "empty" | "default" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
534
+ seed: "default" | "empty" | "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";
784
783
  service: "service";
785
784
  digital: "digital";
786
785
  bundle: "bundle";
787
786
  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: "simple" | "service" | "digital" | "bundle" | "composite";
929
+ line_type: "service" | "digital" | "bundle" | "composite" | "simple";
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";
1083
1082
  service: "service";
1084
1083
  digital: "digital";
1085
1084
  bundle: "bundle";
1086
1085
  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: "simple" | "service" | "digital" | "bundle" | "composite";
1259
+ line_type: "service" | "digital" | "bundle" | "composite" | "simple";
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";
1478
1479
  otp: "otp";
1479
1480
  pin: "pin";
1480
1481
  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";
1501
1502
  otp: "otp";
1502
1503
  pin: "pin";
1503
1504
  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" | "otp" | "pin" | "birthday" | "address" | undefined;
1541
+ authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | 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
- empty: "empty";
1741
1740
  default: "default";
1741
+ empty: "empty";
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";
1802
1801
  service: "service";
1803
1802
  digital: "digital";
1804
1803
  bundle: "bundle";
1805
1804
  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";
1974
1973
  service: "service";
1975
1974
  digital: "digital";
1976
1975
  bundle: "bundle";
1977
1976
  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";
2155
2156
  otp: "otp";
2156
2157
  pin: "pin";
2157
2158
  birthday: "birthday";
2158
- address: "address";
2159
2159
  }>>;
2160
2160
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2161
2161
  type: z.ZodLiteral<"none">;