@lyxa.ai/core 1.4.218 → 1.4.219
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/libraries/logger-kit/logger.service.d.ts +5 -5
- package/dist/libraries/mongo/models/user.model.d.ts +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/enum.d.ts +2 -1
- package/dist/types/utilities/enum.js +1 -0
- package/dist/types/utilities/enum.js.map +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +14 -90
- package/dist/types/utilities/validation/global-validation.d.ts +14 -38
- package/dist/utilities/enum.d.ts +2 -1
- package/dist/utilities/enum.js +1 -0
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +2 -78
- package/dist/utilities/validation/global-validation.d.ts +14 -38
- package/package.json +1 -1
|
@@ -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
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
30
29
|
populate?: any;
|
|
30
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
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
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
40
39
|
populate?: any;
|
|
40
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
41
41
|
query?: Record<string, any> | undefined;
|
|
42
42
|
page?: number | undefined;
|
|
43
43
|
}>>;
|
|
@@ -648,83 +648,7 @@ 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]: z.
|
|
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<{
|
|
651
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
728
652
|
success: z.ZodBoolean;
|
|
729
653
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
730
654
|
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -762,7 +686,7 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
762
686
|
totalPages: number;
|
|
763
687
|
} | undefined;
|
|
764
688
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
765
|
-
}>[k_1]; } : never>;
|
|
689
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
766
690
|
export type PaginatedDTO<T> = {
|
|
767
691
|
metadata: DTO<typeof metadataSchema>;
|
|
768
692
|
documents: T[];
|
|
@@ -811,12 +735,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
811
735
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
812
736
|
}, "strip", z.ZodTypeAny, {
|
|
813
737
|
_id: import("mongoose").Types.ObjectId;
|
|
814
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
815
738
|
populate?: any;
|
|
739
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
816
740
|
}, {
|
|
817
741
|
_id: string | import("mongoose").Types.ObjectId;
|
|
818
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
819
742
|
populate?: any;
|
|
743
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
820
744
|
}>;
|
|
821
745
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
822
746
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -829,12 +753,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
829
753
|
_id: import("mongoose").Types.ObjectId;
|
|
830
754
|
withAttributeHiddenItems: boolean;
|
|
831
755
|
withAddonsHiddenItems: boolean;
|
|
832
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
833
756
|
populate?: any;
|
|
757
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
834
758
|
}, {
|
|
835
759
|
_id: string | import("mongoose").Types.ObjectId;
|
|
836
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
837
760
|
populate?: any;
|
|
761
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
838
762
|
withAttributeHiddenItems?: boolean | undefined;
|
|
839
763
|
withAddonsHiddenItems?: boolean | undefined;
|
|
840
764
|
}>;
|
|
@@ -848,15 +772,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
|
|
|
848
772
|
userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
|
|
849
773
|
}, "strip", z.ZodTypeAny, {
|
|
850
774
|
_id: import("mongoose").Types.ObjectId;
|
|
851
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
852
775
|
populate?: any;
|
|
776
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
853
777
|
groupByCategories?: boolean | undefined;
|
|
854
778
|
getParentCategory?: boolean | undefined;
|
|
855
779
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
856
780
|
}, {
|
|
857
781
|
_id: string | import("mongoose").Types.ObjectId;
|
|
858
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
859
782
|
populate?: any;
|
|
783
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
860
784
|
groupByCategories?: boolean | undefined;
|
|
861
785
|
getParentCategory?: boolean | undefined;
|
|
862
786
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
@@ -866,11 +790,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
866
790
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
867
791
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
868
792
|
}, "strip", z.ZodTypeAny, {
|
|
869
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
870
793
|
populate?: any;
|
|
871
|
-
}, {
|
|
872
794
|
select?: Record<string, 0 | 1> | undefined;
|
|
795
|
+
}, {
|
|
873
796
|
populate?: any;
|
|
797
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
874
798
|
}>>;
|
|
875
799
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
876
800
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -878,12 +802,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
878
802
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
879
803
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
880
804
|
}, "strip", z.ZodTypeAny, {
|
|
881
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
882
805
|
populate?: any;
|
|
806
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
883
807
|
query?: Record<string, any> | undefined;
|
|
884
808
|
}, {
|
|
885
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
886
809
|
populate?: any;
|
|
810
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
887
811
|
query?: Record<string, any> | undefined;
|
|
888
812
|
}>;
|
|
889
813
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|
|
@@ -76,34 +76,22 @@ 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]: T_1[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[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<z.objectUtil.extendShape<T, {
|
|
82
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<T_1[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<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
|
-
}>[k]>; } : never,
|
|
84
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<T_2[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<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
|
|
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">>;
|
|
86
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<T_3[k]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
93
87
|
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>]>;
|
|
94
88
|
getUpdateSchema(excludeFields?: ExcludeFromUpdate): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
95
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>]>;
|
|
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, {
|
|
90
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<T_1[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
103
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>]>;
|
|
104
|
-
}> extends infer
|
|
92
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<T_2[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
105
93
|
_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>]>;
|
|
106
|
-
}>[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
94
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<T_3[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
107
95
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
108
96
|
}, "strict", z.ZodTypeAny, {
|
|
109
97
|
[x: string]: any;
|
|
@@ -126,34 +114,22 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
126
114
|
[x: string]: any;
|
|
127
115
|
}>;
|
|
128
116
|
getAllSchemas(excludeFromUpdate?: ExcludeFromUpdate): {
|
|
129
|
-
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
117
|
+
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
130
118
|
EntitySchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
131
119
|
_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
|
-
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
120
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<T_3[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
133
121
|
_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>]>;
|
|
134
|
-
}>[k_2]>; } : never,
|
|
122
|
+
}> extends infer T_4 extends z.ZodRawShape ? { [k_2 in keyof T_4]: z.ZodOptional<T_4[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
135
123
|
_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>]>;
|
|
136
|
-
}> extends infer
|
|
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">>;
|
|
124
|
+
}> extends infer T_5 extends z.ZodRawShape ? { [k_2 in keyof T_5]: z.ZodOptional<T_5[k_2]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
143
125
|
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>]>;
|
|
144
126
|
UpdateSchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
145
127
|
_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>]>;
|
|
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, {
|
|
128
|
+
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<T_6[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
153
129
|
_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>]>;
|
|
154
|
-
}> extends infer
|
|
130
|
+
}> extends infer T_7 extends z.ZodRawShape ? { [k_2 in keyof T_7]: z.ZodOptional<T_7[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
155
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>]>;
|
|
156
|
-
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
132
|
+
}> extends infer T_8 extends z.ZodRawShape ? { [k_2 in keyof T_8]: z.ZodOptional<T_8[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
157
133
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
158
134
|
}, "strict", z.ZodTypeAny, {
|
|
159
135
|
[x: string]: any;
|
package/dist/utilities/enum.d.ts
CHANGED
|
@@ -1179,7 +1179,8 @@ export declare enum LogTag {
|
|
|
1179
1179
|
INFRA_CRON_JOB = "infra.cron.job",
|
|
1180
1180
|
SYSTEM_ERROR = "system.error",
|
|
1181
1181
|
PAYMENT_AREEBA = "payment.areeba",
|
|
1182
|
-
PAYMENT_STRIPE = "payment.stripe"
|
|
1182
|
+
PAYMENT_STRIPE = "payment.stripe",
|
|
1183
|
+
PAYMENT_WHISH = "payment.whish"
|
|
1183
1184
|
}
|
|
1184
1185
|
export declare enum HttpStatus {
|
|
1185
1186
|
CONTINUE = 100,
|
package/dist/utilities/enum.js
CHANGED
|
@@ -1343,6 +1343,7 @@ var LogTag;
|
|
|
1343
1343
|
LogTag["SYSTEM_ERROR"] = "system.error";
|
|
1344
1344
|
LogTag["PAYMENT_AREEBA"] = "payment.areeba";
|
|
1345
1345
|
LogTag["PAYMENT_STRIPE"] = "payment.stripe";
|
|
1346
|
+
LogTag["PAYMENT_WHISH"] = "payment.whish";
|
|
1346
1347
|
})(LogTag || (exports.LogTag = LogTag = {}));
|
|
1347
1348
|
var HttpStatus;
|
|
1348
1349
|
(function (HttpStatus) {
|