@centricare/contract 0.1.1 → 0.1.2
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 +46 -26
- package/dist/commons/address.d.ts +35 -0
- package/dist/commons/address.d.ts.map +1 -0
- package/dist/commons/address.js +11 -0
- package/dist/commons/address.js.map +1 -0
- package/dist/commons/api-response.d.ts +8 -116
- package/dist/commons/api-response.d.ts.map +1 -1
- package/dist/commons/coded-concept.d.ts +3 -15
- package/dist/commons/coded-concept.d.ts.map +1 -1
- package/dist/commons/demographic.d.ts +29 -0
- package/dist/commons/demographic.d.ts.map +1 -0
- package/dist/commons/demographic.js +11 -0
- package/dist/commons/demographic.js.map +1 -0
- package/dist/commons/index.d.ts +3 -0
- package/dist/commons/index.d.ts.map +1 -1
- package/dist/commons/index.js +3 -0
- package/dist/commons/index.js.map +1 -1
- package/dist/commons/object-id.d.ts +8 -0
- package/dist/commons/object-id.d.ts.map +1 -0
- package/dist/commons/object-id.js +11 -0
- package/dist/commons/object-id.js.map +1 -0
- package/dist/commons/setting-option.d.ts +24 -16
- package/dist/commons/setting-option.d.ts.map +1 -1
- package/dist/models/assignment/assignment-minimal.schema.d.ts +18 -0
- package/dist/models/assignment/assignment-minimal.schema.d.ts.map +1 -0
- package/dist/models/assignment/assignment-minimal.schema.js +13 -0
- package/dist/models/assignment/assignment-minimal.schema.js.map +1 -0
- package/dist/models/assignment/assignment-partial.schema.d.ts +18 -0
- package/dist/models/assignment/assignment-partial.schema.d.ts.map +1 -0
- package/dist/models/assignment/assignment-partial.schema.js +6 -0
- package/dist/models/assignment/assignment-partial.schema.js.map +1 -0
- package/dist/models/assignment/assignment.schema.d.ts +84 -0
- package/dist/models/assignment/assignment.schema.d.ts.map +1 -0
- package/dist/models/assignment/assignment.schema.js +27 -0
- package/dist/models/assignment/assignment.schema.js.map +1 -0
- package/dist/models/assignment/index.d.ts +4 -0
- package/dist/models/assignment/index.d.ts.map +1 -0
- package/dist/models/assignment/index.js +4 -0
- package/dist/models/assignment/index.js.map +1 -0
- package/dist/models/department/department-minimal.schema.d.ts +17 -0
- package/dist/models/department/department-minimal.schema.d.ts.map +1 -0
- package/dist/models/department/department-minimal.schema.js +13 -0
- package/dist/models/department/department-minimal.schema.js.map +1 -0
- package/dist/models/department/department-partial.schema.d.ts +17 -0
- package/dist/models/department/department-partial.schema.d.ts.map +1 -0
- package/dist/models/department/department-partial.schema.js +6 -0
- package/dist/models/department/department-partial.schema.js.map +1 -0
- package/dist/models/department/department.schema.d.ts +83 -0
- package/dist/models/department/department.schema.d.ts.map +1 -0
- package/dist/models/department/department.schema.js +20 -0
- package/dist/models/department/department.schema.js.map +1 -0
- package/dist/models/department/index.d.ts +4 -0
- package/dist/models/department/index.d.ts.map +1 -0
- package/dist/models/department/index.js +4 -0
- package/dist/models/department/index.js.map +1 -0
- package/dist/models/facility/facility-minimal.schema.d.ts +19 -0
- package/dist/models/facility/facility-minimal.schema.d.ts.map +1 -0
- package/dist/models/facility/facility-minimal.schema.js +10 -0
- package/dist/models/facility/facility-minimal.schema.js.map +1 -0
- package/dist/models/facility/facility-partial.schema.d.ts +19 -0
- package/dist/models/facility/facility-partial.schema.d.ts.map +1 -0
- package/dist/models/facility/facility-partial.schema.js +6 -0
- package/dist/models/facility/facility-partial.schema.js.map +1 -0
- package/dist/models/facility/facility-settings.schema.d.ts +16 -0
- package/dist/models/facility/facility-settings.schema.d.ts.map +1 -0
- package/dist/models/facility/facility-settings.schema.js +12 -0
- package/dist/models/facility/facility-settings.schema.js.map +1 -0
- package/dist/models/facility/facility.schema.d.ts +82 -0
- package/dist/models/facility/facility.schema.d.ts.map +1 -0
- package/dist/models/facility/facility.schema.js +23 -0
- package/dist/models/facility/facility.schema.js.map +1 -0
- package/dist/models/facility/index.d.ts +5 -0
- package/dist/models/facility/index.d.ts.map +1 -0
- package/dist/models/facility/index.js +5 -0
- package/dist/models/facility/index.js.map +1 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +17 -0
- package/dist/models/index.js.map +1 -1
- package/dist/models/ksm/index.d.ts +4 -0
- package/dist/models/ksm/index.d.ts.map +1 -0
- package/dist/models/ksm/index.js +4 -0
- package/dist/models/ksm/index.js.map +1 -0
- package/dist/models/ksm/ksm-minimal.schema.d.ts +12 -0
- package/dist/models/ksm/ksm-minimal.schema.d.ts.map +1 -0
- package/dist/models/ksm/ksm-minimal.schema.js +13 -0
- package/dist/models/ksm/ksm-minimal.schema.js.map +1 -0
- package/dist/models/ksm/ksm-partial.schema.d.ts +12 -0
- package/dist/models/ksm/ksm-partial.schema.d.ts.map +1 -0
- package/dist/models/ksm/ksm-partial.schema.js +6 -0
- package/dist/models/ksm/ksm-partial.schema.js.map +1 -0
- package/dist/models/ksm/ksm.schema.d.ts +78 -0
- package/dist/models/ksm/ksm.schema.d.ts.map +1 -0
- package/dist/models/ksm/ksm.schema.js +23 -0
- package/dist/models/ksm/ksm.schema.js.map +1 -0
- package/dist/models/location/index.d.ts +5 -0
- package/dist/models/location/index.d.ts.map +1 -0
- package/dist/models/location/index.js +5 -0
- package/dist/models/location/index.js.map +1 -0
- package/dist/models/location/location-minimal.schema.d.ts +33 -0
- package/dist/models/location/location-minimal.schema.d.ts.map +1 -0
- package/dist/models/location/location-minimal.schema.js +12 -0
- package/dist/models/location/location-minimal.schema.js.map +1 -0
- package/dist/models/location/location-partial.schema.d.ts +33 -0
- package/dist/models/location/location-partial.schema.d.ts.map +1 -0
- package/dist/models/location/location-partial.schema.js +6 -0
- package/dist/models/location/location-partial.schema.js.map +1 -0
- package/dist/models/location/location-settings.schema.d.ts +8 -0
- package/dist/models/location/location-settings.schema.d.ts.map +1 -0
- package/dist/models/location/location-settings.schema.js +7 -0
- package/dist/models/location/location-settings.schema.js.map +1 -0
- package/dist/models/location/location.schema.d.ts +98 -0
- package/dist/models/location/location.schema.d.ts.map +1 -0
- package/dist/models/location/location.schema.js +30 -0
- package/dist/models/location/location.schema.js.map +1 -0
- package/dist/models/member/index.d.ts +4 -0
- package/dist/models/member/index.d.ts.map +1 -0
- package/dist/models/member/index.js +4 -0
- package/dist/models/member/index.js.map +1 -0
- package/dist/models/member/member-minimal.schema.d.ts +11 -0
- package/dist/models/member/member-minimal.schema.d.ts.map +1 -0
- package/dist/models/member/member-minimal.schema.js +9 -0
- package/dist/models/member/member-minimal.schema.js.map +1 -0
- package/dist/models/member/member-partial.schema.d.ts +11 -0
- package/dist/models/member/member-partial.schema.d.ts.map +1 -0
- package/dist/models/member/member-partial.schema.js +6 -0
- package/dist/models/member/member-partial.schema.js.map +1 -0
- package/dist/models/member/member.schema.d.ts +73 -0
- package/dist/models/member/member.schema.d.ts.map +1 -0
- package/dist/models/member/member.schema.js +16 -0
- package/dist/models/member/member.schema.js.map +1 -0
- package/dist/models/organization/index.d.ts +5 -0
- package/dist/models/organization/index.d.ts.map +1 -0
- package/dist/models/organization/index.js +5 -0
- package/dist/models/organization/index.js.map +1 -0
- package/dist/models/organization/organization-minimal.schema.d.ts +22 -0
- package/dist/models/organization/organization-minimal.schema.d.ts.map +1 -0
- package/dist/models/organization/organization-minimal.schema.js +9 -0
- package/dist/models/organization/organization-minimal.schema.js.map +1 -0
- package/dist/models/organization/organization-partial.schema.d.ts +22 -0
- package/dist/models/organization/organization-partial.schema.d.ts.map +1 -0
- package/dist/models/organization/organization-partial.schema.js +6 -0
- package/dist/models/organization/organization-partial.schema.js.map +1 -0
- package/dist/models/organization/organization-settings.schema.d.ts +8 -0
- package/dist/models/organization/organization-settings.schema.d.ts.map +1 -0
- package/dist/models/organization/organization-settings.schema.js +7 -0
- package/dist/models/organization/organization-settings.schema.js.map +1 -0
- package/dist/models/organization/organization.schema.d.ts +84 -0
- package/dist/models/organization/organization.schema.d.ts.map +1 -0
- package/dist/models/organization/organization.schema.js +24 -0
- package/dist/models/organization/organization.schema.js.map +1 -0
- package/dist/models/patient/index.d.ts +4 -0
- package/dist/models/patient/index.d.ts.map +1 -0
- package/dist/models/patient/index.js +4 -0
- package/dist/models/patient/index.js.map +1 -0
- package/dist/models/patient/patient-minimal.schema.d.ts +95 -0
- package/dist/models/patient/patient-minimal.schema.d.ts.map +1 -0
- package/dist/models/patient/patient-minimal.schema.js +13 -0
- package/dist/models/patient/patient-minimal.schema.js.map +1 -0
- package/dist/models/patient/patient-partial.schema.d.ts +95 -0
- package/dist/models/patient/patient-partial.schema.d.ts.map +1 -0
- package/dist/models/patient/patient-partial.schema.js +6 -0
- package/dist/models/patient/patient-partial.schema.js.map +1 -0
- package/dist/models/patient/patient.schema.d.ts +161 -0
- package/dist/models/patient/patient.schema.d.ts.map +1 -0
- package/dist/models/patient/patient.schema.js +35 -0
- package/dist/models/patient/patient.schema.js.map +1 -0
- package/dist/models/patient-additional/index.d.ts +4 -0
- package/dist/models/patient-additional/index.d.ts.map +1 -0
- package/dist/models/patient-additional/index.js +4 -0
- package/dist/models/patient-additional/index.js.map +1 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts +17 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts.map +1 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.js +13 -0
- package/dist/models/patient-additional/patient-additional-minimal.schema.js.map +1 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts +17 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.d.ts.map +1 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.js +6 -0
- package/dist/models/patient-additional/patient-additional-partial.schema.js.map +1 -0
- package/dist/models/patient-additional/patient-additional.schema.d.ts +83 -0
- package/dist/models/patient-additional/patient-additional.schema.d.ts.map +1 -0
- package/dist/models/patient-additional/patient-additional.schema.js +21 -0
- package/dist/models/patient-additional/patient-additional.schema.js.map +1 -0
- package/dist/models/payer/index.d.ts +5 -0
- package/dist/models/payer/index.d.ts.map +1 -0
- package/dist/models/payer/index.js +5 -0
- package/dist/models/payer/index.js.map +1 -0
- package/dist/models/payer/payer-minimal.schema.d.ts +67 -0
- package/dist/models/payer/payer-minimal.schema.d.ts.map +1 -0
- package/dist/models/payer/payer-minimal.schema.js +13 -0
- package/dist/models/payer/payer-minimal.schema.js.map +1 -0
- package/dist/models/payer/payer-partial.schema.d.ts +67 -0
- package/dist/models/payer/payer-partial.schema.d.ts.map +1 -0
- package/dist/models/payer/payer-partial.schema.js +6 -0
- package/dist/models/payer/payer-partial.schema.js.map +1 -0
- package/dist/models/payer/payer-settings.schema.d.ts +27 -0
- package/dist/models/payer/payer-settings.schema.d.ts.map +1 -0
- package/dist/models/payer/payer-settings.schema.js +20 -0
- package/dist/models/payer/payer-settings.schema.js.map +1 -0
- package/dist/models/payer/payer.schema.d.ts +133 -0
- package/dist/models/payer/payer.schema.d.ts.map +1 -0
- package/dist/models/payer/payer.schema.js +47 -0
- package/dist/models/payer/payer.schema.js.map +1 -0
- package/dist/models/practitioner-schedule/index.d.ts +4 -0
- package/dist/models/practitioner-schedule/index.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/index.js +4 -0
- package/dist/models/practitioner-schedule/index.js.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts +20 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js +13 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts +20 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js +6 -0
- package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts +86 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts.map +1 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js +26 -0
- package/dist/models/practitioner-schedule/practitioner-schedule.schema.js.map +1 -0
- package/dist/models/practitioner-session/index.d.ts +4 -0
- package/dist/models/practitioner-session/index.d.ts.map +1 -0
- package/dist/models/practitioner-session/index.js +4 -0
- package/dist/models/practitioner-session/index.js.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts +14 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js +13 -0
- package/dist/models/practitioner-session/practitioner-session-minimal.schema.js.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts +14 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts.map +1 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js +6 -0
- package/dist/models/practitioner-session/practitioner-session-partial.schema.js.map +1 -0
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts +80 -0
- package/dist/models/practitioner-session/practitioner-session.schema.d.ts.map +1 -0
- package/dist/models/practitioner-session/practitioner-session.schema.js +26 -0
- package/dist/models/practitioner-session/practitioner-session.schema.js.map +1 -0
- package/dist/models/queue/index.d.ts +5 -0
- package/dist/models/queue/index.d.ts.map +1 -0
- package/dist/models/queue/index.js +5 -0
- package/dist/models/queue/index.js.map +1 -0
- package/dist/models/queue/queue-minimal.schema.d.ts +31 -0
- package/dist/models/queue/queue-minimal.schema.d.ts.map +1 -0
- package/dist/models/queue/queue-minimal.schema.js +13 -0
- package/dist/models/queue/queue-minimal.schema.js.map +1 -0
- package/dist/models/queue/queue-partial.schema.d.ts +31 -0
- package/dist/models/queue/queue-partial.schema.d.ts.map +1 -0
- package/dist/models/queue/queue-partial.schema.js +6 -0
- package/dist/models/queue/queue-partial.schema.js.map +1 -0
- package/dist/models/queue/queue-settings.schema.d.ts +27 -0
- package/dist/models/queue/queue-settings.schema.d.ts.map +1 -0
- package/dist/models/queue/queue-settings.schema.js +22 -0
- package/dist/models/queue/queue-settings.schema.js.map +1 -0
- package/dist/models/queue/queue.schema.d.ts +97 -0
- package/dist/models/queue/queue.schema.d.ts.map +1 -0
- package/dist/models/queue/queue.schema.js +32 -0
- package/dist/models/queue/queue.schema.js.map +1 -0
- package/dist/models/queue-event-log/index.d.ts +4 -0
- package/dist/models/queue-event-log/index.d.ts.map +1 -0
- package/dist/models/queue-event-log/index.js +4 -0
- package/dist/models/queue-event-log/index.js.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts +18 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js +13 -0
- package/dist/models/queue-event-log/queue-event-log-minimal.schema.js.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts +18 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts.map +1 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js +6 -0
- package/dist/models/queue-event-log/queue-event-log-partial.schema.js.map +1 -0
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts +84 -0
- package/dist/models/queue-event-log/queue-event-log.schema.d.ts.map +1 -0
- package/dist/models/queue-event-log/queue-event-log.schema.js +25 -0
- package/dist/models/queue-event-log/queue-event-log.schema.js.map +1 -0
- package/dist/models/queue-number/index.d.ts +5 -0
- package/dist/models/queue-number/index.d.ts.map +1 -0
- package/dist/models/queue-number/index.js +5 -0
- package/dist/models/queue-number/index.js.map +1 -0
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts +21 -0
- package/dist/models/queue-number/queue-number-minimal.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number-minimal.schema.js +14 -0
- package/dist/models/queue-number/queue-number-minimal.schema.js.map +1 -0
- package/dist/models/queue-number/queue-number-partial.schema.d.ts +21 -0
- package/dist/models/queue-number/queue-number-partial.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number-partial.schema.js +6 -0
- package/dist/models/queue-number/queue-number-partial.schema.js.map +1 -0
- package/dist/models/queue-number/queue-number-settings.schema.d.ts +27 -0
- package/dist/models/queue-number/queue-number-settings.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number-settings.schema.js +22 -0
- package/dist/models/queue-number/queue-number-settings.schema.js.map +1 -0
- package/dist/models/queue-number/queue-number.schema.d.ts +88 -0
- package/dist/models/queue-number/queue-number.schema.d.ts.map +1 -0
- package/dist/models/queue-number/queue-number.schema.js +42 -0
- package/dist/models/queue-number/queue-number.schema.js.map +1 -0
- package/dist/models/settings/index.d.ts +4 -0
- package/dist/models/settings/index.d.ts.map +1 -0
- package/dist/models/settings/index.js +4 -0
- package/dist/models/settings/index.js.map +1 -0
- package/dist/models/settings/settings-minimal.schema.d.ts +26 -0
- package/dist/models/settings/settings-minimal.schema.d.ts.map +1 -0
- package/dist/models/settings/settings-minimal.schema.js +11 -0
- package/dist/models/settings/settings-minimal.schema.js.map +1 -0
- package/dist/models/settings/settings-partial.schema.d.ts +26 -0
- package/dist/models/settings/settings-partial.schema.d.ts.map +1 -0
- package/dist/models/settings/settings-partial.schema.js +6 -0
- package/dist/models/settings/settings-partial.schema.js.map +1 -0
- package/dist/models/settings/settings.schema.d.ts +96 -0
- package/dist/models/settings/settings.schema.d.ts.map +1 -0
- package/dist/models/settings/settings.schema.js +25 -0
- package/dist/models/settings/settings.schema.js.map +1 -0
- package/dist/models/staff/index.d.ts +4 -0
- package/dist/models/staff/index.d.ts.map +1 -0
- package/dist/models/staff/index.js +4 -0
- package/dist/models/staff/index.js.map +1 -0
- package/dist/models/staff/staff-minimal.schema.d.ts +27 -0
- package/dist/models/staff/staff-minimal.schema.d.ts.map +1 -0
- package/dist/models/staff/staff-minimal.schema.js +13 -0
- package/dist/models/staff/staff-minimal.schema.js.map +1 -0
- package/dist/models/staff/staff-partial.schema.d.ts +27 -0
- package/dist/models/staff/staff-partial.schema.d.ts.map +1 -0
- package/dist/models/staff/staff-partial.schema.js +6 -0
- package/dist/models/staff/staff-partial.schema.js.map +1 -0
- package/dist/models/staff/staff.schema.d.ts +93 -0
- package/dist/models/staff/staff.schema.d.ts.map +1 -0
- package/dist/models/staff/staff.schema.js +25 -0
- package/dist/models/staff/staff.schema.js.map +1 -0
- package/dist/models/unit/index.d.ts +4 -0
- package/dist/models/unit/index.d.ts.map +1 -0
- package/dist/models/unit/index.js +4 -0
- package/dist/models/unit/index.js.map +1 -0
- package/dist/models/unit/unit-minimal.schema.d.ts +27 -0
- package/dist/models/unit/unit-minimal.schema.d.ts.map +1 -0
- package/dist/models/unit/unit-minimal.schema.js +13 -0
- package/dist/models/unit/unit-minimal.schema.js.map +1 -0
- package/dist/models/unit/unit-partial.schema.d.ts +27 -0
- package/dist/models/unit/unit-partial.schema.d.ts.map +1 -0
- package/dist/models/unit/unit-partial.schema.js +6 -0
- package/dist/models/unit/unit-partial.schema.js.map +1 -0
- package/dist/models/unit/unit.schema.d.ts +93 -0
- package/dist/models/unit/unit.schema.d.ts.map +1 -0
- package/dist/models/unit/unit.schema.js +27 -0
- package/dist/models/unit/unit.schema.js.map +1 -0
- package/dist/models/user/index.d.ts +5 -0
- package/dist/models/user/index.d.ts.map +1 -0
- package/dist/models/user/index.js +5 -0
- package/dist/models/user/index.js.map +1 -0
- package/dist/models/user/user-minimal.schema.d.ts +65 -0
- package/dist/models/user/user-minimal.schema.d.ts.map +1 -0
- package/dist/models/user/user-minimal.schema.js +10 -0
- package/dist/models/user/user-minimal.schema.js.map +1 -0
- package/dist/models/user/user-partial.schema.d.ts +65 -0
- package/dist/models/user/user-partial.schema.d.ts.map +1 -0
- package/dist/models/user/user-partial.schema.js +6 -0
- package/dist/models/user/user-partial.schema.js.map +1 -0
- package/dist/models/user/user-settings.schema.d.ts +8 -0
- package/dist/models/user/user-settings.schema.d.ts.map +1 -0
- package/dist/models/user/user-settings.schema.js +7 -0
- package/dist/models/user/user-settings.schema.js.map +1 -0
- package/dist/models/user/user.schema.d.ts +134 -0
- package/dist/models/user/user.schema.d.ts.map +1 -0
- package/dist/models/{user.js → user/user.schema.js} +10 -30
- package/dist/models/user/user.schema.js.map +1 -0
- package/package.json +14 -2
- package/dist/example.test.d.ts +0 -6
- package/dist/example.test.d.ts.map +0 -1
- package/dist/example.test.js +0 -147
- package/dist/example.test.js.map +0 -1
- package/dist/models/settings.d.ts +0 -189
- package/dist/models/settings.d.ts.map +0 -1
- package/dist/models/settings.js +0 -34
- package/dist/models/settings.js.map +0 -1
- package/dist/models/user.d.ts +0 -1110
- package/dist/models/user.d.ts.map +0 -1
- package/dist/models/user.js.map +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
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 staffSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
team_id: z.ZodString;
|
|
7
|
+
user_id: z.ZodString;
|
|
8
|
+
type: 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
|
+
status: z.ZodObject<{
|
|
16
|
+
system: z.ZodString;
|
|
17
|
+
value: z.ZodString;
|
|
18
|
+
display: z.ZodOptional<z.ZodString>;
|
|
19
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
20
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
membership_key: z.ZodOptional<z.ZodString>;
|
|
23
|
+
group: z.ZodOptional<z.ZodString>;
|
|
24
|
+
subspecialist: z.ZodOptional<z.ZodString>;
|
|
25
|
+
created_at: z.ZodString;
|
|
26
|
+
created_by: z.ZodString;
|
|
27
|
+
updated_at: z.ZodString;
|
|
28
|
+
updated_by: z.ZodString;
|
|
29
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type Staff = z.infer<typeof staffSchema>;
|
|
32
|
+
export declare const StaffMongooseSchema: MongooseSchema;
|
|
33
|
+
export type StaffDocument = InferDocument<typeof staffSchema>;
|
|
34
|
+
export declare const StaffModel: MongooseModel<{
|
|
35
|
+
[x: number]: unknown;
|
|
36
|
+
[x: symbol]: unknown;
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
}, {}, {}, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
41
|
+
[x: number]: unknown;
|
|
42
|
+
[x: symbol]: unknown;
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
}, {
|
|
45
|
+
id: string;
|
|
46
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
47
|
+
[x: number]: unknown;
|
|
48
|
+
[x: symbol]: unknown;
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
} & Required<{
|
|
51
|
+
_id: unknown;
|
|
52
|
+
}> & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
55
|
+
id: string;
|
|
56
|
+
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
57
|
+
[x: number]: unknown;
|
|
58
|
+
[x: symbol]: unknown;
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
61
|
+
[x: number]: unknown;
|
|
62
|
+
[x: symbol]: unknown;
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
66
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
67
|
+
[x: number]: unknown;
|
|
68
|
+
[x: symbol]: unknown;
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
} & Required<{
|
|
71
|
+
_id: unknown;
|
|
72
|
+
}> & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
75
|
+
id: string;
|
|
76
|
+
}>, unknown, {
|
|
77
|
+
[x: number]: {};
|
|
78
|
+
[x: symbol]: {};
|
|
79
|
+
[x: string]: {};
|
|
80
|
+
} & Required<{
|
|
81
|
+
_id: unknown;
|
|
82
|
+
}> & {
|
|
83
|
+
__v: number;
|
|
84
|
+
}>, {
|
|
85
|
+
[x: number]: {};
|
|
86
|
+
[x: symbol]: {};
|
|
87
|
+
[x: string]: {};
|
|
88
|
+
} & Required<{
|
|
89
|
+
_id: unknown;
|
|
90
|
+
}> & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}>;
|
|
93
|
+
//# sourceMappingURL=staff.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff.schema.d.ts","sourceRoot":"","sources":["../../../src/models/staff/staff.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;iBActB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,mBAAmB,EAAE,cAA8C,CAAC;AACjF,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,WAAW,CAAC,CAAC;AAG9D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6C,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { toMongooseSchema } from "@nullix/zod-mongoose";
|
|
3
|
+
import { objectIdSchema } from "../../commons/object-id";
|
|
4
|
+
import { model } from "mongoose";
|
|
5
|
+
import { codedConceptSchema } from "../../commons";
|
|
6
|
+
import { timestampSchema } from "../../commons/timestamp";
|
|
7
|
+
export const staffSchema = z.object({
|
|
8
|
+
id: z.string().uuid({ message: "id must be a valid UUID" }),
|
|
9
|
+
team_id: objectIdSchema,
|
|
10
|
+
user_id: objectIdSchema,
|
|
11
|
+
type: codedConceptSchema,
|
|
12
|
+
status: codedConceptSchema,
|
|
13
|
+
membership_key: z.string().optional(),
|
|
14
|
+
group: z.string().optional(),
|
|
15
|
+
subspecialist: z.string().optional(),
|
|
16
|
+
created_at: timestampSchema,
|
|
17
|
+
created_by: z.string(),
|
|
18
|
+
updated_at: timestampSchema,
|
|
19
|
+
updated_by: z.string(),
|
|
20
|
+
schema_version: z.number().int().positive().default(1),
|
|
21
|
+
});
|
|
22
|
+
export const StaffMongooseSchema = toMongooseSchema(staffSchema);
|
|
23
|
+
const StaffModelName = "staffs";
|
|
24
|
+
export const StaffModel = model(StaffModelName, StaffMongooseSchema);
|
|
25
|
+
//# sourceMappingURL=staff.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff.schema.js","sourceRoot":"","sources":["../../../src/models/staff/staff.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,KAAK,EAA8D,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,kBAAkB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAC3D,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,kBAAkB;IACxB,MAAM,EAAE,kBAAkB;IAC1B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,eAAe;IAC3B,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,mBAAmB,GAAmB,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAGjF,MAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/unit/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/unit/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal unit schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export declare const unitMinimalSchema: 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
|
+
settings_id: z.ZodString;
|
|
14
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
15
|
+
system: z.ZodString;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
display: z.ZodOptional<z.ZodString>;
|
|
18
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
facility_id: z.ZodString;
|
|
23
|
+
department_id: z.ZodString;
|
|
24
|
+
code: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type UnitMinimal = z.infer<typeof unitMinimalSchema>;
|
|
27
|
+
//# sourceMappingURL=unit-minimal.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/unit/unit-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { unitSchema } from "./unit.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal unit schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export const unitMinimalSchema = unitSchema.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=unit-minimal.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/unit/unit-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC,IAAI,CAAC;IAC/C,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Partial unit schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export declare const unitPartialSchema: 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
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
system: z.ZodString;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
display: z.ZodOptional<z.ZodString>;
|
|
18
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
facility_id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
department_id: z.ZodOptional<z.ZodString>;
|
|
24
|
+
code: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type UnitPartial = z.infer<typeof unitPartialSchema>;
|
|
27
|
+
//# sourceMappingURL=unit-partial.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/unit/unit-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-partial.schema.js","sourceRoot":"","sources":["../../../src/models/unit/unit-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,uBAAuB,CAAC;AAE5E;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 unitSchema: z.ZodObject<{
|
|
5
|
+
_id: z.ZodString;
|
|
6
|
+
facility_id: z.ZodString;
|
|
7
|
+
department_id: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
code: z.ZodString;
|
|
10
|
+
type: 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
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
18
|
+
system: z.ZodString;
|
|
19
|
+
value: z.ZodString;
|
|
20
|
+
display: z.ZodOptional<z.ZodString>;
|
|
21
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
22
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
settings_id: z.ZodString;
|
|
25
|
+
created_at: z.ZodString;
|
|
26
|
+
created_by: z.ZodString;
|
|
27
|
+
updated_at: z.ZodString;
|
|
28
|
+
updated_by: z.ZodString;
|
|
29
|
+
schema_version: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type Unit = z.infer<typeof unitSchema>;
|
|
32
|
+
export declare const UnitMongooseSchema: MongooseSchema;
|
|
33
|
+
export type UnitDocument = InferDocument<typeof unitSchema>;
|
|
34
|
+
export declare const UnitModel: MongooseModel<{
|
|
35
|
+
[x: number]: unknown;
|
|
36
|
+
[x: symbol]: unknown;
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
}, {}, {}, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
41
|
+
[x: number]: unknown;
|
|
42
|
+
[x: symbol]: unknown;
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
}, {
|
|
45
|
+
id: string;
|
|
46
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
47
|
+
[x: number]: unknown;
|
|
48
|
+
[x: symbol]: unknown;
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
} & Required<{
|
|
51
|
+
_id: unknown;
|
|
52
|
+
}> & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
55
|
+
id: string;
|
|
56
|
+
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
57
|
+
[x: number]: unknown;
|
|
58
|
+
[x: symbol]: unknown;
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
61
|
+
[x: number]: unknown;
|
|
62
|
+
[x: symbol]: unknown;
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
66
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
67
|
+
[x: number]: unknown;
|
|
68
|
+
[x: symbol]: unknown;
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
} & Required<{
|
|
71
|
+
_id: unknown;
|
|
72
|
+
}> & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
75
|
+
id: string;
|
|
76
|
+
}>, unknown, {
|
|
77
|
+
[x: number]: {};
|
|
78
|
+
[x: symbol]: {};
|
|
79
|
+
[x: string]: {};
|
|
80
|
+
} & Required<{
|
|
81
|
+
_id: unknown;
|
|
82
|
+
}> & {
|
|
83
|
+
__v: number;
|
|
84
|
+
}>, {
|
|
85
|
+
[x: number]: {};
|
|
86
|
+
[x: symbol]: {};
|
|
87
|
+
[x: string]: {};
|
|
88
|
+
} & Required<{
|
|
89
|
+
_id: unknown;
|
|
90
|
+
}> & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}>;
|
|
93
|
+
//# sourceMappingURL=unit.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.schema.d.ts","sourceRoot":"","sources":["../../../src/models/unit/unit.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;AAK1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,kBAAkB,EAAE,cAA6C,CAAC;AAC/E,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,UAAU,CAAC,CAAC;AAG5D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2C,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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";
|
|
6
|
+
import { timestampSchema } from "../../commons/timestamp";
|
|
7
|
+
export const unitSchema = z.object({
|
|
8
|
+
_id: objectIdSchema,
|
|
9
|
+
facility_id: objectIdSchema,
|
|
10
|
+
department_id: objectIdSchema,
|
|
11
|
+
name: z.string().min(1, { message: "name is required" }),
|
|
12
|
+
code: z.string().min(1, { message: "code is required" }),
|
|
13
|
+
type: codedConceptSchema,
|
|
14
|
+
statuses: z.array(codedConceptSchema).nonempty({
|
|
15
|
+
message: "statuses must contain at least one CodedConcept",
|
|
16
|
+
}),
|
|
17
|
+
settings_id: objectIdSchema,
|
|
18
|
+
created_at: timestampSchema,
|
|
19
|
+
created_by: z.string(),
|
|
20
|
+
updated_at: timestampSchema,
|
|
21
|
+
updated_by: z.string(),
|
|
22
|
+
schema_version: z.number().int().positive().default(1),
|
|
23
|
+
});
|
|
24
|
+
export const UnitMongooseSchema = toMongooseSchema(unitSchema);
|
|
25
|
+
const UnitModelName = "units";
|
|
26
|
+
export const UnitModel = model(UnitModelName, UnitMongooseSchema);
|
|
27
|
+
//# sourceMappingURL=unit.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.schema.js","sourceRoot":"","sources":["../../../src/models/unit/unit.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,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,cAAc;IACnB,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,cAAc;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC;QAC7C,OAAO,EAAE,iDAAiD;KAC3D,CAAC;IACF,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,eAAe;IAC3B,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,kBAAkB,GAAmB,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAG/E,MAAM,aAAa,GAAG,OAAO,CAAC;AAC9B,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal user schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export declare const userMinimalSchema: z.ZodObject<{
|
|
6
|
+
demographic: z.ZodObject<{
|
|
7
|
+
sex: 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
|
+
religion: z.ZodObject<{
|
|
15
|
+
system: z.ZodString;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
display: z.ZodOptional<z.ZodString>;
|
|
18
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
22
|
+
marital_status: z.ZodObject<{
|
|
23
|
+
system: z.ZodString;
|
|
24
|
+
value: z.ZodString;
|
|
25
|
+
display: z.ZodOptional<z.ZodString>;
|
|
26
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
date_of_birth: z.ZodString;
|
|
30
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
settings_id: z.ZodString;
|
|
33
|
+
full_name: z.ZodString;
|
|
34
|
+
first_name: z.ZodString;
|
|
35
|
+
middle_name: z.ZodOptional<z.ZodString>;
|
|
36
|
+
last_name: z.ZodString;
|
|
37
|
+
salutation: z.ZodOptional<z.ZodString>;
|
|
38
|
+
title: z.ZodOptional<z.ZodString>;
|
|
39
|
+
email: z.ZodString;
|
|
40
|
+
email_verified: z.ZodBoolean;
|
|
41
|
+
image: z.ZodOptional<z.ZodString>;
|
|
42
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
43
|
+
system: z.ZodString;
|
|
44
|
+
value: z.ZodString;
|
|
45
|
+
display: z.ZodOptional<z.ZodString>;
|
|
46
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
47
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
identifiers: z.ZodArray<z.ZodObject<{
|
|
50
|
+
system: z.ZodString;
|
|
51
|
+
value: z.ZodString;
|
|
52
|
+
display: z.ZodOptional<z.ZodString>;
|
|
53
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
54
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
|
+
system: z.ZodString;
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
display: z.ZodOptional<z.ZodString>;
|
|
60
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
61
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type UserMinimal = z.infer<typeof userMinimalSchema>;
|
|
65
|
+
//# sourceMappingURL=user-minimal.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/user/user-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { userSchema } from "./user.schema";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal user schema (omits server-generated fields).
|
|
4
|
+
*/
|
|
5
|
+
export const userMinimalSchema = userSchema.omit({
|
|
6
|
+
id: true,
|
|
7
|
+
created_at: true,
|
|
8
|
+
updated_at: true,
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=user-minimal.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/user/user-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC,IAAI,CAAC;IAC/C,EAAE,EAAE,IAAI;IACR,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Partial user schema (based on minimal, all fields optional).
|
|
4
|
+
*/
|
|
5
|
+
export declare const userPartialSchema: z.ZodObject<{
|
|
6
|
+
demographic: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
sex: 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
|
+
religion: z.ZodObject<{
|
|
15
|
+
system: z.ZodString;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
display: z.ZodOptional<z.ZodString>;
|
|
18
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
ethnicity: z.ZodOptional<z.ZodString>;
|
|
22
|
+
marital_status: z.ZodObject<{
|
|
23
|
+
system: z.ZodString;
|
|
24
|
+
value: z.ZodString;
|
|
25
|
+
display: z.ZodOptional<z.ZodString>;
|
|
26
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
date_of_birth: z.ZodString;
|
|
30
|
+
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
settings_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
full_name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
35
|
+
middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
37
|
+
salutation: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
39
|
+
email: z.ZodOptional<z.ZodString>;
|
|
40
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
system: z.ZodString;
|
|
44
|
+
value: z.ZodString;
|
|
45
|
+
display: z.ZodOptional<z.ZodString>;
|
|
46
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
47
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
system: z.ZodString;
|
|
51
|
+
value: z.ZodString;
|
|
52
|
+
display: z.ZodOptional<z.ZodString>;
|
|
53
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
54
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
contacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
|
+
system: z.ZodString;
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
display: z.ZodOptional<z.ZodString>;
|
|
60
|
+
valid: z.ZodOptional<z.ZodString>;
|
|
61
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
}, z.core.$strip>>>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type UserPartial = z.infer<typeof userPartialSchema>;
|
|
65
|
+
//# sourceMappingURL=user-partial.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/user/user-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-partial.schema.js","sourceRoot":"","sources":["../../../src/models/user/user-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,uBAAuB,CAAC;AAE5E;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const userSettingsSchema: z.ZodObject<{
|
|
3
|
+
lock_screen: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
+
lock_screen_pin: z.ZodOptional<z.ZodString>;
|
|
5
|
+
language: z.ZodDefault<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type UserSettings = z.infer<typeof userSettingsSchema>;
|
|
8
|
+
//# sourceMappingURL=user-settings.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-settings.schema.d.ts","sourceRoot":"","sources":["../../../src/models/user/user-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-settings.schema.js","sourceRoot":"","sources":["../../../src/models/user/user-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;CACtC,CAAC,CAAC"}
|