@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/schemas/index.cjs
CHANGED
|
@@ -6230,7 +6230,18 @@ var organizationProgramSchemaDefinition = {
|
|
|
6230
6230
|
*/
|
|
6231
6231
|
locationId: { type: String, required: false },
|
|
6232
6232
|
/** The editor's notes. */
|
|
6233
|
-
notes: { type: String, required: false }
|
|
6233
|
+
notes: { type: String, required: false },
|
|
6234
|
+
/**
|
|
6235
|
+
* The first team that works for the program (`teams._id` as a string;
|
|
6236
|
+
* canon `team_id`). Equal to `teamIds[0]` when both are written.
|
|
6237
|
+
*/
|
|
6238
|
+
teamId: { type: String, required: false },
|
|
6239
|
+
/**
|
|
6240
|
+
* Every team that works for the program (canon `team_ids`; one program may
|
|
6241
|
+
* have several teams). `default: undefined`, so a row with no link stores
|
|
6242
|
+
* nothing and reads as absent, never as an empty list.
|
|
6243
|
+
*/
|
|
6244
|
+
teamIds: { type: [String], required: false, default: void 0 }
|
|
6234
6245
|
};
|
|
6235
6246
|
function buildOrganizationProgramSchema() {
|
|
6236
6247
|
return new import_mongoose13.Schema(organizationProgramSchemaDefinition, { _id: false });
|