@cimplify/sdk 0.82.0 → 0.83.0

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,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-BSpVgule.mjs';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-Cogz7C1t.mjs';
4
4
  import './client-DnHP_2Jw.mjs';
5
5
  import './product-DXhjLQ_w.mjs';
6
6
  import './payment-T_0MUE9o.mjs';
7
- import './server-tr993CPj.mjs';
7
+ import './server-DaovvB9J.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
- 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>;
@@ -1242,6 +1242,7 @@ declare const CartSchema: z.ZodObject<{
1242
1242
  status: z.ZodString;
1243
1243
  source: z.ZodString;
1244
1244
  channel: z.ZodString;
1245
+ requires_delivery: z.ZodOptional<z.ZodBoolean>;
1245
1246
  }, z.core.$loose>;
1246
1247
  type Cart = z.infer<typeof CartSchema>;
1247
1248
  declare const assertCart: (value: unknown) => asserts value is {
@@ -1255,7 +1256,7 @@ declare const assertCart: (value: unknown) => asserts value is {
1255
1256
  item_id: string;
1256
1257
  quantity: number;
1257
1258
  line_key: string;
1258
- line_type: "service" | "digital" | "bundle" | "composite" | "simple";
1259
+ line_type: "simple" | "service" | "digital" | "bundle" | "composite";
1259
1260
  name: string;
1260
1261
  is_available: boolean;
1261
1262
  base_price: string;
@@ -1410,6 +1411,7 @@ declare const assertCart: (value: unknown) => asserts value is {
1410
1411
  status: string;
1411
1412
  source: string;
1412
1413
  channel: string;
1414
+ requires_delivery?: boolean | undefined;
1413
1415
  };
1414
1416
 
1415
1417
  /**
@@ -1436,6 +1438,7 @@ declare const CheckoutBodySchema: z.ZodObject<{
1436
1438
  }, z.core.$strip>;
1437
1439
  order_type: z.ZodString;
1438
1440
  address_info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1441
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
1439
1442
  payment_method: z.ZodString;
1440
1443
  mobile_money_details: z.ZodOptional<z.ZodObject<{
1441
1444
  phone_number: z.ZodString;
@@ -1460,6 +1463,7 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1460
1463
  payment_method: string;
1461
1464
  location_id?: string | undefined;
1462
1465
  address_info?: Record<string, unknown> | undefined;
1466
+ delivery_rate_id?: string | undefined;
1463
1467
  mobile_money_details?: {
1464
1468
  phone_number: string;
1465
1469
  provider: string;
@@ -1471,10 +1475,10 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1471
1475
  };
1472
1476
  declare const AuthorizationTypeSchema: z.ZodEnum<{
1473
1477
  phone: "phone";
1474
- address: "address";
1475
1478
  otp: "otp";
1476
1479
  pin: "pin";
1477
1480
  birthday: "birthday";
1481
+ address: "address";
1478
1482
  }>;
1479
1483
  declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1480
1484
  type: z.ZodLiteral<"none">;
@@ -1494,10 +1498,10 @@ declare const CheckoutResponseSchema: z.ZodObject<{
1494
1498
  requires_authorization: z.ZodBoolean;
1495
1499
  authorization_type: z.ZodOptional<z.ZodEnum<{
1496
1500
  phone: "phone";
1497
- address: "address";
1498
1501
  otp: "otp";
1499
1502
  pin: "pin";
1500
1503
  birthday: "birthday";
1504
+ address: "address";
1501
1505
  }>>;
1502
1506
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1503
1507
  type: z.ZodLiteral<"none">;
@@ -1534,7 +1538,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
1534
1538
  display_text?: string | undefined;
1535
1539
  };
1536
1540
  payment_reference?: string | undefined;
1537
- authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | undefined;
1541
+ authorization_type?: "phone" | "otp" | "pin" | "birthday" | "address" | undefined;
1538
1542
  provider?: string | undefined;
1539
1543
  authorization_url?: string | undefined;
1540
1544
  display_text?: string | undefined;
@@ -1733,8 +1737,8 @@ declare const PUBLIC_SCHEMAS: {
1733
1737
  }, z.core.$strip>;
1734
1738
  mock: z.ZodObject<{
1735
1739
  seed: z.ZodEnum<{
1736
- default: "default";
1737
1740
  empty: "empty";
1741
+ default: "default";
1738
1742
  "reesa-storefront": "reesa-storefront";
1739
1743
  restaurant: "restaurant";
1740
1744
  retail: "retail";
@@ -1794,11 +1798,11 @@ declare const PUBLIC_SCHEMAS: {
1794
1798
  quantity: z.ZodNumber;
1795
1799
  line_key: z.ZodString;
1796
1800
  line_type: z.ZodEnum<{
1801
+ simple: "simple";
1797
1802
  service: "service";
1798
1803
  digital: "digital";
1799
1804
  bundle: "bundle";
1800
1805
  composite: "composite";
1801
- simple: "simple";
1802
1806
  }>;
1803
1807
  name: z.ZodString;
1804
1808
  description: z.ZodOptional<z.ZodString>;
@@ -1957,6 +1961,7 @@ declare const PUBLIC_SCHEMAS: {
1957
1961
  status: z.ZodString;
1958
1962
  source: z.ZodString;
1959
1963
  channel: z.ZodString;
1964
+ requires_delivery: z.ZodOptional<z.ZodBoolean>;
1960
1965
  }, z.core.$loose>;
1961
1966
  readonly CartItem: z.ZodObject<{
1962
1967
  id: z.ZodString;
@@ -1965,11 +1970,11 @@ declare const PUBLIC_SCHEMAS: {
1965
1970
  quantity: z.ZodNumber;
1966
1971
  line_key: z.ZodString;
1967
1972
  line_type: z.ZodEnum<{
1973
+ simple: "simple";
1968
1974
  service: "service";
1969
1975
  digital: "digital";
1970
1976
  bundle: "bundle";
1971
1977
  composite: "composite";
1972
- simple: "simple";
1973
1978
  }>;
1974
1979
  name: z.ZodString;
1975
1980
  description: z.ZodOptional<z.ZodString>;
@@ -2128,6 +2133,7 @@ declare const PUBLIC_SCHEMAS: {
2128
2133
  }, z.core.$strip>;
2129
2134
  order_type: z.ZodString;
2130
2135
  address_info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2136
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
2131
2137
  payment_method: z.ZodString;
2132
2138
  mobile_money_details: z.ZodOptional<z.ZodObject<{
2133
2139
  phone_number: z.ZodString;
@@ -2146,10 +2152,10 @@ declare const PUBLIC_SCHEMAS: {
2146
2152
  requires_authorization: z.ZodBoolean;
2147
2153
  authorization_type: z.ZodOptional<z.ZodEnum<{
2148
2154
  phone: "phone";
2149
- address: "address";
2150
2155
  otp: "otp";
2151
2156
  pin: "pin";
2152
2157
  birthday: "birthday";
2158
+ address: "address";
2153
2159
  }>>;
2154
2160
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2155
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-Dh-KIIX8.js';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-Cq3B-WXv.js';
4
4
  import './client-xc2aQSB4.js';
5
5
  import './product-DXhjLQ_w.js';
6
6
  import './payment-nH9OCUg2.js';
7
- import './server-wAB-qfyZ.js';
7
+ import './server-ZGCyuz4V.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
- 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>;
@@ -1242,6 +1242,7 @@ declare const CartSchema: z.ZodObject<{
1242
1242
  status: z.ZodString;
1243
1243
  source: z.ZodString;
1244
1244
  channel: z.ZodString;
1245
+ requires_delivery: z.ZodOptional<z.ZodBoolean>;
1245
1246
  }, z.core.$loose>;
1246
1247
  type Cart = z.infer<typeof CartSchema>;
1247
1248
  declare const assertCart: (value: unknown) => asserts value is {
@@ -1255,7 +1256,7 @@ declare const assertCart: (value: unknown) => asserts value is {
1255
1256
  item_id: string;
1256
1257
  quantity: number;
1257
1258
  line_key: string;
1258
- line_type: "service" | "digital" | "bundle" | "composite" | "simple";
1259
+ line_type: "simple" | "service" | "digital" | "bundle" | "composite";
1259
1260
  name: string;
1260
1261
  is_available: boolean;
1261
1262
  base_price: string;
@@ -1410,6 +1411,7 @@ declare const assertCart: (value: unknown) => asserts value is {
1410
1411
  status: string;
1411
1412
  source: string;
1412
1413
  channel: string;
1414
+ requires_delivery?: boolean | undefined;
1413
1415
  };
1414
1416
 
1415
1417
  /**
@@ -1436,6 +1438,7 @@ declare const CheckoutBodySchema: z.ZodObject<{
1436
1438
  }, z.core.$strip>;
1437
1439
  order_type: z.ZodString;
1438
1440
  address_info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1441
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
1439
1442
  payment_method: z.ZodString;
1440
1443
  mobile_money_details: z.ZodOptional<z.ZodObject<{
1441
1444
  phone_number: z.ZodString;
@@ -1460,6 +1463,7 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1460
1463
  payment_method: string;
1461
1464
  location_id?: string | undefined;
1462
1465
  address_info?: Record<string, unknown> | undefined;
1466
+ delivery_rate_id?: string | undefined;
1463
1467
  mobile_money_details?: {
1464
1468
  phone_number: string;
1465
1469
  provider: string;
@@ -1471,10 +1475,10 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1471
1475
  };
1472
1476
  declare const AuthorizationTypeSchema: z.ZodEnum<{
1473
1477
  phone: "phone";
1474
- address: "address";
1475
1478
  otp: "otp";
1476
1479
  pin: "pin";
1477
1480
  birthday: "birthday";
1481
+ address: "address";
1478
1482
  }>;
1479
1483
  declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1480
1484
  type: z.ZodLiteral<"none">;
@@ -1494,10 +1498,10 @@ declare const CheckoutResponseSchema: z.ZodObject<{
1494
1498
  requires_authorization: z.ZodBoolean;
1495
1499
  authorization_type: z.ZodOptional<z.ZodEnum<{
1496
1500
  phone: "phone";
1497
- address: "address";
1498
1501
  otp: "otp";
1499
1502
  pin: "pin";
1500
1503
  birthday: "birthday";
1504
+ address: "address";
1501
1505
  }>>;
1502
1506
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1503
1507
  type: z.ZodLiteral<"none">;
@@ -1534,7 +1538,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
1534
1538
  display_text?: string | undefined;
1535
1539
  };
1536
1540
  payment_reference?: string | undefined;
1537
- authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | undefined;
1541
+ authorization_type?: "phone" | "otp" | "pin" | "birthday" | "address" | undefined;
1538
1542
  provider?: string | undefined;
1539
1543
  authorization_url?: string | undefined;
1540
1544
  display_text?: string | undefined;
@@ -1733,8 +1737,8 @@ declare const PUBLIC_SCHEMAS: {
1733
1737
  }, z.core.$strip>;
1734
1738
  mock: z.ZodObject<{
1735
1739
  seed: z.ZodEnum<{
1736
- default: "default";
1737
1740
  empty: "empty";
1741
+ default: "default";
1738
1742
  "reesa-storefront": "reesa-storefront";
1739
1743
  restaurant: "restaurant";
1740
1744
  retail: "retail";
@@ -1794,11 +1798,11 @@ declare const PUBLIC_SCHEMAS: {
1794
1798
  quantity: z.ZodNumber;
1795
1799
  line_key: z.ZodString;
1796
1800
  line_type: z.ZodEnum<{
1801
+ simple: "simple";
1797
1802
  service: "service";
1798
1803
  digital: "digital";
1799
1804
  bundle: "bundle";
1800
1805
  composite: "composite";
1801
- simple: "simple";
1802
1806
  }>;
1803
1807
  name: z.ZodString;
1804
1808
  description: z.ZodOptional<z.ZodString>;
@@ -1957,6 +1961,7 @@ declare const PUBLIC_SCHEMAS: {
1957
1961
  status: z.ZodString;
1958
1962
  source: z.ZodString;
1959
1963
  channel: z.ZodString;
1964
+ requires_delivery: z.ZodOptional<z.ZodBoolean>;
1960
1965
  }, z.core.$loose>;
1961
1966
  readonly CartItem: z.ZodObject<{
1962
1967
  id: z.ZodString;
@@ -1965,11 +1970,11 @@ declare const PUBLIC_SCHEMAS: {
1965
1970
  quantity: z.ZodNumber;
1966
1971
  line_key: z.ZodString;
1967
1972
  line_type: z.ZodEnum<{
1973
+ simple: "simple";
1968
1974
  service: "service";
1969
1975
  digital: "digital";
1970
1976
  bundle: "bundle";
1971
1977
  composite: "composite";
1972
- simple: "simple";
1973
1978
  }>;
1974
1979
  name: z.ZodString;
1975
1980
  description: z.ZodOptional<z.ZodString>;
@@ -2128,6 +2133,7 @@ declare const PUBLIC_SCHEMAS: {
2128
2133
  }, z.core.$strip>;
2129
2134
  order_type: z.ZodString;
2130
2135
  address_info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2136
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
2131
2137
  payment_method: z.ZodString;
2132
2138
  mobile_money_details: z.ZodOptional<z.ZodObject<{
2133
2139
  phone_number: z.ZodString;
@@ -2146,10 +2152,10 @@ declare const PUBLIC_SCHEMAS: {
2146
2152
  requires_authorization: z.ZodBoolean;
2147
2153
  authorization_type: z.ZodOptional<z.ZodEnum<{
2148
2154
  phone: "phone";
2149
- address: "address";
2150
2155
  otp: "otp";
2151
2156
  pin: "pin";
2152
2157
  birthday: "birthday";
2158
+ address: "address";
2153
2159
  }>>;
2154
2160
  next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2155
2161
  type: z.ZodLiteral<"none">;