@greensecurity/javascript-sdk 0.9.1

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 (432) hide show
  1. package/.devcontainer/README.md +35 -0
  2. package/.devcontainer/devcontainer.json +45 -0
  3. package/FUNCTIONS.md +109 -0
  4. package/REACT_QUERY.md +318 -0
  5. package/README.md +561 -0
  6. package/RUNTIMES.md +48 -0
  7. package/core.d.ts +10 -0
  8. package/core.d.ts.map +1 -0
  9. package/core.js +17 -0
  10. package/core.js.map +1 -0
  11. package/docs/sdks/greensecurity/README.md +14 -0
  12. package/docs/sdks/organizations/README.md +252 -0
  13. package/docs/sdks/user/README.md +348 -0
  14. package/docs/sdks/vendors/README.md +219 -0
  15. package/funcs/organizationsGetFacility.d.ts +17 -0
  16. package/funcs/organizationsGetFacility.d.ts.map +1 -0
  17. package/funcs/organizationsGetFacility.js +117 -0
  18. package/funcs/organizationsGetFacility.js.map +1 -0
  19. package/funcs/organizationsListOrSearchFacilities.d.ts +28 -0
  20. package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -0
  21. package/funcs/organizationsListOrSearchFacilities.js +131 -0
  22. package/funcs/organizationsListOrSearchFacilities.js.map +1 -0
  23. package/funcs/userGetCurrentUser.d.ts +16 -0
  24. package/funcs/userGetCurrentUser.d.ts.map +1 -0
  25. package/funcs/userGetCurrentUser.js +101 -0
  26. package/funcs/userGetCurrentUser.js.map +1 -0
  27. package/funcs/userGetUserById.d.ts +17 -0
  28. package/funcs/userGetUserById.d.ts.map +1 -0
  29. package/funcs/userGetUserById.js +117 -0
  30. package/funcs/userGetUserById.js.map +1 -0
  31. package/funcs/userLogsUserIntoTheSystem.d.ts +46 -0
  32. package/funcs/userLogsUserIntoTheSystem.d.ts.map +1 -0
  33. package/funcs/userLogsUserIntoTheSystem.js +137 -0
  34. package/funcs/userLogsUserIntoTheSystem.js.map +1 -0
  35. package/funcs/vendorsCreateVendorRegistration.d.ts +16 -0
  36. package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -0
  37. package/funcs/vendorsCreateVendorRegistration.js +107 -0
  38. package/funcs/vendorsCreateVendorRegistration.js.map +1 -0
  39. package/funcs/vendorsListVendorJobTitles.d.ts +16 -0
  40. package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -0
  41. package/funcs/vendorsListVendorJobTitles.js +114 -0
  42. package/funcs/vendorsListVendorJobTitles.js.map +1 -0
  43. package/hooks/hooks.d.ts +24 -0
  44. package/hooks/hooks.d.ts.map +1 -0
  45. package/hooks/hooks.js +86 -0
  46. package/hooks/hooks.js.map +1 -0
  47. package/hooks/index.d.ts +3 -0
  48. package/hooks/index.d.ts.map +1 -0
  49. package/hooks/index.js +22 -0
  50. package/hooks/index.js.map +1 -0
  51. package/hooks/registration.d.ts +3 -0
  52. package/hooks/registration.d.ts.map +1 -0
  53. package/hooks/registration.js +15 -0
  54. package/hooks/registration.js.map +1 -0
  55. package/hooks/types.d.ts +78 -0
  56. package/hooks/types.d.ts.map +1 -0
  57. package/hooks/types.js +6 -0
  58. package/hooks/types.js.map +1 -0
  59. package/index.d.ts +4 -0
  60. package/index.d.ts.map +1 -0
  61. package/index.js +46 -0
  62. package/index.js.map +1 -0
  63. package/jsr.json +27 -0
  64. package/lib/base64.d.ts +10 -0
  65. package/lib/base64.d.ts.map +1 -0
  66. package/lib/base64.js +71 -0
  67. package/lib/base64.js.map +1 -0
  68. package/lib/config.d.ts +38 -0
  69. package/lib/config.d.ts.map +1 -0
  70. package/lib/config.js +46 -0
  71. package/lib/config.js.map +1 -0
  72. package/lib/dlv.d.ts +14 -0
  73. package/lib/dlv.d.ts.map +1 -0
  74. package/lib/dlv.js +49 -0
  75. package/lib/dlv.js.map +1 -0
  76. package/lib/encodings.d.ts +52 -0
  77. package/lib/encodings.d.ts.map +1 -0
  78. package/lib/encodings.js +368 -0
  79. package/lib/encodings.js.map +1 -0
  80. package/lib/env.d.ts +16 -0
  81. package/lib/env.d.ts.map +1 -0
  82. package/lib/env.js +66 -0
  83. package/lib/env.js.map +1 -0
  84. package/lib/files.d.ts +8 -0
  85. package/lib/files.d.ts.map +1 -0
  86. package/lib/files.js +36 -0
  87. package/lib/files.js.map +1 -0
  88. package/lib/http.d.ts +67 -0
  89. package/lib/http.d.ts.map +1 -0
  90. package/lib/http.js +217 -0
  91. package/lib/http.js.map +1 -0
  92. package/lib/is-plain-object.d.ts +2 -0
  93. package/lib/is-plain-object.d.ts.map +1 -0
  94. package/lib/is-plain-object.js +41 -0
  95. package/lib/is-plain-object.js.map +1 -0
  96. package/lib/logger.d.ts +6 -0
  97. package/lib/logger.d.ts.map +1 -0
  98. package/lib/logger.js +6 -0
  99. package/lib/logger.js.map +1 -0
  100. package/lib/matchers.d.ts +64 -0
  101. package/lib/matchers.d.ts.map +1 -0
  102. package/lib/matchers.js +204 -0
  103. package/lib/matchers.js.map +1 -0
  104. package/lib/primitives.d.ts +23 -0
  105. package/lib/primitives.d.ts.map +1 -0
  106. package/lib/primitives.js +104 -0
  107. package/lib/primitives.js.map +1 -0
  108. package/lib/retries.d.ts +38 -0
  109. package/lib/retries.d.ts.map +1 -0
  110. package/lib/retries.js +153 -0
  111. package/lib/retries.js.map +1 -0
  112. package/lib/schemas.d.ts +19 -0
  113. package/lib/schemas.d.ts.map +1 -0
  114. package/lib/schemas.js +62 -0
  115. package/lib/schemas.js.map +1 -0
  116. package/lib/sdks.d.ts +60 -0
  117. package/lib/sdks.d.ts.map +1 -0
  118. package/lib/sdks.js +280 -0
  119. package/lib/sdks.js.map +1 -0
  120. package/lib/security.d.ts +82 -0
  121. package/lib/security.d.ts.map +1 -0
  122. package/lib/security.js +145 -0
  123. package/lib/security.js.map +1 -0
  124. package/lib/url.d.ts +5 -0
  125. package/lib/url.d.ts.map +1 -0
  126. package/lib/url.js +25 -0
  127. package/lib/url.js.map +1 -0
  128. package/models/components/contact.d.ts +135 -0
  129. package/models/components/contact.d.ts.map +1 -0
  130. package/models/components/contact.js +172 -0
  131. package/models/components/contact.js.map +1 -0
  132. package/models/components/departmentsummary.d.ts +34 -0
  133. package/models/components/departmentsummary.d.ts.map +1 -0
  134. package/models/components/departmentsummary.js +71 -0
  135. package/models/components/departmentsummary.js.map +1 -0
  136. package/models/components/desc.d.ts +25 -0
  137. package/models/components/desc.d.ts.map +1 -0
  138. package/models/components/desc.js +66 -0
  139. package/models/components/desc.js.map +1 -0
  140. package/models/components/expand.d.ts +79 -0
  141. package/models/components/expand.d.ts.map +1 -0
  142. package/models/components/expand.js +79 -0
  143. package/models/components/expand.js.map +1 -0
  144. package/models/components/facility.d.ts +544 -0
  145. package/models/components/facility.d.ts.map +1 -0
  146. package/models/components/facility.js +797 -0
  147. package/models/components/facility.js.map +1 -0
  148. package/models/components/facilitysummary.d.ts +34 -0
  149. package/models/components/facilitysummary.d.ts.map +1 -0
  150. package/models/components/facilitysummary.js +71 -0
  151. package/models/components/facilitysummary.js.map +1 -0
  152. package/models/components/imageset.d.ts +38 -0
  153. package/models/components/imageset.d.ts.map +1 -0
  154. package/models/components/imageset.js +75 -0
  155. package/models/components/imageset.js.map +1 -0
  156. package/models/components/index.d.ts +20 -0
  157. package/models/components/index.d.ts.map +1 -0
  158. package/models/components/index.js +39 -0
  159. package/models/components/index.js.map +1 -0
  160. package/models/components/loginemailandpassword.d.ts +45 -0
  161. package/models/components/loginemailandpassword.d.ts.map +1 -0
  162. package/models/components/loginemailandpassword.js +82 -0
  163. package/models/components/loginemailandpassword.js.map +1 -0
  164. package/models/components/loginrequirementsfromemail.d.ts +40 -0
  165. package/models/components/loginrequirementsfromemail.d.ts.map +1 -0
  166. package/models/components/loginrequirementsfromemail.js +80 -0
  167. package/models/components/loginrequirementsfromemail.js.map +1 -0
  168. package/models/components/mfarequiredresponse.d.ts +98 -0
  169. package/models/components/mfarequiredresponse.d.ts.map +1 -0
  170. package/models/components/mfarequiredresponse.js +126 -0
  171. package/models/components/mfarequiredresponse.js.map +1 -0
  172. package/models/components/pager.d.ts +69 -0
  173. package/models/components/pager.d.ts.map +1 -0
  174. package/models/components/pager.js +97 -0
  175. package/models/components/pager.js.map +1 -0
  176. package/models/components/passwordrequiredresponse.d.ts +62 -0
  177. package/models/components/passwordrequiredresponse.d.ts.map +1 -0
  178. package/models/components/passwordrequiredresponse.js +92 -0
  179. package/models/components/passwordrequiredresponse.js.map +1 -0
  180. package/models/components/samlloginrequiredresponse.d.ts +73 -0
  181. package/models/components/samlloginrequiredresponse.d.ts.map +1 -0
  182. package/models/components/samlloginrequiredresponse.js +106 -0
  183. package/models/components/samlloginrequiredresponse.js.map +1 -0
  184. package/models/components/security.d.ts +31 -0
  185. package/models/components/security.d.ts.map +1 -0
  186. package/models/components/security.js +80 -0
  187. package/models/components/security.js.map +1 -0
  188. package/models/components/status.d.ts +37 -0
  189. package/models/components/status.d.ts.map +1 -0
  190. package/models/components/status.js +65 -0
  191. package/models/components/status.js.map +1 -0
  192. package/models/components/systemsummary.d.ts +34 -0
  193. package/models/components/systemsummary.d.ts.map +1 -0
  194. package/models/components/systemsummary.js +71 -0
  195. package/models/components/systemsummary.js.map +1 -0
  196. package/models/components/user.d.ts +265 -0
  197. package/models/components/user.d.ts.map +1 -0
  198. package/models/components/user.js +284 -0
  199. package/models/components/user.js.map +1 -0
  200. package/models/components/vendorjobtitle.d.ts +41 -0
  201. package/models/components/vendorjobtitle.d.ts.map +1 -0
  202. package/models/components/vendorjobtitle.js +71 -0
  203. package/models/components/vendorjobtitle.js.map +1 -0
  204. package/models/components/vendortype.d.ts +69 -0
  205. package/models/components/vendortype.d.ts.map +1 -0
  206. package/models/components/vendortype.js +135 -0
  207. package/models/components/vendortype.js.map +1 -0
  208. package/models/errors/apierror.d.ts +8 -0
  209. package/models/errors/apierror.d.ts.map +1 -0
  210. package/models/errors/apierror.js +21 -0
  211. package/models/errors/apierror.js.map +1 -0
  212. package/models/errors/apierrorresponse.d.ts +51 -0
  213. package/models/errors/apierrorresponse.d.ts.map +1 -0
  214. package/models/errors/apierrorresponse.js +91 -0
  215. package/models/errors/apierrorresponse.js.map +1 -0
  216. package/models/errors/httpclienterrors.d.ts +44 -0
  217. package/models/errors/httpclienterrors.d.ts.map +1 -0
  218. package/models/errors/httpclienterrors.js +78 -0
  219. package/models/errors/httpclienterrors.js.map +1 -0
  220. package/models/errors/index.d.ts +5 -0
  221. package/models/errors/index.d.ts.map +1 -0
  222. package/models/errors/index.js +24 -0
  223. package/models/errors/index.js.map +1 -0
  224. package/models/errors/sdkvalidationerror.d.ts +20 -0
  225. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  226. package/models/errors/sdkvalidationerror.js +115 -0
  227. package/models/errors/sdkvalidationerror.js.map +1 -0
  228. package/models/operations/createvendorregistration.d.ts +115 -0
  229. package/models/operations/createvendorregistration.d.ts.map +1 -0
  230. package/models/operations/createvendorregistration.js +143 -0
  231. package/models/operations/createvendorregistration.js.map +1 -0
  232. package/models/operations/getfacility.d.ts +32 -0
  233. package/models/operations/getfacility.d.ts.map +1 -0
  234. package/models/operations/getfacility.js +69 -0
  235. package/models/operations/getfacility.js.map +1 -0
  236. package/models/operations/getuserbyid.d.ts +32 -0
  237. package/models/operations/getuserbyid.d.ts.map +1 -0
  238. package/models/operations/getuserbyid.js +69 -0
  239. package/models/operations/getuserbyid.js.map +1 -0
  240. package/models/operations/index.d.ts +7 -0
  241. package/models/operations/index.d.ts.map +1 -0
  242. package/models/operations/index.js +26 -0
  243. package/models/operations/index.js.map +1 -0
  244. package/models/operations/listorsearchfacilities.d.ts +110 -0
  245. package/models/operations/listorsearchfacilities.d.ts.map +1 -0
  246. package/models/operations/listorsearchfacilities.js +130 -0
  247. package/models/operations/listorsearchfacilities.js.map +1 -0
  248. package/models/operations/listvendorjobtitles.d.ts +86 -0
  249. package/models/operations/listvendorjobtitles.d.ts.map +1 -0
  250. package/models/operations/listvendorjobtitles.js +118 -0
  251. package/models/operations/listvendorjobtitles.js.map +1 -0
  252. package/models/operations/logsuserintothesystem.d.ts +98 -0
  253. package/models/operations/logsuserintothesystem.d.ts.map +1 -0
  254. package/models/operations/logsuserintothesystem.js +164 -0
  255. package/models/operations/logsuserintothesystem.js.map +1 -0
  256. package/package.json +41 -0
  257. package/react-query/_context.d.ts +8 -0
  258. package/react-query/_context.d.ts.map +1 -0
  259. package/react-query/_context.js +21 -0
  260. package/react-query/_context.js.map +1 -0
  261. package/react-query/_types.d.ts +14 -0
  262. package/react-query/_types.d.ts.map +1 -0
  263. package/react-query/_types.js +6 -0
  264. package/react-query/_types.js.map +1 -0
  265. package/react-query/index.d.ts +10 -0
  266. package/react-query/index.d.ts.map +1 -0
  267. package/react-query/index.js +32 -0
  268. package/react-query/index.js.map +1 -0
  269. package/react-query/organizationsGetFacility.d.ts +31 -0
  270. package/react-query/organizationsGetFacility.d.ts.map +1 -0
  271. package/react-query/organizationsGetFacility.js +87 -0
  272. package/react-query/organizationsGetFacility.js.map +1 -0
  273. package/react-query/organizationsListOrSearchFacilities.d.ts +91 -0
  274. package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -0
  275. package/react-query/organizationsListOrSearchFacilities.js +132 -0
  276. package/react-query/organizationsListOrSearchFacilities.js.map +1 -0
  277. package/react-query/userGetCurrentUser.d.ts +29 -0
  278. package/react-query/userGetCurrentUser.d.ts.map +1 -0
  279. package/react-query/userGetCurrentUser.js +75 -0
  280. package/react-query/userGetCurrentUser.js.map +1 -0
  281. package/react-query/userGetUserById.d.ts +31 -0
  282. package/react-query/userGetUserById.d.ts.map +1 -0
  283. package/react-query/userGetUserById.js +87 -0
  284. package/react-query/userGetUserById.js.map +1 -0
  285. package/react-query/userLogsUserIntoTheSystem.d.ts +53 -0
  286. package/react-query/userLogsUserIntoTheSystem.d.ts.map +1 -0
  287. package/react-query/userLogsUserIntoTheSystem.js +77 -0
  288. package/react-query/userLogsUserIntoTheSystem.js.map +1 -0
  289. package/react-query/vendorsCreateVendorRegistration.d.ts +23 -0
  290. package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -0
  291. package/react-query/vendorsCreateVendorRegistration.js +51 -0
  292. package/react-query/vendorsCreateVendorRegistration.js.map +1 -0
  293. package/react-query/vendorsListVendorJobTitles.d.ts +53 -0
  294. package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -0
  295. package/react-query/vendorsListVendorJobTitles.js +102 -0
  296. package/react-query/vendorsListVendorJobTitles.js.map +1 -0
  297. package/sdk/index.d.ts +2 -0
  298. package/sdk/index.d.ts.map +1 -0
  299. package/sdk/index.js +21 -0
  300. package/sdk/index.js.map +1 -0
  301. package/sdk/organizations.d.ts +33 -0
  302. package/sdk/organizations.d.ts.map +1 -0
  303. package/sdk/organizations.js +45 -0
  304. package/sdk/organizations.js.map +1 -0
  305. package/sdk/sdk.d.ts +13 -0
  306. package/sdk/sdk.d.ts.map +1 -0
  307. package/sdk/sdk.js +23 -0
  308. package/sdk/sdk.js.map +1 -0
  309. package/sdk/user.d.ts +57 -0
  310. package/sdk/user.d.ts.map +1 -0
  311. package/sdk/user.js +72 -0
  312. package/sdk/user.js.map +1 -0
  313. package/sdk/vendors.d.ts +19 -0
  314. package/sdk/vendors.d.ts.map +1 -0
  315. package/sdk/vendors.js +32 -0
  316. package/sdk/vendors.js.map +1 -0
  317. package/src/core.ts +13 -0
  318. package/src/funcs/organizationsGetFacility.ts +144 -0
  319. package/src/funcs/organizationsListOrSearchFacilities.ts +152 -0
  320. package/src/funcs/userGetCurrentUser.ts +118 -0
  321. package/src/funcs/userGetUserById.ts +141 -0
  322. package/src/funcs/userLogsUserIntoTheSystem.ts +161 -0
  323. package/src/funcs/vendorsCreateVendorRegistration.ts +132 -0
  324. package/src/funcs/vendorsListVendorJobTitles.ts +141 -0
  325. package/src/hooks/hooks.ts +132 -0
  326. package/src/hooks/index.ts +6 -0
  327. package/src/hooks/registration.ts +14 -0
  328. package/src/hooks/types.ts +110 -0
  329. package/src/index.ts +7 -0
  330. package/src/lib/base64.ts +37 -0
  331. package/src/lib/config.ts +76 -0
  332. package/src/lib/dlv.ts +53 -0
  333. package/src/lib/encodings.ts +483 -0
  334. package/src/lib/env.ts +43 -0
  335. package/src/lib/files.ts +40 -0
  336. package/src/lib/http.ts +323 -0
  337. package/src/lib/is-plain-object.ts +43 -0
  338. package/src/lib/logger.ts +9 -0
  339. package/src/lib/matchers.ts +322 -0
  340. package/src/lib/primitives.ts +136 -0
  341. package/src/lib/retries.ts +218 -0
  342. package/src/lib/schemas.ts +91 -0
  343. package/src/lib/sdks.ts +400 -0
  344. package/src/lib/security.ts +260 -0
  345. package/src/lib/url.ts +33 -0
  346. package/src/models/components/contact.ts +268 -0
  347. package/src/models/components/departmentsummary.ts +73 -0
  348. package/src/models/components/desc.ts +48 -0
  349. package/src/models/components/expand.ts +52 -0
  350. package/src/models/components/facility.ts +1334 -0
  351. package/src/models/components/facilitysummary.ts +71 -0
  352. package/src/models/components/imageset.ts +77 -0
  353. package/src/models/components/index.ts +23 -0
  354. package/src/models/components/loginemailandpassword.ts +95 -0
  355. package/src/models/components/loginrequirementsfromemail.ts +88 -0
  356. package/src/models/components/mfarequiredresponse.ts +160 -0
  357. package/src/models/components/pager.ts +126 -0
  358. package/src/models/components/passwordrequiredresponse.ts +105 -0
  359. package/src/models/components/samlloginrequiredresponse.ts +136 -0
  360. package/src/models/components/security.ts +75 -0
  361. package/src/models/components/status.ts +38 -0
  362. package/src/models/components/systemsummary.ts +69 -0
  363. package/src/models/components/user.ts +451 -0
  364. package/src/models/components/vendorjobtitle.ts +76 -0
  365. package/src/models/components/vendortype.ts +170 -0
  366. package/src/models/errors/apierror.ts +27 -0
  367. package/src/models/errors/apierrorresponse.ts +95 -0
  368. package/src/models/errors/httpclienterrors.ts +62 -0
  369. package/src/models/errors/index.ts +8 -0
  370. package/src/models/errors/sdkvalidationerror.ts +97 -0
  371. package/src/models/operations/createvendorregistration.ts +237 -0
  372. package/src/models/operations/getfacility.ts +69 -0
  373. package/src/models/operations/getuserbyid.ts +69 -0
  374. package/src/models/operations/index.ts +10 -0
  375. package/src/models/operations/listorsearchfacilities.ts +219 -0
  376. package/src/models/operations/listvendorjobtitles.ts +179 -0
  377. package/src/models/operations/logsuserintothesystem.ts +270 -0
  378. package/src/react-query/_types.ts +91 -0
  379. package/src/react-query/index.ts +14 -0
  380. package/src/react-query/organizationsGetFacility.ts +154 -0
  381. package/src/react-query/organizationsListOrSearchFacilities.ts +241 -0
  382. package/src/react-query/userGetCurrentUser.ts +124 -0
  383. package/src/react-query/userGetUserById.ts +152 -0
  384. package/src/react-query/userLogsUserIntoTheSystem.ts +119 -0
  385. package/src/react-query/vendorsCreateVendorRegistration.ts +93 -0
  386. package/src/react-query/vendorsListVendorJobTitles.ts +194 -0
  387. package/src/sdk/index.ts +5 -0
  388. package/src/sdk/organizations.ts +59 -0
  389. package/src/sdk/sdk.ts +25 -0
  390. package/src/sdk/user.ts +92 -0
  391. package/src/sdk/vendors.ts +45 -0
  392. package/src/types/blobs.ts +31 -0
  393. package/src/types/constdatetime.ts +15 -0
  394. package/src/types/enums.ts +16 -0
  395. package/src/types/fp.ts +50 -0
  396. package/src/types/index.ts +11 -0
  397. package/src/types/operations.ts +105 -0
  398. package/src/types/rfcdate.ts +54 -0
  399. package/src/types/streams.ts +21 -0
  400. package/tsconfig.json +41 -0
  401. package/types/blobs.d.ts +4 -0
  402. package/types/blobs.d.ts.map +1 -0
  403. package/types/blobs.js +62 -0
  404. package/types/blobs.js.map +1 -0
  405. package/types/constdatetime.d.ts +3 -0
  406. package/types/constdatetime.d.ts.map +1 -0
  407. package/types/constdatetime.js +46 -0
  408. package/types/constdatetime.js.map +1 -0
  409. package/types/enums.d.ts +12 -0
  410. package/types/enums.d.ts.map +1 -0
  411. package/types/enums.js +10 -0
  412. package/types/enums.js.map +1 -0
  413. package/types/fp.d.ts +31 -0
  414. package/types/fp.d.ts.map +1 -0
  415. package/types/fp.js +37 -0
  416. package/types/fp.js.map +1 -0
  417. package/types/index.d.ts +8 -0
  418. package/types/index.d.ts.map +1 -0
  419. package/types/index.js +16 -0
  420. package/types/index.js.map +1 -0
  421. package/types/operations.d.ts +27 -0
  422. package/types/operations.d.ts.map +1 -0
  423. package/types/operations.js +83 -0
  424. package/types/operations.js.map +1 -0
  425. package/types/rfcdate.d.ts +21 -0
  426. package/types/rfcdate.d.ts.map +1 -0
  427. package/types/rfcdate.js +46 -0
  428. package/types/rfcdate.js.map +1 -0
  429. package/types/streams.d.ts +2 -0
  430. package/types/streams.d.ts.map +1 -0
  431. package/types/streams.js +18 -0
  432. package/types/streams.js.map +1 -0
