@centricare/contract 0.0.0-stage → 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.
Files changed (374) hide show
  1. package/README.md +119 -2
  2. package/dist/commons/address.d.ts +35 -0
  3. package/dist/commons/address.d.ts.map +1 -0
  4. package/dist/commons/address.js +11 -0
  5. package/dist/commons/address.js.map +1 -0
  6. package/dist/commons/api-response.d.ts +70 -0
  7. package/dist/commons/api-response.d.ts.map +1 -0
  8. package/dist/commons/api-response.js +49 -0
  9. package/dist/commons/api-response.js.map +1 -0
  10. package/dist/commons/coded-concept.d.ts +16 -0
  11. package/dist/commons/coded-concept.d.ts.map +1 -0
  12. package/dist/commons/coded-concept.js +20 -0
  13. package/dist/commons/coded-concept.js.map +1 -0
  14. package/dist/commons/demographic.d.ts +29 -0
  15. package/dist/commons/demographic.d.ts.map +1 -0
  16. package/dist/commons/demographic.js +11 -0
  17. package/dist/commons/demographic.js.map +1 -0
  18. package/dist/commons/index.d.ts +12 -0
  19. package/dist/commons/index.d.ts.map +1 -0
  20. package/dist/commons/index.js +12 -0
  21. package/dist/commons/index.js.map +1 -0
  22. package/dist/commons/object-id.d.ts +8 -0
  23. package/dist/commons/object-id.d.ts.map +1 -0
  24. package/dist/commons/object-id.js +11 -0
  25. package/dist/commons/object-id.js.map +1 -0
  26. package/dist/commons/setting-option.d.ts +45 -0
  27. package/dist/commons/setting-option.d.ts.map +1 -0
  28. package/dist/commons/setting-option.js +27 -0
  29. package/dist/commons/setting-option.js.map +1 -0
  30. package/dist/commons/timestamp.d.ts +7 -0
  31. package/dist/commons/timestamp.d.ts.map +1 -0
  32. package/dist/commons/timestamp.js +9 -0
  33. package/dist/commons/timestamp.js.map +1 -0
  34. package/dist/index.d.ts +7 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +7 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/models/assignment/assignment-minimal.schema.d.ts +18 -0
  39. package/dist/models/assignment/assignment-minimal.schema.d.ts.map +1 -0
  40. package/dist/models/assignment/assignment-minimal.schema.js +13 -0
  41. package/dist/models/assignment/assignment-minimal.schema.js.map +1 -0
  42. package/dist/models/assignment/assignment-partial.schema.d.ts +18 -0
  43. package/dist/models/assignment/assignment-partial.schema.d.ts.map +1 -0
  44. package/dist/models/assignment/assignment-partial.schema.js +6 -0
  45. package/dist/models/assignment/assignment-partial.schema.js.map +1 -0
  46. package/dist/models/assignment/assignment.schema.d.ts +84 -0
  47. package/dist/models/assignment/assignment.schema.d.ts.map +1 -0
  48. package/dist/models/assignment/assignment.schema.js +27 -0
  49. package/dist/models/assignment/assignment.schema.js.map +1 -0
  50. package/dist/models/assignment/index.d.ts +4 -0
  51. package/dist/models/assignment/index.d.ts.map +1 -0
  52. package/dist/models/assignment/index.js +4 -0
  53. package/dist/models/assignment/index.js.map +1 -0
  54. package/dist/models/department/department-minimal.schema.d.ts +17 -0
  55. package/dist/models/department/department-minimal.schema.d.ts.map +1 -0
  56. package/dist/models/department/department-minimal.schema.js +13 -0
  57. package/dist/models/department/department-minimal.schema.js.map +1 -0
  58. package/dist/models/department/department-partial.schema.d.ts +17 -0
  59. package/dist/models/department/department-partial.schema.d.ts.map +1 -0
  60. package/dist/models/department/department-partial.schema.js +6 -0
  61. package/dist/models/department/department-partial.schema.js.map +1 -0
  62. package/dist/models/department/department.schema.d.ts +83 -0
  63. package/dist/models/department/department.schema.d.ts.map +1 -0
  64. package/dist/models/department/department.schema.js +20 -0
  65. package/dist/models/department/department.schema.js.map +1 -0
  66. package/dist/models/department/index.d.ts +4 -0
  67. package/dist/models/department/index.d.ts.map +1 -0
  68. package/dist/models/department/index.js +4 -0
  69. package/dist/models/department/index.js.map +1 -0
  70. package/dist/models/facility/facility-minimal.schema.d.ts +19 -0
  71. package/dist/models/facility/facility-minimal.schema.d.ts.map +1 -0
  72. package/dist/models/facility/facility-minimal.schema.js +10 -0
  73. package/dist/models/facility/facility-minimal.schema.js.map +1 -0
  74. package/dist/models/facility/facility-partial.schema.d.ts +19 -0
  75. package/dist/models/facility/facility-partial.schema.d.ts.map +1 -0
  76. package/dist/models/facility/facility-partial.schema.js +6 -0
  77. package/dist/models/facility/facility-partial.schema.js.map +1 -0
  78. package/dist/models/facility/facility-settings.schema.d.ts +16 -0
  79. package/dist/models/facility/facility-settings.schema.d.ts.map +1 -0
  80. package/dist/models/facility/facility-settings.schema.js +12 -0
  81. package/dist/models/facility/facility-settings.schema.js.map +1 -0
  82. package/dist/models/facility/facility.schema.d.ts +82 -0
  83. package/dist/models/facility/facility.schema.d.ts.map +1 -0
  84. package/dist/models/facility/facility.schema.js +23 -0
  85. package/dist/models/facility/facility.schema.js.map +1 -0
  86. package/dist/models/facility/index.d.ts +5 -0
  87. package/dist/models/facility/index.d.ts.map +1 -0
  88. package/dist/models/facility/index.js +5 -0
  89. package/dist/models/facility/index.js.map +1 -0
  90. package/dist/models/index.d.ts +23 -0
  91. package/dist/models/index.d.ts.map +1 -0
  92. package/dist/models/index.js +23 -0
  93. package/dist/models/index.js.map +1 -0
  94. package/dist/models/ksm/index.d.ts +4 -0
  95. package/dist/models/ksm/index.d.ts.map +1 -0
  96. package/dist/models/ksm/index.js +4 -0
  97. package/dist/models/ksm/index.js.map +1 -0
  98. package/dist/models/ksm/ksm-minimal.schema.d.ts +12 -0
  99. package/dist/models/ksm/ksm-minimal.schema.d.ts.map +1 -0
  100. package/dist/models/ksm/ksm-minimal.schema.js +13 -0
  101. package/dist/models/ksm/ksm-minimal.schema.js.map +1 -0
  102. package/dist/models/ksm/ksm-partial.schema.d.ts +12 -0
  103. package/dist/models/ksm/ksm-partial.schema.d.ts.map +1 -0
  104. package/dist/models/ksm/ksm-partial.schema.js +6 -0
  105. package/dist/models/ksm/ksm-partial.schema.js.map +1 -0
  106. package/dist/models/ksm/ksm.schema.d.ts +78 -0
  107. package/dist/models/ksm/ksm.schema.d.ts.map +1 -0
  108. package/dist/models/ksm/ksm.schema.js +23 -0
  109. package/dist/models/ksm/ksm.schema.js.map +1 -0
  110. package/dist/models/location/index.d.ts +5 -0
  111. package/dist/models/location/index.d.ts.map +1 -0
  112. package/dist/models/location/index.js +5 -0
  113. package/dist/models/location/index.js.map +1 -0
  114. package/dist/models/location/location-minimal.schema.d.ts +33 -0
  115. package/dist/models/location/location-minimal.schema.d.ts.map +1 -0
  116. package/dist/models/location/location-minimal.schema.js +12 -0
  117. package/dist/models/location/location-minimal.schema.js.map +1 -0
  118. package/dist/models/location/location-partial.schema.d.ts +33 -0
  119. package/dist/models/location/location-partial.schema.d.ts.map +1 -0
  120. package/dist/models/location/location-partial.schema.js +6 -0
  121. package/dist/models/location/location-partial.schema.js.map +1 -0
  122. package/dist/models/location/location-settings.schema.d.ts +8 -0
  123. package/dist/models/location/location-settings.schema.d.ts.map +1 -0
  124. package/dist/models/location/location-settings.schema.js +7 -0
  125. package/dist/models/location/location-settings.schema.js.map +1 -0
  126. package/dist/models/location/location.schema.d.ts +98 -0
  127. package/dist/models/location/location.schema.d.ts.map +1 -0
  128. package/dist/models/location/location.schema.js +30 -0
  129. package/dist/models/location/location.schema.js.map +1 -0
  130. package/dist/models/member/index.d.ts +4 -0
  131. package/dist/models/member/index.d.ts.map +1 -0
  132. package/dist/models/member/index.js +4 -0
  133. package/dist/models/member/index.js.map +1 -0
  134. package/dist/models/member/member-minimal.schema.d.ts +11 -0
  135. package/dist/models/member/member-minimal.schema.d.ts.map +1 -0
  136. package/dist/models/member/member-minimal.schema.js +9 -0
  137. package/dist/models/member/member-minimal.schema.js.map +1 -0
  138. package/dist/models/member/member-partial.schema.d.ts +11 -0
  139. package/dist/models/member/member-partial.schema.d.ts.map +1 -0
  140. package/dist/models/member/member-partial.schema.js +6 -0
  141. package/dist/models/member/member-partial.schema.js.map +1 -0
  142. package/dist/models/member/member.schema.d.ts +73 -0
  143. package/dist/models/member/member.schema.d.ts.map +1 -0
  144. package/dist/models/member/member.schema.js +16 -0
  145. package/dist/models/member/member.schema.js.map +1 -0
  146. package/dist/models/organization/index.d.ts +5 -0
  147. package/dist/models/organization/index.d.ts.map +1 -0
  148. package/dist/models/organization/index.js +5 -0
  149. package/dist/models/organization/index.js.map +1 -0
  150. package/dist/models/organization/organization-minimal.schema.d.ts +22 -0
  151. package/dist/models/organization/organization-minimal.schema.d.ts.map +1 -0
  152. package/dist/models/organization/organization-minimal.schema.js +9 -0
  153. package/dist/models/organization/organization-minimal.schema.js.map +1 -0
  154. package/dist/models/organization/organization-partial.schema.d.ts +22 -0
  155. package/dist/models/organization/organization-partial.schema.d.ts.map +1 -0
  156. package/dist/models/organization/organization-partial.schema.js +6 -0
  157. package/dist/models/organization/organization-partial.schema.js.map +1 -0
  158. package/dist/models/organization/organization-settings.schema.d.ts +8 -0
  159. package/dist/models/organization/organization-settings.schema.d.ts.map +1 -0
  160. package/dist/models/organization/organization-settings.schema.js +7 -0
  161. package/dist/models/organization/organization-settings.schema.js.map +1 -0
  162. package/dist/models/organization/organization.schema.d.ts +84 -0
  163. package/dist/models/organization/organization.schema.d.ts.map +1 -0
  164. package/dist/models/organization/organization.schema.js +24 -0
  165. package/dist/models/organization/organization.schema.js.map +1 -0
  166. package/dist/models/patient/index.d.ts +4 -0
  167. package/dist/models/patient/index.d.ts.map +1 -0
  168. package/dist/models/patient/index.js +4 -0
  169. package/dist/models/patient/index.js.map +1 -0
  170. package/dist/models/patient/patient-minimal.schema.d.ts +95 -0
  171. package/dist/models/patient/patient-minimal.schema.d.ts.map +1 -0
  172. package/dist/models/patient/patient-minimal.schema.js +13 -0
  173. package/dist/models/patient/patient-minimal.schema.js.map +1 -0
  174. package/dist/models/patient/patient-partial.schema.d.ts +95 -0
  175. package/dist/models/patient/patient-partial.schema.d.ts.map +1 -0
  176. package/dist/models/patient/patient-partial.schema.js +6 -0
  177. package/dist/models/patient/patient-partial.schema.js.map +1 -0
  178. package/dist/models/patient/patient.schema.d.ts +161 -0
  179. package/dist/models/patient/patient.schema.d.ts.map +1 -0
  180. package/dist/models/patient/patient.schema.js +35 -0
  181. package/dist/models/patient/patient.schema.js.map +1 -0
  182. package/dist/models/patient-additional/index.d.ts +4 -0
  183. package/dist/models/patient-additional/index.d.ts.map +1 -0
  184. package/dist/models/patient-additional/index.js +4 -0
  185. package/dist/models/patient-additional/index.js.map +1 -0
  186. package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts +17 -0
  187. package/dist/models/patient-additional/patient-additional-minimal.schema.d.ts.map +1 -0
  188. package/dist/models/patient-additional/patient-additional-minimal.schema.js +13 -0
  189. package/dist/models/patient-additional/patient-additional-minimal.schema.js.map +1 -0
  190. package/dist/models/patient-additional/patient-additional-partial.schema.d.ts +17 -0
  191. package/dist/models/patient-additional/patient-additional-partial.schema.d.ts.map +1 -0
  192. package/dist/models/patient-additional/patient-additional-partial.schema.js +6 -0
  193. package/dist/models/patient-additional/patient-additional-partial.schema.js.map +1 -0
  194. package/dist/models/patient-additional/patient-additional.schema.d.ts +83 -0
  195. package/dist/models/patient-additional/patient-additional.schema.d.ts.map +1 -0
  196. package/dist/models/patient-additional/patient-additional.schema.js +21 -0
  197. package/dist/models/patient-additional/patient-additional.schema.js.map +1 -0
  198. package/dist/models/payer/index.d.ts +5 -0
  199. package/dist/models/payer/index.d.ts.map +1 -0
  200. package/dist/models/payer/index.js +5 -0
  201. package/dist/models/payer/index.js.map +1 -0
  202. package/dist/models/payer/payer-minimal.schema.d.ts +67 -0
  203. package/dist/models/payer/payer-minimal.schema.d.ts.map +1 -0
  204. package/dist/models/payer/payer-minimal.schema.js +13 -0
  205. package/dist/models/payer/payer-minimal.schema.js.map +1 -0
  206. package/dist/models/payer/payer-partial.schema.d.ts +67 -0
  207. package/dist/models/payer/payer-partial.schema.d.ts.map +1 -0
  208. package/dist/models/payer/payer-partial.schema.js +6 -0
  209. package/dist/models/payer/payer-partial.schema.js.map +1 -0
  210. package/dist/models/payer/payer-settings.schema.d.ts +27 -0
  211. package/dist/models/payer/payer-settings.schema.d.ts.map +1 -0
  212. package/dist/models/payer/payer-settings.schema.js +20 -0
  213. package/dist/models/payer/payer-settings.schema.js.map +1 -0
  214. package/dist/models/payer/payer.schema.d.ts +133 -0
  215. package/dist/models/payer/payer.schema.d.ts.map +1 -0
  216. package/dist/models/payer/payer.schema.js +47 -0
  217. package/dist/models/payer/payer.schema.js.map +1 -0
  218. package/dist/models/practitioner-schedule/index.d.ts +4 -0
  219. package/dist/models/practitioner-schedule/index.d.ts.map +1 -0
  220. package/dist/models/practitioner-schedule/index.js +4 -0
  221. package/dist/models/practitioner-schedule/index.js.map +1 -0
  222. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts +20 -0
  223. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.d.ts.map +1 -0
  224. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js +13 -0
  225. package/dist/models/practitioner-schedule/practitioner-schedule-minimal.schema.js.map +1 -0
  226. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts +20 -0
  227. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.d.ts.map +1 -0
  228. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js +6 -0
  229. package/dist/models/practitioner-schedule/practitioner-schedule-partial.schema.js.map +1 -0
  230. package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts +86 -0
  231. package/dist/models/practitioner-schedule/practitioner-schedule.schema.d.ts.map +1 -0
  232. package/dist/models/practitioner-schedule/practitioner-schedule.schema.js +26 -0
  233. package/dist/models/practitioner-schedule/practitioner-schedule.schema.js.map +1 -0
  234. package/dist/models/practitioner-session/index.d.ts +4 -0
  235. package/dist/models/practitioner-session/index.d.ts.map +1 -0
  236. package/dist/models/practitioner-session/index.js +4 -0
  237. package/dist/models/practitioner-session/index.js.map +1 -0
  238. package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts +14 -0
  239. package/dist/models/practitioner-session/practitioner-session-minimal.schema.d.ts.map +1 -0
  240. package/dist/models/practitioner-session/practitioner-session-minimal.schema.js +13 -0
  241. package/dist/models/practitioner-session/practitioner-session-minimal.schema.js.map +1 -0
  242. package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts +14 -0
  243. package/dist/models/practitioner-session/practitioner-session-partial.schema.d.ts.map +1 -0
  244. package/dist/models/practitioner-session/practitioner-session-partial.schema.js +6 -0
  245. package/dist/models/practitioner-session/practitioner-session-partial.schema.js.map +1 -0
  246. package/dist/models/practitioner-session/practitioner-session.schema.d.ts +80 -0
  247. package/dist/models/practitioner-session/practitioner-session.schema.d.ts.map +1 -0
  248. package/dist/models/practitioner-session/practitioner-session.schema.js +26 -0
  249. package/dist/models/practitioner-session/practitioner-session.schema.js.map +1 -0
  250. package/dist/models/queue/index.d.ts +5 -0
  251. package/dist/models/queue/index.d.ts.map +1 -0
  252. package/dist/models/queue/index.js +5 -0
  253. package/dist/models/queue/index.js.map +1 -0
  254. package/dist/models/queue/queue-minimal.schema.d.ts +31 -0
  255. package/dist/models/queue/queue-minimal.schema.d.ts.map +1 -0
  256. package/dist/models/queue/queue-minimal.schema.js +13 -0
  257. package/dist/models/queue/queue-minimal.schema.js.map +1 -0
  258. package/dist/models/queue/queue-partial.schema.d.ts +31 -0
  259. package/dist/models/queue/queue-partial.schema.d.ts.map +1 -0
  260. package/dist/models/queue/queue-partial.schema.js +6 -0
  261. package/dist/models/queue/queue-partial.schema.js.map +1 -0
  262. package/dist/models/queue/queue-settings.schema.d.ts +27 -0
  263. package/dist/models/queue/queue-settings.schema.d.ts.map +1 -0
  264. package/dist/models/queue/queue-settings.schema.js +22 -0
  265. package/dist/models/queue/queue-settings.schema.js.map +1 -0
  266. package/dist/models/queue/queue.schema.d.ts +97 -0
  267. package/dist/models/queue/queue.schema.d.ts.map +1 -0
  268. package/dist/models/queue/queue.schema.js +32 -0
  269. package/dist/models/queue/queue.schema.js.map +1 -0
  270. package/dist/models/queue-event-log/index.d.ts +4 -0
  271. package/dist/models/queue-event-log/index.d.ts.map +1 -0
  272. package/dist/models/queue-event-log/index.js +4 -0
  273. package/dist/models/queue-event-log/index.js.map +1 -0
  274. package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts +18 -0
  275. package/dist/models/queue-event-log/queue-event-log-minimal.schema.d.ts.map +1 -0
  276. package/dist/models/queue-event-log/queue-event-log-minimal.schema.js +13 -0
  277. package/dist/models/queue-event-log/queue-event-log-minimal.schema.js.map +1 -0
  278. package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts +18 -0
  279. package/dist/models/queue-event-log/queue-event-log-partial.schema.d.ts.map +1 -0
  280. package/dist/models/queue-event-log/queue-event-log-partial.schema.js +6 -0
  281. package/dist/models/queue-event-log/queue-event-log-partial.schema.js.map +1 -0
  282. package/dist/models/queue-event-log/queue-event-log.schema.d.ts +84 -0
  283. package/dist/models/queue-event-log/queue-event-log.schema.d.ts.map +1 -0
  284. package/dist/models/queue-event-log/queue-event-log.schema.js +25 -0
  285. package/dist/models/queue-event-log/queue-event-log.schema.js.map +1 -0
  286. package/dist/models/queue-number/index.d.ts +5 -0
  287. package/dist/models/queue-number/index.d.ts.map +1 -0
  288. package/dist/models/queue-number/index.js +5 -0
  289. package/dist/models/queue-number/index.js.map +1 -0
  290. package/dist/models/queue-number/queue-number-minimal.schema.d.ts +21 -0
  291. package/dist/models/queue-number/queue-number-minimal.schema.d.ts.map +1 -0
  292. package/dist/models/queue-number/queue-number-minimal.schema.js +14 -0
  293. package/dist/models/queue-number/queue-number-minimal.schema.js.map +1 -0
  294. package/dist/models/queue-number/queue-number-partial.schema.d.ts +21 -0
  295. package/dist/models/queue-number/queue-number-partial.schema.d.ts.map +1 -0
  296. package/dist/models/queue-number/queue-number-partial.schema.js +6 -0
  297. package/dist/models/queue-number/queue-number-partial.schema.js.map +1 -0
  298. package/dist/models/queue-number/queue-number-settings.schema.d.ts +27 -0
  299. package/dist/models/queue-number/queue-number-settings.schema.d.ts.map +1 -0
  300. package/dist/models/queue-number/queue-number-settings.schema.js +22 -0
  301. package/dist/models/queue-number/queue-number-settings.schema.js.map +1 -0
  302. package/dist/models/queue-number/queue-number.schema.d.ts +88 -0
  303. package/dist/models/queue-number/queue-number.schema.d.ts.map +1 -0
  304. package/dist/models/queue-number/queue-number.schema.js +42 -0
  305. package/dist/models/queue-number/queue-number.schema.js.map +1 -0
  306. package/dist/models/settings/index.d.ts +4 -0
  307. package/dist/models/settings/index.d.ts.map +1 -0
  308. package/dist/models/settings/index.js +4 -0
  309. package/dist/models/settings/index.js.map +1 -0
  310. package/dist/models/settings/settings-minimal.schema.d.ts +26 -0
  311. package/dist/models/settings/settings-minimal.schema.d.ts.map +1 -0
  312. package/dist/models/settings/settings-minimal.schema.js +11 -0
  313. package/dist/models/settings/settings-minimal.schema.js.map +1 -0
  314. package/dist/models/settings/settings-partial.schema.d.ts +26 -0
  315. package/dist/models/settings/settings-partial.schema.d.ts.map +1 -0
  316. package/dist/models/settings/settings-partial.schema.js +6 -0
  317. package/dist/models/settings/settings-partial.schema.js.map +1 -0
  318. package/dist/models/settings/settings.schema.d.ts +96 -0
  319. package/dist/models/settings/settings.schema.d.ts.map +1 -0
  320. package/dist/models/settings/settings.schema.js +25 -0
  321. package/dist/models/settings/settings.schema.js.map +1 -0
  322. package/dist/models/staff/index.d.ts +4 -0
  323. package/dist/models/staff/index.d.ts.map +1 -0
  324. package/dist/models/staff/index.js +4 -0
  325. package/dist/models/staff/index.js.map +1 -0
  326. package/dist/models/staff/staff-minimal.schema.d.ts +27 -0
  327. package/dist/models/staff/staff-minimal.schema.d.ts.map +1 -0
  328. package/dist/models/staff/staff-minimal.schema.js +13 -0
  329. package/dist/models/staff/staff-minimal.schema.js.map +1 -0
  330. package/dist/models/staff/staff-partial.schema.d.ts +27 -0
  331. package/dist/models/staff/staff-partial.schema.d.ts.map +1 -0
  332. package/dist/models/staff/staff-partial.schema.js +6 -0
  333. package/dist/models/staff/staff-partial.schema.js.map +1 -0
  334. package/dist/models/staff/staff.schema.d.ts +93 -0
  335. package/dist/models/staff/staff.schema.d.ts.map +1 -0
  336. package/dist/models/staff/staff.schema.js +25 -0
  337. package/dist/models/staff/staff.schema.js.map +1 -0
  338. package/dist/models/unit/index.d.ts +4 -0
  339. package/dist/models/unit/index.d.ts.map +1 -0
  340. package/dist/models/unit/index.js +4 -0
  341. package/dist/models/unit/index.js.map +1 -0
  342. package/dist/models/unit/unit-minimal.schema.d.ts +27 -0
  343. package/dist/models/unit/unit-minimal.schema.d.ts.map +1 -0
  344. package/dist/models/unit/unit-minimal.schema.js +13 -0
  345. package/dist/models/unit/unit-minimal.schema.js.map +1 -0
  346. package/dist/models/unit/unit-partial.schema.d.ts +27 -0
  347. package/dist/models/unit/unit-partial.schema.d.ts.map +1 -0
  348. package/dist/models/unit/unit-partial.schema.js +6 -0
  349. package/dist/models/unit/unit-partial.schema.js.map +1 -0
  350. package/dist/models/unit/unit.schema.d.ts +93 -0
  351. package/dist/models/unit/unit.schema.d.ts.map +1 -0
  352. package/dist/models/unit/unit.schema.js +27 -0
  353. package/dist/models/unit/unit.schema.js.map +1 -0
  354. package/dist/models/user/index.d.ts +5 -0
  355. package/dist/models/user/index.d.ts.map +1 -0
  356. package/dist/models/user/index.js +5 -0
  357. package/dist/models/user/index.js.map +1 -0
  358. package/dist/models/user/user-minimal.schema.d.ts +65 -0
  359. package/dist/models/user/user-minimal.schema.d.ts.map +1 -0
  360. package/dist/models/user/user-minimal.schema.js +10 -0
  361. package/dist/models/user/user-minimal.schema.js.map +1 -0
  362. package/dist/models/user/user-partial.schema.d.ts +65 -0
  363. package/dist/models/user/user-partial.schema.d.ts.map +1 -0
  364. package/dist/models/user/user-partial.schema.js +6 -0
  365. package/dist/models/user/user-partial.schema.js.map +1 -0
  366. package/dist/models/user/user-settings.schema.d.ts +8 -0
  367. package/dist/models/user/user-settings.schema.d.ts.map +1 -0
  368. package/dist/models/user/user-settings.schema.js +7 -0
  369. package/dist/models/user/user-settings.schema.js.map +1 -0
  370. package/dist/models/user/user.schema.d.ts +134 -0
  371. package/dist/models/user/user.schema.d.ts.map +1 -0
  372. package/dist/models/user/user.schema.js +39 -0
  373. package/dist/models/user/user.schema.js.map +1 -0
  374. package/package.json +59 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignment-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/assignment/assignment-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AAExE;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAC3D,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;CACrB,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Partial assignment schema (based on minimal, all fields optional).
