@cimplify/sdk 0.100.3 → 0.100.5

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 (55) hide show
  1. package/README.md +17 -0
  2. package/dist/advanced.d.mts +1 -1
  3. package/dist/advanced.d.ts +1 -1
  4. package/dist/advanced.js +20 -20
  5. package/dist/advanced.mjs +1 -1
  6. package/dist/{chunk-FWKSBF3F.js → chunk-3HU5I5VG.js} +20 -4
  7. package/dist/{chunk-NOGCGI4J.mjs → chunk-HSDQWJLA.mjs} +2 -2
  8. package/dist/{chunk-CNY2XFN4.js → chunk-JEVCHTKZ.js} +48 -47
  9. package/dist/{chunk-KNCW5DI7.js → chunk-LMD7B33E.js} +4 -4
  10. package/dist/{chunk-XCS56XSS.js → chunk-PNTINRAU.js} +31 -1
  11. package/dist/{chunk-HFTRLRLM.mjs → chunk-RQPXLXB2.mjs} +31 -1
  12. package/dist/{chunk-XG4DZT4I.mjs → chunk-RWR7JF7F.mjs} +2 -1
  13. package/dist/{chunk-FFRQNNUQ.mjs → chunk-Z7M6GAHS.mjs} +20 -4
  14. package/dist/{client-Bx4NRdl8.d.mts → client-BwRAAk4y.d.mts} +15 -0
  15. package/dist/{client-Cvp8W1r9.d.ts → client-CPcZIrjC.d.ts} +2 -2
  16. package/dist/{client-BWdeCgmo.d.ts → client-CrPglBBz.d.ts} +15 -0
  17. package/dist/{client-BGeSemVv.d.mts → client-DGrvLiJv.d.mts} +2 -2
  18. package/dist/index.d.mts +2 -2
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +69 -69
  21. package/dist/index.mjs +3 -3
  22. package/dist/lint-rules.json +1 -0
  23. package/dist/lint.d.mts +540 -0
  24. package/dist/lint.d.ts +540 -0
  25. package/dist/lint.js +540 -0
  26. package/dist/lint.mjs +524 -0
  27. package/dist/mock/cli.mjs +31 -1
  28. package/dist/mock/library.js +31 -1
  29. package/dist/mock/library.mjs +31 -1
  30. package/dist/mock/msw.js +31 -1
  31. package/dist/mock/msw.mjs +31 -1
  32. package/dist/react.d.mts +10 -5
  33. package/dist/react.d.ts +10 -5
  34. package/dist/react.js +40 -35
  35. package/dist/react.mjs +14 -9
  36. package/dist/{server-BRJ61o2J.d.mts → server-DRAW2OOX.d.mts} +4 -1
  37. package/dist/{server-CXrVYtNo.d.ts → server-zyrpzJVn.d.ts} +4 -1
  38. package/dist/server.d.mts +2 -2
  39. package/dist/server.d.ts +2 -2
  40. package/dist/server.js +7 -7
  41. package/dist/server.mjs +2 -2
  42. package/dist/styles.css +1 -1
  43. package/dist/testing/msw.d.mts +1 -1
  44. package/dist/testing/msw.d.ts +1 -1
  45. package/dist/testing/msw.js +2 -2
  46. package/dist/testing/msw.mjs +1 -1
  47. package/dist/testing/suite.d.mts +4 -4
  48. package/dist/testing/suite.d.ts +4 -4
  49. package/dist/testing/suite.js +23 -23
  50. package/dist/testing/suite.mjs +4 -4
  51. package/dist/testing.d.mts +18 -18
  52. package/dist/testing.d.ts +18 -18
  53. package/dist/testing.js +79 -79
  54. package/dist/testing.mjs +5 -5
  55. package/package.json +10 -2
@@ -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-BGeSemVv.mjs';
4
- import './client-Bx4NRdl8.mjs';
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
5
  import './product-CeV8euw4.mjs';
6
6
  import './payment-BSzy7sly.mjs';
7
- import './server-BRJ61o2J.mjs';
7
+ import './server-DRAW2OOX.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>;
@@ -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
@@ -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-Cvp8W1r9.js';
4
- import './client-BWdeCgmo.js';
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
5
  import './product-CeV8euw4.js';
6
6
  import './payment-jK8ztICx.js';
7
- import './server-CXrVYtNo.js';
7
+ import './server-zyrpzJVn.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>;
@@ -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">;