@aibrains/shared-types 0.2.0 → 0.4.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.
Files changed (26) hide show
  1. package/dist/mappers/edfi/education-org.mapper.d.ts +179 -0
  2. package/dist/mappers/edfi/education-org.mapper.d.ts.map +1 -0
  3. package/dist/mappers/edfi/education-org.mapper.js +397 -0
  4. package/dist/mappers/edfi/education-org.mapper.js.map +1 -0
  5. package/dist/mappers/edfi/index.d.ts +1 -0
  6. package/dist/mappers/edfi/index.d.ts.map +1 -1
  7. package/dist/mappers/edfi/index.js +1 -0
  8. package/dist/mappers/edfi/index.js.map +1 -1
  9. package/dist/mappers/edfi/staff.mapper.d.ts +45 -0
  10. package/dist/mappers/edfi/staff.mapper.d.ts.map +1 -1
  11. package/dist/mappers/edfi/staff.mapper.js +71 -0
  12. package/dist/mappers/edfi/staff.mapper.js.map +1 -1
  13. package/dist/schemas/identity/education-org-descriptors.d.ts +38 -0
  14. package/dist/schemas/identity/education-org-descriptors.d.ts.map +1 -1
  15. package/dist/schemas/identity/education-org-descriptors.js +26 -1
  16. package/dist/schemas/identity/education-org-descriptors.js.map +1 -1
  17. package/dist/schemas/identity/education-org-hierarchy.schema.d.ts +2 -2
  18. package/dist/schemas/identity/education-org-network.schema.d.ts +838 -0
  19. package/dist/schemas/identity/education-org-network.schema.d.ts.map +1 -0
  20. package/dist/schemas/identity/education-org-network.schema.js +125 -0
  21. package/dist/schemas/identity/education-org-network.schema.js.map +1 -0
  22. package/dist/schemas/identity/index.d.ts +1 -0
  23. package/dist/schemas/identity/index.d.ts.map +1 -1
  24. package/dist/schemas/identity/index.js +1 -0
  25. package/dist/schemas/identity/index.js.map +1 -1
  26. package/package.json +1 -1