4
+ */
5
+ export declare const assignmentPartialSchema: z.ZodObject<{
6
+ type: z.ZodOptional<z.ZodObject<{
7
+ system: z.ZodString;
8
+ value: z.ZodString;
9
+ display: z.ZodOptional<z.ZodString>;
10
+ valid: z.ZodOptional<z.ZodString>;
11
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ }, z.core.$strip>>;
13
+ facility_id: z.ZodOptional<z.ZodString>;
14
+ for: z.ZodOptional<z.ZodString>;
15
+ assigned_to: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>>;
16
+ }, z.core.$strip>;
17
+ export type AssignmentPartial = z.infer<typeof assignmentPartialSchema>;
18
+ //# sourceMappingURL=assignment-partial.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignment-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/assignment/assignment-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAAoC,CAAC;AAEzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { assignmentMinimalSchema } from "./assignment-minimal.schema";
2
+ /**
3
+ * Partial assignment schema (based on minimal, all fields optional).
4
+ */
5
+ export const assignmentPartialSchema = assignmentMinimalSchema.partial();
6
+ //# sourceMappingURL=assignment-partial.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignment-partial.schema.js","sourceRoot":"","sources":["../../../src/models/assignment/assignment-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAA0B,MAAM,6BAA6B,CAAC;AAE9F;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC,OAAO,EAAE,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { z } from "zod";
2
+ import { type Schema as MongooseSchema, type Model as MongooseModel } from "mongoose";
3
+ import type { InferDocument } from "@nullix/zod-mongoose";
4
+ export declare const assignmentSchema: z.ZodObject<{
5
+ _id: z.ZodString;
6
+ facility_id: z.ZodString;
7
+ type: z.ZodObject<{
8
+ system: z.ZodString;
9
+ value: z.ZodString;
10
+ display: z.ZodOptional<z.ZodString>;
11
+ valid: z.ZodOptional<z.ZodString>;
12
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ }, z.core.$strip>;
14
+ for: z.ZodString;
15
+ assigned_to: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>;
16
+ created_at: z.ZodString;
17
+ created_by: z.ZodString;
18
+ updated_at: z.ZodString;
19
+ updated_by: z.ZodString;
20
+ schema_version: z.ZodDefault<z.ZodNumber>;
21
+ }, z.core.$strip>;
22
+ export type Assignment = z.infer<typeof assignmentSchema>;
23
+ export declare const AssignmentMongooseSchema: MongooseSchema;
24
+ export type AssignmentDocument = InferDocument<typeof assignmentSchema>;
25
+ export declare const AssignmentModel: MongooseModel<{
26
+ [x: number]: unknown;
27
+ [x: symbol]: unknown;
28
+ [x: string]: unknown;
29
+ }, {}, {}, {
30
+ id: string;
31
+ }, import("mongoose").Document<unknown, {}, {
32
+ [x: number]: unknown;
33
+ [x: symbol]: unknown;
34
+ [x: string]: unknown;
35
+ }, {
36
+ id: string;
37
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
38
+ [x: number]: unknown;
39
+ [x: symbol]: unknown;
40
+ [x: string]: unknown;
41
+ } & Required<{
42
+ _id: unknown;
43
+ }> & {
44
+ __v: number;
45
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
46
+ id: string;
47
+ }>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
48
+ [x: number]: unknown;
49
+ [x: symbol]: unknown;
50
+ [x: string]: unknown;
51
+ }, import("mongoose").Document<unknown, {}, {
52
+ [x: number]: unknown;
53
+ [x: symbol]: unknown;
54
+ [x: string]: unknown;
55
+ }, {
56
+ id: string;
57
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
58
+ [x: number]: unknown;
59
+ [x: symbol]: unknown;
60
+ [x: string]: unknown;
61
+ } & Required<{
62
+ _id: unknown;
63
+ }> & {
64
+ __v: number;
65
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
66
+ id: string;
67
+ }>, unknown, {
68
+ [x: number]: {};
69
+ [x: symbol]: {};
70
+ [x: string]: {};
71
+ } & Required<{
72
+ _id: unknown;
73
+ }> & {
74
+ __v: number;
75
+ }>, {
76
+ [x: number]: {};
77
+ [x: symbol]: {};
78
+ [x: string]: {};
79
+ } & Required<{
80
+ _id: unknown;
81
+ }> & {
82
+ __v: number;
83
+ }>;
84
+ //# sourceMappingURL=assignment.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignment.schema.d.ts","sourceRoot":"","sources":["../../../src/models/assignment/assignment.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAS,KAAK,MAAM,IAAI,cAAc,EAAE,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;iBAgB3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,EAAE,cAAmD,CAAC;AAC3F,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGxE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuD,CAAC"}
@@ -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/coded-concept";
6
+ const nonEmpty = z.string().min(1, { message: "assigned_to is required" });
7
+ export const assignmentSchema = z.object({
8
+ _id: objectIdSchema,
9
+ facility_id: objectIdSchema,
10
+ type: codedConceptSchema,
11
+ for: z.string().min(1, { message: "for is required" }),
12
+ assigned_to: z
13
+ .union([nonEmpty, z.array(nonEmpty)])
14
+ .transform((val) => (Array.isArray(val) ? val : [val]))
15
+ .refine((arr) => arr.length >= 1, {
16
+ message: "assigned_to is required",
17
+ }),
18
+ created_at: z.string(),
19
+ created_by: z.string(),
20
+ updated_at: z.string(),
21
+ updated_by: z.string(),
22
+ schema_version: z.number().int().positive().default(1),
23
+ });
24
+ export const AssignmentMongooseSchema = toMongooseSchema(assignmentSchema);
25
+ const AssignmentModelName = "assignments";
26
+ export const AssignmentModel = model(AssignmentModelName, AssignmentMongooseSchema);
27
+ //# sourceMappingURL=assignment.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignment.schema.js","sourceRoot":"","sources":["../../../src/models/assignment/assignment.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,EAA8D,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,GAAG,EAAE,cAAc;IACnB,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,kBAAkB;IACxB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IACtD,WAAW,EAAE,CAAC;SACX,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;SACpC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SACtD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE;QAChC,OAAO,EAAE,yBAAyB;KACnC,CAAC;IACJ,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,wBAAwB,GAAmB,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAG3F,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./assignment.schema";
2
+ export * from "./assignment-minimal.schema";
3
+ export * from "./assignment-partial.schema";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/assignment/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./assignment.schema";
2
+ export * from "./assignment-minimal.schema";
3
+ export * from "./assignment-partial.schema";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/assignment/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Minimal department schema (omits server-generated fields).
4
+ */
5
+ export declare const departmentMinimalSchema: 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
+ name: z.ZodString;
14
+ facility_id: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export type DepartmentMinimal = z.infer<typeof departmentMinimalSchema>;
17
+ //# sourceMappingURL=department-minimal.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"department-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/department/department-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAOlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { departmentSchema } from "./department.schema";
2
+ /**
3
+ * Minimal department schema (omits server-generated fields).
4
+ */
5
+ export const departmentMinimalSchema = departmentSchema.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=department-minimal.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"department-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/department/department-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AAExE;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAC3D,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;CACrB,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Partial department schema (based on minimal, all fields optional).
4
+ */
5
+ export declare const departmentPartialSchema: 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
+ name: z.ZodOptional<z.ZodString>;
14
+ facility_id: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export type DepartmentPartial = z.infer<typeof departmentPartialSchema>;
17
+ //# sourceMappingURL=department-partial.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"department-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/department/department-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAAoC,CAAC;AAEzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { departmentMinimalSchema } from "./department-minimal.schema";
2
+ /**
3
+ * Partial department schema (based on minimal, all fields optional).
4
+ */
5
+ export const departmentPartialSchema = departmentMinimalSchema.partial();
6
+ //# sourceMappingURL=department-partial.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"department-partial.schema.js","sourceRoot":"","sources":["../../../src/models/department/department-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAA0B,MAAM,6BAA6B,CAAC;AAE9F;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC,OAAO,EAAE,CAAC"}
@@ -0,0 +1,83 @@
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 departmentSchema: z.ZodObject<{
5
+ _id: z.ZodString;
6
+ facility_id: z.ZodString;
7
+ name: 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
+ created_at: z.ZodString;
16
+ created_by: z.ZodString;
17
+ updated_at: z.ZodString;
18
+ updated_by: z.ZodString;
19
+ schema_version: z.ZodDefault<z.ZodNumber>;
20
+ }, z.core.$strip>;
21
+ export type Department = z.infer<typeof departmentSchema>;
22
+ export declare const DepartmentMongooseSchema: MongooseSchema;
23
+ export type DepartmentDocument = InferDocument<typeof departmentSchema>;
24
+ export declare const DepartmentModel: MongooseModel<{
25
+ [x: number]: unknown;
26
+ [x: symbol]: unknown;
27
+ [x: string]: unknown;
28
+ }, {}, {}, {
29
+ id: string;
30
+ }, import("mongoose").Document<unknown, {}, {
31
+ [x: number]: unknown;
32
+ [x: symbol]: unknown;
33
+ [x: string]: unknown;
34
+ }, {
35
+ id: string;
36
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
37
+ [x: number]: unknown;
38
+ [x: symbol]: unknown;
39
+ [x: string]: unknown;
40
+ } & Required<{
41
+ _id: unknown;
42
+ }> & {
43
+ __v: number;
44
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
45
+ id: string;
46
+ }>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
47
+ [x: number]: unknown;
48
+ [x: symbol]: unknown;
49
+ [x: string]: unknown;
50
+ }, import("mongoose").Document<unknown, {}, {
51
+ [x: number]: unknown;
52
+ [x: symbol]: unknown;
53
+ [x: string]: unknown;
54
+ }, {
55
+ id: string;
56
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
57
+ [x: number]: unknown;
58
+ [x: symbol]: unknown;
59
+ [x: string]: unknown;
60
+ } & Required<{
61
+ _id: unknown;
62
+ }> & {
63
+ __v: number;
64
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
65
+ id: string;
66
+ }>, unknown, {
67
+ [x: number]: {};
68
+ [x: symbol]: {};
69
+ [x: string]: {};
70
+ } & Required<{
71
+ _id: unknown;
72
+ }> & {
73
+ __v: number;
74
+ }>, {
75
+ [x: number]: {};
76
+ [x: symbol]: {};
77
+ [x: string]: {};
78
+ } & Required<{
79
+ _id: unknown;
80
+ }> & {
81
+ __v: number;
82
+ }>;
83
+ //# sourceMappingURL=department.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"department.schema.d.ts","sourceRoot":"","sources":["../../../src/models/department/department.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;AAI1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;iBAU3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,EAAE,cAAmD,CAAC;AAC3F,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGxE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ import { toMongooseSchema } from "@nullix/zod-mongoose";
3
+ import { model } from "mongoose";
4
+ import { objectIdSchema } from "../../commons/object-id";
5
+ import { codedConceptSchema } from "../../commons/coded-concept";
6
+ export const departmentSchema = z.object({
7
+ _id: objectIdSchema,
8
+ facility_id: objectIdSchema,
9
+ name: z.string().min(1, { message: "name is required" }),
10
+ type: codedConceptSchema,
11
+ created_at: z.string(),
12
+ created_by: z.string(),
13
+ updated_at: z.string(),
14
+ updated_by: z.string(),
15
+ schema_version: z.number().int().positive().default(1),
16
+ });
17
+ export const DepartmentMongooseSchema = toMongooseSchema(departmentSchema);
18
+ const DepartmentModelName = "departments";
19
+ export const DepartmentModel = model(DepartmentModelName, DepartmentMongooseSchema);
20
+ //# sourceMappingURL=department.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"department.schema.js","sourceRoot":"","sources":["../../../src/models/department/department.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,EAA8D,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,GAAG,EAAE,cAAc;IACnB,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAI,EAAE,kBAAkB;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACvD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,wBAAwB,GAAmB,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAG3F,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./department.schema";
2
+ export * from "./department-minimal.schema";
3
+ export * from "./department-partial.schema";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/department/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./department.schema";
2
+ export * from "./department-minimal.schema";
3
+ export * from "./department-partial.schema";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/department/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Minimal facility schema (omits server-generated fields).
4
+ */
5
+ export declare const facilityMinimalSchema: z.ZodObject<{
6
+ settings_id: z.ZodString;
7
+ name: z.ZodString;
8
+ organization_id: z.ZodString;
9
+ status: z.ZodObject<{
10
+ system: z.ZodString;
11
+ value: z.ZodString;
12
+ display: z.ZodOptional<z.ZodString>;
13
+ valid: z.ZodOptional<z.ZodString>;
14
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ member_count: z.ZodNumber;
17
+ }, z.core.$strip>;
18
+ export type FacilityMinimal = z.infer<typeof facilityMinimalSchema>;
19
+ //# sourceMappingURL=facility-minimal.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-minimal.schema.d.ts","sourceRoot":"","sources":["../../../src/models/facility/facility-minimal.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { facilitySchema } from "./facility.schema";
2
+ /**
3
+ * Minimal facility schema (omits server-generated fields).
4
+ */
5
+ export const facilityMinimalSchema = facilitySchema.omit({
6
+ id: true,
7
+ createdAt: true,
8
+ updatedAt: true,
9
+ });
10
+ //# sourceMappingURL=facility-minimal.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-minimal.schema.js","sourceRoot":"","sources":["../../../src/models/facility/facility-minimal.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAiB,MAAM,mBAAmB,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC,IAAI,CAAC;IACvD,EAAE,EAAE,IAAI;IACR,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Partial facility schema (based on minimal, all fields optional).
4
+ */
5
+ export declare const facilityPartialSchema: z.ZodObject<{
6
+ settings_id: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ organization_id: z.ZodOptional<z.ZodString>;
9
+ status: z.ZodOptional<z.ZodObject<{
10
+ system: z.ZodString;
11
+ value: z.ZodString;
12
+ display: z.ZodOptional<z.ZodString>;
13
+ valid: z.ZodOptional<z.ZodString>;
14
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ }, z.core.$strip>>;
16
+ member_count: z.ZodOptional<z.ZodNumber>;
17
+ }, z.core.$strip>;
18
+ export type FacilityPartial = z.infer<typeof facilityPartialSchema>;
19
+ //# sourceMappingURL=facility-partial.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-partial.schema.d.ts","sourceRoot":"","sources":["../../../src/models/facility/facility-partial.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAAkC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { facilityMinimalSchema } from "./facility-minimal.schema";
2
+ /**
3
+ * Partial facility schema (based on minimal, all fields optional).
4
+ */
5
+ export const facilityPartialSchema = facilityMinimalSchema.partial();
6
+ //# sourceMappingURL=facility-partial.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-partial.schema.js","sourceRoot":"","sources":["../../../src/models/facility/facility-partial.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAwB,MAAM,2BAA2B,CAAC;AAExF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,OAAO,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from "zod";
2
+ export declare const facilitySettingsSchema: z.ZodObject<{
3
+ branding_logo: z.ZodOptional<z.ZodString>;
4
+ satusehat_org_id: z.ZodOptional<z.ZodString>;
5
+ satusehat_client_id: z.ZodOptional<z.ZodString>;
6
+ satusehat_client_secret: z.ZodOptional<z.ZodString>;
7
+ queue_number_separator: z.ZodOptional<z.ZodString>;
8
+ queue_number_prefix: z.ZodDefault<z.ZodEnum<{
9
+ none: "none";
10
+ guarantor: "guarantor";
11
+ }>>;
12
+ queue_no_response_count: z.ZodDefault<z.ZodNumber>;
13
+ queue_skip_no_response: z.ZodDefault<z.ZodBoolean>;
14
+ }, z.core.$strip>;
15
+ export type FacilitySettings = z.infer<typeof facilitySettingsSchema>;
16
+ //# sourceMappingURL=facility-settings.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-settings.schema.d.ts","sourceRoot":"","sources":["../../../src/models/facility/facility-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBASjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export const facilitySettingsSchema = z.object({
3
+ branding_logo: z.string().optional(),
4
+ satusehat_org_id: z.string().optional(),
5
+ satusehat_client_id: z.string().optional(),
6
+ satusehat_client_secret: z.string().optional(),
7
+ queue_number_separator: z.string().optional(),
8
+ queue_number_prefix: z.enum(["none", "guarantor"]).default("guarantor"),
9
+ queue_no_response_count: z.number().default(3),
10
+ queue_skip_no_response: z.boolean().default(true),
11
+ });
12
+ //# sourceMappingURL=facility-settings.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-settings.schema.js","sourceRoot":"","sources":["../../../src/models/facility/facility-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7C,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACvE,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CAClD,CAAC,CAAC"}
@@ -0,0 +1,82 @@
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 facilitySchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodString;
7
+ member_count: z.ZodNumber;
8
+ organization_id: z.ZodString;
9
+ status: z.ZodObject<{
10
+ system: z.ZodString;
11
+ value: z.ZodString;
12
+ display: z.ZodOptional<z.ZodString>;
13
+ valid: z.ZodOptional<z.ZodString>;
14
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ settings_id: z.ZodString;
17
+ createdAt: z.ZodString;
18
+ updatedAt: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export type Facility = z.infer<typeof facilitySchema>;
21
+ export declare const FacilityMongooseSchema: MongooseSchema;
22
+ export type FacilityDocument = InferDocument<typeof facilitySchema>;
23
+ export declare const FacilityModel: MongooseModel<{
24
+ [x: number]: unknown;
25
+ [x: symbol]: unknown;
26
+ [x: string]: unknown;
27
+ }, {}, {}, {
28
+ id: string;
29
+ }, import("mongoose").Document<unknown, {}, {
30
+ [x: number]: unknown;
31
+ [x: symbol]: unknown;
32
+ [x: string]: unknown;
33
+ }, {
34
+ id: string;
35
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
36
+ [x: number]: unknown;
37
+ [x: symbol]: unknown;
38
+ [x: string]: unknown;
39
+ } & Required<{
40
+ _id: unknown;
41
+ }> & {
42
+ __v: number;
43
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
44
+ id: string;
45
+ }>, MongooseSchema<any, MongooseModel<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
46
+ [x: number]: unknown;
47
+ [x: symbol]: unknown;
48
+ [x: string]: unknown;
49
+ }, import("mongoose").Document<unknown, {}, {
50
+ [x: number]: unknown;
51
+ [x: symbol]: unknown;
52
+ [x: string]: unknown;
53
+ }, {
54
+ id: string;
55
+ }, import("mongoose").DefaultSchemaOptions> & Omit<{
56
+ [x: number]: unknown;
57
+ [x: symbol]: unknown;
58
+ [x: string]: unknown;
59
+ } & Required<{
60
+ _id: unknown;
61
+ }> & {
62
+ __v: number;
63
+ }, "id"> & import("mongoose").HydratedDocumentOverrides<{
64
+ id: string;
65
+ }>, unknown, {
66
+ [x: number]: {};
67
+ [x: symbol]: {};
68
+ [x: string]: {};
69
+ } & Required<{
70
+ _id: unknown;
71
+ }> & {
72
+ __v: number;
73
+ }>, {
74
+ [x: number]: {};
75
+ [x: symbol]: {};
76
+ [x: string]: {};
77
+ } & Required<{
78
+ _id: unknown;
79
+ }> & {
80
+ __v: number;
81
+ }>;
82
+ //# sourceMappingURL=facility.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility.schema.d.ts","sourceRoot":"","sources":["../../../src/models/facility/facility.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;AAQ1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;iBAYzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,sBAAsB,EAAE,cAAiD,CAAC;AACvF,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,OAAO,cAAc,CAAC,CAAC;AAGpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmD,CAAC"}
@@ -0,0 +1,23 @@
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 facilitySchema = z.object({
8
+ id: z.string().uuid({ message: "id must be a valid UUID" }),
9
+ name: z.string().min(1, { message: "name is required" }),
10
+ member_count: z
11
+ .number()
12
+ .int()
13
+ .positive({ message: "member_count must be a positive integer" }),
14
+ organization_id: objectIdSchema,
15
+ status: codedConceptSchema,
16
+ settings_id: objectIdSchema,
17
+ createdAt: timestampSchema,
18
+ updatedAt: timestampSchema,
19
+ });
20
+ export const FacilityMongooseSchema = toMongooseSchema(facilitySchema);
21
+ const FacilityModelName = "facilities";
22
+ export const FacilityModel = model(FacilityModelName, FacilityMongooseSchema);
23
+ //# sourceMappingURL=facility.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility.schema.js","sourceRoot":"","sources":["../../../src/models/facility/facility.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;AAM1D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAC3D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACxD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,CAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;IACnE,eAAe,EAAE,cAAc;IAC/B,MAAM,EAAE,kBAAkB;IAC1B,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,eAAe;IAC1B,SAAS,EAAE,eAAe;CAC3B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,sBAAsB,GAAmB,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAGvF,MAAM,iBAAiB,GAAG,YAAY,CAAC;AACvC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./facility.schema";
2
+ export * from "./facility-settings.schema";
3
+ export * from "./facility-minimal.schema";
4
+ export * from "./facility-partial.schema";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/facility/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}