@cimplify/sdk 0.94.1 → 0.94.2
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.
- package/dist/{chunk-BRYMPBEN.mjs → chunk-7TEMLVDT.mjs} +15 -4
- package/dist/{chunk-XVOHMOGU.js → chunk-FECGCIVV.js} +15 -4
- package/dist/{chunk-QL6VROSG.js → chunk-RQMCRU4C.js} +2 -2
- package/dist/{chunk-7A3YHBVW.mjs → chunk-VZWK2FJM.mjs} +1 -1
- package/dist/{client-Bhe2TnFW.d.mts → client-BycFj07D.d.mts} +1 -1
- package/dist/{client-DrkuEK_I.d.ts → client-DqYNEMce.d.ts} +1 -1
- package/dist/mock/cli.mjs +15 -4
- package/dist/mock/library.js +15 -4
- package/dist/mock/library.mjs +15 -4
- package/dist/mock/msw.js +15 -4
- package/dist/mock/msw.mjs +15 -4
- package/dist/react.js +20 -17
- package/dist/react.mjs +20 -17
- package/dist/{server-BN9ZCAKT.d.mts → server-HVDbbqR9.d.mts} +6 -0
- package/dist/{server-DDGbfW_S.d.ts → server-JBuTPY-j.d.ts} +6 -0
- package/dist/testing/msw.d.mts +1 -1
- package/dist/testing/msw.d.ts +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +3 -3
- package/dist/testing/suite.d.ts +3 -3
- package/dist/testing/suite.js +21 -21
- package/dist/testing/suite.mjs +2 -2
- package/dist/testing.d.mts +17 -17
- package/dist/testing.d.ts +17 -17
- package/dist/testing.js +77 -77
- package/dist/testing.mjs +3 -3
- package/package.json +1 -1
- package/registry/chat-widget.json +1 -1
package/dist/testing.d.mts
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-
|
|
3
|
+
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-BycFj07D.mjs';
|
|
4
4
|
import './client-BTL9d_nN.mjs';
|
|
5
5
|
import './product-O8-wcHSe.mjs';
|
|
6
6
|
import './payment-pKPpaORI.mjs';
|
|
7
|
-
import './server-
|
|
7
|
+
import './server-HVDbbqR9.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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
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-
|
|
3
|
+
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-DqYNEMce.js';
|
|
4
4
|
import './client-BX30FAWZ.js';
|
|
5
5
|
import './product-O8-wcHSe.js';
|
|
6
6
|
import './payment-By0JidTe.js';
|
|
7
|
-
import './server-
|
|
7
|
+
import './server-JBuTPY-j.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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
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">;
|