@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 +0,0 @@
|
|
|
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"}
|
|
@@ -1,93 +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 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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -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";
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,134 +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
|
-
/**
|
|
5
|
-
* Full user record schema.
|
|
6
|
-
*
|
|
7
|
-
* Based on /Docs/Data/Data+Model/User
|
|
8
|
-
* Auto-generated fields: id, created_at, updated_at (by Better Auth)
|
|
9
|
-
*/
|
|
10
|
-
export declare const userSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
full_name: z.ZodString;
|
|
13
|
-
first_name: z.ZodString;
|
|
14
|
-
middle_name: z.ZodOptional<z.ZodString>;
|
|
15
|
-
last_name: z.ZodString;
|
|
16
|
-
salutation: z.ZodOptional<z.ZodString>;
|
|
17
|
-
title: z.ZodOptional<z.ZodString>;
|
|
18
|
-
email: z.ZodString;
|
|
19
|
-
email_verified: z.ZodBoolean;
|
|
20
|
-
image: z.ZodOptional<z.ZodString>;
|
|
21
|
-
statuses: z.ZodArray<z.ZodObject<{
|
|
22
|
-
system: z.ZodString;
|
|
23
|
-
value: z.ZodString;
|
|
24
|
-
display: z.ZodOptional<z.ZodString>;
|
|
25
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
26
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
identifiers: z.ZodArray<z.ZodObject<{
|
|
29
|
-
system: z.ZodString;
|
|
30
|
-
value: z.ZodString;
|
|
31
|
-
display: z.ZodOptional<z.ZodString>;
|
|
32
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
33
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
demographic: z.ZodObject<{
|
|
36
|
-
sex: z.ZodObject<{
|
|
37
|
-
system: z.ZodString;
|
|
38
|
-
value: z.ZodString;
|
|
39
|
-
display: z.ZodOptional<z.ZodString>;
|
|
40
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
41
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
religion: z.ZodObject<{
|
|
44
|
-
system: z.ZodString;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
display: z.ZodOptional<z.ZodString>;
|
|
47
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
48
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
ethnicity: z.ZodOptional<z.ZodString>;
|
|
51
|
-
marital_status: z.ZodObject<{
|
|
52
|
-
system: z.ZodString;
|
|
53
|
-
value: z.ZodString;
|
|
54
|
-
display: z.ZodOptional<z.ZodString>;
|
|
55
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
56
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
date_of_birth: z.ZodString;
|
|
59
|
-
place_of_birth: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}, z.core.$strip>;
|
|
61
|
-
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
-
system: z.ZodString;
|
|
63
|
-
value: z.ZodString;
|
|
64
|
-
display: z.ZodOptional<z.ZodString>;
|
|
65
|
-
valid: z.ZodOptional<z.ZodString>;
|
|
66
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
-
}, z.core.$strip>>>;
|
|
68
|
-
settings_id: z.ZodString;
|
|
69
|
-
created_at: z.ZodString;
|
|
70
|
-
updated_at: z.ZodString;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
export type User = z.infer<typeof userSchema>;
|
|
73
|
-
export declare const UserMongooseSchema: MongooseSchema;
|
|
74
|
-
export type UserDocument = InferDocument<typeof userSchema>;
|
|
75
|
-
export declare const UserModel: MongooseModel<{
|
|
76
|
-
[x: number]: unknown;
|
|
77
|
-
[x: symbol]: unknown;
|
|
78
|
-
[x: string]: unknown;
|
|
79
|
-
}, {}, {}, {
|
|
80
|
-
id: string;
|
|
81
|
-
}, import("mongoose").Document<unknown, {}, {
|
|
82
|
-
[x: number]: unknown;
|
|
83
|
-
[x: symbol]: unknown;
|
|
84
|
-
[x: string]: unknown;
|
|
85
|
-
}, {
|
|
86
|
-
id: string;
|
|
87
|
-
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
88
|
-
[x: number]: unknown;
|
|
89
|
-
[x: symbol]: unknown;
|
|
90
|
-
[x: string]: unknown;
|
|
91
|
-
} & Required<{
|
|
92
|
-
_id: unknown;
|
|
93
|
-
}> & {
|
|
94
|
-
__v: number;
|
|
95
|
-
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
96
|
-
id: string;
|
|
97
|
-
}>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
98
|
-
[x: number]: unknown;
|
|
99
|
-
[x: symbol]: unknown;
|
|
100
|
-
[x: string]: unknown;
|
|
101
|
-
}, import("mongoose").Document<unknown, {}, {
|
|
102
|
-
[x: number]: unknown;
|
|
103
|
-
[x: symbol]: unknown;
|
|
104
|
-
[x: string]: unknown;
|
|
105
|
-
}, {
|
|
106
|
-
id: string;
|
|
107
|
-
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
108
|
-
[x: number]: unknown;
|
|
109
|
-
[x: symbol]: unknown;
|
|
110
|
-
[x: string]: unknown;
|
|
111
|
-
} & Required<{
|
|
112
|
-
_id: unknown;
|
|
113
|
-
}> & {
|
|
114
|
-
__v: number;
|
|
115
|
-
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
116
|
-
id: string;
|
|
117
|
-
}>, unknown, {
|
|
118
|
-
[x: number]: {};
|
|
119
|
-
[x: symbol]: {};
|
|
120
|
-
[x: string]: {};
|
|
121
|
-
} & Required<{
|
|
122
|
-
_id: unknown;
|
|
123
|
-
}> & {
|
|
124
|
-
__v: number;
|
|
125
|
-
}>, {
|
|
126
|
-
[x: number]: {};
|
|
127
|
-
[x: symbol]: {};
|
|
128
|
-
[x: string]: {};
|
|
129
|
-
} & Required<{
|
|
130
|
-
_id: unknown;
|
|
131
|
-
}> & {
|
|
132
|
-
__v: number;
|
|
133
|
-
}>;
|
|
134
|
-
//# sourceMappingURL=user.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../../src/models/user/user.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;AAY1D;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsBrB,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"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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/coded-concept";
|
|
6
|
-
import { demographicSchema } from "../../commons/demographic";
|
|
7
|
-
/**
|
|
8
|
-
* Full user record schema.
|
|
9
|
-
*
|
|
10
|
-
* Based on /Docs/Data/Data+Model/User
|
|
11
|
-
* Auto-generated fields: id, created_at, updated_at (by Better Auth)
|
|
12
|
-
*/
|
|
13
|
-
export const userSchema = z.object({
|
|
14
|
-
id: z.string(),
|
|
15
|
-
full_name: z.string().min(1, { message: "full_name is required" }),
|
|
16
|
-
first_name: z.string().min(1, { message: "first_name is required" }),
|
|
17
|
-
middle_name: z.string().optional(),
|
|
18
|
-
last_name: z.string().min(1, { message: "last_name is required" }),
|
|
19
|
-
salutation: z.string().optional(),
|
|
20
|
-
title: z.string().optional(),
|
|
21
|
-
email: z.string().email({ message: "Invalid email address" }),
|
|
22
|
-
email_verified: z.boolean(),
|
|
23
|
-
image: z.string().optional(),
|
|
24
|
-
statuses: z.array(codedConceptSchema).nonempty({
|
|
25
|
-
message: "statuses must contain at least one CodedConcept",
|
|
26
|
-
}),
|
|
27
|
-
identifiers: z.array(codedConceptSchema).nonempty({
|
|
28
|
-
message: "identifiers must contain at least one CodedConcept",
|
|
29
|
-
}),
|
|
30
|
-
demographic: demographicSchema,
|
|
31
|
-
contacts: z.array(codedConceptSchema).optional(),
|
|
32
|
-
settings_id: objectIdSchema,
|
|
33
|
-
created_at: z.string(),
|
|
34
|
-
updated_at: z.string(),
|
|
35
|
-
});
|
|
36
|
-
export const UserMongooseSchema = toMongooseSchema(userSchema);
|
|
37
|
-
const UserModelName = "users";
|
|
38
|
-
export const UserModel = model(UserModelName, UserMongooseSchema);
|
|
39
|
-
//# sourceMappingURL=user.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../../src/models/user/user.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,EACL,kBAAkB,GAEnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAO9D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAClE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAClE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAC7D,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC;QAC7C,OAAO,EAAE,iDAAiD;KAC3D,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC;QAChD,OAAO,EAAE,oDAAoD;KAC9D,CAAC;IACF,WAAW,EAAE,iBAAiB;IAC9B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,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"}
|