@@ -0,0 +1,179 @@
1
+ /**
2
+ * Education Organization Ed-Fi Mapper
3
+ *
4
+ * Converts EdForge Education Organization data (School, LEA, SEA, ESC) to
5
+ * Ed-Fi Data Standard format for compliance export.
6
+ * Ed-Fi Data Standard v6.0: https://docs.ed-fi.org/reference/data-exchange/data-standard/
7
+ */
8
+ import type { SchoolResponseDto } from '../../schemas/identity/school.schema';
9
+ import type { SeaResponseDto } from '../../schemas/identity/state-education-agency.schema';
10
+ import type { LeaResponseDto } from '../../schemas/identity/local-education-agency.schema';
11
+ import type { EscResponseDto } from '../../schemas/identity/education-service-center.schema';
12
+ import type { NetworkResponseDto } from '../../schemas/identity/education-org-network.schema';
13
+ export interface EdFiSchool {
14
+ schoolId: number;
15
+ nameOfInstitution: string;
16
+ shortNameOfInstitution?: string;
17
+ webSite?: string;
18
+ operationalStatusDescriptor?: string;
19
+ schoolCategories?: EdFiDescriptorRef[];
20
+ schoolTypeDescriptor?: string;
21
+ gradeLevels?: EdFiDescriptorRef[];
22
+ charterStatusDescriptor?: string;
23
+ administrativeFundingControlDescriptor?: string;
24
+ titleIPartASchoolDesignationDescriptor?: string;
25
+ addresses?: EdFiEducationOrganizationAddress[];
26
+ identificationCodes?: EdFiEducationOrganizationIdentificationCode[];
27
+ institutionTelephones?: EdFiInstitutionTelephone[];
28
+ localEducationAgencyReference?: {
29
+ localEducationAgencyId: number;
30
+ };
31
+ _ext?: EdForgeSchoolExtension;
32
+ }
33
+ export interface EdFiLocalEducationAgency {
34
+ localEducationAgencyId: number;
35
+ nameOfInstitution: string;
36
+ shortNameOfInstitution?: string;
37
+ webSite?: string;
38
+ operationalStatusDescriptor: string;
39
+ localEducationAgencyCategoryDescriptor: string;
40
+ charterStatusDescriptor?: string;
41
+ categories?: EdFiDescriptorRef[];
42
+ addresses?: EdFiEducationOrganizationAddress[];
43
+ identificationCodes?: EdFiEducationOrganizationIdentificationCode[];
44
+ institutionTelephones?: EdFiInstitutionTelephone[];
45
+ stateEducationAgencyReference?: {
46
+ stateEducationAgencyId: number;
47
+ };
48
+ educationServiceCenterReference?: {
49
+ educationServiceCenterId: number;
50
+ };
51
+ parentLocalEducationAgencyReference?: {
52
+ localEducationAgencyId: number;
53
+ };
54
+ _ext?: EdForgeLeaExtension;
55
+ }
56
+ export interface EdFiStateEducationAgency {
57
+ stateEducationAgencyId: number;
58
+ nameOfInstitution: string;
59
+ shortNameOfInstitution?: string;
60
+ webSite?: string;
61
+ operationalStatusDescriptor: string;
62
+ categories?: EdFiDescriptorRef[];
63
+ addresses?: EdFiEducationOrganizationAddress[];
64
+ identificationCodes?: EdFiEducationOrganizationIdentificationCode[];
65
+ institutionTelephones?: EdFiInstitutionTelephone[];
66
+ _ext?: EdForgeSeaExtension;
67
+ }
68
+ export interface EdFiEducationServiceCenter {
69
+ educationServiceCenterId: number;
70
+ nameOfInstitution: string;
71
+ shortNameOfInstitution?: string;
72
+ webSite?: string;
73
+ operationalStatusDescriptor: string;
74
+ categories?: EdFiDescriptorRef[];
75
+ addresses?: EdFiEducationOrganizationAddress[];
76
+ identificationCodes?: EdFiEducationOrganizationIdentificationCode[];
77
+ institutionTelephones?: EdFiInstitutionTelephone[];
78
+ stateEducationAgencyReference?: {
79
+ stateEducationAgencyId: number;
80
+ };
81
+ _ext?: EdForgeEscExtension;
82
+ }
83
+ export interface EdFiDescriptorRef {
84
+ [descriptorName: string]: string;
85
+ }
86
+ export interface EdFiEducationOrganizationAddress {
87
+ addressTypeDescriptor: string;
88
+ streetNumberName: string;
89
+ apartmentRoomSuiteNumber?: string;
90
+ city: string;
91
+ stateAbbreviationDescriptor: string;
92
+ postalCode: string;
93
+ nameOfCounty?: string;
94
+ countyFIPSCode?: string;
95
+ latitude?: string;
96
+ longitude?: string;
97
+ }
98
+ export interface EdFiEducationOrganizationIdentificationCode {
99
+ educationOrganizationIdentificationSystemDescriptor: string;
100
+ identificationCode: string;
101
+ }
102
+ export interface EdFiInstitutionTelephone {
103
+ institutionTelephoneNumberTypeDescriptor: string;
104
+ telephoneNumber: string;
105
+ }
106
+ export interface EdForgeSchoolExtension {
107
+ edforge_schoolId: string;
108
+ edforge_tenantId?: string;
109
+ edforge_schoolCode: string;
110
+ edforge_internalSchoolType: string;
111
+ }
112
+ export interface EdForgeLeaExtension {
113
+ edforge_leaId: string;
114
+ edforge_tenantId: string;
115
+ }
116
+ export interface EdForgeSeaExtension {
117
+ edforge_seaId: string;
118
+ edforge_tenantId: string;
119
+ }
120
+ export interface EdForgeEscExtension {
121
+ edforge_escId: string;
122
+ edforge_tenantId: string;
123
+ }
124
+ /**
125
+ * Build an Ed-Fi descriptor URI from namespace and value.
126
+ * @example toEdFiDescriptorUri('SchoolCategoryDescriptor', 'High School')
127
+ * => 'uri://ed-fi.org/SchoolCategoryDescriptor#High School'
128
+ */
129
+ export declare function toEdFiDescriptorUri(namespace: string, value: string): string;
130
+ /**
131
+ * Convert EdForge School to Ed-Fi School format.
132
+ * Note: SchoolResponseDto uses a string schoolCode (EdForge internal), while
133
+ * Ed-Fi requires a numeric schoolId. The schoolCode is preserved in _ext.
134
+ * The caller must provide the numeric Ed-Fi school ID separately if different.
135
+ */
136
+ export declare function toEdFiSchool(school: SchoolResponseDto, edfiSchoolId?: number): EdFiSchool;
137
+ /**
138
+ * Convert EdForge LEA to Ed-Fi LocalEducationAgency format.
139
+ * Hierarchy references (SEA, ESC, parent LEA) use internal UUIDs in EdForge
140
+ * but Ed-Fi requires numeric IDs. The caller must resolve these.
141
+ */
142
+ export declare function toEdFiLocalEducationAgency(lea: LeaResponseDto, refs?: {
143
+ seaEdFiId?: number;
144
+ escEdFiId?: number;
145
+ parentLeaEdFiId?: number;
146
+ }): EdFiLocalEducationAgency;
147
+ /**
148
+ * Convert EdForge SEA to Ed-Fi StateEducationAgency format.
149
+ */
150
+ export declare function toEdFiStateEducationAgency(sea: SeaResponseDto): EdFiStateEducationAgency;
151
+ /**
152
+ * Convert EdForge ESC to Ed-Fi EducationServiceCenter format.
153
+ */
154
+ export declare function toEdFiEducationServiceCenter(esc: EscResponseDto, seaEdFiId?: number): EdFiEducationServiceCenter;
155
+ export declare function toEdFiSchoolBatch(schools: SchoolResponseDto[]): EdFiSchool[];
156
+ export declare function toEdFiLeaBatch(leas: LeaResponseDto[]): EdFiLocalEducationAgency[];
157
+ export interface EdFiEducationOrganizationNetwork {
158
+ educationOrganizationNetworkId: number;
159
+ nameOfInstitution: string;
160
+ shortNameOfInstitution?: string;
161
+ webSite?: string;
162
+ operationalStatusDescriptor: string;
163
+ networkPurposeDescriptor: string;
164
+ categories?: EdFiDescriptorRef[];
165
+ addresses?: EdFiEducationOrganizationAddress[];
166
+ identificationCodes?: EdFiEducationOrganizationIdentificationCode[];
167
+ institutionTelephones?: EdFiInstitutionTelephone[];
168
+ _ext?: EdForgeNetworkExtension;
169
+ }
170
+ export interface EdForgeNetworkExtension {
171
+ edforge_networkId: string;
172
+ edforge_tenantId: string;
173
+ }
174
+ /**
175
+ * Convert EdForge Network to Ed-Fi EducationOrganizationNetwork format.
176
+ */
177
+ export declare function toEdFiEducationOrganizationNetwork(network: NetworkResponseDto): EdFiEducationOrganizationNetwork;
178
+ export declare function toEdFiNetworkBatch(networks: NetworkResponseDto[]): EdFiEducationOrganizationNetwork[];
179
+ //# sourceMappingURL=education-org.mapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"education-org.mapper.d.ts","sourceRoot":"","sources":["../../../src/mappers/edfi/education-org.mapper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAO9F,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CA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C) to
6
+ * Ed-Fi Data Standard format for compliance export.
7
+ * Ed-Fi Data Standard v6.0: https://docs.ed-fi.org/reference/data-exchange/data-standard/
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.toEdFiDescriptorUri = toEdFiDescriptorUri;
11
+ exports.toEdFiSchool = toEdFiSchool;
12
+ exports.toEdFiLocalEducationAgency = toEdFiLocalEducationAgency;
13
+ exports.toEdFiStateEducationAgency = toEdFiStateEducationAgency;
14
+ exports.toEdFiEducationServiceCenter = toEdFiEducationServiceCenter;
15
+ exports.toEdFiSchoolBatch = toEdFiSchoolBatch;
16
+ exports.toEdFiLeaBatch = toEdFiLeaBatch;
17
+ exports.toEdFiEducationOrganizationNetwork = toEdFiEducationOrganizationNetwork;
18
+ exports.toEdFiNetworkBatch = toEdFiNetworkBatch;
19
+ // ============================================================================
20
+ // Descriptor URI Helpers
21
+ // ============================================================================
22
+ /**
23
+ * Build an Ed-Fi descriptor URI from namespace and value.
24
+ * @example toEdFiDescriptorUri('SchoolCategoryDescriptor', 'High School')
25
+ * => 'uri://ed-fi.org/SchoolCategoryDescriptor#High School'
26
+ */
27
+ function toEdFiDescriptorUri(namespace, value) {
28
+ return `uri://ed-fi.org/${namespace}#${value}`;
29
+ }
30
+ /** Map an operational status value to its Ed-Fi descriptor URI */
31
+ function mapOperationalStatus(status) {
32
+ const statusLabels = {
33
+ Active: 'Active',
34
+ Added: 'Added',
35
+ ChangedAgency: 'Changed Agency',
36
+ Closed: 'Closed',
37
+ Inactive: 'Inactive',
38
+ New: 'New',
39
+ Reopened: 'Reopened',
40
+ Future: 'Future',
41
+ };
42
+ return toEdFiDescriptorUri('OperationalStatusDescriptor', statusLabels[status] || status);
43
+ }
44
+ /** Map an address type value to its Ed-Fi descriptor URI */
45
+ function mapAddressType(type) {
46
+ return toEdFiDescriptorUri('AddressTypeDescriptor', type);
47
+ }
48
+ /** Map a state abbreviation to its Ed-Fi descriptor URI */
49
+ function mapStateAbbreviation(state) {
50
+ return toEdFiDescriptorUri('StateAbbreviationDescriptor', state);
51
+ }
52
+ /** Map an identification system value to its Ed-Fi descriptor URI */
53
+ function mapIdentificationSystem(system) {
54
+ const systemLabels = {
55
+ NCES: 'NCES Identification Number',
56
+ SEA: 'SEA',
57
+ DUNS: 'DUNS',
58
+ Federal: 'Federal',
59
+ Other: 'Other',
60
+ };
61
+ return toEdFiDescriptorUri('EducationOrganizationIdentificationSystemDescriptor', systemLabels[system] || system);
62
+ }
63
+ /** Map a telephone number type value to its Ed-Fi descriptor URI */
64
+ function mapTelephoneType(type) {
65
+ return toEdFiDescriptorUri('InstitutionTelephoneNumberTypeDescriptor', type);
66
+ }
67
+ /** Map a school category value to its Ed-Fi descriptor URI */
68
+ function mapSchoolCategory(value) {
69
+ const categoryLabels = {
70
+ AllLevels: 'All Levels',
71
+ Elementary: 'Elementary School',
72
+ HighSchool: 'High School',
73
+ MiddleSchool: 'Middle School',
74
+ SecondarySchool: 'Secondary School',
75
+ Ungraded: 'Ungraded',
76
+ };
77
+ return toEdFiDescriptorUri('SchoolCategoryDescriptor', categoryLabels[value] || value);
78
+ }
79
+ /** Map a school type descriptor value to its Ed-Fi descriptor URI */
80
+ function mapSchoolType(value) {
81
+ const typeLabels = {
82
+ Regular: 'Regular',
83
+ SpecialEducation: 'Special Education',
84
+ CareerAndTechnical: 'Career and Technical Education',
85
+ Alternative: 'Alternative',
86
+ };
87
+ return toEdFiDescriptorUri('SchoolTypeDescriptor', typeLabels[value] || value);
88
+ }
89
+ /** Map a grade level descriptor value to its Ed-Fi descriptor URI */
90
+ function mapGradeLevel(value) {
91
+ const gradeLabels = {
92
+ InfantToddler: 'Infant/toddler',
93
+ Prenursery: 'Prenursery',
94
+ Nursery: 'Nursery',
95
+ Prekindergarten: 'Pre-Kindergarten',
96
+ TransitionalKindergarten: 'Transitional Kindergarten',
97
+ Kindergarten: 'Kindergarten',
98
+ FirstGrade: 'First grade',
99
+ SecondGrade: 'Second grade',
100
+ ThirdGrade: 'Third grade',
101
+ FourthGrade: 'Fourth grade',
102
+ FifthGrade: 'Fifth grade',
103
+ SixthGrade: 'Sixth grade',
104
+ SeventhGrade: 'Seventh grade',
105
+ EighthGrade: 'Eighth grade',
106
+ NinthGrade: 'Ninth grade',
107
+ TenthGrade: 'Tenth grade',
108
+ EleventhGrade: 'Eleventh grade',
109
+ TwelfthGrade: 'Twelfth grade',
110
+ Postsecondary: 'Postsecondary',
111
+ Ungraded: 'Ungraded',
112
+ Other: 'Other',
113
+ };
114
+ return toEdFiDescriptorUri('GradeLevelDescriptor', gradeLabels[value] || value);
115
+ }
116
+ /** Map a LEA category value to its Ed-Fi descriptor URI */
117
+ function mapLeaCategory(value) {
118
+ const categoryLabels = {
119
+ Independent: 'Independent',
120
+ CharterLEA: 'Charter LEA',
121
+ Intermediate: 'Intermediate',
122
+ SupervisoryUnion: 'Supervisory Union',
123
+ Other: 'Other',
124
+ };
125
+ return toEdFiDescriptorUri('LocalEducationAgencyCategoryDescriptor', categoryLabels[value] || value);
126
+ }
127
+ /** Map a charter status value to its Ed-Fi descriptor URI */
128
+ function mapCharterStatus(value) {
129
+ const statusLabels = {
130
+ NotACharter: 'Not a Charter School',
131
+ SchoolCharter: 'School Charter',
132
+ CollegeUniversityCharter: 'College/University Charter',
133
+ OpenEnrollment: 'Open Enrollment',
134
+ };
135
+ return toEdFiDescriptorUri('CharterStatusDescriptor', statusLabels[value] || value);
136
+ }
137
+ // ============================================================================
138
+ // Shared Sub-Resource Mappers
139
+ // ============================================================================
140
+ function mapAddresses(addresses) {
141
+ if (!addresses || addresses.length === 0)
142
+ return undefined;
143
+ return addresses.map(addr => ({
144
+ addressTypeDescriptor: mapAddressType(addr.addressTypeDescriptor),
145
+ streetNumberName: addr.streetNumberName,
146
+ apartmentRoomSuiteNumber: addr.apartmentRoomSuiteNumber,
147
+ city: addr.city,
148
+ stateAbbreviationDescriptor: mapStateAbbreviation(addr.stateAbbreviationDescriptor),
149
+ postalCode: addr.postalCode,
150
+ nameOfCounty: addr.nameOfCounty,
151
+ countyFIPSCode: addr.countyFIPSCode,
152
+ latitude: addr.latitude,
153
+ longitude: addr.longitude,
154
+ }));
155
+ }
156
+ function mapIdentificationCodes(codes) {
157
+ if (!codes || codes.length === 0)
158
+ return undefined;
159
+ return codes.map(code => ({
160
+ educationOrganizationIdentificationSystemDescriptor: mapIdentificationSystem(code.educationOrganizationIdentificationSystemDescriptor),
161
+ identificationCode: code.identificationCode,
162
+ }));
163
+ }
164
+ function mapTelephones(telephones) {
165
+ if (!telephones || telephones.length === 0)
166
+ return undefined;
167
+ return telephones.map(tel => ({
168
+ institutionTelephoneNumberTypeDescriptor: mapTelephoneType(tel.institutionTelephoneNumberTypeDescriptor),
169
+ telephoneNumber: tel.telephoneNumber,
170
+ }));
171
+ }
172
+ // ============================================================================
173
+ // School Mapper
174
+ // ============================================================================
175
+ /**
176
+ * Convert EdForge School to Ed-Fi School format.
177
+ * Note: SchoolResponseDto uses a string schoolCode (EdForge internal), while
178
+ * Ed-Fi requires a numeric schoolId. The schoolCode is preserved in _ext.
179
+ * The caller must provide the numeric Ed-Fi school ID separately if different.
180
+ */
181
+ function toEdFiSchool(school, edfiSchoolId) {
182
+ const result = {
183
+ schoolId: edfiSchoolId !== null && edfiSchoolId !== void 0 ? edfiSchoolId : 0, // Caller should provide the numeric Ed-Fi ID
184
+ nameOfInstitution: school.name,
185
+ shortNameOfInstitution: school.shortName,
186
+ webSite: school.website,
187
+ };
188
+ // School categories
189
+ if (school.schoolCategories && school.schoolCategories.length > 0) {
190
+ result.schoolCategories = school.schoolCategories.map(cat => ({
191
+ schoolCategoryDescriptor: mapSchoolCategory(cat),
192
+ }));
193
+ }
194
+ // School type descriptor
195
+ if (school.schoolTypeDescriptor) {
196
+ result.schoolTypeDescriptor = mapSchoolType(school.schoolTypeDescriptor);
197
+ }
198
+ // Grade levels
199
+ if (school.gradeLevels && school.gradeLevels.length > 0) {
200
+ result.gradeLevels = school.gradeLevels.map(gl => ({
201
+ gradeLevelDescriptor: mapGradeLevel(gl),
202
+ }));
203
+ }
204
+ // Charter status
205
+ if (school.charterStatusDescriptor) {
206
+ result.charterStatusDescriptor = mapCharterStatus(school.charterStatusDescriptor);
207
+ }
208
+ // Administrative funding control
209
+ if (school.administrativeFundingControlDescriptor) {
210
+ result.administrativeFundingControlDescriptor = toEdFiDescriptorUri('AdministrativeFundingControlDescriptor', school.administrativeFundingControlDescriptor === 'Public' ? 'Public School' :
211
+ school.administrativeFundingControlDescriptor === 'Private' ? 'Private School' :
212
+ school.administrativeFundingControlDescriptor);
213
+ }
214
+ // Title I
215
+ if (school.titleIPartASchoolDesignationDescriptor) {
216
+ result.titleIPartASchoolDesignationDescriptor = school.titleIPartASchoolDesignationDescriptor;
217
+ }
218
+ // Addresses (from Ed-Fi-style addresses if present, or map from legacy address)
219
+ if (school.address) {
220
+ result.addresses = [{
221
+ addressTypeDescriptor: toEdFiDescriptorUri('AddressTypeDescriptor', 'Physical'),
222
+ streetNumberName: school.address.street1,
223
+ apartmentRoomSuiteNumber: school.address.street2,
224
+ city: school.address.city,
225
+ stateAbbreviationDescriptor: toEdFiDescriptorUri('StateAbbreviationDescriptor', school.address.state),
226
+ postalCode: school.address.zipCode,
227
+ }];
228
+ }
229
+ // Identification codes
230
+ if (school.identificationCodes && school.identificationCodes.length > 0) {
231
+ result.identificationCodes = mapIdentificationCodes(school.identificationCodes);
232
+ }
233
+ // Telephones
234
+ if (school.institutionTelephones && school.institutionTelephones.length > 0) {
235
+ result.institutionTelephones = mapTelephones(school.institutionTelephones);
236
+ }
237
+ // EdForge extension for round-trip
238
+ result._ext = {
239
+ edforge_schoolId: school.schoolId,
240
+ edforge_schoolCode: school.schoolCode,
241
+ edforge_internalSchoolType: school.schoolType,
242
+ };
243
+ return result;
244
+ }
245
+ // ============================================================================
246
+ // LEA Mapper
247
+ // ============================================================================
248
+ /**
249
+ * Convert EdForge LEA to Ed-Fi LocalEducationAgency format.
250
+ * Hierarchy references (SEA, ESC, parent LEA) use internal UUIDs in EdForge
251
+ * but Ed-Fi requires numeric IDs. The caller must resolve these.
252
+ */
253
+ function toEdFiLocalEducationAgency(lea, refs) {
254
+ const result = {
255
+ localEducationAgencyId: lea.localEducationAgencyId,
256
+ nameOfInstitution: lea.nameOfInstitution,
257
+ shortNameOfInstitution: lea.shortNameOfInstitution,
258
+ webSite: lea.webSite,
259
+ operationalStatusDescriptor: mapOperationalStatus(lea.operationalStatusDescriptor),
260
+ localEducationAgencyCategoryDescriptor: mapLeaCategory(lea.leaCategoryDescriptor),
261
+ };
262
+ if (lea.charterStatusDescriptor) {
263
+ result.charterStatusDescriptor = mapCharterStatus(lea.charterStatusDescriptor);
264
+ }
265
+ if (lea.categories && lea.categories.length > 0) {
266
+ result.categories = lea.categories.map(cat => ({
267
+ educationOrganizationCategoryDescriptor: cat.educationOrganizationCategoryDescriptor,
268
+ }));
269
+ }
270
+ result.addresses = mapAddresses(lea.addresses);
271
+ result.identificationCodes = mapIdentificationCodes(lea.identificationCodes);
272
+ result.institutionTelephones = mapTelephones(lea.telephones);
273
+ // Hierarchy references
274
+ if (refs === null || refs === void 0 ? void 0 : refs.seaEdFiId) {
275
+ result.stateEducationAgencyReference = { stateEducationAgencyId: refs.seaEdFiId };
276
+ }
277
+ if (refs === null || refs === void 0 ? void 0 : refs.escEdFiId) {
278
+ result.educationServiceCenterReference = { educationServiceCenterId: refs.escEdFiId };
279
+ }
280
+ if (refs === null || refs === void 0 ? void 0 : refs.parentLeaEdFiId) {
281
+ result.parentLocalEducationAgencyReference = { localEducationAgencyId: refs.parentLeaEdFiId };
282
+ }
283
+ result._ext = {
284
+ edforge_leaId: lea.id,
285
+ edforge_tenantId: lea.tenantId,
286
+ };
287
+ return result;
288
+ }
289
+ // ============================================================================
290
+ // SEA Mapper
291
+ // ============================================================================
292
+ /**
293
+ * Convert EdForge SEA to Ed-Fi StateEducationAgency format.
294
+ */
295
+ function toEdFiStateEducationAgency(sea) {
296
+ const result = {
297
+ stateEducationAgencyId: sea.stateEducationAgencyId,
298
+ nameOfInstitution: sea.nameOfInstitution,
299
+ shortNameOfInstitution: sea.shortNameOfInstitution,
300
+ webSite: sea.webSite,
301
+ operationalStatusDescriptor: mapOperationalStatus(sea.operationalStatusDescriptor),
302
+ };
303
+ if (sea.categories && sea.categories.length > 0) {
304
+ result.categories = sea.categories.map(cat => ({
305
+ educationOrganizationCategoryDescriptor: cat.educationOrganizationCategoryDescriptor,
306
+ }));
307
+ }
308
+ result.addresses = mapAddresses(sea.addresses);
309
+ result.identificationCodes = mapIdentificationCodes(sea.identificationCodes);
310
+ result.institutionTelephones = mapTelephones(sea.telephones);
311
+ result._ext = {
312
+ edforge_seaId: sea.id,
313
+ edforge_tenantId: sea.tenantId,
314
+ };
315
+ return result;
316
+ }
317
+ // ============================================================================
318
+ // ESC Mapper
319
+ // ============================================================================
320
+ /**
321
+ * Convert EdForge ESC to Ed-Fi EducationServiceCenter format.
322
+ */
323
+ function toEdFiEducationServiceCenter(esc, seaEdFiId) {
324
+ const result = {
325
+ educationServiceCenterId: esc.educationServiceCenterId,
326
+ nameOfInstitution: esc.nameOfInstitution,
327
+ shortNameOfInstitution: esc.shortNameOfInstitution,
328
+ webSite: esc.webSite,
329
+ operationalStatusDescriptor: mapOperationalStatus(esc.operationalStatusDescriptor),
330
+ };
331
+ if (esc.categories && esc.categories.length > 0) {
332
+ result.categories = esc.categories.map(cat => ({
333
+ educationOrganizationCategoryDescriptor: cat.educationOrganizationCategoryDescriptor,
334
+ }));
335
+ }
336
+ result.addresses = mapAddresses(esc.addresses);
337
+ result.identificationCodes = mapIdentificationCodes(esc.identificationCodes);
338
+ result.institutionTelephones = mapTelephones(esc.telephones);
339
+ if (seaEdFiId) {
340
+ result.stateEducationAgencyReference = { stateEducationAgencyId: seaEdFiId };
341
+ }
342
+ result._ext = {
343
+ edforge_escId: esc.id,
344
+ edforge_tenantId: esc.tenantId,
345
+ };
346
+ return result;
347
+ }
348
+ // ============================================================================
349
+ // Batch Converters
350
+ // ============================================================================
351
+ function toEdFiSchoolBatch(schools) {
352
+ return schools.map(s => toEdFiSchool(s));
353
+ }
354
+ function toEdFiLeaBatch(leas) {
355
+ return leas.map(l => toEdFiLocalEducationAgency(l));
356
+ }
357
+ /** Map a network purpose value to its Ed-Fi descriptor URI */
358
+ function mapNetworkPurpose(value) {
359
+ const purposeLabels = {
360
+ Collaborative: 'Collaborative',
361
+ Disciplinary: 'Disciplinary',
362
+ Governance: 'Governance',
363
+ 'Shared Services': 'Shared Services',
364
+ Other: 'Other',
365
+ };
366
+ return toEdFiDescriptorUri('NetworkPurposeDescriptor', purposeLabels[value] || value);
367
+ }
368
+ /**
369
+ * Convert EdForge Network to Ed-Fi EducationOrganizationNetwork format.
370
+ */
371
+ function toEdFiEducationOrganizationNetwork(network) {
372
+ const result = {
373
+ educationOrganizationNetworkId: network.educationOrganizationNetworkId,
374
+ nameOfInstitution: network.nameOfInstitution,
375
+ shortNameOfInstitution: network.shortNameOfInstitution,
376
+ webSite: network.webSite,
377
+ operationalStatusDescriptor: mapOperationalStatus(network.operationalStatusDescriptor),
378
+ networkPurposeDescriptor: mapNetworkPurpose(network.networkPurposeDescriptor),
379
+ };
380
+ if (network.categories && network.categories.length > 0) {
381
+ result.categories = network.categories.map(cat => ({
382
+ educationOrganizationCategoryDescriptor: cat.educationOrganizationCategoryDescriptor,
383
+ }));
384
+ }
385
+ result.addresses = mapAddresses(network.addresses);
386
+ result.identificationCodes = mapIdentificationCodes(network.identificationCodes);
387
+ result.institutionTelephones = mapTelephones(network.telephones);
388
+ result._ext = {
389
+ edforge_networkId: network.id,
390
+ edforge_tenantId: network.tenantId,
391
+ };
392
+ return result;
393
+ }
394
+ function toEdFiNetworkBatch(networks) {
395
+ return networks.map(n => toEdFiEducationOrganizationNetwork(n));
396
+ }
397
+ //# sourceMappingURL=education-org.mapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"education-org.mapper.js","sourceRoot":"","sources":["../../../src/mappers/edfi/education-org.mapper.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,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACjD,uCAAuC,EAAE,GAAG,CAAC,uCAAuC;SACrF,CAAC,CAAC,CAAC;IACN,CAAC;IAED,MAAM,CAAC,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnD,MAAM,CAAC,mBAAmB,GAAG,sBAAsB,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjF,MAAM,CAAC,qBAAqB,GAAG,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAEjE,MAAM,CAAC,IAAI,GAAG;QACZ,iBAAiB,EAAE,OAAO,CAAC,EAAE;QAC7B,gBAAgB,EAAE,OAAO,CAAC,QAAQ;KACnC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,QAA8B;IAC/D,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC"}
@@ -7,4 +7,5 @@
7
7
  export * from './staff.mapper';
8
8
  export * from './credential.mapper';
9
9
  export * from './calendar.mapper';
10
+ export * from './education-org.mapper';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mappers/edfi/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mappers/edfi/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
@@ -23,4 +23,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  __exportStar(require("./staff.mapper"), exports);
24
24
  __exportStar(require("./credential.mapper"), exports);
25
25
  __exportStar(require("./calendar.mapper"), exports);
26
+ __exportStar(require("./education-org.mapper"), exports);
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mappers/edfi/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,sDAAoC;AACpC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mappers/edfi/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,sDAAoC;AACpC,oDAAkC;AAClC,yDAAuC"}