@lyxa.ai/types 1.4.217 → 1.4.218
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
|
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
26
26
|
searchFields?: string[] | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
sort?: Record<string, 1 | -1> | undefined;
|
|
29
|
-
populate?: any;
|
|
30
29
|
select?: Record<string, 0 | 1> | undefined;
|
|
30
|
+
populate?: any;
|
|
31
31
|
query?: Record<string, any> | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
search?: {
|
|
@@ -36,8 +36,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
36
36
|
} | undefined;
|
|
37
37
|
sort?: Record<string, 1 | -1> | undefined;
|
|
38
38
|
size?: number | undefined;
|
|
39
|
-
populate?: any;
|
|
40
39
|
select?: Record<string, 0 | 1> | undefined;
|
|
40
|
+
populate?: any;
|
|
41
41
|
query?: Record<string, any> | undefined;
|
|
42
42
|
page?: number | undefined;
|
|
43
43
|
}>>;
|
|
@@ -648,7 +648,83 @@ 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<{
|
|
690
|
+
success: z.ZodBoolean;
|
|
691
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
692
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
693
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
694
|
+
page: z.ZodNumber;
|
|
695
|
+
size: z.ZodNumber;
|
|
696
|
+
totalElements: z.ZodNumber;
|
|
697
|
+
totalPages: z.ZodNumber;
|
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
size: number;
|
|
700
|
+
page: number;
|
|
701
|
+
totalElements: number;
|
|
702
|
+
totalPages: number;
|
|
703
|
+
}, {
|
|
704
|
+
size: number;
|
|
705
|
+
page: number;
|
|
706
|
+
totalElements: number;
|
|
707
|
+
totalPages: number;
|
|
708
|
+
}>>;
|
|
709
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
710
|
+
}, "strip", z.ZodTypeAny, {
|
|
711
|
+
documents: T[];
|
|
712
|
+
metadata?: {
|
|
713
|
+
size: number;
|
|
714
|
+
page: number;
|
|
715
|
+
totalElements: number;
|
|
716
|
+
totalPages: number;
|
|
717
|
+
} | undefined;
|
|
718
|
+
}, {
|
|
719
|
+
documents: T[];
|
|
720
|
+
metadata?: {
|
|
721
|
+
size: number;
|
|
722
|
+
page: number;
|
|
723
|
+
totalElements: number;
|
|
724
|
+
totalPages: number;
|
|
725
|
+
} | undefined;
|
|
726
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
727
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
652
728
|
success: z.ZodBoolean;
|
|
653
729
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
654
730
|
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -686,7 +762,7 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
686
762
|
totalPages: number;
|
|
687
763
|
} | undefined;
|
|
688
764
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
689
|
-
}>
|
|
765
|
+
}>[k_1]; } : never>;
|
|
690
766
|
export type PaginatedDTO<T> = {
|
|
691
767
|
metadata: DTO<typeof metadataSchema>;
|
|
692
768
|
documents: T[];
|
|
@@ -735,12 +811,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
735
811
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
736
812
|
}, "strip", z.ZodTypeAny, {
|
|
737
813
|
_id: import("mongoose").Types.ObjectId;
|
|
738
|
-
populate?: any;
|
|
739
814
|
select?: Record<string, 0 | 1> | undefined;
|
|
815
|
+
populate?: any;
|
|
740
816
|
}, {
|
|
741
817
|
_id: string | import("mongoose").Types.ObjectId;
|
|
742
|
-
populate?: any;
|
|
743
818
|
select?: Record<string, 0 | 1> | undefined;
|
|
819
|
+
populate?: any;
|
|
744
820
|
}>;
|
|
745
821
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
746
822
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -753,12 +829,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
753
829
|
_id: import("mongoose").Types.ObjectId;
|
|
754
830
|
withAttributeHiddenItems: boolean;
|
|
755
831
|
withAddonsHiddenItems: boolean;
|
|
756
|
-
populate?: any;
|
|
757
832
|
select?: Record<string, 0 | 1> | undefined;
|
|
833
|
+
populate?: any;
|
|
758
834
|
}, {
|
|
759
835
|
_id: string | import("mongoose").Types.ObjectId;
|
|
760
|
-
populate?: any;
|
|
761
836
|
select?: Record<string, 0 | 1> | undefined;
|
|
837
|
+
populate?: any;
|
|
762
838
|
withAttributeHiddenItems?: boolean | undefined;
|
|
763
839
|
withAddonsHiddenItems?: boolean | undefined;
|
|
764
840
|
}>;
|
|
@@ -772,15 +848,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
|
|
|
772
848
|
userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
|
|
773
849
|
}, "strip", z.ZodTypeAny, {
|
|
774
850
|
_id: import("mongoose").Types.ObjectId;
|
|
775
|
-
populate?: any;
|
|
776
851
|
select?: Record<string, 0 | 1> | undefined;
|
|
852
|
+
populate?: any;
|
|
777
853
|
groupByCategories?: boolean | undefined;
|
|
778
854
|
getParentCategory?: boolean | undefined;
|
|
779
855
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
780
856
|
}, {
|
|
781
857
|
_id: string | import("mongoose").Types.ObjectId;
|
|
782
|
-
populate?: any;
|
|
783
858
|
select?: Record<string, 0 | 1> | undefined;
|
|
859
|
+
populate?: any;
|
|
784
860
|
groupByCategories?: boolean | undefined;
|
|
785
861
|
getParentCategory?: boolean | undefined;
|
|
786
862
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
@@ -790,11 +866,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
790
866
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
791
867
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
792
868
|
}, "strip", z.ZodTypeAny, {
|
|
793
|
-
populate?: any;
|
|
794
869
|
select?: Record<string, 0 | 1> | undefined;
|
|
795
|
-
}, {
|
|
796
870
|
populate?: any;
|
|
871
|
+
}, {
|
|
797
872
|
select?: Record<string, 0 | 1> | undefined;
|
|
873
|
+
populate?: any;
|
|
798
874
|
}>>;
|
|
799
875
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
800
876
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -802,12 +878,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
802
878
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
803
879
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
804
880
|
}, "strip", z.ZodTypeAny, {
|
|
805
|
-
populate?: any;
|
|
806
881
|
select?: Record<string, 0 | 1> | undefined;
|
|
882
|
+
populate?: any;
|
|
807
883
|
query?: Record<string, any> | undefined;
|
|
808
884
|
}, {
|
|
809
|
-
populate?: any;
|
|
810
885
|
select?: Record<string, 0 | 1> | undefined;
|
|
886
|
+
populate?: any;
|
|
811
887
|
query?: Record<string, any> | undefined;
|
|
812
888
|
}>;
|
|
813
889
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|
|
@@ -76,22 +76,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
76
76
|
private baseSchema;
|
|
77
77
|
constructor(baseFields: T, includeTimestamps?: boolean, includeTracking?: boolean);
|
|
78
78
|
private createBaseSchema;
|
|
79
|
-
getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
79
|
+
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>;
|
|
80
80
|
getEntitySchema(): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
81
81
|
_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>]>;
|
|
82
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
82
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
83
83
|
_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>]>;
|
|
84
|
-
}>
|
|
84
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
85
85
|
_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>]>;
|
|
86
|
-
}> extends infer
|
|
86
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
87
|
+
_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>]>;
|
|
88
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
89
|
+
_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>]>;
|
|
90
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
91
|
+
_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>]>;
|
|
92
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
87
93
|
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>]>;
|
|
88
94
|
getUpdateSchema(excludeFields?: ExcludeFromUpdate): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
89
95
|
_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>]>;
|
|
90
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
96
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
97
|
+
_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>]>;
|
|
98
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
99
|
+
_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>]>;
|
|
100
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
101
|
+
_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>]>;
|
|
102
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
91
103
|
_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>]>;
|
|
92
|
-
}> extends infer
|
|
104
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
93
105
|
_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>]>;
|
|
94
|
-
}>
|
|
106
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
95
107
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
96
108
|
}, "strict", z.ZodTypeAny, {
|
|
97
109
|
[x: string]: any;
|
|
@@ -114,22 +126,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
114
126
|
[x: string]: any;
|
|
115
127
|
}>;
|
|
116
128
|
getAllSchemas(excludeFromUpdate?: ExcludeFromUpdate): {
|
|
117
|
-
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
129
|
+
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>;
|
|
118
130
|
EntitySchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
119
131
|
_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>]>;
|
|
120
|
-
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<
|
|
132
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
121
133
|
_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>]>;
|
|
122
|
-
}>
|
|
134
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
123
135
|
_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>]>;
|
|
124
|
-
}> extends infer
|
|
136
|
+
}> extends infer T_4 extends z.ZodRawShape ? { [k_2 in keyof T_4]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
137
|
+
_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>]>;
|
|
138
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
139
|
+
_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>]>;
|
|
140
|
+
}> extends infer T_5 extends z.ZodRawShape ? { [k_2 in keyof T_5]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
141
|
+
_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>]>;
|
|
142
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
125
143
|
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>]>;
|
|
126
144
|
UpdateSchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
127
145
|
_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>]>;
|
|
128
|
-
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<
|
|
146
|
+
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
147
|
+
_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>]>;
|
|
148
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
149
|
+
_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>]>;
|
|
150
|
+
}> extends infer T_7 extends z.ZodRawShape ? { [k_2 in keyof T_7]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
151
|
+
_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>]>;
|
|
152
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
129
153
|
_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>]>;
|
|
130
|
-
}> extends infer
|
|
154
|
+
}> extends infer T_8 extends z.ZodRawShape ? { [k_2 in keyof T_8]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
131
155
|
_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>]>;
|
|
132
|
-
}>
|
|
156
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
133
157
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
134
158
|
}, "strict", z.ZodTypeAny, {
|
|
135
159
|
[x: string]: any;
|