@lyxa.ai/types 1.4.343 → 1.4.345-alpha.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.
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.345-alpha.0",
|
|
4
4
|
"description": "Lyxa type definitions and validation schemas for both frontend and backend",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,24 +22,24 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
22
22
|
size: number;
|
|
23
23
|
page: number;
|
|
24
24
|
sort?: Record<string, 1 | -1> | undefined;
|
|
25
|
-
query?: Record<string, any> | undefined;
|
|
26
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
27
|
-
populate?: any;
|
|
28
25
|
search?: {
|
|
29
26
|
searchKey: string;
|
|
30
27
|
searchFields?: string[] | undefined;
|
|
31
28
|
} | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
size?: number | undefined;
|
|
34
|
-
page?: number | undefined;
|
|
35
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
36
|
-
query?: Record<string, any> | undefined;
|
|
37
29
|
select?: Record<string, 0 | 1> | undefined;
|
|
38
30
|
populate?: any;
|
|
31
|
+
query?: Record<string, any> | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
39
34
|
search?: {
|
|
40
35
|
searchKey: string;
|
|
41
36
|
searchFields?: string[] | undefined;
|
|
42
37
|
} | undefined;
|
|
38
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
39
|
+
populate?: any;
|
|
40
|
+
size?: number | undefined;
|
|
41
|
+
page?: number | undefined;
|
|
42
|
+
query?: Record<string, any> | undefined;
|
|
43
43
|
}>>;
|
|
44
44
|
export type FilterDTO = z.infer<typeof FilterSchema>;
|
|
45
45
|
export declare const StringSchema: z.ZodString;
|
|
@@ -181,6 +181,7 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
181
181
|
} & {
|
|
182
182
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
_id: import("mongoose").Types.ObjectId;
|
|
184
185
|
address: string;
|
|
185
186
|
country: string;
|
|
186
187
|
location: {
|
|
@@ -192,7 +193,6 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
192
193
|
addressLabel: string;
|
|
193
194
|
apartment: string;
|
|
194
195
|
buildingName: string;
|
|
195
|
-
_id: import("mongoose").Types.ObjectId;
|
|
196
196
|
description?: string | undefined;
|
|
197
197
|
city?: string | undefined;
|
|
198
198
|
state?: string | undefined;
|
|
@@ -200,6 +200,7 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
200
200
|
deliveryOption?: string | undefined;
|
|
201
201
|
instructions?: string | undefined;
|
|
202
202
|
}, {
|
|
203
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
203
204
|
address: string;
|
|
204
205
|
country: string;
|
|
205
206
|
location: {
|
|
@@ -211,7 +212,6 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
211
212
|
addressLabel: string;
|
|
212
213
|
apartment: string;
|
|
213
214
|
buildingName: string;
|
|
214
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
215
215
|
description?: string | undefined;
|
|
216
216
|
city?: string | undefined;
|
|
217
217
|
state?: string | undefined;
|
|
@@ -648,7 +648,45 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
648
648
|
totalPages: number;
|
|
649
649
|
} | undefined;
|
|
650
650
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
651
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
651
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
652
|
+
success: z.ZodBoolean;
|
|
653
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
654
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
655
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
656
|
+
page: z.ZodNumber;
|
|
657
|
+
size: z.ZodNumber;
|
|
658
|
+
totalElements: z.ZodNumber;
|
|
659
|
+
totalPages: z.ZodNumber;
|
|
660
|
+
}, "strip", z.ZodTypeAny, {
|
|
661
|
+
size: number;
|
|
662
|
+
page: number;
|
|
663
|
+
totalElements: number;
|
|
664
|
+
totalPages: number;
|
|
665
|
+
}, {
|
|
666
|
+
size: number;
|
|
667
|
+
page: number;
|
|
668
|
+
totalElements: number;
|
|
669
|
+
totalPages: number;
|
|
670
|
+
}>>;
|
|
671
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
documents: T[];
|
|
674
|
+
metadata?: {
|
|
675
|
+
size: number;
|
|
676
|
+
page: number;
|
|
677
|
+
totalElements: number;
|
|
678
|
+
totalPages: number;
|
|
679
|
+
} | undefined;
|
|
680
|
+
}, {
|
|
681
|
+
documents: T[];
|
|
682
|
+
metadata?: {
|
|
683
|
+
size: number;
|
|
684
|
+
page: number;
|
|
685
|
+
totalElements: number;
|
|
686
|
+
totalPages: number;
|
|
687
|
+
} | undefined;
|
|
688
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
689
|
+
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
652
690
|
success: z.ZodBoolean;
|
|
653
691
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
654
692
|
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -686,7 +724,45 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
686
724
|
totalPages: number;
|
|
687
725
|
} | undefined;
|
|
688
726
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
689
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]:
|
|
727
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
728
|
+
success: z.ZodBoolean;
|
|
729
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
730
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
731
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
732
|
+
page: z.ZodNumber;
|
|
733
|
+
size: z.ZodNumber;
|
|
734
|
+
totalElements: z.ZodNumber;
|
|
735
|
+
totalPages: z.ZodNumber;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
size: number;
|
|
738
|
+
page: number;
|
|
739
|
+
totalElements: number;
|
|
740
|
+
totalPages: number;
|
|
741
|
+
}, {
|
|
742
|
+
size: number;
|
|
743
|
+
page: number;
|
|
744
|
+
totalElements: number;
|
|
745
|
+
totalPages: number;
|
|
746
|
+
}>>;
|
|
747
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
748
|
+
}, "strip", z.ZodTypeAny, {
|
|
749
|
+
documents: T[];
|
|
750
|
+
metadata?: {
|
|
751
|
+
size: number;
|
|
752
|
+
page: number;
|
|
753
|
+
totalElements: number;
|
|
754
|
+
totalPages: number;
|
|
755
|
+
} | undefined;
|
|
756
|
+
}, {
|
|
757
|
+
documents: T[];
|
|
758
|
+
metadata?: {
|
|
759
|
+
size: number;
|
|
760
|
+
page: number;
|
|
761
|
+
totalElements: number;
|
|
762
|
+
totalPages: number;
|
|
763
|
+
} | undefined;
|
|
764
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
765
|
+
}>[k_1]; } : never>;
|
|
690
766
|
export type PaginatedDTO<T> = {
|
|
691
767
|
metadata: DTO<typeof metadataSchema>;
|
|
692
768
|
documents: T[];
|
|
@@ -803,13 +879,13 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
803
879
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
804
880
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
805
881
|
}, "strip", z.ZodTypeAny, {
|
|
806
|
-
query?: Record<string, any> | undefined;
|
|
807
882
|
select?: Record<string, 0 | 1> | undefined;
|
|
808
883
|
populate?: any;
|
|
809
|
-
}, {
|
|
810
884
|
query?: Record<string, any> | undefined;
|
|
885
|
+
}, {
|
|
811
886
|
select?: Record<string, 0 | 1> | undefined;
|
|
812
887
|
populate?: any;
|
|
888
|
+
query?: Record<string, any> | undefined;
|
|
813
889
|
}>;
|
|
814
890
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|
|
815
891
|
declare const ShareableLinkSchema: z.ZodObject<{
|
|
@@ -89,22 +89,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
89
89
|
private baseSchema;
|
|
90
90
|
constructor(baseFields: T, includeTimestamps?: boolean, includeTracking?: boolean);
|
|
91
91
|
private createBaseSchema;
|
|
92
|
-
getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
92
|
+
getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
|
|
93
93
|
getEntitySchema(): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
94
94
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
95
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
95
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
96
96
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
97
|
-
}>
|
|
97
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
98
98
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
99
|
-
}> extends infer
|
|
99
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
100
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
101
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
102
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
103
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
104
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
105
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
100
106
|
getIdSchema(): z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
101
107
|
getUpdateSchema(excludeFields?: ExcludeFromUpdate): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
102
108
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
103
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
109
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
110
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
111
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
112
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
113
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
114
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
115
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
104
116
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
105
|
-
}> extends infer
|
|
117
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
106
118
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
107
|
-
}>
|
|
119
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
108
120
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
109
121
|
}, "strict", z.ZodTypeAny, {
|
|
110
122
|
[x: string]: any;
|
|
@@ -127,22 +139,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
127
139
|
[x: string]: any;
|
|
128
140
|
}>;
|
|
129
141
|
getAllSchemas(excludeFromUpdate?: ExcludeFromUpdate): {
|
|
130
|
-
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
142
|
+
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
|
|
131
143
|
EntitySchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
132
144
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
133
|
-
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<
|
|
145
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
134
146
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
135
|
-
}>
|
|
147
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
136
148
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
137
|
-
}> extends infer
|
|
149
|
+
}> extends infer T_4 extends z.ZodRawShape ? { [k_2 in keyof T_4]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
150
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
151
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
152
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
153
|
+
}> extends infer T_5 extends z.ZodRawShape ? { [k_2 in keyof T_5]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
154
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
155
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
138
156
|
IdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
139
157
|
UpdateSchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
140
158
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
141
|
-
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<
|
|
159
|
+
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
160
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
161
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
162
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
163
|
+
}> extends infer T_7 extends z.ZodRawShape ? { [k_2 in keyof T_7]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
164
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
165
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
142
166
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
143
|
-
}> extends infer
|
|
167
|
+
}> extends infer T_8 extends z.ZodRawShape ? { [k_2 in keyof T_8]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
144
168
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
145
|
-
}>
|
|
169
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
146
170
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
147
171
|
}, "strict", z.ZodTypeAny, {
|
|
148
172
|
[x: string]: any;
|
|
@@ -4,8 +4,8 @@ export declare const UserAddressFrontendSchema: z.ZodObject<{
|
|
|
4
4
|
addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
5
5
|
apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
6
6
|
buildingName: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
7
|
-
deliveryOption: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string
|
|
8
|
-
instructions: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string
|
|
7
|
+
deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
8
|
+
instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
addressLabel: string;
|
|
11
11
|
apartment: string;
|