@aibrains/shared-types 0.1.0 → 0.2.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/dist/schemas/academics/assignment.schema.d.ts +10 -10
- package/dist/schemas/academics/course.schema.d.ts +10 -10
- package/dist/schemas/academics/grade.schema.d.ts +13 -13
- package/dist/schemas/enrollment/enrollment.schema.d.ts +49 -49
- package/dist/schemas/identity/academic-year.schema.d.ts +12 -12
- package/dist/schemas/identity/auth.schema.d.ts +10 -10
- package/dist/schemas/identity/credential.schema.d.ts +12 -12
- package/dist/schemas/identity/education-org-descriptors.d.ts +314 -0
- package/dist/schemas/identity/education-org-descriptors.d.ts.map +1 -0
- package/dist/schemas/identity/education-org-descriptors.js +245 -0
- package/dist/schemas/identity/education-org-descriptors.js.map +1 -0
- package/dist/schemas/identity/education-org-hierarchy.schema.d.ts +65 -0
- package/dist/schemas/identity/education-org-hierarchy.schema.d.ts.map +1 -0
- package/dist/schemas/identity/education-org-hierarchy.schema.js +46 -0
- package/dist/schemas/identity/education-org-hierarchy.schema.js.map +1 -0
- package/dist/schemas/identity/education-organization.schema.d.ts +127 -0
- package/dist/schemas/identity/education-organization.schema.d.ts.map +1 -0
- package/dist/schemas/identity/education-organization.schema.js +102 -0
- package/dist/schemas/identity/education-organization.schema.js.map +1 -0
- package/dist/schemas/identity/education-service-center.schema.d.ts +826 -0
- package/dist/schemas/identity/education-service-center.schema.d.ts.map +1 -0
- package/dist/schemas/identity/education-service-center.schema.js +85 -0
- package/dist/schemas/identity/education-service-center.schema.js.map +1 -0
- package/dist/schemas/identity/index.d.ts +8 -0
- package/dist/schemas/identity/index.d.ts.map +1 -1
- package/dist/schemas/identity/index.js +9 -0
- package/dist/schemas/identity/index.js.map +1 -1
- package/dist/schemas/identity/local-education-agency.schema.d.ts +888 -0
- package/dist/schemas/identity/local-education-agency.schema.d.ts.map +1 -0
- package/dist/schemas/identity/local-education-agency.schema.js +96 -0
- package/dist/schemas/identity/local-education-agency.schema.js.map +1 -0
- package/dist/schemas/identity/school.schema.d.ts +404 -0
- package/dist/schemas/identity/school.schema.d.ts.map +1 -1
- package/dist/schemas/identity/school.schema.js +35 -0
- package/dist/schemas/identity/school.schema.js.map +1 -1
- package/dist/schemas/identity/staff-assignment.schema.d.ts +240 -0
- package/dist/schemas/identity/staff-assignment.schema.d.ts.map +1 -0
- package/dist/schemas/identity/staff-assignment.schema.js +72 -0
- package/dist/schemas/identity/staff-assignment.schema.js.map +1 -0
- package/dist/schemas/identity/staff-employment-history.schema.d.ts +114 -0
- package/dist/schemas/identity/staff-employment-history.schema.d.ts.map +1 -0
- package/dist/schemas/identity/staff-employment-history.schema.js +31 -0
- package/dist/schemas/identity/staff-employment-history.schema.js.map +1 -0
- package/dist/schemas/identity/staff.schema.d.ts +482 -10
- package/dist/schemas/identity/staff.schema.d.ts.map +1 -1
- package/dist/schemas/identity/staff.schema.js +15 -1
- package/dist/schemas/identity/staff.schema.js.map +1 -1
- package/dist/schemas/identity/state-education-agency.schema.d.ts +511 -0
- package/dist/schemas/identity/state-education-agency.schema.d.ts.map +1 -0
- package/dist/schemas/identity/state-education-agency.schema.js +68 -0
- package/dist/schemas/identity/state-education-agency.schema.js.map +1 -0
- package/dist/schemas/identity/user.schema.d.ts +10 -10
- package/package.json +9 -5
|
@@ -8,6 +8,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.schoolListResponseSchema = exports.schoolResponseSchema = exports.updateSchoolSchema = exports.createSchoolSchema = exports.schoolAddressSchema = exports.schoolGradeRangeSchema = exports.schoolContactInfoSchema = exports.academicCalendarTypeSchema = exports.schoolStatusSchema = exports.schoolTypeSchema = void 0;
|
|
9
9
|
const zod_1 = require("zod");
|
|
10
10
|
const common_1 = require("../common");
|
|
11
|
+
const education_org_descriptors_1 = require("./education-org-descriptors");
|
|
12
|
+
const education_organization_schema_1 = require("./education-organization.schema");
|
|
11
13
|
// ============================================
|
|
12
14
|
// Enums
|
|
13
15
|
// ============================================
|
|
@@ -81,6 +83,17 @@ exports.createSchoolSchema = zod_1.z.object({
|
|
|
81
83
|
locale: zod_1.z.string().default('en-US'),
|
|
82
84
|
academicCalendarType: exports.academicCalendarTypeSchema.default('semester'),
|
|
83
85
|
logoUrl: common_1.urlSchema.optional(),
|
|
86
|
+
// Ed-Fi Education Organization Fields (optional for backwards compatibility)
|
|
87
|
+
localEducationAgencyId: zod_1.z.string().uuid().optional(), // LEA parent reference
|
|
88
|
+
schoolCategories: zod_1.z.array(education_org_descriptors_1.schoolCategoryDescriptorSchema).optional(), // Ed-Fi: schoolCategoryDescriptor
|
|
89
|
+
schoolTypeDescriptor: education_org_descriptors_1.schoolTypeDescriptorSchema.optional(), // Ed-Fi: schoolTypeDescriptor
|
|
90
|
+
gradeLevels: zod_1.z.array(education_org_descriptors_1.schoolGradeLevelDescriptorSchema).optional(), // Ed-Fi: gradeLevelDescriptor
|
|
91
|
+
charterStatusDescriptor: education_org_descriptors_1.charterStatusDescriptorSchema.optional(), // Ed-Fi: charterStatusDescriptor
|
|
92
|
+
administrativeFundingControlDescriptor: education_org_descriptors_1.administrativeFundingControlDescriptorSchema.optional(),
|
|
93
|
+
titleIPartASchoolDesignationDescriptor: zod_1.z.string().max(200).optional(), // Ed-Fi: descriptor URI
|
|
94
|
+
identificationCodes: zod_1.z.array(education_organization_schema_1.educationOrgIdentificationCodeSchema).optional(), // Ed-Fi: identification codes
|
|
95
|
+
institutionTelephones: zod_1.z.array(education_organization_schema_1.institutionTelephoneSchema).optional(), // Ed-Fi: institution telephones
|
|
96
|
+
accountabilityRatings: zod_1.z.array(education_organization_schema_1.accountabilityRatingSchema).optional(), // Ed-Fi: accountability ratings
|
|
84
97
|
});
|
|
85
98
|
// ============================================
|
|
86
99
|
// Update School Schema
|
|
@@ -102,6 +115,17 @@ exports.updateSchoolSchema = zod_1.z.object({
|
|
|
102
115
|
locale: zod_1.z.string().optional(),
|
|
103
116
|
currentAcademicYearId: zod_1.z.string().uuid().optional(),
|
|
104
117
|
logoUrl: common_1.urlSchema.optional(),
|
|
118
|
+
// Ed-Fi Education Organization Fields
|
|
119
|
+
localEducationAgencyId: zod_1.z.string().uuid().nullable().optional(), // LEA parent reference (null to unlink)
|
|
120
|
+
schoolCategories: zod_1.z.array(education_org_descriptors_1.schoolCategoryDescriptorSchema).optional(),
|
|
121
|
+
schoolTypeDescriptor: education_org_descriptors_1.schoolTypeDescriptorSchema.optional(),
|
|
122
|
+
gradeLevels: zod_1.z.array(education_org_descriptors_1.schoolGradeLevelDescriptorSchema).optional(),
|
|
123
|
+
charterStatusDescriptor: education_org_descriptors_1.charterStatusDescriptorSchema.optional(),
|
|
124
|
+
administrativeFundingControlDescriptor: education_org_descriptors_1.administrativeFundingControlDescriptorSchema.optional(),
|
|
125
|
+
titleIPartASchoolDesignationDescriptor: zod_1.z.string().max(200).optional(),
|
|
126
|
+
identificationCodes: zod_1.z.array(education_organization_schema_1.educationOrgIdentificationCodeSchema).optional(),
|
|
127
|
+
institutionTelephones: zod_1.z.array(education_organization_schema_1.institutionTelephoneSchema).optional(),
|
|
128
|
+
accountabilityRatings: zod_1.z.array(education_organization_schema_1.accountabilityRatingSchema).optional(),
|
|
105
129
|
});
|
|
106
130
|
// ============================================
|
|
107
131
|
// School Response Schema
|
|
@@ -129,6 +153,17 @@ exports.schoolResponseSchema = zod_1.z.object({
|
|
|
129
153
|
staffCount: zod_1.z.number().int().min(0).optional(),
|
|
130
154
|
teacherCount: zod_1.z.number().int().min(0).optional(),
|
|
131
155
|
logoUrl: zod_1.z.string().optional(),
|
|
156
|
+
// Ed-Fi Education Organization Fields
|
|
157
|
+
localEducationAgencyId: zod_1.z.string().uuid().optional(),
|
|
158
|
+
schoolCategories: zod_1.z.array(education_org_descriptors_1.schoolCategoryDescriptorSchema).optional(),
|
|
159
|
+
schoolTypeDescriptor: education_org_descriptors_1.schoolTypeDescriptorSchema.optional(),
|
|
160
|
+
gradeLevels: zod_1.z.array(education_org_descriptors_1.schoolGradeLevelDescriptorSchema).optional(),
|
|
161
|
+
charterStatusDescriptor: education_org_descriptors_1.charterStatusDescriptorSchema.optional(),
|
|
162
|
+
administrativeFundingControlDescriptor: education_org_descriptors_1.administrativeFundingControlDescriptorSchema.optional(),
|
|
163
|
+
titleIPartASchoolDesignationDescriptor: zod_1.z.string().optional(),
|
|
164
|
+
identificationCodes: zod_1.z.array(education_organization_schema_1.educationOrgIdentificationCodeSchema).optional(),
|
|
165
|
+
institutionTelephones: zod_1.z.array(education_organization_schema_1.institutionTelephoneSchema).optional(),
|
|
166
|
+
accountabilityRatings: zod_1.z.array(education_organization_schema_1.accountabilityRatingSchema).optional(),
|
|
132
167
|
createdAt: common_1.isoDateSchema,
|
|
133
168
|
updatedAt: common_1.isoDateSchema,
|
|
134
169
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"school.schema.js","sourceRoot":"","sources":["../../../src/schemas/identity/school.schema.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6BAAwB;AACxB,sCAA8G;
|
|
1
|
+
{"version":3,"file":"school.schema.js","sourceRoot":"","sources":["../../../src/schemas/identity/school.schema.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6BAAwB;AACxB,sCAA8G;AAC9G,2EAMqC;AACrC,mFAIyC;AAEzC,+CAA+C;AAC/C,QAAQ;AACR,+CAA+C;AAElC,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,YAAY;IACZ,QAAQ;IACR,MAAM;IACN,KAAK;IACL,SAAS;IACT,SAAS;IACT,YAAY;IACZ,mBAAmB;CACpB,CAAC,CAAC;AAGU,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC;IACvC,QAAQ;IACR,UAAU;IACV,OAAO;IACP,WAAW;IACX,QAAQ;CACT,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,WA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E,sCAAsC,EAAE,wEAA4C,CAAC,QAAQ,EAAE;IAC/F,sCAAsC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7D,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,oEAAoC,CAAC,CAAC,QAAQ,EAAE;IAC7E,qBAAqB,EAAE,OAAC,CAAC,KAAK,CAAC,0DAA0B,CAAC,CAAC,QAAQ,EAAE;IACrE,qBAAqB,EAAE,OAAC,CAAC,KAAK,CAAC,0DAA0B,CAAC,CAAC,QAAQ,EAAE;IAErE,SAAS,EAAE,sBAAa;IACxB,SAAS,EAAE,sBAAa;CACzB,CAAC,CAAC;AAIH,+CAA+C;AAC/C,8BAA8B;AAC9B,+CAA+C;AAElC,QAAA,wBAAwB,GAAG,IAAA,sCAA6B,EAAC,4BAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Staff Assignment Schemas - Identity Service
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas for first-class staff-to-school assignment management.
|
|
5
|
+
* Aligns with Ed-Fi StaffEducationOrganizationAssignmentAssociation.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export declare const staffAssignmentStatusSchema: z.ZodEnum<["active", "ended", "pending"]>;
|
|
9
|
+
export type StaffAssignmentStatus = z.infer<typeof staffAssignmentStatusSchema>;
|
|
10
|
+
export declare const createStaffAssignmentSchema: z.ZodObject<{
|
|
11
|
+
schoolId: z.ZodString;
|
|
12
|
+
role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
|
|
13
|
+
department: z.ZodOptional<z.ZodString>;
|
|
14
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
beginDate: z.ZodEffects<z.ZodString, string, string>;
|
|
16
|
+
endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
17
|
+
positionTitle: z.ZodOptional<z.ZodString>;
|
|
18
|
+
fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
staffClassificationDescriptor: z.ZodOptional<z.ZodString>;
|
|
20
|
+
orderOfAssignment: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
schoolId: string;
|
|
23
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
24
|
+
isPrimary: boolean;
|
|
25
|
+
beginDate: string;
|
|
26
|
+
endDate?: string | undefined;
|
|
27
|
+
department?: string | undefined;
|
|
28
|
+
positionTitle?: string | undefined;
|
|
29
|
+
fullTimeEquivalency?: number | undefined;
|
|
30
|
+
staffClassificationDescriptor?: string | undefined;
|
|
31
|
+
orderOfAssignment?: number | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
schoolId: string;
|
|
34
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
35
|
+
beginDate: string;
|
|
36
|
+
endDate?: string | undefined;
|
|
37
|
+
department?: string | undefined;
|
|
38
|
+
isPrimary?: boolean | undefined;
|
|
39
|
+
positionTitle?: string | undefined;
|
|
40
|
+
fullTimeEquivalency?: number | undefined;
|
|
41
|
+
staffClassificationDescriptor?: string | undefined;
|
|
42
|
+
orderOfAssignment?: number | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export type CreateStaffAssignmentDto = z.infer<typeof createStaffAssignmentSchema>;
|
|
45
|
+
export declare const updateStaffAssignmentSchema: z.ZodObject<{
|
|
46
|
+
role: z.ZodOptional<z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>>;
|
|
47
|
+
department: z.ZodOptional<z.ZodString>;
|
|
48
|
+
isPrimary: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
50
|
+
positionTitle: z.ZodOptional<z.ZodString>;
|
|
51
|
+
fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
staffClassificationDescriptor: z.ZodOptional<z.ZodString>;
|
|
53
|
+
orderOfAssignment: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
assignmentStatus: z.ZodOptional<z.ZodEnum<["active", "ended", "pending"]>>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
endDate?: string | undefined;
|
|
57
|
+
role?: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor" | undefined;
|
|
58
|
+
department?: string | undefined;
|
|
59
|
+
isPrimary?: boolean | undefined;
|
|
60
|
+
positionTitle?: string | undefined;
|
|
61
|
+
fullTimeEquivalency?: number | undefined;
|
|
62
|
+
staffClassificationDescriptor?: string | undefined;
|
|
63
|
+
orderOfAssignment?: number | undefined;
|
|
64
|
+
assignmentStatus?: "active" | "pending" | "ended" | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
endDate?: string | undefined;
|
|
67
|
+
role?: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor" | undefined;
|
|
68
|
+
department?: string | undefined;
|
|
69
|
+
isPrimary?: boolean | undefined;
|
|
70
|
+
positionTitle?: string | undefined;
|
|
71
|
+
fullTimeEquivalency?: number | undefined;
|
|
72
|
+
staffClassificationDescriptor?: string | undefined;
|
|
73
|
+
orderOfAssignment?: number | undefined;
|
|
74
|
+
assignmentStatus?: "active" | "pending" | "ended" | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
export type UpdateStaffAssignmentDto = z.infer<typeof updateStaffAssignmentSchema>;
|
|
77
|
+
export declare const staffAssignmentResponseSchema: z.ZodObject<{
|
|
78
|
+
assignmentId: z.ZodString;
|
|
79
|
+
staffId: z.ZodString;
|
|
80
|
+
schoolId: z.ZodString;
|
|
81
|
+
role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
|
|
82
|
+
department: z.ZodOptional<z.ZodString>;
|
|
83
|
+
isPrimary: z.ZodBoolean;
|
|
84
|
+
beginDate: z.ZodString;
|
|
85
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
86
|
+
positionTitle: z.ZodOptional<z.ZodString>;
|
|
87
|
+
fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
staffClassificationDescriptor: z.ZodOptional<z.ZodString>;
|
|
89
|
+
orderOfAssignment: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
assignmentStatus: z.ZodEnum<["active", "ended", "pending"]>;
|
|
91
|
+
staffName: z.ZodOptional<z.ZodString>;
|
|
92
|
+
schoolName: z.ZodOptional<z.ZodString>;
|
|
93
|
+
createdAt: z.ZodString;
|
|
94
|
+
updatedAt: z.ZodString;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
createdAt: string;
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
schoolId: string;
|
|
99
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
100
|
+
isPrimary: boolean;
|
|
101
|
+
beginDate: string;
|
|
102
|
+
staffId: string;
|
|
103
|
+
assignmentStatus: "active" | "pending" | "ended";
|
|
104
|
+
assignmentId: string;
|
|
105
|
+
endDate?: string | undefined;
|
|
106
|
+
schoolName?: string | undefined;
|
|
107
|
+
department?: string | undefined;
|
|
108
|
+
positionTitle?: string | undefined;
|
|
109
|
+
fullTimeEquivalency?: number | undefined;
|
|
110
|
+
staffClassificationDescriptor?: string | undefined;
|
|
111
|
+
orderOfAssignment?: number | undefined;
|
|
112
|
+
staffName?: string | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
createdAt: string;
|
|
115
|
+
updatedAt: string;
|
|
116
|
+
schoolId: string;
|
|
117
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
118
|
+
isPrimary: boolean;
|
|
119
|
+
beginDate: string;
|
|
120
|
+
staffId: string;
|
|
121
|
+
assignmentStatus: "active" | "pending" | "ended";
|
|
122
|
+
assignmentId: string;
|
|
123
|
+
endDate?: string | undefined;
|
|
124
|
+
schoolName?: string | undefined;
|
|
125
|
+
department?: string | undefined;
|
|
126
|
+
positionTitle?: string | undefined;
|
|
127
|
+
fullTimeEquivalency?: number | undefined;
|
|
128
|
+
staffClassificationDescriptor?: string | undefined;
|
|
129
|
+
orderOfAssignment?: number | undefined;
|
|
130
|
+
staffName?: string | undefined;
|
|
131
|
+
}>;
|
|
132
|
+
export type StaffAssignmentResponseDto = z.infer<typeof staffAssignmentResponseSchema>;
|
|
133
|
+
export declare const staffAssignmentListResponseSchema: z.ZodObject<{
|
|
134
|
+
items: z.ZodArray<z.ZodObject<{
|
|
135
|
+
assignmentId: z.ZodString;
|
|
136
|
+
staffId: z.ZodString;
|
|
137
|
+
schoolId: z.ZodString;
|
|
138
|
+
role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
|
|
139
|
+
department: z.ZodOptional<z.ZodString>;
|
|
140
|
+
isPrimary: z.ZodBoolean;
|
|
141
|
+
beginDate: z.ZodString;
|
|
142
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
143
|
+
positionTitle: z.ZodOptional<z.ZodString>;
|
|
144
|
+
fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
staffClassificationDescriptor: z.ZodOptional<z.ZodString>;
|
|
146
|
+
orderOfAssignment: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
assignmentStatus: z.ZodEnum<["active", "ended", "pending"]>;
|
|
148
|
+
staffName: z.ZodOptional<z.ZodString>;
|
|
149
|
+
schoolName: z.ZodOptional<z.ZodString>;
|
|
150
|
+
createdAt: z.ZodString;
|
|
151
|
+
updatedAt: z.ZodString;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
schoolId: string;
|
|
156
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
157
|
+
isPrimary: boolean;
|
|
158
|
+
beginDate: string;
|
|
159
|
+
staffId: string;
|
|
160
|
+
assignmentStatus: "active" | "pending" | "ended";
|
|
161
|
+
assignmentId: string;
|
|
162
|
+
endDate?: string | undefined;
|
|
163
|
+
schoolName?: string | undefined;
|
|
164
|
+
department?: string | undefined;
|
|
165
|
+
positionTitle?: string | undefined;
|
|
166
|
+
fullTimeEquivalency?: number | undefined;
|
|
167
|
+
staffClassificationDescriptor?: string | undefined;
|
|
168
|
+
orderOfAssignment?: number | undefined;
|
|
169
|
+
staffName?: string | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
createdAt: string;
|
|
172
|
+
updatedAt: string;
|
|
173
|
+
schoolId: string;
|
|
174
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
175
|
+
isPrimary: boolean;
|
|
176
|
+
beginDate: string;
|
|
177
|
+
staffId: string;
|
|
178
|
+
assignmentStatus: "active" | "pending" | "ended";
|
|
179
|
+
assignmentId: string;
|
|
180
|
+
endDate?: string | undefined;
|
|
181
|
+
schoolName?: string | undefined;
|
|
182
|
+
department?: string | undefined;
|
|
183
|
+
positionTitle?: string | undefined;
|
|
184
|
+
fullTimeEquivalency?: number | undefined;
|
|
185
|
+
staffClassificationDescriptor?: string | undefined;
|
|
186
|
+
orderOfAssignment?: number | undefined;
|
|
187
|
+
staffName?: string | undefined;
|
|
188
|
+
}>, "many">;
|
|
189
|
+
lastEvaluatedKey: z.ZodOptional<z.ZodString>;
|
|
190
|
+
hasMore: z.ZodBoolean;
|
|
191
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
items: {
|
|
194
|
+
createdAt: string;
|
|
195
|
+
updatedAt: string;
|
|
196
|
+
schoolId: string;
|
|
197
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
198
|
+
isPrimary: boolean;
|
|
199
|
+
beginDate: string;
|
|
200
|
+
staffId: string;
|
|
201
|
+
assignmentStatus: "active" | "pending" | "ended";
|
|
202
|
+
assignmentId: string;
|
|
203
|
+
endDate?: string | undefined;
|
|
204
|
+
schoolName?: string | undefined;
|
|
205
|
+
department?: string | undefined;
|
|
206
|
+
positionTitle?: string | undefined;
|
|
207
|
+
fullTimeEquivalency?: number | undefined;
|
|
208
|
+
staffClassificationDescriptor?: string | undefined;
|
|
209
|
+
orderOfAssignment?: number | undefined;
|
|
210
|
+
staffName?: string | undefined;
|
|
211
|
+
}[];
|
|
212
|
+
hasMore: boolean;
|
|
213
|
+
lastEvaluatedKey?: string | undefined;
|
|
214
|
+
total?: number | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
items: {
|
|
217
|
+
createdAt: string;
|
|
218
|
+
updatedAt: string;
|
|
219
|
+
schoolId: string;
|
|
220
|
+
role: "teacher" | "principal" | "vice_principal" | "counselor" | "librarian" | "nurse" | "admin_staff" | "support_staff" | "it_staff" | "substitute" | "contractor";
|
|
221
|
+
isPrimary: boolean;
|
|
222
|
+
beginDate: string;
|
|
223
|
+
staffId: string;
|
|
224
|
+
assignmentStatus: "active" | "pending" | "ended";
|
|
225
|
+
assignmentId: string;
|
|
226
|
+
endDate?: string | undefined;
|
|
227
|
+
schoolName?: string | undefined;
|
|
228
|
+
department?: string | undefined;
|
|
229
|
+
positionTitle?: string | undefined;
|
|
230
|
+
fullTimeEquivalency?: number | undefined;
|
|
231
|
+
staffClassificationDescriptor?: string | undefined;
|
|
232
|
+
orderOfAssignment?: number | undefined;
|
|
233
|
+
staffName?: string | undefined;
|
|
234
|
+
}[];
|
|
235
|
+
hasMore: boolean;
|
|
236
|
+
lastEvaluatedKey?: string | undefined;
|
|
237
|
+
total?: number | undefined;
|
|
238
|
+
}>;
|
|
239
|
+
export type StaffAssignmentListResponseDto = z.infer<typeof staffAssignmentListResponseSchema>;
|
|
240
|
+
//# sourceMappingURL=staff-assignment.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-assignment.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/identity/staff-assignment.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,2BAA2B,2CAAyC,CAAC;AAClF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWtC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMnF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMnF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAMvF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+D,CAAC;AAC9G,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Staff Assignment Schemas - Identity Service
|
|
4
|
+
*
|
|
5
|
+
* Zod schemas for first-class staff-to-school assignment management.
|
|
6
|
+
* Aligns with Ed-Fi StaffEducationOrganizationAssignmentAssociation.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.staffAssignmentListResponseSchema = exports.staffAssignmentResponseSchema = exports.updateStaffAssignmentSchema = exports.createStaffAssignmentSchema = exports.staffAssignmentStatusSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const common_1 = require("../common");
|
|
12
|
+
const staff_schema_1 = require("./staff.schema");
|
|
13
|
+
// ============================================
|
|
14
|
+
// Assignment Status
|
|
15
|
+
// ============================================
|
|
16
|
+
exports.staffAssignmentStatusSchema = zod_1.z.enum(['active', 'ended', 'pending']);
|
|
17
|
+
// ============================================
|
|
18
|
+
// Create Staff Assignment Schema
|
|
19
|
+
// ============================================
|
|
20
|
+
exports.createStaffAssignmentSchema = zod_1.z.object({
|
|
21
|
+
schoolId: zod_1.z.string().uuid(),
|
|
22
|
+
role: staff_schema_1.staffRoleSchema,
|
|
23
|
+
department: zod_1.z.string().max(100).optional(),
|
|
24
|
+
isPrimary: zod_1.z.boolean().default(false),
|
|
25
|
+
beginDate: common_1.dateSchema,
|
|
26
|
+
endDate: common_1.dateSchema.optional(),
|
|
27
|
+
positionTitle: zod_1.z.string().max(100).optional(),
|
|
28
|
+
fullTimeEquivalency: zod_1.z.number().min(0).max(1).optional(),
|
|
29
|
+
staffClassificationDescriptor: zod_1.z.string().max(300).optional(),
|
|
30
|
+
orderOfAssignment: zod_1.z.number().int().min(1).optional(),
|
|
31
|
+
});
|
|
32
|
+
// ============================================
|
|
33
|
+
// Update Staff Assignment Schema
|
|
34
|
+
// ============================================
|
|
35
|
+
exports.updateStaffAssignmentSchema = zod_1.z.object({
|
|
36
|
+
role: staff_schema_1.staffRoleSchema.optional(),
|
|
37
|
+
department: zod_1.z.string().max(100).optional(),
|
|
38
|
+
isPrimary: zod_1.z.boolean().optional(),
|
|
39
|
+
endDate: common_1.dateSchema.optional(),
|
|
40
|
+
positionTitle: zod_1.z.string().max(100).optional(),
|
|
41
|
+
fullTimeEquivalency: zod_1.z.number().min(0).max(1).optional(),
|
|
42
|
+
staffClassificationDescriptor: zod_1.z.string().max(300).optional(),
|
|
43
|
+
orderOfAssignment: zod_1.z.number().int().min(1).optional(),
|
|
44
|
+
assignmentStatus: exports.staffAssignmentStatusSchema.optional(),
|
|
45
|
+
});
|
|
46
|
+
// ============================================
|
|
47
|
+
// Staff Assignment Response Schema
|
|
48
|
+
// ============================================
|
|
49
|
+
exports.staffAssignmentResponseSchema = zod_1.z.object({
|
|
50
|
+
assignmentId: zod_1.z.string().uuid(),
|
|
51
|
+
staffId: zod_1.z.string().uuid(),
|
|
52
|
+
schoolId: zod_1.z.string().uuid(),
|
|
53
|
+
role: staff_schema_1.staffRoleSchema,
|
|
54
|
+
department: zod_1.z.string().optional(),
|
|
55
|
+
isPrimary: zod_1.z.boolean(),
|
|
56
|
+
beginDate: zod_1.z.string(),
|
|
57
|
+
endDate: zod_1.z.string().optional(),
|
|
58
|
+
positionTitle: zod_1.z.string().optional(),
|
|
59
|
+
fullTimeEquivalency: zod_1.z.number().optional(),
|
|
60
|
+
staffClassificationDescriptor: zod_1.z.string().optional(),
|
|
61
|
+
orderOfAssignment: zod_1.z.number().optional(),
|
|
62
|
+
assignmentStatus: exports.staffAssignmentStatusSchema,
|
|
63
|
+
staffName: zod_1.z.string().optional(),
|
|
64
|
+
schoolName: zod_1.z.string().optional(),
|
|
65
|
+
createdAt: zod_1.z.string(),
|
|
66
|
+
updatedAt: zod_1.z.string(),
|
|
67
|
+
});
|
|
68
|
+
// ============================================
|
|
69
|
+
// Staff Assignment List Response
|
|
70
|
+
// ============================================
|
|
71
|
+
exports.staffAssignmentListResponseSchema = (0, common_1.createPaginatedResponseSchema)(exports.staffAssignmentResponseSchema);
|
|
72
|
+
//# sourceMappingURL=staff-assignment.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-assignment.schema.js","sourceRoot":"","sources":["../../../src/schemas/identity/staff-assignment.schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAwB;AACxB,sCAAsE;AACtE,iDAAiD;AAEjD,+CAA+C;AAC/C,oBAAoB;AACpB,+CAA+C;AAElC,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AAGlF,+CAA+C;AAC/C,iCAAiC;AACjC,+CAA+C;AAElC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC3B,IAAI,EAAE,8BAAe;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACrC,SAAS,EAAE,mBAAU;IACrB,OAAO,EAAE,mBAAU,CAAC,QAAQ,EAAE;IAC9B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,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it trail.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
export declare const employmentHistoryResponseSchema: z.ZodObject<{
|
|
8
|
+
historyId: z.ZodString;
|
|
9
|
+
staffId: z.ZodString;
|
|
10
|
+
previousStatus: z.ZodEnum<["active", "on_leave", "suspended", "terminated", "retired", "resigned"]>;
|
|
11
|
+
newStatus: z.ZodEnum<["active", "on_leave", "suspended", "terminated", "retired", "resigned"]>;
|
|
12
|
+
effectiveDate: z.ZodString;
|
|
13
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
14
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
15
|
+
staffName: z.ZodOptional<z.ZodString>;
|
|
16
|
+
changedByName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
createdAt: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
createdAt: string;
|
|
20
|
+
newStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
21
|
+
staffId: string;
|
|
22
|
+
effectiveDate: string;
|
|
23
|
+
historyId: string;
|
|
24
|
+
previousStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
25
|
+
reason?: string | undefined;
|
|
26
|
+
notes?: string | undefined;
|
|
27
|
+
staffName?: string | undefined;
|
|
28
|
+
changedByName?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
createdAt: string;
|
|
31
|
+
newStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
32
|
+
staffId: string;
|
|
33
|
+
effectiveDate: string;
|
|
34
|
+
historyId: string;
|
|
35
|
+
previousStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
36
|
+
reason?: string | undefined;
|
|
37
|
+
notes?: string | undefined;
|
|
38
|
+
staffName?: string | undefined;
|
|
39
|
+
changedByName?: string | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
export type EmploymentHistoryResponseDto = z.infer<typeof employmentHistoryResponseSchema>;
|
|
42
|
+
export declare const employmentHistoryListResponseSchema: z.ZodObject<{
|
|
43
|
+
items: z.ZodArray<z.ZodObject<{
|
|
44
|
+
historyId: z.ZodString;
|
|
45
|
+
staffId: z.ZodString;
|
|
46
|
+
previousStatus: z.ZodEnum<["active", "on_leave", "suspended", "terminated", "retired", "resigned"]>;
|
|
47
|
+
newStatus: z.ZodEnum<["active", "on_leave", "suspended", "terminated", "retired", "resigned"]>;
|
|
48
|
+
effectiveDate: z.ZodString;
|
|
49
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
50
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
51
|
+
staffName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
changedByName: z.ZodOptional<z.ZodString>;
|
|
53
|
+
createdAt: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
createdAt: string;
|
|
56
|
+
newStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
57
|
+
staffId: string;
|
|
58
|
+
effectiveDate: string;
|
|
59
|
+
historyId: string;
|
|
60
|
+
previousStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
61
|
+
reason?: string | undefined;
|
|
62
|
+
notes?: string | undefined;
|
|
63
|
+
staffName?: string | undefined;
|
|
64
|
+
changedByName?: string | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
createdAt: string;
|
|
67
|
+
newStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
68
|
+
staffId: string;
|
|
69
|
+
effectiveDate: string;
|
|
70
|
+
historyId: string;
|
|
71
|
+
previousStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
72
|
+
reason?: string | undefined;
|
|
73
|
+
notes?: string | undefined;
|
|
74
|
+
staffName?: string | undefined;
|
|
75
|
+
changedByName?: string | undefined;
|
|
76
|
+
}>, "many">;
|
|
77
|
+
lastEvaluatedKey: z.ZodOptional<z.ZodString>;
|
|
78
|
+
hasMore: z.ZodBoolean;
|
|
79
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
items: {
|
|
82
|
+
createdAt: string;
|
|
83
|
+
newStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
84
|
+
staffId: string;
|
|
85
|
+
effectiveDate: string;
|
|
86
|
+
historyId: string;
|
|
87
|
+
previousStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
88
|
+
reason?: string | undefined;
|
|
89
|
+
notes?: string | undefined;
|
|
90
|
+
staffName?: string | undefined;
|
|
91
|
+
changedByName?: string | undefined;
|
|
92
|
+
}[];
|
|
93
|
+
hasMore: boolean;
|
|
94
|
+
lastEvaluatedKey?: string | undefined;
|
|
95
|
+
total?: number | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
items: {
|
|
98
|
+
createdAt: string;
|
|
99
|
+
newStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
100
|
+
staffId: string;
|
|
101
|
+
effectiveDate: string;
|
|
102
|
+
historyId: string;
|
|
103
|
+
previousStatus: "active" | "suspended" | "on_leave" | "terminated" | "retired" | "resigned";
|
|
104
|
+
reason?: string | undefined;
|
|
105
|
+
notes?: string | undefined;
|
|
106
|
+
staffName?: string | undefined;
|
|
107
|
+
changedByName?: string | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
hasMore: boolean;
|
|
110
|
+
lastEvaluatedKey?: string | undefined;
|
|
111
|
+
total?: number | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
export type EmploymentHistoryListResponseDto = z.infer<typeof employmentHistoryListResponseSchema>;
|
|
114
|
+
//# sourceMappingURL=staff-employment-history.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-employment-history.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/identity/staff-employment-history.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAM3F,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiE,CAAC;AAClH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Staff Employment History Schemas - Identity Service
|
|
4
|
+
*
|
|
5
|
+
* Zod schemas for immutable employment status change audit trail.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.employmentHistoryListResponseSchema = exports.employmentHistoryResponseSchema = void 0;
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
const common_1 = require("../common");
|
|
11
|
+
const staff_schema_1 = require("./staff.schema");
|
|
12
|
+
// ============================================
|
|
13
|
+
// Employment History Response Schema
|
|
14
|
+
// ============================================
|
|
15
|
+
exports.employmentHistoryResponseSchema = zod_1.z.object({
|
|
16
|
+
historyId: zod_1.z.string().uuid(),
|
|
17
|
+
staffId: zod_1.z.string().uuid(),
|
|
18
|
+
previousStatus: staff_schema_1.employmentStatusSchema,
|
|
19
|
+
newStatus: staff_schema_1.employmentStatusSchema,
|
|
20
|
+
effectiveDate: zod_1.z.string(),
|
|
21
|
+
reason: zod_1.z.string().optional(),
|
|
22
|
+
notes: zod_1.z.string().optional(),
|
|
23
|
+
staffName: zod_1.z.string().optional(),
|
|
24
|
+
changedByName: zod_1.z.string().optional(),
|
|
25
|
+
createdAt: zod_1.z.string(),
|
|
26
|
+
});
|
|
27
|
+
// ============================================
|
|
28
|
+
// Employment History List Response
|
|
29
|
+
// ============================================
|
|
30
|
+
exports.employmentHistoryListResponseSchema = (0, common_1.createPaginatedResponseSchema)(exports.employmentHistoryResponseSchema);
|
|
31
|
+
//# sourceMappingURL=staff-employment-history.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-employment-history.schema.js","sourceRoot":"","sources":["../../../src/schemas/identity/staff-employment-history.schema.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6BAAwB;AACxB,sCAA0D;AAC1D,iDAAwD;AAExD,+CAA+C;AAC/C,qCAAqC;AACrC,+CAA+C;AAElC,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,cAAc,EAAE,qCAAsB;IACtC,SAAS,EAAE,qCAAsB;IACjC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAIH,+CAA+C;AAC/C,mCAAmC;AACnC,+CAA+C;AAElC,QAAA,mCAAmC,GAAG,IAAA,sCAA6B,EAAC,uCAA+B,CAAC,CAAC"}
|