@centricare/contract 0.1.2 → 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/README.md +28 -67
- package/dist/index.cjs +1469 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +3324 -0
- package/dist/index.d.ts +3322 -5
- package/dist/index.mjs +1325 -0
- package/dist/index.mjs.map +1 -0
- package/dist/registry/index.cjs +412 -0
- package/dist/registry/index.cjs.map +1 -0
- package/dist/registry/index.d.mts +60 -0
- package/dist/registry/index.d.ts +60 -0
- package/dist/registry/index.mjs +405 -0
- package/dist/registry/index.mjs.map +1 -0
- package/package.json +18 -9
- package/dist/commons/address.d.ts +0 -35
- package/dist/commons/address.d.ts.map +0 -1
- package/dist/commons/address.js +0 -11
- package/dist/commons/address.js.map +0 -1
- package/dist/commons/api-response.d.ts +0 -70
- package/dist/commons/api-response.d.ts.map +0 -1
- package/dist/commons/api-response.js +0 -49
- package/dist/commons/api-response.js.map +0 -1
- package/dist/commons/coded-concept.d.ts +0 -16
- package/dist/commons/coded-concept.d.ts.map +0 -1
- package/dist/commons/coded-concept.js +0 -20
- package/dist/commons/coded-concept.js.map +0 -1
- package/dist/commons/demographic.d.ts +0 -29
- package/dist/commons/demographic.d.ts.map +0 -1
- package/dist/commons/demographic.js +0 -11
- package/dist/commons/demographic.js.map +0 -1
- package/dist/commons/index.d.ts +0 -12
- package/dist/commons/index.d.ts.map +0 -1
- package/dist/commons/index.js +0 -12
- package/dist/commons/index.js.map +0 -1
- package/dist/commons/object-id.d.ts +0 -8
- package/dist/commons/object-id.d.ts.map +0 -1
- package/dist/commons/object-id.js +0 -11
- package/dist/commons/object-id.js.map +0 -1
- package/dist/commons/setting-option.d.ts +0 -45
- package/dist/commons/setting-option.d.ts.map +0 -1
- package/dist/commons/setting-option.js +0 -27
- package/dist/commons/setting-option.js.map +0 -1
- package/dist/commons/timestamp.d.ts +0 -7
- package/dist/commons/timestamp.d.ts.map +0 -1
- package/dist/commons/timestamp.js +0 -9
- package/dist/commons/timestamp.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/models/assignment/assignment-minimal.schema.d.ts +0 -18
- package/dist/models/assignment/assignment-minimal.schema.d.ts.map +0 -1
- package/dist/models/assignment/assignment-minimal.schema.js +0 -13
- package/dist/models/assignment/assignment-minimal.schema.js.map +0 -1
- package/dist/models/assignment/assignment-partial.schema.d.ts +0 -18
- package/dist/models/assignment/assignment-partial.schema.d.ts.map +0 -1
- package/dist/models/assignment/assignment-partial.schema.js +0 -6
- package/dist/models/assignment/assignment-partial.schema.js.map +0 -1
- package/dist/models/assignment/assignment.schema.d.ts +0 -84
- package/dist/models/assignment/assignment.schema.d.ts.map +0 -1
- package/dist/models/assignment/assignment.schema.js +0 -27
- package/dist/models/assignment/assignment.schema.js.map +0 -1
- package/dist/models/assignment/index.d.ts +0 -4
- package/dist/models/assignment/index.d.ts.map +0 -1
- package/dist/models/assignment/index.js +0 -4
- package/dist/models/assignment/index.js.map +0 -1
- package/dist/models/department/department-minimal.schema.d.ts +0 -17
- package/dist/models/department/department-minimal.schema.d.ts.map +0 -1
- package/dist/models/department/department-minimal.schema.js +0 -13
- package/dist/models/department/department-minimal.schema.js.map +0 -1
- package/dist/models/department/department-partial.schema.d.ts +0 -17
- package/dist/models/department/department-partial.schema.d.ts.map +0 -1
- package/dist/models/department/department-partial.schema.js +0 -6
- package/dist/models/department/department-partial.schema.js.map +0 -1
- package/dist/models/department/department.schema.d.ts +0 -83
- package/dist/models/department/department.schema.d.ts.map +0 -1
- package/dist/models/department/department.schema.js +0 -20
- package/dist/models/department/department.schema.js.map +0 -1
- package/dist/models/department/index.d.ts +0 -4
- package/dist/models/department/index.d.ts.map +0 -1
- package/dist/models/department/index.js +0 -4
- package/dist/models/department/index.js.map +0 -1
- package/dist/models/facility/facility-minimal.schema.d.ts +0 -19
- package/dist/models/facility/facility-minimal.schema.d.ts.map +0 -1
- package/dist/models/facility/facility-minimal.schema.js +0 -10
- package/dist/models/facility/facility-minimal.schema.js.map +0 -1
- package/dist/models/facility/facility-partial.schema.d.ts +0 -19
- package/dist/models/facility/facility-partial.schema.d.ts.map +0 -1
- package/dist/models/facility/facility-partial.schema.js +0 -6
- package/dist/models/facility/facility-partial.schema.js.map +0 -1
- package/dist/models/facility/facility-settings.schema.d.ts +0 -16
- package/dist/models/facility/facility-settings.schema.d.ts.map +0 -1
- package/dist/models/facility/facility-settings.schema.js +0 -12
- package/dist/models/facility/facility-settings.schema.js.map +0 -1
- package/dist/models/facility/facility.schema.d.ts +0 -82
- package/dist/models/facility/facility.schema.d.ts.map +0 -1
- package/dist/models/facility/facility.schema.js +0 -23
- package/dist/models/facility/facility.schema.js.map +0 -1
- package/dist/models/facility/index.d.ts +0 -5
- package/dist/models/facility/index.d.ts.map +0 -1
- package/dist/models/facility/index.js +0 -5
- package/dist/models/facility/index.js.map +0 -1
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js +0 -23
- package/dist/models/index.js.map +0 -1
- package/dist/models/ksm/index.d.ts +0 -4
- package/dist/models/ksm/index.d.ts.map +0 -1
- package/dist/models/ksm/index.js +0 -4
- package/dist/models/ksm/index.js.map +0 -1
- package/dist/models/ksm/ksm-minimal.schema.d.ts +0 -12
- package/dist/models/ksm/ksm-minimal.schema.d.ts.map +0 -1
- package/dist/models/ksm/ksm-minimal.schema.js +0 -13
- package/dist/models/ksm/ksm-minimal.schema.js.map +0 -1
- package/dist/models/ksm/ksm-partial.schema.d.ts +0 -12
- package/dist/models/ksm/ksm-partial.schema.d.ts.map +0 -1
- package/dist/models/ksm/ksm-partial.schema.js +0 -6
- package/dist/models/ksm/ksm-partial.schema.js.map +0 -1
- package/dist/models/ksm/ksm.schema.d.ts +0 -78
- package/dist/models/ksm/ksm.schema.d.ts.map +0 -1
- package/dist/models/ksm/ksm.schema.js +0 -23
- package/dist/models/ksm/ksm.schema.js.map +0 -1
- package/dist/models/location/index.d.ts +0 -5
- package/dist/models/location/index.d.ts.map +0 -1
- package/dist/models/location/index.js +0 -5
- package/dist/models/location/index.js.map +0 -1
- package/dist/models/location/location-minimal.schema.d.ts +0 -33
- package/dist/models/location/location-minimal.schema.d.ts.map +0 -1
- package/dist/models/location/location-minimal.schema.js +0 -12
- package/dist/models/location/location-minimal.schema.js.map +0 -1
- package/dist/models/location/location-partial.schema.d.ts +0 -33
- package/dist/models/location/location-partial.schema.d.ts.map +0 -1
- package/dist/models/location/location-partial.schema.js +0 -6
- package/dist/models/location/location-partial.schema.js.map +0 -1
- package/dist/models/location/location-settings.schema.d.ts +0 -8
- package/dist/models/location/location-settings.schema.d.ts.map +0 -1
- package/dist/models/location/location-settings.schema.js +0 -7
- package/dist/models/location/location-settings.schema.js.map +0 -1
- package/dist/models/location/location.schema.d.ts +0 -98
- package/dist/models/location/location.schema.d.ts.map +0 -1
- package/dist/models/location/location.schema.js +0 -30
- package/dist/models/location/location.schema.js.map +0 -1
- package/dist/models/member/index.d.ts +0 -4
- package/dist/models/member/index.d.ts.map +0 -1
- package/dist/models/member/index.js +0 -4
- package/dist/models/member/index.js.map +0 -1
- package/dist/models/member/member-minimal.schema.d.ts +0 -11
- package/dist/models/member/member-minimal.schema.d.ts.map +0 -1
- package/dist/models/member/member-minimal.schema.js +0 -9
- package/dist/models/member/member-minimal.schema.js.map +0 -1
- package/dist/models/member/member-partial.schema.d.ts +0 -11
- package/dist/models/member/member-partial.schema.d.ts.map +0 -1
- package/dist/models/member/member-partial.schema.js +0 -6
- package/dist/models/member/member-partial.schema.js.map +0 -1
- package/dist/models/member/member.schema.d.ts +0 -73
- package/dist/models/member/member.schema.d.ts.map +0 -1
- package/dist/models/member/member.schema.js +0 -16
- package/dist/models/member/member.schema.js.map +0 -1
- package/dist/models/organization/index.d.ts +0 -5
- package/dist/models/organization/index.d.ts.map +0 -1
- package/dist/models/organization/index.js +0 -5
- package/dist/models/organization/index.js.map +0 -1
- package/dist/models/organization/organization-minimal.schema.d.ts +0 -22
- package/dist/models/organization/organization-minimal.schema.d.ts.map +0 -1
- package/dist/models/organization/organization-minimal.schema.js +0 -9
- package/dist/models/organization/organization-minimal.schema.js.map +0 -1
- package/dist/models/organization/organization-partial.schema.d.ts +0 -22
- package/dist/models/organization/organization-partial.schema.d.ts.map +0 -1
- package/dist/models/organization/organization-partial.schema.js +0 -6
- package/dist/models/organization/organization-partial.schema.js.map +0 -1
- package/dist/models/organization/organization-settings.schema.d.ts +0 -8
- package/dist/models/organization/organization-settings.schema.d.ts.map +0 -1
- package/dist/models/organization/organization-settings.schema.js +0 -7
- package/dist/models/organization/organization-settings.schema.js.map +0 -1
- package/dist/models/organization/organization.schema.d.ts +0 -84
- package/dist/models/organization/organization.schema.d.ts.map +0 -1
- package/dist/models/organization/organization.schema.js +0 -24
- package/dist/models/organization/organization.schema.js.map +0 -1
- package/dist/models/patient/index.d.ts +0 -4
- package/dist/models/patient/index.d.ts.map +0 -1
- package/dist/models/patient/index.js +0 -4
- package/dist/models/patient/index.js.map +0 -1
- package/dist/models/patient/patient-minimal.schema.d.ts +0 -95
- package/dist/models/patient/patient-minimal.schema.d.ts.map +0 -1
- package/dist/models/patient/patient-minimal.schema.js +0 -13
- package/dist/models/patient/patient-minimal.schema.js.map +0 -1
- package/dist/models/patient/patient-partial.schema.d.ts +0 -95
- package/dist/models/patient/patient-partial.schema.d.ts.map +0 -1
- package/dist/models/patient/patient-partial.schema.js +0 -6
- package/dist/models/patient/patient-partial.schema.js.map +0 -1
- package/dist/models/patient/patient.schema.d.ts +0 -161
- package/dist/models/patient/patient.schema.d.ts.map +0 -1
- package/dist/models/patient/patient.schema.js +0 -35
- package/dist/models/patient/patient.schema.js.map +0 -1
- package/dist/models/patient-additional/index.d.ts +0 -4
- package/dist/models/patient-additional/index.d.ts.map +0 -1
- package/dist/models/patient-additional/index.js +0 -4
- package/dist/models/patient-additional/index.js.map +0 -1
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts +0 -17
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts.map +0 -1
- package/dist/models/patient-additional/patient-additional-minimal.schema.js +0 -13
- package/dist/models/patient-additional/patient-additional-minimal.schema.js.map +0 -1
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts +0 -17
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts.map +0 -1
- package/dist/models/patient-additional/patient-additional-partial.schema.js +0 -6
- package/dist/models/patient-additional/patient-additional-partial.schema.js.map +0 -1
- package/dist/models/patient-additional/patient-additional.schema.d.ts +0 -83
- package/dist/models/patient-additional/patient-additional.schema.d.ts.map +0 -1
- package/dist/models/patient-additional/patient-additional.schema.js +0 -21
- package/dist/models/patient-additional/patient-additional.schema.js.map +0 -1
- package/dist/models/payer/index.d.ts +0 -5
- package/dist/models/payer/index.d.ts.map +0 -1
- package/dist/models/payer/index.js +0 -5
- package/dist/models/payer/index.js.map +0 -1
- package/dist/models/payer/payer-minimal.schema.d.ts +0 -67
- package/dist/models/payer/payer-minimal.schema.d.ts.map +0 -1
- package/dist/models/payer/payer-minimal.schema.js +0 -13
- package/dist/models/payer/payer-minimal.schema.js.map +0 -1
- package/dist/models/payer/payer-partial.schema.d.ts +0 -67
- package/dist/models/payer/payer-partial.schema.d.ts.map +0 -1
- package/dist/models/payer/payer-partial.schema.js +0 -6
- package/dist/models/payer/payer-partial.schema.js.map +0 -1
- package/dist/models/payer/payer-settings.schema.d.ts +0 -27
- package/dist/models/payer/payer-settings.schema.d.ts.map +0 -1
- package/dist/models/payer/payer-settings.schema.js +0 -20
- package/dist/models/payer/payer-settings.schema.js.map +0 -1
- package/dist/models/payer/payer.schema.d.ts +0 -133
- package/dist/models/payer/payer.schema.d.ts.map +0 -1
- package/dist/models/payer/payer.schema.js +0 -47
- package/dist/models/payer/payer.schema.js.map +0 -1
- package/dist/models/practitioner-schedule/index.d.ts +0 -4
- package/dist/models/practitioner-schedule/index.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/index.js +0 -4
- package/dist/models/practitioner-schedule/index.js.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts +0 -20
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js +0 -13
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts +0 -20
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js +0 -6
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts +0 -86
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts.map +0 -1
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js +0 -26
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js.map +0 -1
- package/dist/models/practitioner-session/index.d.ts +0 -4
- package/dist/models/practitioner-session/index.d.ts.map +0 -1
- package/dist/models/practitioner-session/index.js +0 -4
- package/dist/models/practitioner-session/index.js.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts +0 -14
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js +0 -13
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts +0 -14
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts.map +0 -1
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js +0 -6
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js.map +0 -1
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts +0 -80
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts.map +0 -1
- package/dist/models/practitioner-session/practitioner-session.schema.js +0 -26
- package/dist/models/practitioner-session/practitioner-session.schema.js.map +0 -1
- package/dist/models/queue/index.d.ts +0 -5
- package/dist/models/queue/index.d.ts.map +0 -1
- package/dist/models/queue/index.js +0 -5
- package/dist/models/queue/index.js.map +0 -1
- package/dist/models/queue/queue-minimal.schema.d.ts +0 -31
- package/dist/models/queue/queue-minimal.schema.d.ts.map +0 -1
- package/dist/models/queue/queue-minimal.schema.js +0 -13
- package/dist/models/queue/queue-minimal.schema.js.map +0 -1
- package/dist/models/queue/queue-partial.schema.d.ts +0 -31
- package/dist/models/queue/queue-partial.schema.d.ts.map +0 -1
- package/dist/models/queue/queue-partial.schema.js +0 -6
- package/dist/models/queue/queue-partial.schema.js.map +0 -1
- package/dist/models/queue/queue-settings.schema.d.ts +0 -27
- package/dist/models/queue/queue-settings.schema.d.ts.map +0 -1
- package/dist/models/queue/queue-settings.schema.js +0 -22
- package/dist/models/queue/queue-settings.schema.js.map +0 -1
- package/dist/models/queue/queue.schema.d.ts +0 -97
- package/dist/models/queue/queue.schema.d.ts.map +0 -1
- package/dist/models/queue/queue.schema.js +0 -32
- package/dist/models/queue/queue.schema.js.map +0 -1
- package/dist/models/queue-event-log/index.d.ts +0 -4
- package/dist/models/queue-event-log/index.d.ts.map +0 -1
- package/dist/models/queue-event-log/index.js +0 -4
- package/dist/models/queue-event-log/index.js.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts +0 -18
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js +0 -13
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts +0 -18
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts.map +0 -1
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js +0 -6
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js.map +0 -1
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts +0 -84
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts.map +0 -1
- package/dist/models/queue-event-log/queue-event-log.schema.js +0 -25
- package/dist/models/queue-event-log/queue-event-log.schema.js.map +0 -1
- package/dist/models/queue-number/index.d.ts +0 -5
- package/dist/models/queue-number/index.d.ts.map +0 -1
- package/dist/models/queue-number/index.js +0 -5
- package/dist/models/queue-number/index.js.map +0 -1
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts +0 -21
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number-minimal.schema.js +0 -14
- package/dist/models/queue-number/queue-number-minimal.schema.js.map +0 -1
- package/dist/models/queue-number/queue-number-partial.schema.d.ts +0 -21
- package/dist/models/queue-number/queue-number-partial.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number-partial.schema.js +0 -6
- package/dist/models/queue-number/queue-number-partial.schema.js.map +0 -1
- package/dist/models/queue-number/queue-number-settings.schema.d.ts +0 -27
- package/dist/models/queue-number/queue-number-settings.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number-settings.schema.js +0 -22
- package/dist/models/queue-number/queue-number-settings.schema.js.map +0 -1
- package/dist/models/queue-number/queue-number.schema.d.ts +0 -88
- package/dist/models/queue-number/queue-number.schema.d.ts.map +0 -1
- package/dist/models/queue-number/queue-number.schema.js +0 -42
- package/dist/models/queue-number/queue-number.schema.js.map +0 -1
- package/dist/models/settings/index.d.ts +0 -4
- package/dist/models/settings/index.d.ts.map +0 -1
- package/dist/models/settings/index.js +0 -4
- package/dist/models/settings/index.js.map +0 -1
- package/dist/models/settings/settings-minimal.schema.d.ts +0 -26
- package/dist/models/settings/settings-minimal.schema.d.ts.map +0 -1
- package/dist/models/settings/settings-minimal.schema.js +0 -11
- package/dist/models/settings/settings-minimal.schema.js.map +0 -1
- package/dist/models/settings/settings-partial.schema.d.ts +0 -26
- package/dist/models/settings/settings-partial.schema.d.ts.map +0 -1
- package/dist/models/settings/settings-partial.schema.js +0 -6
- package/dist/models/settings/settings-partial.schema.js.map +0 -1
- package/dist/models/settings/settings.schema.d.ts +0 -96
- package/dist/models/settings/settings.schema.d.ts.map +0 -1
- package/dist/models/settings/settings.schema.js +0 -25
- package/dist/models/settings/settings.schema.js.map +0 -1
- package/dist/models/staff/index.d.ts +0 -4
- package/dist/models/staff/index.d.ts.map +0 -1
- package/dist/models/staff/index.js +0 -4
- package/dist/models/staff/index.js.map +0 -1
- package/dist/models/staff/staff-minimal.schema.d.ts +0 -27
- package/dist/models/staff/staff-minimal.schema.d.ts.map +0 -1
- package/dist/models/staff/staff-minimal.schema.js +0 -13
- package/dist/models/staff/staff-minimal.schema.js.map +0 -1
- package/dist/models/staff/staff-partial.schema.d.ts +0 -27
- package/dist/models/staff/staff-partial.schema.d.ts.map +0 -1
- package/dist/models/staff/staff-partial.schema.js +0 -6
- package/dist/models/staff/staff-partial.schema.js.map +0 -1
- package/dist/models/staff/staff.schema.d.ts +0 -93
- package/dist/models/staff/staff.schema.d.ts.map +0 -1
- package/dist/models/staff/staff.schema.js +0 -25
- package/dist/models/staff/staff.schema.js.map +0 -1
- package/dist/models/unit/index.d.ts +0 -4
- package/dist/models/unit/index.d.ts.map +0 -1
- package/dist/models/unit/index.js +0 -4
- package/dist/models/unit/index.js.map +0 -1
- package/dist/models/unit/unit-minimal.schema.d.ts +0 -27
- package/dist/models/unit/unit-minimal.schema.d.ts.map +0 -1
- package/dist/models/unit/unit-minimal.schema.js +0 -13
- package/dist/models/unit/unit-minimal.schema.js.map +0 -1
- package/dist/models/unit/unit-partial.schema.d.ts +0 -27
- package/dist/models/unit/unit-partial.schema.d.ts.map +0 -1
- package/dist/models/unit/unit-partial.schema.js +0 -6
- package/dist/models/unit/unit-partial.schema.js.map +0 -1
- package/dist/models/unit/unit.schema.d.ts +0 -93
- package/dist/models/unit/unit.schema.d.ts.map +0 -1
- package/dist/models/unit/unit.schema.js +0 -27
- package/dist/models/unit/unit.schema.js.map +0 -1
- package/dist/models/user/index.d.ts +0 -5
- package/dist/models/user/index.d.ts.map +0 -1
- package/dist/models/user/index.js +0 -5
- package/dist/models/user/index.js.map +0 -1
- package/dist/models/user/user-minimal.schema.d.ts +0 -65
- package/dist/models/user/user-minimal.schema.d.ts.map +0 -1
- package/dist/models/user/user-minimal.schema.js +0 -10
- package/dist/models/user/user-minimal.schema.js.map +0 -1
- package/dist/models/user/user-partial.schema.d.ts +0 -65
- package/dist/models/user/user-partial.schema.d.ts.map +0 -1
- package/dist/models/user/user-partial.schema.js +0 -6
- package/dist/models/user/user-partial.schema.js.map +0 -1
- package/dist/models/user/user-settings.schema.d.ts +0 -8
- package/dist/models/user/user-settings.schema.d.ts.map +0 -1
- package/dist/models/user/user-settings.schema.js +0 -7
- package/dist/models/user/user-settings.schema.js.map +0 -1
- package/dist/models/user/user.schema.d.ts +0 -134
- package/dist/models/user/user.schema.d.ts.map +0 -1
- package/dist/models/user/user.schema.js +0 -39
- package/dist/models/user/user.schema.js.map +0 -1
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Pagination metadata included in every standardized API response.
|
|
4
|
-
*/
|
|
5
|
-
export declare const metadataSchema: z.ZodObject<{
|
|
6
|
-
total: z.ZodNumber;
|
|
7
|
-
offset: z.ZodNumber;
|
|
8
|
-
limit: z.ZodNumber;
|
|
9
|
-
next: z.ZodNullable<z.ZodString>;
|
|
10
|
-
previous: z.ZodNullable<z.ZodString>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
export type Metadata = z.infer<typeof metadataSchema>;
|
|
13
|
-
/**
|
|
14
|
-
* Standardized API response envelope used by CentriCare services.
|
|
15
|
-
* Based on /Docs/API/1. Standardized Response.md
|
|
16
|
-
*
|
|
17
|
-
* {
|
|
18
|
-
* "success": true,
|
|
19
|
-
* "message": "Successfully do something",
|
|
20
|
-
* "status_code": "200",
|
|
21
|
-
* "data": [],
|
|
22
|
-
* "metadata": {
|
|
23
|
-
* "total": 1,
|
|
24
|
-
* "offset": 0,
|
|
25
|
-
* "limit": 1,
|
|
26
|
-
* "next": null,
|
|
27
|
-
* "previous": null
|
|
28
|
-
* }
|
|
29
|
-
* }
|
|
30
|
-
*/
|
|
31
|
-
export declare const apiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
32
|
-
success: z.ZodBoolean;
|
|
33
|
-
message: z.ZodString;
|
|
34
|
-
status_code: z.ZodString;
|
|
35
|
-
data: z.ZodArray<T>;
|
|
36
|
-
metadata: z.ZodObject<{
|
|
37
|
-
total: z.ZodNumber;
|
|
38
|
-
offset: z.ZodNumber;
|
|
39
|
-
limit: z.ZodNumber;
|
|
40
|
-
next: z.ZodNullable<z.ZodString>;
|
|
41
|
-
previous: z.ZodNullable<z.ZodString>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
export type ApiResponse<T> = {
|
|
45
|
-
success: boolean;
|
|
46
|
-
message: string;
|
|
47
|
-
status_code: string;
|
|
48
|
-
data: T[];
|
|
49
|
-
metadata: Metadata;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Schema for a single-resource API response.
|
|
53
|
-
* For single-resource requests, metadata.total is always 1,
|
|
54
|
-
* offset and limit default to 0, and next/previous are null.
|
|
55
|
-
*/
|
|
56
|
-
export declare const singleResourceResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
57
|
-
success: z.ZodBoolean;
|
|
58
|
-
message: z.ZodString;
|
|
59
|
-
status_code: z.ZodString;
|
|
60
|
-
data: z.ZodArray<T>;
|
|
61
|
-
metadata: z.ZodObject<{
|
|
62
|
-
total: z.ZodNumber;
|
|
63
|
-
offset: z.ZodNumber;
|
|
64
|
-
limit: z.ZodNumber;
|
|
65
|
-
next: z.ZodNullable<z.ZodString>;
|
|
66
|
-
previous: z.ZodNullable<z.ZodString>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
export type SingleResourceResponse<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof singleResourceResponseSchema<T>>>;
|
|
70
|
-
//# sourceMappingURL=api-response.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-response.d.ts","sourceRoot":"","sources":["../../src/commons/api-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;iBAMzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC;;;;;;;;;;;;iBAOnE,CAAC;AAEL,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EACjE,YAAY,CAAC;;;;;;;;;;;;iBAaZ,CAAC;AAEJ,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,KAAK,CAClE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAAC,CAAC,CACnD,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Pagination metadata included in every standardized API response.
|
|
4
|
-
*/
|
|
5
|
-
export const metadataSchema = z.object({
|
|
6
|
-
total: z.number().int().nonnegative(),
|
|
7
|
-
offset: z.number().int().nonnegative(),
|
|
8
|
-
limit: z.number().int().nonnegative(),
|
|
9
|
-
next: z.string().nullable(),
|
|
10
|
-
previous: z.string().nullable(),
|
|
11
|
-
});
|
|
12
|
-
/**
|
|
13
|
-
* Standardized API response envelope used by CentriCare services.
|
|
14
|
-
* Based on /Docs/API/1. Standardized Response.md
|
|
15
|
-
*
|
|
16
|
-
* {
|
|
17
|
-
* "success": true,
|
|
18
|
-
* "message": "Successfully do something",
|
|
19
|
-
* "status_code": "200",
|
|
20
|
-
* "data": [],
|
|
21
|
-
* "metadata": {
|
|
22
|
-
* "total": 1,
|
|
23
|
-
* "offset": 0,
|
|
24
|
-
* "limit": 1,
|
|
25
|
-
* "next": null,
|
|
26
|
-
* "previous": null
|
|
27
|
-
* }
|
|
28
|
-
* }
|
|
29
|
-
*/
|
|
30
|
-
export const apiResponseSchema = (dataSchema) => z.object({
|
|
31
|
-
success: z.boolean(),
|
|
32
|
-
message: z.string(),
|
|
33
|
-
status_code: z.string(),
|
|
34
|
-
data: z.array(dataSchema),
|
|
35
|
-
metadata: metadataSchema,
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* Schema for a single-resource API response.
|
|
39
|
-
* For single-resource requests, metadata.total is always 1,
|
|
40
|
-
* offset and limit default to 0, and next/previous are null.
|
|
41
|
-
*/
|
|
42
|
-
export const singleResourceResponseSchema = (dataSchema) => apiResponseSchema(dataSchema).refine((data) => data.metadata.total === 1 &&
|
|
43
|
-
data.metadata.offset === 0 &&
|
|
44
|
-
data.metadata.limit === 0 &&
|
|
45
|
-
data.metadata.next === null &&
|
|
46
|
-
data.metadata.previous === null, {
|
|
47
|
-
message: "Single resource response metadata must have total=1, offset=0, limit=0, next=null, previous=null",
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=api-response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-response.js","sourceRoot":"","sources":["../../src/commons/api-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAIH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAyB,UAAa,EAAE,EAAE,CACzE,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;IACzB,QAAQ,EAAE,cAAc;CACzB,CAAC,CAAC;AAUL;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,UAAa,EACb,EAAE,CACF,iBAAiB,CAAC,UAAU,CAAC,CAAC,MAAM,CAClC,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;IACzB,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;IAC1B,IAAI,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;IACzB,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI;IAC3B,IAAI,CAAC,QAAQ,CAAC,QAAQ,KAAK,IAAI,EACjC;IACE,OAAO,EACL,kGAAkG;CACrG,CACF,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* CodedConcept - A data type for coded system values based on a defined code system.
|
|
4
|
-
* Used across CentriCare models for statuses, identifiers, contacts, demographic fields, etc.
|
|
5
|
-
*
|
|
6
|
-
* Accepts only codes and code systems registered in the CentriCare Registry.
|
|
7
|
-
*/
|
|
8
|
-
export declare const codedConceptSchema: z.ZodObject<{
|
|
9
|
-
system: z.ZodString;
|
|
10
|
-
value: z.ZodString;
|
|
11
|
-
display: z.ZodOptional<z.ZodString>;
|
|
12
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
13
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type CodedConcept = z.infer<typeof codedConceptSchema>;
|
|
16
|
-
//# sourceMappingURL=coded-concept.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coded-concept.d.ts","sourceRoot":"","sources":["../../src/commons/coded-concept.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;iBAa7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { timestampSchema } from "./timestamp";
|
|
3
|
-
/**
|
|
4
|
-
* CodedConcept - A data type for coded system values based on a defined code system.
|
|
5
|
-
* Used across CentriCare models for statuses, identifiers, contacts, demographic fields, etc.
|
|
6
|
-
*
|
|
7
|
-
* Accepts only codes and code systems registered in the CentriCare Registry.
|
|
8
|
-
*/
|
|
9
|
-
export const codedConceptSchema = z.object({
|
|
10
|
-
system: z.string().min(1, { message: "system is required" }),
|
|
11
|
-
value: z.string().min(1, { message: "value is required" }),
|
|
12
|
-
display: z.string().optional(),
|
|
13
|
-
valid: z
|
|
14
|
-
.string()
|
|
15
|
-
.datetime({ offset: true })
|
|
16
|
-
.optional()
|
|
17
|
-
.refine((val) => !val || timestampSchema.safeParse(val).success, { message: "valid must be a valid ISO 8601 datetime if provided" }),
|
|
18
|
-
tags: z.array(z.string()).optional(),
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=coded-concept.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coded-concept.js","sourceRoot":"","sources":["../../src/commons/coded-concept.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAC5D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;SAC1B,QAAQ,EAAE;SACV,MAAM,CACL,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,EACvD,EAAE,OAAO,EAAE,qDAAqD,EAAE,CACnE;IACH,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const demographicSchema: z.ZodObject<{
|
|
3
|
-
sex: z.ZodObject<{
|
|
4
|
-
system: z.ZodString;
|
|
5
|
-
value: z.ZodString;
|
|
6
|
-
display: z.ZodOptional<z.ZodString>;
|
|
7
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
8
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
religion: z.ZodObject<{
|
|
11
|
-
system: z.ZodString;
|
|
12
|
-
value: z.ZodString;
|
|
13
|
-
display: z.ZodOptional<z.ZodString>;
|
|
14
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
15
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
ethnicity: z.ZodOptional<z.ZodString>;
|
|
18
|
-
marital_status: z.ZodObject<{
|
|
19
|
-
system: z.ZodString;
|
|
20
|
-
value: z.ZodString;
|
|
21
|
-
display: z.ZodOptional<z.ZodString>;
|
|
22
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
23
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
date_of_birth: z.ZodString;
|
|
26
|
-
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type Demographic = z.infer<typeof demographicSchema>;
|
|
29
|
-
//# sourceMappingURL=demographic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"demographic.d.ts","sourceRoot":"","sources":["../../src/commons/demographic.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { codedConceptSchema } from "./coded-concept";
|
|
3
|
-
export const demographicSchema = z.object({
|
|
4
|
-
sex: codedConceptSchema,
|
|
5
|
-
religion: codedConceptSchema,
|
|
6
|
-
ethnicity: z.string().optional(),
|
|
7
|
-
marital_status: codedConceptSchema,
|
|
8
|
-
date_of_birth: z.string(),
|
|
9
|
-
place_of_birth: z.string().optional(),
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=demographic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"demographic.js","sourceRoot":"","sources":["../../src/commons/demographic.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,kBAAkB;IACvB,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,cAAc,EAAE,kBAAkB;IAClC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
package/dist/commons/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared/primitive schemas used across CentriCare projects.
|
|
3
|
-
* Each schema lives in its own file.
|
|
4
|
-
*/
|
|
5
|
-
export * from "./timestamp";
|
|
6
|
-
export * from "./api-response";
|
|
7
|
-
export * from "./setting-option";
|
|
8
|
-
export * from "./coded-concept";
|
|
9
|
-
export * from "./demographic";
|
|
10
|
-
export * from "./address";
|
|
11
|
-
export * from "./object-id";
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commons/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
package/dist/commons/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared/primitive schemas used across CentriCare projects.
|
|
3
|
-
* Each schema lives in its own file.
|
|
4
|
-
*/
|
|
5
|
-
export * from "./timestamp";
|
|
6
|
-
export * from "./api-response";
|
|
7
|
-
export * from "./setting-option";
|
|
8
|
-
export * from "./coded-concept";
|
|
9
|
-
export * from "./demographic";
|
|
10
|
-
export * from "./address";
|
|
11
|
-
export * from "./object-id";
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commons/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* ObjectId schema for MongoDB document IDs.
|
|
4
|
-
* Validates a 24-character hexadecimal string (MongoDB ObjectId format).
|
|
5
|
-
*/
|
|
6
|
-
export declare const objectIdSchema: z.ZodString;
|
|
7
|
-
export type ObjectId = string;
|
|
8
|
-
//# sourceMappingURL=object-id.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-id.d.ts","sourceRoot":"","sources":["../../src/commons/object-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,cAAc,aAIzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* ObjectId schema for MongoDB document IDs.
|
|
4
|
-
* Validates a 24-character hexadecimal string (MongoDB ObjectId format).
|
|
5
|
-
*/
|
|
6
|
-
export const objectIdSchema = z.string().length(24, {
|
|
7
|
-
message: "ObjectId must be a 24-character hexadecimal string",
|
|
8
|
-
}).regex(/^[0-9a-fA-F]{24}$/, {
|
|
9
|
-
message: "ObjectId must be a valid MongoDB ObjectId (24-character hex string)",
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=object-id.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-id.js","sourceRoot":"","sources":["../../src/commons/object-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;IAClD,OAAO,EAAE,oDAAoD;CAC9D,CAAC,CAAC,KAAK,CAAC,mBAAmB,EAAE;IAC5B,OAAO,EAAE,qEAAqE;CAC/E,CAAC,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* The type of a setting option value.
|
|
4
|
-
*
|
|
5
|
-
* Accepts "string", "number", "boolean", "date", or an array of those
|
|
6
|
-
* for options with multiple choices. Also accepts any valid registry system
|
|
7
|
-
* path (e.g. "crn:status:system") for options whose input type is determined
|
|
8
|
-
* by a registry code system.
|
|
9
|
-
*/
|
|
10
|
-
export declare const settingOptionTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
11
|
-
string: "string";
|
|
12
|
-
number: "number";
|
|
13
|
-
boolean: "boolean";
|
|
14
|
-
date: "date";
|
|
15
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
16
|
-
string: "string";
|
|
17
|
-
number: "number";
|
|
18
|
-
boolean: "boolean";
|
|
19
|
-
date: "date";
|
|
20
|
-
}>>, z.ZodString]>;
|
|
21
|
-
export type SettingOptionType = z.infer<typeof settingOptionTypeSchema>;
|
|
22
|
-
/**
|
|
23
|
-
* A single setting option item.
|
|
24
|
-
*
|
|
25
|
-
* - `default` and `value` can be null but cannot be undefined or missing.
|
|
26
|
-
*/
|
|
27
|
-
export declare const settingOptionSchema: z.ZodObject<{
|
|
28
|
-
field: z.ZodString;
|
|
29
|
-
label: z.ZodOptional<z.ZodString>;
|
|
30
|
-
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
31
|
-
string: "string";
|
|
32
|
-
number: "number";
|
|
33
|
-
boolean: "boolean";
|
|
34
|
-
date: "date";
|
|
35
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
36
|
-
string: "string";
|
|
37
|
-
number: "number";
|
|
38
|
-
boolean: "boolean";
|
|
39
|
-
date: "date";
|
|
40
|
-
}>>, z.ZodString]>;
|
|
41
|
-
default: z.ZodNullable<z.ZodString>;
|
|
42
|
-
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
export type SettingOption = z.infer<typeof settingOptionSchema>;
|
|
45
|
-
//# sourceMappingURL=setting-option.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setting-option.d.ts","sourceRoot":"","sources":["../../src/commons/setting-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;kBAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;iBAM9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* The type of a setting option value.
|
|
4
|
-
*
|
|
5
|
-
* Accepts "string", "number", "boolean", "date", or an array of those
|
|
6
|
-
* for options with multiple choices. Also accepts any valid registry system
|
|
7
|
-
* path (e.g. "crn:status:system") for options whose input type is determined
|
|
8
|
-
* by a registry code system.
|
|
9
|
-
*/
|
|
10
|
-
export const settingOptionTypeSchema = z.union([
|
|
11
|
-
z.enum(["string", "number", "boolean", "date"]),
|
|
12
|
-
z.array(z.enum(["string", "number", "boolean", "date"])),
|
|
13
|
-
z.string(),
|
|
14
|
-
]);
|
|
15
|
-
/**
|
|
16
|
-
* A single setting option item.
|
|
17
|
-
*
|
|
18
|
-
* - `default` and `value` can be null but cannot be undefined or missing.
|
|
19
|
-
*/
|
|
20
|
-
export const settingOptionSchema = z.object({
|
|
21
|
-
field: z.string().min(1, { message: "field is required" }),
|
|
22
|
-
label: z.string().optional(),
|
|
23
|
-
type: settingOptionTypeSchema,
|
|
24
|
-
default: z.string().nullable(),
|
|
25
|
-
value: z.union([z.string(), z.boolean(), z.number()]).nullable(),
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=setting-option.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setting-option.js","sourceRoot":"","sources":["../../src/commons/setting-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC7C,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC,MAAM,EAAE;CACX,CAAC,CAAC;AAIH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../src/commons/timestamp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,eAAe,aAG1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../src/commons/timestamp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;IACjD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,iDAAiD;CAC3D,CAAC,CAAC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Minimal assignment schema (omits server-generated fields).
|
|
4
|
-
*/
|
|
5
|
-
export declare const assignmentMinimalSchema: z.ZodObject<{
|
|
6
|
-
type: z.ZodObject<{
|
|
7
|
-
system: z.ZodString;
|
|
8
|
-
value: z.ZodString;
|
|
9
|
-
display: z.ZodOptional<z.ZodString>;
|
|
10
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
11
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
facility_id: z.ZodString;
|
|
14
|
-
for: z.ZodString;
|
|
15
|
-
assigned_to: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type AssignmentMinimal = z.infer<typeof assignmentMinimalSchema>;
|
|
18
|
-
//# sourceMappingURL=assignment-minimal.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/assignment/assignment-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAOlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { assignmentSchema } from "./assignment.schema";
|
|
2
|
-
/**
|
|
3
|
-
* Minimal assignment schema (omits server-generated fields).
|
|
4
|
-
*/
|
|
5
|
-
export const assignmentMinimalSchema = assignmentSchema.omit({
|
|
6
|
-
_id: true,
|
|
7
|
-
created_at: true,
|
|
8
|
-
created_by: true,
|
|
9
|
-
updated_at: true,
|
|
10
|
-
updated_by: true,
|
|
11
|
-
schema_version: true,
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=assignment-minimal.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/assignment/assignment-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AAExE;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAC3D,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;CACrB,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Partial assignment schema (based on minimal, all fields optional).
|
|
4
|
-
*/
|
|
5
|
-
export declare const assignmentPartialSchema: z.ZodObject<{
|
|
6
|
-
type: z.ZodOptional<z.ZodObject<{
|
|
7
|
-
system: z.ZodString;
|
|
8
|
-
value: z.ZodString;
|
|
9
|
-
display: z.ZodOptional<z.ZodString>;
|
|
10
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
11
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
-
}, z.core.$strip>>;
|
|
13
|
-
facility_id: z.ZodOptional<z.ZodString>;
|
|
14
|
-
for: z.ZodOptional<z.ZodString>;
|
|
15
|
-
assigned_to: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type AssignmentPartial = z.infer<typeof assignmentPartialSchema>;
|
|
18
|
-
//# sourceMappingURL=assignment-partial.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/assignment/assignment-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAAoC,CAAC;AAEzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { assignmentMinimalSchema } from "./assignment-minimal.schema";
|
|
2
|
-
/**
|
|
3
|
-
* Partial assignment schema (based on minimal, all fields optional).
|
|
4
|
-
*/
|
|
5
|
-
export const assignmentPartialSchema = assignmentMinimalSchema.partial();
|
|
6
|
-
//# sourceMappingURL=assignment-partial.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment-partial.schema.js","sourceRoot":"","sources":["../../../src/models/assignment/assignment-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAA0B,MAAM,6BAA6B,CAAC;AAE9F;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type Schema as MongooseSchema, type Model as MongooseModel } from "mongoose";
|
|
3
|
-
import type { InferDocument } from "@nullix/zod-mongoose";
|
|
4
|
-
export declare const assignmentSchema: z.ZodObject<{
|
|
5
|
-
_id: z.ZodString;
|
|
6
|
-
facility_id: z.ZodString;
|
|
7
|
-
type: z.ZodObject<{
|
|
8
|
-
system: z.ZodString;
|
|
9
|
-
value: z.ZodString;
|
|
10
|
-
display: z.ZodOptional<z.ZodString>;
|
|
11
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
12
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
for: z.ZodString;
|
|
15
|
-
assigned_to: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>;
|
|
16
|
-
created_at: z.ZodString;
|
|
17
|
-
created_by: z.ZodString;
|
|
18
|
-
updated_at: z.ZodString;
|
|
19
|
-
updated_by: z.ZodString;
|
|
20
|
-
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type Assignment = z.infer<typeof assignmentSchema>;
|
|
23
|
-
export declare const AssignmentMongooseSchema: MongooseSchema;
|
|
24
|
-
export type AssignmentDocument = InferDocument<typeof assignmentSchema>;
|
|
25
|
-
export declare const AssignmentModel: MongooseModel<{
|
|
26
|
-
[x: number]: unknown;
|
|
27
|
-
[x: symbol]: unknown;
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
}, {}, {}, {
|
|
30
|
-
id: string;
|
|
31
|
-
}, import("mongoose").Document<unknown, {}, {
|
|
32
|
-
[x: number]: unknown;
|
|
33
|
-
[x: symbol]: unknown;
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
}, {
|
|
36
|
-
id: string;
|
|
37
|
-
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
38
|
-
[x: number]: unknown;
|
|
39
|
-
[x: symbol]: unknown;
|
|
40
|
-
[x: string]: unknown;
|
|
41
|
-
} & Required<{
|
|
42
|
-
_id: unknown;
|
|
43
|
-
}> & {
|
|
44
|
-
__v: number;
|
|
45
|
-
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
46
|
-
id: string;
|
|
47
|
-
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
48
|
-
[x: number]: unknown;
|
|
49
|
-
[x: symbol]: unknown;
|
|
50
|
-
[x: string]: unknown;
|
|
51
|
-
}, import("mongoose").Document<unknown, {}, {
|
|
52
|
-
[x: number]: unknown;
|
|
53
|
-
[x: symbol]: unknown;
|
|
54
|
-
[x: string]: unknown;
|
|
55
|
-
}, {
|
|
56
|
-
id: string;
|
|
57
|
-
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
58
|
-
[x: number]: unknown;
|
|
59
|
-
[x: symbol]: unknown;
|
|
60
|
-
[x: string]: unknown;
|
|
61
|
-
} & Required<{
|
|
62
|
-
_id: unknown;
|
|
63
|
-
}> & {
|
|
64
|
-
__v: number;
|
|
65
|
-
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
66
|
-
id: string;
|
|
67
|
-
}>, unknown, {
|
|
68
|
-
[x: number]: {};
|
|
69
|
-
[x: symbol]: {};
|
|
70
|
-
[x: string]: {};
|
|
71
|
-
} & Required<{
|
|
72
|
-
_id: unknown;
|
|
73
|
-
}> & {
|
|
74
|
-
__v: number;
|
|
75
|
-
}>, {
|
|
76
|
-
[x: number]: {};
|
|
77
|
-
[x: symbol]: {};
|
|
78
|
-
[x: string]: {};
|
|
79
|
-
} & Required<{
|
|
80
|
-
_id: unknown;
|
|
81
|
-
}> & {
|
|
82
|
-
__v: number;
|
|
83
|
-
}>;
|
|
84
|
-
//# sourceMappingURL=assignment.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.schema.d.ts","sourceRoot":"","sources":["../../../src/models/assignment/assignment.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;iBAgB3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,EAAE,cAAmD,CAAC;AAC3F,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGxE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuD,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { toMongooseSchema } from "@nullix/zod-mongoose";
|
|
3
|
-
import { model } from "mongoose";
|
|
4
|
-
import { objectIdSchema } from "../../commons/object-id";
|
|
5
|
-
import { codedConceptSchema } from "../../commons/coded-concept";
|
|
6
|
-
const nonEmpty = z.string().min(1, { message: "assigned_to is required" });
|
|
7
|
-
export const assignmentSchema = z.object({
|
|
8
|
-
_id: objectIdSchema,
|
|
9
|
-
facility_id: objectIdSchema,
|
|
10
|
-
type: codedConceptSchema,
|
|
11
|
-
for: z.string().min(1, { message: "for is required" }),
|
|
12
|
-
assigned_to: z
|
|
13
|
-
.union([nonEmpty, z.array(nonEmpty)])
|
|
14
|
-
.transform((val) => (Array.isArray(val) ? val : [val]))
|
|
15
|
-
.refine((arr) => arr.length >= 1, {
|
|
16
|
-
message: "assigned_to is required",
|
|
17
|
-
}),
|
|
18
|
-
created_at: z.string(),
|
|
19
|
-
created_by: z.string(),
|
|
20
|
-
updated_at: z.string(),
|
|
21
|
-
updated_by: z.string(),
|
|
22
|
-
schema_version: z.number().int().positive().default(1),
|
|
23
|
-
});
|
|
24
|
-
export const AssignmentMongooseSchema = toMongooseSchema(assignmentSchema);
|
|
25
|
-
const AssignmentModelName = "assignments";
|
|
26
|
-
export const AssignmentModel = model(AssignmentModelName, AssignmentMongooseSchema);
|
|
27
|
-
//# sourceMappingURL=assignment.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.schema.js","sourceRoot":"","sources":["../../../src/models/assignment/assignment.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,EAA8D,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,GAAG,EAAE,cAAc;IACnB,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,kBAAkB;IACxB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IACtD,WAAW,EAAE,CAAC;SACX,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;SACpC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SACtD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE;QAChC,OAAO,EAAE,yBAAyB;KACnC,CAAC;IACJ,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,wBAAwB,GAAmB,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAG3F,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/assignment/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/assignment/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|