@cimplify/sdk 0.70.0 → 0.70.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/testing.d.mts +15 -15
- package/dist/testing.d.ts +15 -15
- package/package.json +1 -1
package/dist/testing.d.mts
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
|
-
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;
|
|
@@ -1076,11 +1076,11 @@ declare const CartSchema: z.ZodObject<{
|
|
|
1076
1076
|
quantity: z.ZodNumber;
|
|
1077
1077
|
line_key: z.ZodString;
|
|
1078
1078
|
line_type: z.ZodEnum<{
|
|
1079
|
-
simple: "simple";
|
|
1080
1079
|
service: "service";
|
|
1081
1080
|
digital: "digital";
|
|
1082
1081
|
bundle: "bundle";
|
|
1083
1082
|
composite: "composite";
|
|
1083
|
+
simple: "simple";
|
|
1084
1084
|
}>;
|
|
1085
1085
|
name: z.ZodString;
|
|
1086
1086
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1249,7 +1249,7 @@ declare const assertCart: (value: unknown) => asserts value is {
|
|
|
1249
1249
|
item_id: string;
|
|
1250
1250
|
quantity: number;
|
|
1251
1251
|
line_key: string;
|
|
1252
|
-
line_type: "
|
|
1252
|
+
line_type: "service" | "digital" | "bundle" | "composite" | "simple";
|
|
1253
1253
|
name: string;
|
|
1254
1254
|
is_available: boolean;
|
|
1255
1255
|
base_price: string;
|
|
@@ -1462,10 +1462,10 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
|
|
|
1462
1462
|
};
|
|
1463
1463
|
declare const AuthorizationTypeSchema: z.ZodEnum<{
|
|
1464
1464
|
phone: "phone";
|
|
1465
|
+
address: "address";
|
|
1465
1466
|
otp: "otp";
|
|
1466
1467
|
pin: "pin";
|
|
1467
1468
|
birthday: "birthday";
|
|
1468
|
-
address: "address";
|
|
1469
1469
|
}>;
|
|
1470
1470
|
declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1471
1471
|
type: z.ZodLiteral<"none">;
|
|
@@ -1485,10 +1485,10 @@ declare const CheckoutResponseSchema: z.ZodObject<{
|
|
|
1485
1485
|
requires_authorization: z.ZodBoolean;
|
|
1486
1486
|
authorization_type: z.ZodOptional<z.ZodEnum<{
|
|
1487
1487
|
phone: "phone";
|
|
1488
|
+
address: "address";
|
|
1488
1489
|
otp: "otp";
|
|
1489
1490
|
pin: "pin";
|
|
1490
1491
|
birthday: "birthday";
|
|
1491
|
-
address: "address";
|
|
1492
1492
|
}>>;
|
|
1493
1493
|
next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1494
1494
|
type: z.ZodLiteral<"none">;
|
|
@@ -1525,7 +1525,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
|
|
|
1525
1525
|
display_text?: string | undefined;
|
|
1526
1526
|
};
|
|
1527
1527
|
payment_reference?: string | undefined;
|
|
1528
|
-
authorization_type?: "phone" | "
|
|
1528
|
+
authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | undefined;
|
|
1529
1529
|
provider?: string | undefined;
|
|
1530
1530
|
authorization_url?: string | undefined;
|
|
1531
1531
|
display_text?: string | undefined;
|
|
@@ -1724,8 +1724,8 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
1724
1724
|
}, z.core.$strip>;
|
|
1725
1725
|
mock: z.ZodObject<{
|
|
1726
1726
|
seed: z.ZodEnum<{
|
|
1727
|
-
empty: "empty";
|
|
1728
1727
|
default: "default";
|
|
1728
|
+
empty: "empty";
|
|
1729
1729
|
"reesa-storefront": "reesa-storefront";
|
|
1730
1730
|
restaurant: "restaurant";
|
|
1731
1731
|
retail: "retail";
|
|
@@ -1785,11 +1785,11 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
1785
1785
|
quantity: z.ZodNumber;
|
|
1786
1786
|
line_key: z.ZodString;
|
|
1787
1787
|
line_type: z.ZodEnum<{
|
|
1788
|
-
simple: "simple";
|
|
1789
1788
|
service: "service";
|
|
1790
1789
|
digital: "digital";
|
|
1791
1790
|
bundle: "bundle";
|
|
1792
1791
|
composite: "composite";
|
|
1792
|
+
simple: "simple";
|
|
1793
1793
|
}>;
|
|
1794
1794
|
name: z.ZodString;
|
|
1795
1795
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1953,11 +1953,11 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
1953
1953
|
quantity: z.ZodNumber;
|
|
1954
1954
|
line_key: z.ZodString;
|
|
1955
1955
|
line_type: z.ZodEnum<{
|
|
1956
|
-
simple: "simple";
|
|
1957
1956
|
service: "service";
|
|
1958
1957
|
digital: "digital";
|
|
1959
1958
|
bundle: "bundle";
|
|
1960
1959
|
composite: "composite";
|
|
1960
|
+
simple: "simple";
|
|
1961
1961
|
}>;
|
|
1962
1962
|
name: z.ZodString;
|
|
1963
1963
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2131,10 +2131,10 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
2131
2131
|
requires_authorization: z.ZodBoolean;
|
|
2132
2132
|
authorization_type: z.ZodOptional<z.ZodEnum<{
|
|
2133
2133
|
phone: "phone";
|
|
2134
|
+
address: "address";
|
|
2134
2135
|
otp: "otp";
|
|
2135
2136
|
pin: "pin";
|
|
2136
2137
|
birthday: "birthday";
|
|
2137
|
-
address: "address";
|
|
2138
2138
|
}>>;
|
|
2139
2139
|
next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2140
2140
|
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
|
-
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;
|
|
@@ -1076,11 +1076,11 @@ declare const CartSchema: z.ZodObject<{
|
|
|
1076
1076
|
quantity: z.ZodNumber;
|
|
1077
1077
|
line_key: z.ZodString;
|
|
1078
1078
|
line_type: z.ZodEnum<{
|
|
1079
|
-
simple: "simple";
|
|
1080
1079
|
service: "service";
|
|
1081
1080
|
digital: "digital";
|
|
1082
1081
|
bundle: "bundle";
|
|
1083
1082
|
composite: "composite";
|
|
1083
|
+
simple: "simple";
|
|
1084
1084
|
}>;
|
|
1085
1085
|
name: z.ZodString;
|
|
1086
1086
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1249,7 +1249,7 @@ declare const assertCart: (value: unknown) => asserts value is {
|
|
|
1249
1249
|
item_id: string;
|
|
1250
1250
|
quantity: number;
|
|
1251
1251
|
line_key: string;
|
|
1252
|
-
line_type: "
|
|
1252
|
+
line_type: "service" | "digital" | "bundle" | "composite" | "simple";
|
|
1253
1253
|
name: string;
|
|
1254
1254
|
is_available: boolean;
|
|
1255
1255
|
base_price: string;
|
|
@@ -1462,10 +1462,10 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
|
|
|
1462
1462
|
};
|
|
1463
1463
|
declare const AuthorizationTypeSchema: z.ZodEnum<{
|
|
1464
1464
|
phone: "phone";
|
|
1465
|
+
address: "address";
|
|
1465
1466
|
otp: "otp";
|
|
1466
1467
|
pin: "pin";
|
|
1467
1468
|
birthday: "birthday";
|
|
1468
|
-
address: "address";
|
|
1469
1469
|
}>;
|
|
1470
1470
|
declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1471
1471
|
type: z.ZodLiteral<"none">;
|
|
@@ -1485,10 +1485,10 @@ declare const CheckoutResponseSchema: z.ZodObject<{
|
|
|
1485
1485
|
requires_authorization: z.ZodBoolean;
|
|
1486
1486
|
authorization_type: z.ZodOptional<z.ZodEnum<{
|
|
1487
1487
|
phone: "phone";
|
|
1488
|
+
address: "address";
|
|
1488
1489
|
otp: "otp";
|
|
1489
1490
|
pin: "pin";
|
|
1490
1491
|
birthday: "birthday";
|
|
1491
|
-
address: "address";
|
|
1492
1492
|
}>>;
|
|
1493
1493
|
next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1494
1494
|
type: z.ZodLiteral<"none">;
|
|
@@ -1525,7 +1525,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
|
|
|
1525
1525
|
display_text?: string | undefined;
|
|
1526
1526
|
};
|
|
1527
1527
|
payment_reference?: string | undefined;
|
|
1528
|
-
authorization_type?: "phone" | "
|
|
1528
|
+
authorization_type?: "phone" | "address" | "otp" | "pin" | "birthday" | undefined;
|
|
1529
1529
|
provider?: string | undefined;
|
|
1530
1530
|
authorization_url?: string | undefined;
|
|
1531
1531
|
display_text?: string | undefined;
|
|
@@ -1724,8 +1724,8 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
1724
1724
|
}, z.core.$strip>;
|
|
1725
1725
|
mock: z.ZodObject<{
|
|
1726
1726
|
seed: z.ZodEnum<{
|
|
1727
|
-
empty: "empty";
|
|
1728
1727
|
default: "default";
|
|
1728
|
+
empty: "empty";
|
|
1729
1729
|
"reesa-storefront": "reesa-storefront";
|
|
1730
1730
|
restaurant: "restaurant";
|
|
1731
1731
|
retail: "retail";
|
|
@@ -1785,11 +1785,11 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
1785
1785
|
quantity: z.ZodNumber;
|
|
1786
1786
|
line_key: z.ZodString;
|
|
1787
1787
|
line_type: z.ZodEnum<{
|
|
1788
|
-
simple: "simple";
|
|
1789
1788
|
service: "service";
|
|
1790
1789
|
digital: "digital";
|
|
1791
1790
|
bundle: "bundle";
|
|
1792
1791
|
composite: "composite";
|
|
1792
|
+
simple: "simple";
|
|
1793
1793
|
}>;
|
|
1794
1794
|
name: z.ZodString;
|
|
1795
1795
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1953,11 +1953,11 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
1953
1953
|
quantity: z.ZodNumber;
|
|
1954
1954
|
line_key: z.ZodString;
|
|
1955
1955
|
line_type: z.ZodEnum<{
|
|
1956
|
-
simple: "simple";
|
|
1957
1956
|
service: "service";
|
|
1958
1957
|
digital: "digital";
|
|
1959
1958
|
bundle: "bundle";
|
|
1960
1959
|
composite: "composite";
|
|
1960
|
+
simple: "simple";
|
|
1961
1961
|
}>;
|
|
1962
1962
|
name: z.ZodString;
|
|
1963
1963
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2131,10 +2131,10 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
2131
2131
|
requires_authorization: z.ZodBoolean;
|
|
2132
2132
|
authorization_type: z.ZodOptional<z.ZodEnum<{
|
|
2133
2133
|
phone: "phone";
|
|
2134
|
+
address: "address";
|
|
2134
2135
|
otp: "otp";
|
|
2135
2136
|
pin: "pin";
|
|
2136
2137
|
birthday: "birthday";
|
|
2137
|
-
address: "address";
|
|
2138
2138
|
}>>;
|
|
2139
2139
|
next_action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2140
2140
|
type: z.ZodLiteral<"none">;
|