@htilabs/platform-common-models 0.85.0 → 0.86.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/README.md +12 -0
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/org-directory/index.cjs +8 -2
- package/dist/org-directory/index.cjs.map +1 -1
- package/dist/org-directory/index.d.cts +11 -2
- package/dist/org-directory/index.d.ts +11 -2
- package/dist/org-directory/index.js +8 -2
- package/dist/org-directory/index.js.map +1 -1
- package/dist/org-merge/index.cjs +8 -2
- package/dist/org-merge/index.cjs.map +1 -1
- package/dist/org-merge/index.js +8 -2
- package/dist/org-merge/index.js.map +1 -1
- package/dist/points-of-contact/index.cjs +8 -2
- package/dist/points-of-contact/index.cjs.map +1 -1
- package/dist/points-of-contact/index.js +8 -2
- package/dist/points-of-contact/index.js.map +1 -1
- package/dist/schemas/index.cjs +12 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +32 -2
- package/dist/schemas/index.d.ts +32 -2
- package/dist/schemas/index.js +12 -1
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/src/orgDirectory/__tests__/programDetails.test.ts +2 -1
- package/src/orgDirectory/__tests__/programTeamLink.test.ts +107 -0
- package/src/orgDirectory/schemas.ts +8 -1
- package/src/schemas/organization-program.ts +25 -2
package/dist/index.js
CHANGED
|
@@ -20135,7 +20135,18 @@ var organizationProgramSchemaDefinition = {
|
|
|
20135
20135
|
*/
|
|
20136
20136
|
locationId: { type: String, required: false },
|
|
20137
20137
|
/** The editor's notes. */
|
|
20138
|
-
notes: { type: String, required: false }
|
|
20138
|
+
notes: { type: String, required: false },
|
|
20139
|
+
/**
|
|
20140
|
+
* The first team that works for the program (`teams._id` as a string;
|
|
20141
|
+
* canon `team_id`). Equal to `teamIds[0]` when both are written.
|
|
20142
|
+
*/
|
|
20143
|
+
teamId: { type: String, required: false },
|
|
20144
|
+
/**
|
|
20145
|
+
* Every team that works for the program (canon `team_ids`; one program may
|
|
20146
|
+
* have several teams). `default: undefined`, so a row with no link stores
|
|
20147
|
+
* nothing and reads as absent, never as an empty list.
|
|
20148
|
+
*/
|
|
20149
|
+
teamIds: { type: [String], required: false, default: void 0 }
|
|
20139
20150
|
};
|
|
20140
20151
|
function buildOrganizationProgramSchema() {
|
|
20141
20152
|
return new Schema12(organizationProgramSchemaDefinition, { _id: false });
|