@@ -0,0 +1,135 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { DepartmentSummary, DepartmentSummary$Outbound } from "./departmentsummary.js";
6
+ import { FacilitySummary, FacilitySummary$Outbound } from "./facilitysummary.js";
7
+ import { SystemSummary, SystemSummary$Outbound } from "./systemsummary.js";
8
+ export type ContactFacility = FacilitySummary | number;
9
+ export type System = SystemSummary | number;
10
+ export declare const ContactStatus: {
11
+ readonly Active: "Active";
12
+ readonly Inactive: "Inactive";
13
+ readonly Deleted: "Deleted";
14
+ };
15
+ export type ContactStatus = ClosedEnum<typeof ContactStatus>;
16
+ export type Department = DepartmentSummary | number;
17
+ /**
18
+ * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
19
+ */
20
+ export type Contact = {
21
+ facility?: FacilitySummary | number | undefined;
22
+ system?: SystemSummary | number | undefined;
23
+ status: ContactStatus;
24
+ position?: string | null | undefined;
25
+ department?: DepartmentSummary | number | null | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const ContactFacility$inboundSchema: z.ZodType<ContactFacility, z.ZodTypeDef, unknown>;
29
+ /** @internal */
30
+ export type ContactFacility$Outbound = FacilitySummary$Outbound | number;
31
+ /** @internal */
32
+ export declare const ContactFacility$outboundSchema: z.ZodType<ContactFacility$Outbound, z.ZodTypeDef, ContactFacility>;
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export declare namespace ContactFacility$ {
38
+ /** @deprecated use `ContactFacility$inboundSchema` instead. */
39
+ const inboundSchema: z.ZodType<ContactFacility, z.ZodTypeDef, unknown>;
40
+ /** @deprecated use `ContactFacility$outboundSchema` instead. */
41
+ const outboundSchema: z.ZodType<ContactFacility$Outbound, z.ZodTypeDef, ContactFacility>;
42
+ /** @deprecated use `ContactFacility$Outbound` instead. */
43
+ type Outbound = ContactFacility$Outbound;
44
+ }
45
+ export declare function contactFacilityToJSON(contactFacility: ContactFacility): string;
46
+ export declare function contactFacilityFromJSON(jsonString: string): SafeParseResult<ContactFacility, SDKValidationError>;
47
+ /** @internal */
48
+ export declare const System$inboundSchema: z.ZodType<System, z.ZodTypeDef, unknown>;
49
+ /** @internal */
50
+ export type System$Outbound = SystemSummary$Outbound | number;
51
+ /** @internal */
52
+ export declare const System$outboundSchema: z.ZodType<System$Outbound, z.ZodTypeDef, System>;
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export declare namespace System$ {
58
+ /** @deprecated use `System$inboundSchema` instead. */
59
+ const inboundSchema: z.ZodType<System, z.ZodTypeDef, unknown>;
60
+ /** @deprecated use `System$outboundSchema` instead. */
61
+ const outboundSchema: z.ZodType<System$Outbound, z.ZodTypeDef, System>;
62
+ /** @deprecated use `System$Outbound` instead. */
63
+ type Outbound = System$Outbound;
64
+ }
65
+ export declare function systemToJSON(system: System): string;
66
+ export declare function systemFromJSON(jsonString: string): SafeParseResult<System, SDKValidationError>;
67
+ /** @internal */
68
+ export declare const ContactStatus$inboundSchema: z.ZodNativeEnum<typeof ContactStatus>;
69
+ /** @internal */
70
+ export declare const ContactStatus$outboundSchema: z.ZodNativeEnum<typeof ContactStatus>;
71
+ /**
72
+ * @internal
73
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
+ */
75
+ export declare namespace ContactStatus$ {
76
+ /** @deprecated use `ContactStatus$inboundSchema` instead. */
77
+ const inboundSchema: z.ZodNativeEnum<{
78
+ readonly Active: "Active";
79
+ readonly Inactive: "Inactive";
80
+ readonly Deleted: "Deleted";
81
+ }>;
82
+ /** @deprecated use `ContactStatus$outboundSchema` instead. */
83
+ const outboundSchema: z.ZodNativeEnum<{
84
+ readonly Active: "Active";
85
+ readonly Inactive: "Inactive";
86
+ readonly Deleted: "Deleted";
87
+ }>;
88
+ }
89
+ /** @internal */
90
+ export declare const Department$inboundSchema: z.ZodType<Department, z.ZodTypeDef, unknown>;
91
+ /** @internal */
92
+ export type Department$Outbound = DepartmentSummary$Outbound | number;
93
+ /** @internal */
94
+ export declare const Department$outboundSchema: z.ZodType<Department$Outbound, z.ZodTypeDef, Department>;
95
+ /**
96
+ * @internal
97
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
+ */
99
+ export declare namespace Department$ {
100
+ /** @deprecated use `Department$inboundSchema` instead. */
101
+ const inboundSchema: z.ZodType<Department, z.ZodTypeDef, unknown>;
102
+ /** @deprecated use `Department$outboundSchema` instead. */
103
+ const outboundSchema: z.ZodType<Department$Outbound, z.ZodTypeDef, Department>;
104
+ /** @deprecated use `Department$Outbound` instead. */
105
+ type Outbound = Department$Outbound;
106
+ }
107
+ export declare function departmentToJSON(department: Department): string;
108
+ export declare function departmentFromJSON(jsonString: string): SafeParseResult<Department, SDKValidationError>;
109
+ /** @internal */
110
+ export declare const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown>;
111
+ /** @internal */
112
+ export type Contact$Outbound = {
113
+ facility?: FacilitySummary$Outbound | number | undefined;
114
+ system?: SystemSummary$Outbound | number | undefined;
115
+ status: string;
116
+ position?: string | null | undefined;
117
+ department?: DepartmentSummary$Outbound | number | null | undefined;
118
+ };
119
+ /** @internal */
120
+ export declare const Contact$outboundSchema: z.ZodType<Contact$Outbound, z.ZodTypeDef, Contact>;
121
+ /**
122
+ * @internal
123
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
124
+ */
125
+ export declare namespace Contact$ {
126
+ /** @deprecated use `Contact$inboundSchema` instead. */
127
+ const inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown>;
128
+ /** @deprecated use `Contact$outboundSchema` instead. */
129
+ const outboundSchema: z.ZodType<Contact$Outbound, z.ZodTypeDef, Contact>;
130
+ /** @deprecated use `Contact$Outbound` instead. */
131
+ type Outbound = Contact$Outbound;
132
+ }
133
+ export declare function contactToJSON(contact: Contact): string;
134
+ export declare function contactFromJSON(jsonString: string): SafeParseResult<Contact, SDKValidationError>;
135
+ //# sourceMappingURL=contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/models/components/contact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG,MAAM,CAAC;AAEvD,MAAM,MAAM,MAAM,GAAG,aAAa,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,MAAM,CAAC;AAEpD;;GAEG;A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@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Contact$ = exports.Contact$outboundSchema = exports.Contact$inboundSchema = exports.Department$ = exports.Department$outboundSchema = exports.Department$inboundSchema = exports.ContactStatus$ = exports.ContactStatus$outboundSchema = exports.ContactStatus$inboundSchema = exports.System$ = exports.System$outboundSchema = exports.System$inboundSchema = exports.ContactFacility$ = exports.ContactFacility$outboundSchema = exports.ContactFacility$inboundSchema = exports.ContactStatus = void 0;
40
+ exports.contactFacilityToJSON = contactFacilityToJSON;
41
+ exports.contactFacilityFromJSON = contactFacilityFromJSON;
42
+ exports.systemToJSON = systemToJSON;
43
+ exports.systemFromJSON = systemFromJSON;
44
+ exports.departmentToJSON = departmentToJSON;
45
+ exports.departmentFromJSON = departmentFromJSON;
46
+ exports.contactToJSON = contactToJSON;
47
+ exports.contactFromJSON = contactFromJSON;
48
+ const z = __importStar(require("zod"));
49
+ const schemas_js_1 = require("../../lib/schemas.js");
50
+ const departmentsummary_js_1 = require("./departmentsummary.js");
51
+ const facilitysummary_js_1 = require("./facilitysummary.js");
52
+ const systemsummary_js_1 = require("./systemsummary.js");
53
+ exports.ContactStatus = {
54
+ Active: "Active",
55
+ Inactive: "Inactive",
56
+ Deleted: "Deleted",
57
+ };
58
+ /** @internal */
59
+ exports.ContactFacility$inboundSchema = z.union([facilitysummary_js_1.FacilitySummary$inboundSchema, z.number().int()]);
60
+ /** @internal */
61
+ exports.ContactFacility$outboundSchema = z.union([facilitysummary_js_1.FacilitySummary$outboundSchema, z.number().int()]);
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ var ContactFacility$;
67
+ (function (ContactFacility$) {
68
+ /** @deprecated use `ContactFacility$inboundSchema` instead. */
69
+ ContactFacility$.inboundSchema = exports.ContactFacility$inboundSchema;
70
+ /** @deprecated use `ContactFacility$outboundSchema` instead. */
71
+ ContactFacility$.outboundSchema = exports.ContactFacility$outboundSchema;
72
+ })(ContactFacility$ || (exports.ContactFacility$ = ContactFacility$ = {}));
73
+ function contactFacilityToJSON(contactFacility) {
74
+ return JSON.stringify(exports.ContactFacility$outboundSchema.parse(contactFacility));
75
+ }
76
+ function contactFacilityFromJSON(jsonString) {
77
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ContactFacility$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ContactFacility' from JSON`);
78
+ }
79
+ /** @internal */
80
+ exports.System$inboundSchema = z
81
+ .union([systemsummary_js_1.SystemSummary$inboundSchema, z.number().int()]);
82
+ /** @internal */
83
+ exports.System$outboundSchema = z.union([systemsummary_js_1.SystemSummary$outboundSchema, z.number().int()]);
84
+ /**
85
+ * @internal
86
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
+ */
88
+ var System$;
89
+ (function (System$) {
90
+ /** @deprecated use `System$inboundSchema` instead. */
91
+ System$.inboundSchema = exports.System$inboundSchema;
92
+ /** @deprecated use `System$outboundSchema` instead. */
93
+ System$.outboundSchema = exports.System$outboundSchema;
94
+ })(System$ || (exports.System$ = System$ = {}));
95
+ function systemToJSON(system) {
96
+ return JSON.stringify(exports.System$outboundSchema.parse(system));
97
+ }
98
+ function systemFromJSON(jsonString) {
99
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.System$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'System' from JSON`);
100
+ }
101
+ /** @internal */
102
+ exports.ContactStatus$inboundSchema = z.nativeEnum(exports.ContactStatus);
103
+ /** @internal */
104
+ exports.ContactStatus$outboundSchema = exports.ContactStatus$inboundSchema;
105
+ /**
106
+ * @internal
107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
108
+ */
109
+ var ContactStatus$;
110
+ (function (ContactStatus$) {
111
+ /** @deprecated use `ContactStatus$inboundSchema` instead. */
112
+ ContactStatus$.inboundSchema = exports.ContactStatus$inboundSchema;
113
+ /** @deprecated use `ContactStatus$outboundSchema` instead. */
114
+ ContactStatus$.outboundSchema = exports.ContactStatus$outboundSchema;
115
+ })(ContactStatus$ || (exports.ContactStatus$ = ContactStatus$ = {}));
116
+ /** @internal */
117
+ exports.Department$inboundSchema = z.union([departmentsummary_js_1.DepartmentSummary$inboundSchema, z.number().int()]);
118
+ /** @internal */
119
+ exports.Department$outboundSchema = z.union([departmentsummary_js_1.DepartmentSummary$outboundSchema, z.number().int()]);
120
+ /**
121
+ * @internal
122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
123
+ */
124
+ var Department$;
125
+ (function (Department$) {
126
+ /** @deprecated use `Department$inboundSchema` instead. */
127
+ Department$.inboundSchema = exports.Department$inboundSchema;
128
+ /** @deprecated use `Department$outboundSchema` instead. */
129
+ Department$.outboundSchema = exports.Department$outboundSchema;
130
+ })(Department$ || (exports.Department$ = Department$ = {}));
131
+ function departmentToJSON(department) {
132
+ return JSON.stringify(exports.Department$outboundSchema.parse(department));
133
+ }
134
+ function departmentFromJSON(jsonString) {
135
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Department$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Department' from JSON`);
136
+ }
137
+ /** @internal */
138
+ exports.Contact$inboundSchema = z.object({
139
+ facility: z.union([facilitysummary_js_1.FacilitySummary$inboundSchema, z.number().int()])
140
+ .optional(),
141
+ system: z.union([systemsummary_js_1.SystemSummary$inboundSchema, z.number().int()]).optional(),
142
+ status: exports.ContactStatus$inboundSchema,
143
+ position: z.nullable(z.string()).optional(),
144
+ department: z.nullable(z.union([departmentsummary_js_1.DepartmentSummary$inboundSchema, z.number().int()])).optional(),
145
+ });
146
+ /** @internal */
147
+ exports.Contact$outboundSchema = z.object({
148
+ facility: z.union([facilitysummary_js_1.FacilitySummary$outboundSchema, z.number().int()])
149
+ .optional(),
150
+ system: z.union([systemsummary_js_1.SystemSummary$outboundSchema, z.number().int()]).optional(),
151
+ status: exports.ContactStatus$outboundSchema,
152
+ position: z.nullable(z.string()).optional(),
153
+ department: z.nullable(z.union([departmentsummary_js_1.DepartmentSummary$outboundSchema, z.number().int()])).optional(),
154
+ });
155
+ /**
156
+ * @internal
157
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
158
+ */
159
+ var Contact$;
160
+ (function (Contact$) {
161
+ /** @deprecated use `Contact$inboundSchema` instead. */
162
+ Contact$.inboundSchema = exports.Contact$inboundSchema;
163
+ /** @deprecated use `Contact$outboundSchema` instead. */
164
+ Contact$.outboundSchema = exports.Contact$outboundSchema;
165
+ })(Contact$ || (exports.Contact$ = Contact$ = {}));
166
+ function contactToJSON(contact) {
167
+ return JSON.stringify(exports.Contact$outboundSchema.parse(contact));
168
+ }
169
+ function contactFromJSON(jsonString) {
170
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Contact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Contact' from JSON`);
171
+ }
172
+ //# sourceMappingURL=contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/models/components/contact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFH,sDAIC;AAED,0DAQC;AA6BD,oCAEC;AAED,wCAQC;AAqDD,4CAEC;AAED,gDAQC;AAqDD,sCAEC;AAED,0CAQC;AAvQD,uCAAyB;AACzB,qDAAiD;AAIjD,iEAKgC;AAChC,6DAK8B;AAC9B,yDAK4B;AAMf,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAgBX,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,KAAK,CAAC,CAAC,kDAA6B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAK/D,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,KAAK,CAAC,CAAC,mDAA8B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAEhE;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;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C1C,sBAAa,GAAG,6BAAqB,CAAC;IACnD,wDAAwD;IAC3C,uBAAc,GAAG,8BAAsB,CAAC;AAGvD,CAAC,EAPgB,QAAQ,wBAAR,QAAQ,QAOxB;AAED,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,8BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,eAAe,CAC7B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * A simplified representation of a Department, typically used in list views.
6
+ */
7
+ export type DepartmentSummary = {
8
+ id: number;
9
+ name: string;
10
+ };
11
+ /** @internal */
12
+ export declare const DepartmentSummary$inboundSchema: z.ZodType<DepartmentSummary, z.ZodTypeDef, unknown>;
13
+ /** @internal */
14
+ export type DepartmentSummary$Outbound = {
15
+ id: number;
16
+ name: string;
17
+ };
18
+ /** @internal */
19
+ export declare const DepartmentSummary$outboundSchema: z.ZodType<DepartmentSummary$Outbound, z.ZodTypeDef, DepartmentSummary>;
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export declare namespace DepartmentSummary$ {
25
+ /** @deprecated use `DepartmentSummary$inboundSchema` instead. */
26
+ const inboundSchema: z.ZodType<DepartmentSummary, z.ZodTypeDef, unknown>;
27
+ /** @deprecated use `DepartmentSummary$outboundSchema` instead. */
28
+ const outboundSchema: z.ZodType<DepartmentSummary$Outbound, z.ZodTypeDef, DepartmentSummary>;
29
+ /** @deprecated use `DepartmentSummary$Outbound` instead. */
30
+ type Outbound = DepartmentSummary$Outbound;
31
+ }
32
+ export declare function departmentSummaryToJSON(departmentSummary: DepartmentSummary): string;
33
+ export declare function departmentSummaryFromJSON(jsonString: string): SafeParseResult<DepartmentSummary, SDKValidationError>;
34
+ //# sourceMappingURL=departmentsummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"departmentsummary.d.ts","sourceRoot":"","sources":["../../src/models/components/departmentsummary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAIjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DepartmentSummary$ = exports.DepartmentSummary$outboundSchema = exports.DepartmentSummary$inboundSchema = void 0;
40
+ exports.departmentSummaryToJSON = departmentSummaryToJSON;
41
+ exports.departmentSummaryFromJSON = departmentSummaryFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /** @internal */
45
+ exports.DepartmentSummary$inboundSchema = z.object({
46
+ id: z.number().int(),
47
+ name: z.string(),
48
+ });
49
+ /** @internal */
50
+ exports.DepartmentSummary$outboundSchema = z.object({
51
+ id: z.number().int(),
52
+ name: z.string(),
53
+ });
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ var DepartmentSummary$;
59
+ (function (DepartmentSummary$) {
60
+ /** @deprecated use `DepartmentSummary$inboundSchema` instead. */
61
+ DepartmentSummary$.inboundSchema = exports.DepartmentSummary$inboundSchema;
62
+ /** @deprecated use `DepartmentSummary$outboundSchema` instead. */
63
+ DepartmentSummary$.outboundSchema = exports.DepartmentSummary$outboundSchema;
64
+ })(DepartmentSummary$ || (exports.DepartmentSummary$ = DepartmentSummary$ = {}));
65
+ function departmentSummaryToJSON(departmentSummary) {
66
+ return JSON.stringify(exports.DepartmentSummary$outboundSchema.parse(departmentSummary));
67
+ }
68
+ function departmentSummaryFromJSON(jsonString) {
69
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DepartmentSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DepartmentSummary' from JSON`);
70
+ }
71
+ //# sourceMappingURL=departmentsummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"departmentsummary.js","sourceRoot":"","sources":["../../src/models/components/departmentsummary.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDH,0DAMC;AAED,8DAQC;AApED,uCAAyB;AACzB,qDAAiD;AAYjD,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type Desc = boolean | number;
5
+ /** @internal */
6
+ export declare const Desc$inboundSchema: z.ZodType<Desc, z.ZodTypeDef, unknown>;
7
+ /** @internal */
8
+ export type Desc$Outbound = boolean | number;
9
+ /** @internal */
10
+ export declare const Desc$outboundSchema: z.ZodType<Desc$Outbound, z.ZodTypeDef, Desc>;
11
+ /**
12
+ * @internal
13
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
14
+ */
15
+ export declare namespace Desc$ {
16
+ /** @deprecated use `Desc$inboundSchema` instead. */
17
+ const inboundSchema: z.ZodType<Desc, z.ZodTypeDef, unknown>;
18
+ /** @deprecated use `Desc$outboundSchema` instead. */
19
+ const outboundSchema: z.ZodType<Desc$Outbound, z.ZodTypeDef, Desc>;
20
+ /** @deprecated use `Desc$Outbound` instead. */
21
+ type Outbound = Desc$Outbound;
22
+ }
23
+ export declare function descToJSON(desc: Desc): string;
24
+ export declare function descFromJSON(jsonString: string): SafeParseResult<Desc, SDKValidationError>;
25
+ //# sourceMappingURL=desc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"desc.d.ts","sourceRoot":"","sources":["../../src/models/components/desc.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAC7B,CAAC;AAE1C,gBAAgB;AAChB,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,CACnC,CAAC;AAE3C;;;GAGG;AACH,yBAAiB,KAAK,CAAC;IACrB,oDAAoD;IAC7C,MAAM,aAAa,wCAAqB,CAAC;IAChD,qDAAqD;IAC9C,MAAM,cAAc,8CAAsB,CAAC;IAClD,+CAA+C;IAC/C,KAAY,QAAQ,GAAG,aAAa,CAAC;CACtC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAM3C"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Desc$ = exports.Desc$outboundSchema = exports.Desc$inboundSchema = void 0;
40
+ exports.descToJSON = descToJSON;
41
+ exports.descFromJSON = descFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /** @internal */
45
+ exports.Desc$inboundSchema = z
46
+ .union([z.boolean(), z.number().int()]);
47
+ /** @internal */
48
+ exports.Desc$outboundSchema = z.union([z.boolean(), z.number().int()]);
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ var Desc$;
54
+ (function (Desc$) {
55
+ /** @deprecated use `Desc$inboundSchema` instead. */
56
+ Desc$.inboundSchema = exports.Desc$inboundSchema;
57
+ /** @deprecated use `Desc$outboundSchema` instead. */
58
+ Desc$.outboundSchema = exports.Desc$outboundSchema;
59
+ })(Desc$ || (exports.Desc$ = Desc$ = {}));
60
+ function descToJSON(desc) {
61
+ return JSON.stringify(exports.Desc$outboundSchema.parse(desc));
62
+ }
63
+ function descFromJSON(jsonString) {
64
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Desc$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Desc' from JSON`);
65
+ }
66
+ //# sourceMappingURL=desc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"desc.js","sourceRoot":"","sources":["../../src/models/components/desc.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,gCAEC;AAED,oCAQC;AA3CD,uCAAyB;AACzB,qDAAiD;AAMjD,gBAAgB;AACH,QAAA,kBAAkB,GAA2C,CAAC;KACxE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAK1C,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAE3C;;;GAGG;AACH,IAAiB,KAAK,CAOrB;AAPD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AAGpD,CAAC,EAPgB,KAAK,qBAAL,KAAK,QAOrB;AAED,SAAgB,UAAU,CAAC,IAAU;IACnC,OAAO,IAAI,CAAC,SAAS,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,YAAY,CAC1B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,kCAAkC,CACnC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,79 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ /**
4
+ * An expansion scope that is valid for the object being requested.
5
+ */
6
+ export declare const Expand: {
7
+ readonly User: "user";
8
+ readonly ContactFacility: "contact.facility";
9
+ readonly ContactSystem: "contact.system";
10
+ readonly ContactDepartment: "contact.department";
11
+ readonly FacilityAppointmentPolicy: "facility.appointment_policy";
12
+ readonly FacilityContacts: "facility.contacts";
13
+ readonly FacilityVendorCounts: "facility.vendor_counts";
14
+ readonly FacilityFluCredential: "facility.flu_credential";
15
+ readonly FacilityScrubsPolicy: "facility.scrubs_policy";
16
+ readonly FacilitySystem: "facility.system";
17
+ readonly FacilityVendorGuestPolicy: "facility.vendor_guest_policy";
18
+ readonly FacilityVendorPolicy: "facility.vendor_policy";
19
+ readonly FacilityVisitorPolicy: "facility.visitor_policy";
20
+ readonly FacilityWorkflow: "facility.workflow";
21
+ readonly VendorUser: "vendor.user";
22
+ readonly VendorVendorType: "vendor.vendor_type";
23
+ readonly VendorPaymentProfile: "vendor.payment_profile";
24
+ };
25
+ /**
26
+ * An expansion scope that is valid for the object being requested.
27
+ */
28
+ export type Expand = ClosedEnum<typeof Expand>;
29
+ /** @internal */
30
+ export declare const Expand$inboundSchema: z.ZodNativeEnum<typeof Expand>;
31
+ /** @internal */
32
+ export declare const Expand$outboundSchema: z.ZodNativeEnum<typeof Expand>;
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export declare namespace Expand$ {
38
+ /** @deprecated use `Expand$inboundSchema` instead. */
39
+ const inboundSchema: z.ZodNativeEnum<{
40
+ readonly User: "user";
41
+ readonly ContactFacility: "contact.facility";
42
+ readonly ContactSystem: "contact.system";
43
+ readonly ContactDepartment: "contact.department";
44
+ readonly FacilityAppointmentPolicy: "facility.appointment_policy";
45
+ readonly FacilityContacts: "facility.contacts";
46
+ readonly FacilityVendorCounts: "facility.vendor_counts";
47
+ readonly FacilityFluCredential: "facility.flu_credential";
48
+ readonly FacilityScrubsPolicy: "facility.scrubs_policy";
49
+ readonly FacilitySystem: "facility.system";
50
+ readonly FacilityVendorGuestPolicy: "facility.vendor_guest_policy";
51
+ readonly FacilityVendorPolicy: "facility.vendor_policy";
52
+ readonly FacilityVisitorPolicy: "facility.visitor_policy";
53
+ readonly FacilityWorkflow: "facility.workflow";
54
+ readonly VendorUser: "vendor.user";
55
+ readonly VendorVendorType: "vendor.vendor_type";
56
+ readonly VendorPaymentProfile: "vendor.payment_profile";
57
+ }>;
58
+ /** @deprecated use `Expand$outboundSchema` instead. */
59
+ const outboundSchema: z.ZodNativeEnum<{
60
+ readonly User: "user";
61
+ readonly ContactFacility: "contact.facility";
62
+ readonly ContactSystem: "contact.system";
63
+ readonly ContactDepartment: "contact.department";
64
+ readonly FacilityAppointmentPolicy: "facility.appointment_policy";
65
+ readonly FacilityContacts: "facility.contacts";
66
+ readonly FacilityVendorCounts: "facility.vendor_counts";
67
+ readonly FacilityFluCredential: "facility.flu_credential";
68
+ readonly FacilityScrubsPolicy: "facility.scrubs_policy";
69
+ readonly FacilitySystem: "facility.system";
70
+ readonly FacilityVendorGuestPolicy: "facility.vendor_guest_policy";
71
+ readonly FacilityVendorPolicy: "facility.vendor_policy";
72
+ readonly FacilityVisitorPolicy: "facility.visitor_policy";
73
+ readonly FacilityWorkflow: "facility.workflow";
74
+ readonly VendorUser: "vendor.user";
75
+ readonly VendorVendorType: "vendor.vendor_type";
76
+ readonly VendorPaymentProfile: "vendor.payment_profile";
77
+ }>;
78
+ }
79
+ //# sourceMappingURL=expand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../src/models/components/expand.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAkBT,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC3C,CAAC;AAEtB,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC3C,CAAC;AAEvB;;;GAGG;AACH,yBAAiB,OAAO,CAAC;IACvB,sDAAsD;IAC/C,MAAM,aAAa;;;;;;;;;;;;;;;;;;MAAuB,CAAC;IAClD,uDAAuD;IAChD,MAAM,cAAc;;;;;;;;;;;;;;;;;;MAAwB,CAAC;CACrD"}