evo360-types 1.1.53 → 1.1.54
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/apps/evo-core/zod-schemas.js +1 -1
- package/dist/apps/evo-core/zod-schemas.ts +1 -1
- package/dist/apps/evo-meeting/zod-schemas.js +2 -2
- package/dist/apps/evo-meeting/zod-schemas.ts +2 -2
- package/dist/apps/evo-people/zod-schemas.js +2 -2
- package/dist/apps/evo-people/zod-schemas.ts +2 -2
- package/dist/apps/evo-survey/zod-schemas.d.ts +8 -8
- package/dist/apps/evo-survey/zod-schemas.js +2 -2
- package/dist/apps/evo-survey/zod-schemas.ts +2 -2
- package/dist/apps/shared/zod-schemas.js +3 -3
- package/dist/apps/shared/zod-schemas.ts +3 -3
- package/package.json +1 -1
|
@@ -5,5 +5,5 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.zActionArgsSchema = zod_1.z.object({
|
|
6
6
|
old_values: zod_1.z.record(zod_1.z.any()).optional(),
|
|
7
7
|
new_values: zod_1.z.record(zod_1.z.any()).optional(),
|
|
8
|
-
deleted_at: zod_1.z.date().optional(),
|
|
8
|
+
deleted_at: zod_1.z.coerce.date().optional(),
|
|
9
9
|
});
|
|
@@ -21,8 +21,8 @@ exports.zMeetingEventSchema = zod_1.z.object({
|
|
|
21
21
|
eventRef: zod_1.z.any(),
|
|
22
22
|
participantNames: zod_1.z.array(zod_1.z.string()).min(1).max(100),
|
|
23
23
|
participantRefs: zod_1.z.array(zod_1.z.any()).min(1).max(100),
|
|
24
|
-
startDate: zod_1.z.date(),
|
|
25
|
-
endDate: zod_1.z.date().optional(),
|
|
24
|
+
startDate: zod_1.z.coerce.date(),
|
|
25
|
+
endDate: zod_1.z.coerce.date().optional(),
|
|
26
26
|
});
|
|
27
27
|
exports.zMeetingTaskSchema = zod_1.z.object({
|
|
28
28
|
taskRef: zod_1.z.any(),
|
|
@@ -24,8 +24,8 @@ export const zMeetingEventSchema = z.object({
|
|
|
24
24
|
eventRef: z.any(),
|
|
25
25
|
participantNames: z.array(z.string()).min(1).max(100),
|
|
26
26
|
participantRefs: z.array(z.any()).min(1).max(100),
|
|
27
|
-
startDate: z.date(),
|
|
28
|
-
endDate: z.date().optional(),
|
|
27
|
+
startDate: z.coerce.date(),
|
|
28
|
+
endDate: z.coerce.date().optional(),
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
export const zMeetingTaskSchema = z.object({
|
|
@@ -43,7 +43,7 @@ exports.zProfileSchema = zod_schemas_1.zFireDocSchema
|
|
|
43
43
|
last_name: zod_1.z.string().max(255).nullable().optional(),
|
|
44
44
|
first_name: zod_1.z.string().min(1).max(255).nullable(),
|
|
45
45
|
gender: zod_1.z.string().max(255).nullable().optional(),
|
|
46
|
-
birthdate: zod_1.z.date().nullable().optional(),
|
|
46
|
+
birthdate: zod_1.z.coerce.date().nullable().optional(),
|
|
47
47
|
photo_ref: zod_1.z.string().max(255).nullable().optional(),
|
|
48
48
|
photo_url: zod_1.z.string().url().nullable().optional(),
|
|
49
49
|
})
|
|
@@ -57,7 +57,7 @@ exports.zEmployeeSchema = exports.zProfileSchema // Extend from ProfileSchema
|
|
|
57
57
|
status: exports.zEmployeeStatusSchema,
|
|
58
58
|
company_name: zod_1.z.string().max(255).nullable().optional(),
|
|
59
59
|
companyRef: zod_1.z.any(),
|
|
60
|
-
date_joining: zod_1.z.date().nullable().optional(),
|
|
60
|
+
date_joining: zod_1.z.coerce.date().nullable().optional(),
|
|
61
61
|
reporting_to_name: zod_1.z.string().max(255).nullable().optional(),
|
|
62
62
|
reporting_toRef: zod_1.z.any(),
|
|
63
63
|
department_name: zod_1.z.string().max(255).nullable().optional(),
|
|
@@ -42,7 +42,7 @@ export const zProfileSchema = zFireDocSchema
|
|
|
42
42
|
last_name: z.string().max(255).nullable().optional(),
|
|
43
43
|
first_name: z.string().min(1).max(255).nullable(),
|
|
44
44
|
gender: z.string().max(255).nullable().optional(),
|
|
45
|
-
birthdate: z.date().nullable().optional(),
|
|
45
|
+
birthdate: z.coerce.date().nullable().optional(),
|
|
46
46
|
photo_ref: z.string().max(255).nullable().optional(),
|
|
47
47
|
photo_url: z.string().url().nullable().optional(),
|
|
48
48
|
})
|
|
@@ -58,7 +58,7 @@ export const zEmployeeSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
58
58
|
status: zEmployeeStatusSchema,
|
|
59
59
|
company_name: z.string().max(255).nullable().optional(),
|
|
60
60
|
companyRef: z.any(),
|
|
61
|
-
date_joining: z.date().nullable().optional(),
|
|
61
|
+
date_joining: z.coerce.date().nullable().optional(),
|
|
62
62
|
reporting_to_name: z.string().max(255).nullable().optional(),
|
|
63
63
|
reporting_toRef: z.any(),
|
|
64
64
|
department_name: z.string().max(255).nullable().optional(),
|
|
@@ -574,7 +574,7 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
574
574
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
575
575
|
}, {
|
|
576
576
|
deploymentId: z.ZodOptional<z.ZodString>;
|
|
577
|
-
submission_date: z.ZodOptional<z.
|
|
577
|
+
submission_date: z.ZodOptional<z.ZodDate>;
|
|
578
578
|
status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
|
|
579
579
|
modified_after_completion: z.ZodBoolean;
|
|
580
580
|
inviteeId: z.ZodOptional<z.ZodString>;
|
|
@@ -625,7 +625,7 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
625
625
|
updated_at?: Date | null | undefined;
|
|
626
626
|
deleted_at?: Date | null | undefined;
|
|
627
627
|
deploymentId?: string | undefined;
|
|
628
|
-
submission_date?: Date |
|
|
628
|
+
submission_date?: Date | undefined;
|
|
629
629
|
inviteeId?: string | undefined;
|
|
630
630
|
user_name?: string | undefined;
|
|
631
631
|
responses?: {
|
|
@@ -651,7 +651,7 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
651
651
|
updated_at?: Date | null | undefined;
|
|
652
652
|
deleted_at?: Date | null | undefined;
|
|
653
653
|
deploymentId?: string | undefined;
|
|
654
|
-
submission_date?: Date |
|
|
654
|
+
submission_date?: Date | undefined;
|
|
655
655
|
inviteeId?: string | undefined;
|
|
656
656
|
user_name?: string | undefined;
|
|
657
657
|
responses?: {
|
|
@@ -859,7 +859,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
859
859
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
860
860
|
}, {
|
|
861
861
|
deploymentId: z.ZodOptional<z.ZodString>;
|
|
862
|
-
submission_date: z.ZodOptional<z.
|
|
862
|
+
submission_date: z.ZodOptional<z.ZodDate>;
|
|
863
863
|
status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
|
|
864
864
|
modified_after_completion: z.ZodBoolean;
|
|
865
865
|
inviteeId: z.ZodOptional<z.ZodString>;
|
|
@@ -910,7 +910,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
910
910
|
updated_at?: Date | null | undefined;
|
|
911
911
|
deleted_at?: Date | null | undefined;
|
|
912
912
|
deploymentId?: string | undefined;
|
|
913
|
-
submission_date?: Date |
|
|
913
|
+
submission_date?: Date | undefined;
|
|
914
914
|
inviteeId?: string | undefined;
|
|
915
915
|
user_name?: string | undefined;
|
|
916
916
|
responses?: {
|
|
@@ -936,7 +936,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
936
936
|
updated_at?: Date | null | undefined;
|
|
937
937
|
deleted_at?: Date | null | undefined;
|
|
938
938
|
deploymentId?: string | undefined;
|
|
939
|
-
submission_date?: Date |
|
|
939
|
+
submission_date?: Date | undefined;
|
|
940
940
|
inviteeId?: string | undefined;
|
|
941
941
|
user_name?: string | undefined;
|
|
942
942
|
responses?: {
|
|
@@ -982,7 +982,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
982
982
|
updated_at?: Date | null | undefined;
|
|
983
983
|
deleted_at?: Date | null | undefined;
|
|
984
984
|
deploymentId?: string | undefined;
|
|
985
|
-
submission_date?: Date |
|
|
985
|
+
submission_date?: Date | undefined;
|
|
986
986
|
inviteeId?: string | undefined;
|
|
987
987
|
user_name?: string | undefined;
|
|
988
988
|
responses?: {
|
|
@@ -1073,7 +1073,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
1073
1073
|
updated_at?: Date | null | undefined;
|
|
1074
1074
|
deleted_at?: Date | null | undefined;
|
|
1075
1075
|
deploymentId?: string | undefined;
|
|
1076
|
-
submission_date?: Date |
|
|
1076
|
+
submission_date?: Date | undefined;
|
|
1077
1077
|
inviteeId?: string | undefined;
|
|
1078
1078
|
user_name?: string | undefined;
|
|
1079
1079
|
responses?: {
|
|
@@ -106,13 +106,13 @@ exports.zSurveyResponseSchema = zod_schemas_1.zFireDocSchema // Extend from Fire
|
|
|
106
106
|
.extend({
|
|
107
107
|
question_id: zod_1.z.string(),
|
|
108
108
|
answer: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]),
|
|
109
|
-
date: zod_1.z.date(),
|
|
109
|
+
date: zod_1.z.coerce.date(),
|
|
110
110
|
});
|
|
111
111
|
// Survey Submission
|
|
112
112
|
exports.zSurveySubmissionSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
113
113
|
.extend({
|
|
114
114
|
deploymentId: zod_1.z.string().optional(),
|
|
115
|
-
submission_date: zod_1.z.date().
|
|
115
|
+
submission_date: zod_1.z.coerce.date().optional(),
|
|
116
116
|
status: exports.zSurveySubmissionStatusSchema,
|
|
117
117
|
modified_after_completion: zod_1.z.boolean(),
|
|
118
118
|
inviteeId: zod_1.z.string().optional(),
|
|
@@ -118,14 +118,14 @@ export const zSurveyResponseSchema = zFireDocSchema // Extend from FireDocSchema
|
|
|
118
118
|
.extend({
|
|
119
119
|
question_id: z.string(),
|
|
120
120
|
answer: z.union([z.string(), z.array(z.string())]),
|
|
121
|
-
date: z.date(),
|
|
121
|
+
date: z.coerce.date(),
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
// Survey Submission
|
|
125
125
|
export const zSurveySubmissionSchema = zFireDocSchema // Extend from FireDocSchema
|
|
126
126
|
.extend({
|
|
127
127
|
deploymentId: z.string().optional(),
|
|
128
|
-
submission_date: z.date().
|
|
128
|
+
submission_date: z.coerce.date().optional(),
|
|
129
129
|
status: zSurveySubmissionStatusSchema,
|
|
130
130
|
modified_after_completion: z.boolean(),
|
|
131
131
|
inviteeId: z.string().optional(),
|
|
@@ -19,9 +19,9 @@ exports.zFireDocSchema = zod_1.z.object({
|
|
|
19
19
|
ref: zod_1.z.any(),
|
|
20
20
|
tenant: zod_1.z.string(),
|
|
21
21
|
model_ver: zod_1.z.number().optional(),
|
|
22
|
-
created_at: zod_1.z.date().nullable().optional(),
|
|
23
|
-
updated_at: zod_1.z.date().nullable().optional(),
|
|
24
|
-
deleted_at: zod_1.z.date().nullable().optional(),
|
|
22
|
+
created_at: zod_1.z.coerce.date().nullable().optional(),
|
|
23
|
+
updated_at: zod_1.z.coerce.date().nullable().optional(),
|
|
24
|
+
deleted_at: zod_1.z.coerce.date().nullable().optional(),
|
|
25
25
|
});
|
|
26
26
|
// Custom validation for ITag
|
|
27
27
|
exports.zTagSchema = zod_1.z.object({
|
|
@@ -18,9 +18,9 @@ export const zFireDocSchema = z.object({
|
|
|
18
18
|
ref: z.any(),
|
|
19
19
|
tenant: z.string(),
|
|
20
20
|
model_ver: z.number().optional(),
|
|
21
|
-
created_at: z.date().nullable().optional(),
|
|
22
|
-
updated_at: z.date().nullable().optional(),
|
|
23
|
-
deleted_at: z.date().nullable().optional(),
|
|
21
|
+
created_at: z.coerce.date().nullable().optional(),
|
|
22
|
+
updated_at: z.coerce.date().nullable().optional(),
|
|
23
|
+
deleted_at: z.coerce.date().nullable().optional(),
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
// Custom validation for ITag
|