@lyxa.ai/types 1.4.35 → 1.4.37
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
|
}>>;
|
|
@@ -649,7 +649,83 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
649
649
|
totalPages: number;
|
|
650
650
|
} | undefined;
|
|
651
651
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
652
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
652
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
653
|
+
success: z.ZodBoolean;
|
|
654
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
655
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
656
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
page: z.ZodNumber;
|
|
658
|
+
size: z.ZodNumber;
|
|
659
|
+
totalElements: z.ZodNumber;
|
|
660
|
+
totalPages: z.ZodNumber;
|
|
661
|
+
}, "strip", z.ZodTypeAny, {
|
|
662
|
+
size: number;
|
|
663
|
+
page: number;
|
|
664
|
+
totalElements: number;
|
|
665
|
+
totalPages: number;
|
|
666
|
+
}, {
|
|
667
|
+
size: number;
|
|
668
|
+
page: number;
|
|
669
|
+
totalElements: number;
|
|
670
|
+
totalPages: number;
|
|
671
|
+
}>>;
|
|
672
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
673
|
+
}, "strip", z.ZodTypeAny, {
|
|
674
|
+
documents: T[];
|
|
675
|
+
metadata?: {
|
|
676
|
+
size: number;
|
|
677
|
+
page: number;
|
|
678
|
+
totalElements: number;
|
|
679
|
+
totalPages: number;
|
|
680
|
+
} | undefined;
|
|
681
|
+
}, {
|
|
682
|
+
documents: T[];
|
|
683
|
+
metadata?: {
|
|
684
|
+
size: number;
|
|
685
|
+
page: number;
|
|
686
|
+
totalElements: number;
|
|
687
|
+
totalPages: number;
|
|
688
|
+
} | undefined;
|
|
689
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
690
|
+
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
691
|
+
success: z.ZodBoolean;
|
|
692
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
693
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
694
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
695
|
+
page: z.ZodNumber;
|
|
696
|
+
size: z.ZodNumber;
|
|
697
|
+
totalElements: z.ZodNumber;
|
|
698
|
+
totalPages: z.ZodNumber;
|
|
699
|
+
}, "strip", z.ZodTypeAny, {
|
|
700
|
+
size: number;
|
|
701
|
+
page: number;
|
|
702
|
+
totalElements: number;
|
|
703
|
+
totalPages: number;
|
|
704
|
+
}, {
|
|
705
|
+
size: number;
|
|
706
|
+
page: number;
|
|
707
|
+
totalElements: number;
|
|
708
|
+
totalPages: number;
|
|
709
|
+
}>>;
|
|
710
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
711
|
+
}, "strip", z.ZodTypeAny, {
|
|
712
|
+
documents: T[];
|
|
713
|
+
metadata?: {
|
|
714
|
+
size: number;
|
|
715
|
+
page: number;
|
|
716
|
+
totalElements: number;
|
|
717
|
+
totalPages: number;
|
|
718
|
+
} | undefined;
|
|
719
|
+
}, {
|
|
720
|
+
documents: T[];
|
|
721
|
+
metadata?: {
|
|
722
|
+
size: number;
|
|
723
|
+
page: number;
|
|
724
|
+
totalElements: number;
|
|
725
|
+
totalPages: number;
|
|
726
|
+
} | undefined;
|
|
727
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
728
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
653
729
|
success: z.ZodBoolean;
|
|
654
730
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
655
731
|
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -687,7 +763,7 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
687
763
|
totalPages: number;
|
|
688
764
|
} | undefined;
|
|
689
765
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
690
|
-
}>
|
|
766
|
+
}>[k_1]; } : never>;
|
|
691
767
|
export type PaginatedDTO<T> = {
|
|
692
768
|
metadata: DTO<typeof metadataSchema>;
|
|
693
769
|
documents: T[];
|
|
@@ -736,12 +812,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
736
812
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
737
813
|
}, "strip", z.ZodTypeAny, {
|
|
738
814
|
_id: import("mongoose").Types.ObjectId;
|
|
739
|
-
populate?: any;
|
|
740
815
|
select?: Record<string, 0 | 1> | undefined;
|
|
816
|
+
populate?: any;
|
|
741
817
|
}, {
|
|
742
818
|
_id: string | import("mongoose").Types.ObjectId;
|
|
743
|
-
populate?: any;
|
|
744
819
|
select?: Record<string, 0 | 1> | undefined;
|
|
820
|
+
populate?: any;
|
|
745
821
|
}>;
|
|
746
822
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
747
823
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -754,12 +830,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
754
830
|
_id: import("mongoose").Types.ObjectId;
|
|
755
831
|
withAttributeHiddenItems: boolean;
|
|
756
832
|
withAddonsHiddenItems: boolean;
|
|
757
|
-
populate?: any;
|
|
758
833
|
select?: Record<string, 0 | 1> | undefined;
|
|
834
|
+
populate?: any;
|
|
759
835
|
}, {
|
|
760
836
|
_id: string | import("mongoose").Types.ObjectId;
|
|
761
|
-
populate?: any;
|
|
762
837
|
select?: Record<string, 0 | 1> | undefined;
|
|
838
|
+
populate?: any;
|
|
763
839
|
withAttributeHiddenItems?: boolean | undefined;
|
|
764
840
|
withAddonsHiddenItems?: boolean | undefined;
|
|
765
841
|
}>;
|
|
@@ -772,14 +848,14 @@ 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
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
779
855
|
}, {
|
|
780
856
|
_id: string | import("mongoose").Types.ObjectId;
|
|
781
|
-
populate?: any;
|
|
782
857
|
select?: Record<string, 0 | 1> | undefined;
|
|
858
|
+
populate?: any;
|
|
783
859
|
groupByCategories?: boolean | undefined;
|
|
784
860
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
785
861
|
}>;
|
|
@@ -788,11 +864,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
788
864
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
789
865
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
790
866
|
}, "strip", z.ZodTypeAny, {
|
|
791
|
-
populate?: any;
|
|
792
867
|
select?: Record<string, 0 | 1> | undefined;
|
|
793
|
-
}, {
|
|
794
868
|
populate?: any;
|
|
869
|
+
}, {
|
|
795
870
|
select?: Record<string, 0 | 1> | undefined;
|
|
871
|
+
populate?: any;
|
|
796
872
|
}>>;
|
|
797
873
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
798
874
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -800,12 +876,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
800
876
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
801
877
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
802
878
|
}, "strip", z.ZodTypeAny, {
|
|
803
|
-
populate?: any;
|
|
804
879
|
select?: Record<string, 0 | 1> | undefined;
|
|
880
|
+
populate?: any;
|
|
805
881
|
query?: Record<string, any> | undefined;
|
|
806
882
|
}, {
|
|
807
|
-
populate?: any;
|
|
808
883
|
select?: Record<string, 0 | 1> | undefined;
|
|
884
|
+
populate?: any;
|
|
809
885
|
query?: Record<string, any> | undefined;
|
|
810
886
|
}>;
|
|
811
887
|
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;
|