@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,1334 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { RFCDate } from "../../types/rfcdate.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+ import {
13
+ Contact,
14
+ Contact$inboundSchema,
15
+ Contact$Outbound,
16
+ Contact$outboundSchema,
17
+ } from "./contact.js";
18
+ import {
19
+ ImageSet,
20
+ ImageSet$inboundSchema,
21
+ ImageSet$Outbound,
22
+ ImageSet$outboundSchema,
23
+ } from "./imageset.js";
24
+ import {
25
+ SystemSummary,
26
+ SystemSummary$inboundSchema,
27
+ SystemSummary$Outbound,
28
+ SystemSummary$outboundSchema,
29
+ } from "./systemsummary.js";
30
+ import {
31
+ VendorType,
32
+ VendorType$inboundSchema,
33
+ VendorType$Outbound,
34
+ VendorType$outboundSchema,
35
+ } from "./vendortype.js";
36
+
37
+ export type AppointmentPolicy = {
38
+ standingApptPeriod?: string | undefined;
39
+ apptRequestInfo?: string | undefined;
40
+ allowVendorApptRequests?: boolean | undefined;
41
+ allowContactApptRequests?: boolean | undefined;
42
+ allowPendingVendorApptRequests?: boolean | undefined;
43
+ allowMultiFacilityApptRequests?: boolean | undefined;
44
+ maxInvitesPerAppt?: number | undefined;
45
+ };
46
+
47
+ export type Contacts = {
48
+ /**
49
+ * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
50
+ */
51
+ contact?: Contact | undefined;
52
+ /**
53
+ * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
54
+ */
55
+ adminContact?: Contact | undefined;
56
+ /**
57
+ * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
58
+ */
59
+ techContact?: Contact | undefined;
60
+ /**
61
+ * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
62
+ */
63
+ greenSecurityCsm?: Contact | undefined;
64
+ /**
65
+ * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
66
+ */
67
+ accountManager?: Contact | undefined;
68
+ };
69
+
70
+ export type VendorCounts = {
71
+ countTargetedActiveApproved?: number | undefined;
72
+ countTargetedActivePending?: number | undefined;
73
+ countTargetedInactiveApproved?: number | undefined;
74
+ countTargetedInactivePending?: number | undefined;
75
+ countPrimaryActiveApproved?: number | undefined;
76
+ countPrimaryActivePending?: number | undefined;
77
+ countPrimaryInactiveApproved?: number | undefined;
78
+ countPrimaryInactivePending?: number | undefined;
79
+ };
80
+
81
+ export type FacilityFluCredential = string | number;
82
+
83
+ export type FluCredential = {
84
+ fluCredential?: string | number | null | undefined;
85
+ fluDateBegins?: RFCDate | null | undefined;
86
+ fluDateEnds?: RFCDate | null | undefined;
87
+ };
88
+
89
+ export type Location = {
90
+ streetAddress?: string | null | undefined;
91
+ city?: string | null | undefined;
92
+ state?: string | null | undefined;
93
+ zip?: string | null | undefined;
94
+ email?: string | null | undefined;
95
+ phone?: string | null | undefined;
96
+ fax?: string | null | undefined;
97
+ website?: string | null | undefined;
98
+ utcOffset?: number | null | undefined;
99
+ timezone?: string | null | undefined;
100
+ latitude?: number | null | undefined;
101
+ longitude?: number | null | undefined;
102
+ };
103
+
104
+ export type ScrubsPolicy = {
105
+ unlimitedScrubs?: boolean | undefined;
106
+ scrubDebitsPerDay?: number | undefined;
107
+ minutesBetweenScrubDebits?: number | undefined;
108
+ };
109
+
110
+ export type FacilitySystem = SystemSummary | number;
111
+
112
+ export type Uses = {
113
+ calendaring: boolean;
114
+ credentialing: boolean;
115
+ rfid: boolean;
116
+ scrubs: boolean;
117
+ valueAnalysis: boolean;
118
+ visitorManagement: boolean;
119
+ visitorSearch: boolean;
120
+ };
121
+
122
+ export const VendorGuestLimitAndOr = {
123
+ And: "and",
124
+ Or: "or",
125
+ } as const;
126
+ export type VendorGuestLimitAndOr = ClosedEnum<typeof VendorGuestLimitAndOr>;
127
+
128
+ export type VendorGuestPolicy = {
129
+ enabled: boolean;
130
+ vendorGuestLimit?: number | undefined;
131
+ vendorGuestLimitAndOr?: VendorGuestLimitAndOr | undefined;
132
+ vendorGuestLimitDays?: number | undefined;
133
+ vendorGuestRequireEmail: boolean;
134
+ };
135
+
136
+ export type VendorPolicy = {
137
+ allowDepartmentOther: boolean;
138
+ allowFood: boolean;
139
+ allowNonKioskCheckouts: boolean;
140
+ autoScanOutViolation: boolean;
141
+ contractorGuestRequireEmail: boolean;
142
+ visitorCheckinRequirePhone: boolean;
143
+ vendorTypes: Array<VendorType>;
144
+ };
145
+
146
+ export type VisitorPolicy = {
147
+ autoCheckoutVisitors: boolean;
148
+ requireVisitRequestZone: boolean;
149
+ showGeneralVisitor: boolean;
150
+ storeVisitorDlNumber: boolean;
151
+ visitRequestDemographics?: string | undefined;
152
+ visitorSubtypes?: Array<string> | undefined;
153
+ };
154
+
155
+ export type WorkflowPolicy = {
156
+ autoApproveDeptChangeRequests: boolean;
157
+ autoApproveRoleChangeRequests: boolean;
158
+ autoApproveZoneChangeRequests: boolean;
159
+ };
160
+
161
+ /**
162
+ * Describes a facility which typically represents a physical building or logical grouping of offices which act as a single entity.
163
+ */
164
+ export type Facility = {
165
+ appointmentPolicy?: AppointmentPolicy | null | undefined;
166
+ contacts?: Contacts | null | undefined;
167
+ vendorCounts?: VendorCounts | null | undefined;
168
+ emailDomain?: string | null | undefined;
169
+ facilityType?: string | null | undefined;
170
+ fluCredential?: FluCredential | undefined;
171
+ id?: number | undefined;
172
+ /**
173
+ * A set of images in different sizes
174
+ */
175
+ imageUrls?: ImageSet | undefined;
176
+ location?: Location | undefined;
177
+ name?: string | undefined;
178
+ scrubsPolicy?: ScrubsPolicy | null | undefined;
179
+ status?: string | undefined;
180
+ system?: SystemSummary | number | undefined;
181
+ uses?: Uses | undefined;
182
+ vendorGuestPolicy?: VendorGuestPolicy | null | undefined;
183
+ vendorPolicy?: VendorPolicy | null | undefined;
184
+ visible?: boolean | undefined;
185
+ visitorPolicy?: VisitorPolicy | null | undefined;
186
+ workflowPolicy?: WorkflowPolicy | null | undefined;
187
+ };
188
+
189
+ /** @internal */
190
+ export const AppointmentPolicy$inboundSchema: z.ZodType<
191
+ AppointmentPolicy,
192
+ z.ZodTypeDef,
193
+ unknown
194
+ > = z.object({
195
+ standing_appt_period: z.string().optional(),
196
+ appt_request_info: z.string().optional(),
197
+ allow_vendor_appt_requests: z.boolean().optional(),
198
+ allow_contact_appt_requests: z.boolean().optional(),
199
+ allow_pending_vendor_appt_requests: z.boolean().optional(),
200
+ allow_multi_facility_appt_requests: z.boolean().optional(),
201
+ max_invites_per_appt: z.number().int().optional(),
202
+ }).transform((v) => {
203
+ return remap$(v, {
204
+ "standing_appt_period": "standingApptPeriod",
205
+ "appt_request_info": "apptRequestInfo",
206
+ "allow_vendor_appt_requests": "allowVendorApptRequests",
207
+ "allow_contact_appt_requests": "allowContactApptRequests",
208
+ "allow_pending_vendor_appt_requests": "allowPendingVendorApptRequests",
209
+ "allow_multi_facility_appt_requests": "allowMultiFacilityApptRequests",
210
+ "max_invites_per_appt": "maxInvitesPerAppt",
211
+ });
212
+ });
213
+
214
+ /** @internal */
215
+ export type AppointmentPolicy$Outbound = {
216
+ standing_appt_period?: string | undefined;
217
+ appt_request_info?: string | undefined;
218
+ allow_vendor_appt_requests?: boolean | undefined;
219
+ allow_contact_appt_requests?: boolean | undefined;
220
+ allow_pending_vendor_appt_requests?: boolean | undefined;
221
+ allow_multi_facility_appt_requests?: boolean | undefined;
222
+ max_invites_per_appt?: number | undefined;
223
+ };
224
+
225
+ /** @internal */
226
+ export const AppointmentPolicy$outboundSchema: z.ZodType<
227
+ AppointmentPolicy$Outbound,
228
+ z.ZodTypeDef,
229
+ AppointmentPolicy
230
+ > = z.object({
231
+ standingApptPeriod: z.string().optional(),
232
+ apptRequestInfo: z.string().optional(),
233
+ allowVendorApptRequests: z.boolean().optional(),
234
+ allowContactApptRequests: z.boolean().optional(),
235
+ allowPendingVendorApptRequests: z.boolean().optional(),
236
+ allowMultiFacilityApptRequests: z.boolean().optional(),
237
+ maxInvitesPerAppt: z.number().int().optional(),
238
+ }).transform((v) => {
239
+ return remap$(v, {
240
+ standingApptPeriod: "standing_appt_period",
241
+ apptRequestInfo: "appt_request_info",
242
+ allowVendorApptRequests: "allow_vendor_appt_requests",
243
+ allowContactApptRequests: "allow_contact_appt_requests",
244
+ allowPendingVendorApptRequests: "allow_pending_vendor_appt_requests",
245
+ allowMultiFacilityApptRequests: "allow_multi_facility_appt_requests",
246
+ maxInvitesPerAppt: "max_invites_per_appt",
247
+ });
248
+ });
249
+
250
+ /**
251
+ * @internal
252
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
253
+ */
254
+ export namespace AppointmentPolicy$ {
255
+ /** @deprecated use `AppointmentPolicy$inboundSchema` instead. */
256
+ export const inboundSchema = AppointmentPolicy$inboundSchema;
257
+ /** @deprecated use `AppointmentPolicy$outboundSchema` instead. */
258
+ export const outboundSchema = AppointmentPolicy$outboundSchema;
259
+ /** @deprecated use `AppointmentPolicy$Outbound` instead. */
260
+ export type Outbound = AppointmentPolicy$Outbound;
261
+ }
262
+
263
+ export function appointmentPolicyToJSON(
264
+ appointmentPolicy: AppointmentPolicy,
265
+ ): string {
266
+ return JSON.stringify(
267
+ AppointmentPolicy$outboundSchema.parse(appointmentPolicy),
268
+ );
269
+ }
270
+
271
+ export function appointmentPolicyFromJSON(
272
+ jsonString: string,
273
+ ): SafeParseResult<AppointmentPolicy, SDKValidationError> {
274
+ return safeParse(
275
+ jsonString,
276
+ (x) => AppointmentPolicy$inboundSchema.parse(JSON.parse(x)),
277
+ `Failed to parse 'AppointmentPolicy' from JSON`,
278
+ );
279
+ }
280
+
281
+ /** @internal */
282
+ export const Contacts$inboundSchema: z.ZodType<
283
+ Contacts,
284
+ z.ZodTypeDef,
285
+ unknown
286
+ > = z.object({
287
+ contact: Contact$inboundSchema.optional(),
288
+ admin_contact: Contact$inboundSchema.optional(),
289
+ tech_contact: Contact$inboundSchema.optional(),
290
+ green_security_csm: Contact$inboundSchema.optional(),
291
+ account_manager: Contact$inboundSchema.optional(),
292
+ }).transform((v) => {
293
+ return remap$(v, {
294
+ "admin_contact": "adminContact",
295
+ "tech_contact": "techContact",
296
+ "green_security_csm": "greenSecurityCsm",
297
+ "account_manager": "accountManager",
298
+ });
299
+ });
300
+
301
+ /** @internal */
302
+ export type Contacts$Outbound = {
303
+ contact?: Contact$Outbound | undefined;
304
+ admin_contact?: Contact$Outbound | undefined;
305
+ tech_contact?: Contact$Outbound | undefined;
306
+ green_security_csm?: Contact$Outbound | undefined;
307
+ account_manager?: Contact$Outbound | undefined;
308
+ };
309
+
310
+ /** @internal */
311
+ export const Contacts$outboundSchema: z.ZodType<
312
+ Contacts$Outbound,
313
+ z.ZodTypeDef,
314
+ Contacts
315
+ > = z.object({
316
+ contact: Contact$outboundSchema.optional(),
317
+ adminContact: Contact$outboundSchema.optional(),
318
+ techContact: Contact$outboundSchema.optional(),
319
+ greenSecurityCsm: Contact$outboundSchema.optional(),
320
+ accountManager: Contact$outboundSchema.optional(),
321
+ }).transform((v) => {
322
+ return remap$(v, {
323
+ adminContact: "admin_contact",
324
+ techContact: "tech_contact",
325
+ greenSecurityCsm: "green_security_csm",
326
+ accountManager: "account_manager",
327
+ });
328
+ });
329
+
330
+ /**
331
+ * @internal
332
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
333
+ */
334
+ export namespace Contacts$ {
335
+ /** @deprecated use `Contacts$inboundSchema` instead. */
336
+ export const inboundSchema = Contacts$inboundSchema;
337
+ /** @deprecated use `Contacts$outboundSchema` instead. */
338
+ export const outboundSchema = Contacts$outboundSchema;
339
+ /** @deprecated use `Contacts$Outbound` instead. */
340
+ export type Outbound = Contacts$Outbound;
341
+ }
342
+
343
+ export function contactsToJSON(contacts: Contacts): string {
344
+ return JSON.stringify(Contacts$outboundSchema.parse(contacts));
345
+ }
346
+
347
+ export function contactsFromJSON(
348
+ jsonString: string,
349
+ ): SafeParseResult<Contacts, SDKValidationError> {
350
+ return safeParse(
351
+ jsonString,
352
+ (x) => Contacts$inboundSchema.parse(JSON.parse(x)),
353
+ `Failed to parse 'Contacts' from JSON`,
354
+ );
355
+ }
356
+
357
+ /** @internal */
358
+ export const VendorCounts$inboundSchema: z.ZodType<
359
+ VendorCounts,
360
+ z.ZodTypeDef,
361
+ unknown
362
+ > = z.object({
363
+ count_targeted_active_approved: z.number().int().optional(),
364
+ count_targeted_active_pending: z.number().int().optional(),
365
+ count_targeted_inactive_approved: z.number().int().optional(),
366
+ count_targeted_inactive_pending: z.number().int().optional(),
367
+ count_primary_active_approved: z.number().int().optional(),
368
+ count_primary_active_pending: z.number().int().optional(),
369
+ count_primary_inactive_approved: z.number().int().optional(),
370
+ count_primary_inactive_pending: z.number().int().optional(),
371
+ }).transform((v) => {
372
+ return remap$(v, {
373
+ "count_targeted_active_approved": "countTargetedActiveApproved",
374
+ "count_targeted_active_pending": "countTargetedActivePending",
375
+ "count_targeted_inactive_approved": "countTargetedInactiveApproved",
376
+ "count_targeted_inactive_pending": "countTargetedInactivePending",
377
+ "count_primary_active_approved": "countPrimaryActiveApproved",
378
+ "count_primary_active_pending": "countPrimaryActivePending",
379
+ "count_primary_inactive_approved": "countPrimaryInactiveApproved",
380
+ "count_primary_inactive_pending": "countPrimaryInactivePending",
381
+ });
382
+ });
383
+
384
+ /** @internal */
385
+ export type VendorCounts$Outbound = {
386
+ count_targeted_active_approved?: number | undefined;
387
+ count_targeted_active_pending?: number | undefined;
388
+ count_targeted_inactive_approved?: number | undefined;
389
+ count_targeted_inactive_pending?: number | undefined;
390
+ count_primary_active_approved?: number | undefined;
391
+ count_primary_active_pending?: number | undefined;
392
+ count_primary_inactive_approved?: number | undefined;
393
+ count_primary_inactive_pending?: number | undefined;
394
+ };
395
+
396
+ /** @internal */
397
+ export const VendorCounts$outboundSchema: z.ZodType<
398
+ VendorCounts$Outbound,
399
+ z.ZodTypeDef,
400
+ VendorCounts
401
+ > = z.object({
402
+ countTargetedActiveApproved: z.number().int().optional(),
403
+ countTargetedActivePending: z.number().int().optional(),
404
+ countTargetedInactiveApproved: z.number().int().optional(),
405
+ countTargetedInactivePending: z.number().int().optional(),
406
+ countPrimaryActiveApproved: z.number().int().optional(),
407
+ countPrimaryActivePending: z.number().int().optional(),
408
+ countPrimaryInactiveApproved: z.number().int().optional(),
409
+ countPrimaryInactivePending: z.number().int().optional(),
410
+ }).transform((v) => {
411
+ return remap$(v, {
412
+ countTargetedActiveApproved: "count_targeted_active_approved",
413
+ countTargetedActivePending: "count_targeted_active_pending",
414
+ countTargetedInactiveApproved: "count_targeted_inactive_approved",
415
+ countTargetedInactivePending: "count_targeted_inactive_pending",
416
+ countPrimaryActiveApproved: "count_primary_active_approved",
417
+ countPrimaryActivePending: "count_primary_active_pending",
418
+ countPrimaryInactiveApproved: "count_primary_inactive_approved",
419
+ countPrimaryInactivePending: "count_primary_inactive_pending",
420
+ });
421
+ });
422
+
423
+ /**
424
+ * @internal
425
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
426
+ */
427
+ export namespace VendorCounts$ {
428
+ /** @deprecated use `VendorCounts$inboundSchema` instead. */
429
+ export const inboundSchema = VendorCounts$inboundSchema;
430
+ /** @deprecated use `VendorCounts$outboundSchema` instead. */
431
+ export const outboundSchema = VendorCounts$outboundSchema;
432
+ /** @deprecated use `VendorCounts$Outbound` instead. */
433
+ export type Outbound = VendorCounts$Outbound;
434
+ }
435
+
436
+ export function vendorCountsToJSON(vendorCounts: VendorCounts): string {
437
+ return JSON.stringify(VendorCounts$outboundSchema.parse(vendorCounts));
438
+ }
439
+
440
+ export function vendorCountsFromJSON(
441
+ jsonString: string,
442
+ ): SafeParseResult<VendorCounts, SDKValidationError> {
443
+ return safeParse(
444
+ jsonString,
445
+ (x) => VendorCounts$inboundSchema.parse(JSON.parse(x)),
446
+ `Failed to parse 'VendorCounts' from JSON`,
447
+ );
448
+ }
449
+
450
+ /** @internal */
451
+ export const FacilityFluCredential$inboundSchema: z.ZodType<
452
+ FacilityFluCredential,
453
+ z.ZodTypeDef,
454
+ unknown
455
+ > = z.union([z.string(), z.number().int()]);
456
+
457
+ /** @internal */
458
+ export type FacilityFluCredential$Outbound = string | number;
459
+
460
+ /** @internal */
461
+ export const FacilityFluCredential$outboundSchema: z.ZodType<
462
+ FacilityFluCredential$Outbound,
463
+ z.ZodTypeDef,
464
+ FacilityFluCredential
465
+ > = z.union([z.string(), z.number().int()]);
466
+
467
+ /**
468
+ * @internal
469
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
470
+ */
471
+ export namespace FacilityFluCredential$ {
472
+ /** @deprecated use `FacilityFluCredential$inboundSchema` instead. */
473
+ export const inboundSchema = FacilityFluCredential$inboundSchema;
474
+ /** @deprecated use `FacilityFluCredential$outboundSchema` instead. */
475
+ export const outboundSchema = FacilityFluCredential$outboundSchema;
476
+ /** @deprecated use `FacilityFluCredential$Outbound` instead. */
477
+ export type Outbound = FacilityFluCredential$Outbound;
478
+ }
479
+
480
+ export function facilityFluCredentialToJSON(
481
+ facilityFluCredential: FacilityFluCredential,
482
+ ): string {
483
+ return JSON.stringify(
484
+ FacilityFluCredential$outboundSchema.parse(facilityFluCredential),
485
+ );
486
+ }
487
+
488
+ export function facilityFluCredentialFromJSON(
489
+ jsonString: string,
490
+ ): SafeParseResult<FacilityFluCredential, SDKValidationError> {
491
+ return safeParse(
492
+ jsonString,
493
+ (x) => FacilityFluCredential$inboundSchema.parse(JSON.parse(x)),
494
+ `Failed to parse 'FacilityFluCredential' from JSON`,
495
+ );
496
+ }
497
+
498
+ /** @internal */
499
+ export const FluCredential$inboundSchema: z.ZodType<
500
+ FluCredential,
501
+ z.ZodTypeDef,
502
+ unknown
503
+ > = z.object({
504
+ flu_credential: z.nullable(z.union([z.string(), z.number().int()]))
505
+ .optional(),
506
+ flu_date_begins: z.nullable(z.string().transform(v => new RFCDate(v)))
507
+ .optional(),
508
+ flu_date_ends: z.nullable(z.string().transform(v => new RFCDate(v)))
509
+ .optional(),
510
+ }).transform((v) => {
511
+ return remap$(v, {
512
+ "flu_credential": "fluCredential",
513
+ "flu_date_begins": "fluDateBegins",
514
+ "flu_date_ends": "fluDateEnds",
515
+ });
516
+ });
517
+
518
+ /** @internal */
519
+ export type FluCredential$Outbound = {
520
+ flu_credential?: string | number | null | undefined;
521
+ flu_date_begins?: string | null | undefined;
522
+ flu_date_ends?: string | null | undefined;
523
+ };
524
+
525
+ /** @internal */
526
+ export const FluCredential$outboundSchema: z.ZodType<
527
+ FluCredential$Outbound,
528
+ z.ZodTypeDef,
529
+ FluCredential
530
+ > = z.object({
531
+ fluCredential: z.nullable(z.union([z.string(), z.number().int()])).optional(),
532
+ fluDateBegins: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
533
+ .optional(),
534
+ fluDateEnds: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
535
+ .optional(),
536
+ }).transform((v) => {
537
+ return remap$(v, {
538
+ fluCredential: "flu_credential",
539
+ fluDateBegins: "flu_date_begins",
540
+ fluDateEnds: "flu_date_ends",
541
+ });
542
+ });
543
+
544
+ /**
545
+ * @internal
546
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
547
+ */
548
+ export namespace FluCredential$ {
549
+ /** @deprecated use `FluCredential$inboundSchema` instead. */
550
+ export const inboundSchema = FluCredential$inboundSchema;
551
+ /** @deprecated use `FluCredential$outboundSchema` instead. */
552
+ export const outboundSchema = FluCredential$outboundSchema;
553
+ /** @deprecated use `FluCredential$Outbound` instead. */
554
+ export type Outbound = FluCredential$Outbound;
555
+ }
556
+
557
+ export function fluCredentialToJSON(fluCredential: FluCredential): string {
558
+ return JSON.stringify(FluCredential$outboundSchema.parse(fluCredential));
559
+ }
560
+
561
+ export function fluCredentialFromJSON(
562
+ jsonString: string,
563
+ ): SafeParseResult<FluCredential, SDKValidationError> {
564
+ return safeParse(
565
+ jsonString,
566
+ (x) => FluCredential$inboundSchema.parse(JSON.parse(x)),
567
+ `Failed to parse 'FluCredential' from JSON`,
568
+ );
569
+ }
570
+
571
+ /** @internal */
572
+ export const Location$inboundSchema: z.ZodType<
573
+ Location,
574
+ z.ZodTypeDef,
575
+ unknown
576
+ > = z.object({
577
+ street_address: z.nullable(z.string()).optional(),
578
+ city: z.nullable(z.string()).optional(),
579
+ state: z.nullable(z.string()).optional(),
580
+ zip: z.nullable(z.string()).optional(),
581
+ email: z.nullable(z.string()).optional(),
582
+ phone: z.nullable(z.string()).optional(),
583
+ fax: z.nullable(z.string()).optional(),
584
+ website: z.nullable(z.string()).optional(),
585
+ utc_offset: z.nullable(z.number()).optional(),
586
+ timezone: z.nullable(z.string()).optional(),
587
+ latitude: z.nullable(z.number()).optional(),
588
+ longitude: z.nullable(z.number()).optional(),
589
+ }).transform((v) => {
590
+ return remap$(v, {
591
+ "street_address": "streetAddress",
592
+ "utc_offset": "utcOffset",
593
+ });
594
+ });
595
+
596
+ /** @internal */
597
+ export type Location$Outbound = {
598
+ street_address?: string | null | undefined;
599
+ city?: string | null | undefined;
600
+ state?: string | null | undefined;
601
+ zip?: string | null | undefined;
602
+ email?: string | null | undefined;
603
+ phone?: string | null | undefined;
604
+ fax?: string | null | undefined;
605
+ website?: string | null | undefined;
606
+ utc_offset?: number | null | undefined;
607
+ timezone?: string | null | undefined;
608
+ latitude?: number | null | undefined;
609
+ longitude?: number | null | undefined;
610
+ };
611
+
612
+ /** @internal */
613
+ export const Location$outboundSchema: z.ZodType<
614
+ Location$Outbound,
615
+ z.ZodTypeDef,
616
+ Location
617
+ > = z.object({
618
+ streetAddress: z.nullable(z.string()).optional(),
619
+ city: z.nullable(z.string()).optional(),
620
+ state: z.nullable(z.string()).optional(),
621
+ zip: z.nullable(z.string()).optional(),
622
+ email: z.nullable(z.string()).optional(),
623
+ phone: z.nullable(z.string()).optional(),
624
+ fax: z.nullable(z.string()).optional(),
625
+ website: z.nullable(z.string()).optional(),
626
+ utcOffset: z.nullable(z.number()).optional(),
627
+ timezone: z.nullable(z.string()).optional(),
628
+ latitude: z.nullable(z.number()).optional(),
629
+ longitude: z.nullable(z.number()).optional(),
630
+ }).transform((v) => {
631
+ return remap$(v, {
632
+ streetAddress: "street_address",
633
+ utcOffset: "utc_offset",
634
+ });
635
+ });
636
+
637
+ /**
638
+ * @internal
639
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
640
+ */
641
+ export namespace Location$ {
642
+ /** @deprecated use `Location$inboundSchema` instead. */
643
+ export const inboundSchema = Location$inboundSchema;
644
+ /** @deprecated use `Location$outboundSchema` instead. */
645
+ export const outboundSchema = Location$outboundSchema;
646
+ /** @deprecated use `Location$Outbound` instead. */
647
+ export type Outbound = Location$Outbound;
648
+ }
649
+
650
+ export function locationToJSON(location: Location): string {
651
+ return JSON.stringify(Location$outboundSchema.parse(location));
652
+ }
653
+
654
+ export function locationFromJSON(
655
+ jsonString: string,
656
+ ): SafeParseResult<Location, SDKValidationError> {
657
+ return safeParse(
658
+ jsonString,
659
+ (x) => Location$inboundSchema.parse(JSON.parse(x)),
660
+ `Failed to parse 'Location' from JSON`,
661
+ );
662
+ }
663
+
664
+ /** @internal */
665
+ export const ScrubsPolicy$inboundSchema: z.ZodType<
666
+ ScrubsPolicy,
667
+ z.ZodTypeDef,
668
+ unknown
669
+ > = z.object({
670
+ unlimited_scrubs: z.boolean().optional(),
671
+ scrub_debits_per_day: z.number().int().optional(),
672
+ minutes_between_scrub_debits: z.number().int().optional(),
673
+ }).transform((v) => {
674
+ return remap$(v, {
675
+ "unlimited_scrubs": "unlimitedScrubs",
676
+ "scrub_debits_per_day": "scrubDebitsPerDay",
677
+ "minutes_between_scrub_debits": "minutesBetweenScrubDebits",
678
+ });
679
+ });
680
+
681
+ /** @internal */
682
+ export type ScrubsPolicy$Outbound = {
683
+ unlimited_scrubs?: boolean | undefined;
684
+ scrub_debits_per_day?: number | undefined;
685
+ minutes_between_scrub_debits?: number | undefined;
686
+ };
687
+
688
+ /** @internal */
689
+ export const ScrubsPolicy$outboundSchema: z.ZodType<
690
+ ScrubsPolicy$Outbound,
691
+ z.ZodTypeDef,
692
+ ScrubsPolicy
693
+ > = z.object({
694
+ unlimitedScrubs: z.boolean().optional(),
695
+ scrubDebitsPerDay: z.number().int().optional(),
696
+ minutesBetweenScrubDebits: z.number().int().optional(),
697
+ }).transform((v) => {
698
+ return remap$(v, {
699
+ unlimitedScrubs: "unlimited_scrubs",
700
+ scrubDebitsPerDay: "scrub_debits_per_day",
701
+ minutesBetweenScrubDebits: "minutes_between_scrub_debits",
702
+ });
703
+ });
704
+
705
+ /**
706
+ * @internal
707
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
708
+ */
709
+ export namespace ScrubsPolicy$ {
710
+ /** @deprecated use `ScrubsPolicy$inboundSchema` instead. */
711
+ export const inboundSchema = ScrubsPolicy$inboundSchema;
712
+ /** @deprecated use `ScrubsPolicy$outboundSchema` instead. */
713
+ export const outboundSchema = ScrubsPolicy$outboundSchema;
714
+ /** @deprecated use `ScrubsPolicy$Outbound` instead. */
715
+ export type Outbound = ScrubsPolicy$Outbound;
716
+ }
717
+
718
+ export function scrubsPolicyToJSON(scrubsPolicy: ScrubsPolicy): string {
719
+ return JSON.stringify(ScrubsPolicy$outboundSchema.parse(scrubsPolicy));
720
+ }
721
+
722
+ export function scrubsPolicyFromJSON(
723
+ jsonString: string,
724
+ ): SafeParseResult<ScrubsPolicy, SDKValidationError> {
725
+ return safeParse(
726
+ jsonString,
727
+ (x) => ScrubsPolicy$inboundSchema.parse(JSON.parse(x)),
728
+ `Failed to parse 'ScrubsPolicy' from JSON`,
729
+ );
730
+ }
731
+
732
+ /** @internal */
733
+ export const FacilitySystem$inboundSchema: z.ZodType<
734
+ FacilitySystem,
735
+ z.ZodTypeDef,
736
+ unknown
737
+ > = z.union([SystemSummary$inboundSchema, z.number().int()]);
738
+
739
+ /** @internal */
740
+ export type FacilitySystem$Outbound = SystemSummary$Outbound | number;
741
+
742
+ /** @internal */
743
+ export const FacilitySystem$outboundSchema: z.ZodType<
744
+ FacilitySystem$Outbound,
745
+ z.ZodTypeDef,
746
+ FacilitySystem
747
+ > = z.union([SystemSummary$outboundSchema, z.number().int()]);
748
+
749
+ /**
750
+ * @internal
751
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
752
+ */
753
+ export namespace FacilitySystem$ {
754
+ /** @deprecated use `FacilitySystem$inboundSchema` instead. */
755
+ export const inboundSchema = FacilitySystem$inboundSchema;
756
+ /** @deprecated use `FacilitySystem$outboundSchema` instead. */
757
+ export const outboundSchema = FacilitySystem$outboundSchema;
758
+ /** @deprecated use `FacilitySystem$Outbound` instead. */
759
+ export type Outbound = FacilitySystem$Outbound;
760
+ }
761
+
762
+ export function facilitySystemToJSON(facilitySystem: FacilitySystem): string {
763
+ return JSON.stringify(FacilitySystem$outboundSchema.parse(facilitySystem));
764
+ }
765
+
766
+ export function facilitySystemFromJSON(
767
+ jsonString: string,
768
+ ): SafeParseResult<FacilitySystem, SDKValidationError> {
769
+ return safeParse(
770
+ jsonString,
771
+ (x) => FacilitySystem$inboundSchema.parse(JSON.parse(x)),
772
+ `Failed to parse 'FacilitySystem' from JSON`,
773
+ );
774
+ }
775
+
776
+ /** @internal */
777
+ export const Uses$inboundSchema: z.ZodType<Uses, z.ZodTypeDef, unknown> = z
778
+ .object({
779
+ calendaring: z.boolean(),
780
+ credentialing: z.boolean(),
781
+ rfid: z.boolean(),
782
+ scrubs: z.boolean(),
783
+ value_analysis: z.boolean(),
784
+ visitor_management: z.boolean(),
785
+ visitor_search: z.boolean(),
786
+ }).transform((v) => {
787
+ return remap$(v, {
788
+ "value_analysis": "valueAnalysis",
789
+ "visitor_management": "visitorManagement",
790
+ "visitor_search": "visitorSearch",
791
+ });
792
+ });
793
+
794
+ /** @internal */
795
+ export type Uses$Outbound = {
796
+ calendaring: boolean;
797
+ credentialing: boolean;
798
+ rfid: boolean;
799
+ scrubs: boolean;
800
+ value_analysis: boolean;
801
+ visitor_management: boolean;
802
+ visitor_search: boolean;
803
+ };
804
+
805
+ /** @internal */
806
+ export const Uses$outboundSchema: z.ZodType<Uses$Outbound, z.ZodTypeDef, Uses> =
807
+ z.object({
808
+ calendaring: z.boolean(),
809
+ credentialing: z.boolean(),
810
+ rfid: z.boolean(),
811
+ scrubs: z.boolean(),
812
+ valueAnalysis: z.boolean(),
813
+ visitorManagement: z.boolean(),
814
+ visitorSearch: z.boolean(),
815
+ }).transform((v) => {
816
+ return remap$(v, {
817
+ valueAnalysis: "value_analysis",
818
+ visitorManagement: "visitor_management",
819
+ visitorSearch: "visitor_search",
820
+ });
821
+ });
822
+
823
+ /**
824
+ * @internal
825
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
826
+ */
827
+ export namespace Uses$ {
828
+ /** @deprecated use `Uses$inboundSchema` instead. */
829
+ export const inboundSchema = Uses$inboundSchema;
830
+ /** @deprecated use `Uses$outboundSchema` instead. */
831
+ export const outboundSchema = Uses$outboundSchema;
832
+ /** @deprecated use `Uses$Outbound` instead. */
833
+ export type Outbound = Uses$Outbound;
834
+ }
835
+
836
+ export function usesToJSON(uses: Uses): string {
837
+ return JSON.stringify(Uses$outboundSchema.parse(uses));
838
+ }
839
+
840
+ export function usesFromJSON(
841
+ jsonString: string,
842
+ ): SafeParseResult<Uses, SDKValidationError> {
843
+ return safeParse(
844
+ jsonString,
845
+ (x) => Uses$inboundSchema.parse(JSON.parse(x)),
846
+ `Failed to parse 'Uses' from JSON`,
847
+ );
848
+ }
849
+
850
+ /** @internal */
851
+ export const VendorGuestLimitAndOr$inboundSchema: z.ZodNativeEnum<
852
+ typeof VendorGuestLimitAndOr
853
+ > = z.nativeEnum(VendorGuestLimitAndOr);
854
+
855
+ /** @internal */
856
+ export const VendorGuestLimitAndOr$outboundSchema: z.ZodNativeEnum<
857
+ typeof VendorGuestLimitAndOr
858
+ > = VendorGuestLimitAndOr$inboundSchema;
859
+
860
+ /**
861
+ * @internal
862
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
863
+ */
864
+ export namespace VendorGuestLimitAndOr$ {
865
+ /** @deprecated use `VendorGuestLimitAndOr$inboundSchema` instead. */
866
+ export const inboundSchema = VendorGuestLimitAndOr$inboundSchema;
867
+ /** @deprecated use `VendorGuestLimitAndOr$outboundSchema` instead. */
868
+ export const outboundSchema = VendorGuestLimitAndOr$outboundSchema;
869
+ }
870
+
871
+ /** @internal */
872
+ export const VendorGuestPolicy$inboundSchema: z.ZodType<
873
+ VendorGuestPolicy,
874
+ z.ZodTypeDef,
875
+ unknown
876
+ > = z.object({
877
+ enabled: z.boolean(),
878
+ vendor_guest_limit: z.number().int().optional(),
879
+ vendor_guest_limit_and_or: VendorGuestLimitAndOr$inboundSchema.default("or"),
880
+ vendor_guest_limit_days: z.number().int().optional(),
881
+ vendor_guest_require_email: z.boolean(),
882
+ }).transform((v) => {
883
+ return remap$(v, {
884
+ "vendor_guest_limit": "vendorGuestLimit",
885
+ "vendor_guest_limit_and_or": "vendorGuestLimitAndOr",
886
+ "vendor_guest_limit_days": "vendorGuestLimitDays",
887
+ "vendor_guest_require_email": "vendorGuestRequireEmail",
888
+ });
889
+ });
890
+
891
+ /** @internal */
892
+ export type VendorGuestPolicy$Outbound = {
893
+ enabled: boolean;
894
+ vendor_guest_limit?: number | undefined;
895
+ vendor_guest_limit_and_or: string;
896
+ vendor_guest_limit_days?: number | undefined;
897
+ vendor_guest_require_email: boolean;
898
+ };
899
+
900
+ /** @internal */
901
+ export const VendorGuestPolicy$outboundSchema: z.ZodType<
902
+ VendorGuestPolicy$Outbound,
903
+ z.ZodTypeDef,
904
+ VendorGuestPolicy
905
+ > = z.object({
906
+ enabled: z.boolean(),
907
+ vendorGuestLimit: z.number().int().optional(),
908
+ vendorGuestLimitAndOr: VendorGuestLimitAndOr$outboundSchema.default("or"),
909
+ vendorGuestLimitDays: z.number().int().optional(),
910
+ vendorGuestRequireEmail: z.boolean(),
911
+ }).transform((v) => {
912
+ return remap$(v, {
913
+ vendorGuestLimit: "vendor_guest_limit",
914
+ vendorGuestLimitAndOr: "vendor_guest_limit_and_or",
915
+ vendorGuestLimitDays: "vendor_guest_limit_days",
916
+ vendorGuestRequireEmail: "vendor_guest_require_email",
917
+ });
918
+ });
919
+
920
+ /**
921
+ * @internal
922
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
923
+ */
924
+ export namespace VendorGuestPolicy$ {
925
+ /** @deprecated use `VendorGuestPolicy$inboundSchema` instead. */
926
+ export const inboundSchema = VendorGuestPolicy$inboundSchema;
927
+ /** @deprecated use `VendorGuestPolicy$outboundSchema` instead. */
928
+ export const outboundSchema = VendorGuestPolicy$outboundSchema;
929
+ /** @deprecated use `VendorGuestPolicy$Outbound` instead. */
930
+ export type Outbound = VendorGuestPolicy$Outbound;
931
+ }
932
+
933
+ export function vendorGuestPolicyToJSON(
934
+ vendorGuestPolicy: VendorGuestPolicy,
935
+ ): string {
936
+ return JSON.stringify(
937
+ VendorGuestPolicy$outboundSchema.parse(vendorGuestPolicy),
938
+ );
939
+ }
940
+
941
+ export function vendorGuestPolicyFromJSON(
942
+ jsonString: string,
943
+ ): SafeParseResult<VendorGuestPolicy, SDKValidationError> {
944
+ return safeParse(
945
+ jsonString,
946
+ (x) => VendorGuestPolicy$inboundSchema.parse(JSON.parse(x)),
947
+ `Failed to parse 'VendorGuestPolicy' from JSON`,
948
+ );
949
+ }
950
+
951
+ /** @internal */
952
+ export const VendorPolicy$inboundSchema: z.ZodType<
953
+ VendorPolicy,
954
+ z.ZodTypeDef,
955
+ unknown
956
+ > = z.object({
957
+ allow_department_other: z.boolean(),
958
+ allow_food: z.boolean(),
959
+ allow_non_kiosk_checkouts: z.boolean(),
960
+ auto_scan_out_violation: z.boolean(),
961
+ contractor_guest_require_email: z.boolean(),
962
+ visitor_checkin_require_phone: z.boolean(),
963
+ vendor_types: z.array(VendorType$inboundSchema),
964
+ }).transform((v) => {
965
+ return remap$(v, {
966
+ "allow_department_other": "allowDepartmentOther",
967
+ "allow_food": "allowFood",
968
+ "allow_non_kiosk_checkouts": "allowNonKioskCheckouts",
969
+ "auto_scan_out_violation": "autoScanOutViolation",
970
+ "contractor_guest_require_email": "contractorGuestRequireEmail",
971
+ "visitor_checkin_require_phone": "visitorCheckinRequirePhone",
972
+ "vendor_types": "vendorTypes",
973
+ });
974
+ });
975
+
976
+ /** @internal */
977
+ export type VendorPolicy$Outbound = {
978
+ allow_department_other: boolean;
979
+ allow_food: boolean;
980
+ allow_non_kiosk_checkouts: boolean;
981
+ auto_scan_out_violation: boolean;
982
+ contractor_guest_require_email: boolean;
983
+ visitor_checkin_require_phone: boolean;
984
+ vendor_types: Array<VendorType$Outbound>;
985
+ };
986
+
987
+ /** @internal */
988
+ export const VendorPolicy$outboundSchema: z.ZodType<
989
+ VendorPolicy$Outbound,
990
+ z.ZodTypeDef,
991
+ VendorPolicy
992
+ > = z.object({
993
+ allowDepartmentOther: z.boolean(),
994
+ allowFood: z.boolean(),
995
+ allowNonKioskCheckouts: z.boolean(),
996
+ autoScanOutViolation: z.boolean(),
997
+ contractorGuestRequireEmail: z.boolean(),
998
+ visitorCheckinRequirePhone: z.boolean(),
999
+ vendorTypes: z.array(VendorType$outboundSchema),
1000
+ }).transform((v) => {
1001
+ return remap$(v, {
1002
+ allowDepartmentOther: "allow_department_other",
1003
+ allowFood: "allow_food",
1004
+ allowNonKioskCheckouts: "allow_non_kiosk_checkouts",
1005
+ autoScanOutViolation: "auto_scan_out_violation",
1006
+ contractorGuestRequireEmail: "contractor_guest_require_email",
1007
+ visitorCheckinRequirePhone: "visitor_checkin_require_phone",
1008
+ vendorTypes: "vendor_types",
1009
+ });
1010
+ });
1011
+
1012
+ /**
1013
+ * @internal
1014
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1015
+ */
1016
+ export namespace VendorPolicy$ {
1017
+ /** @deprecated use `VendorPolicy$inboundSchema` instead. */
1018
+ export const inboundSchema = VendorPolicy$inboundSchema;
1019
+ /** @deprecated use `VendorPolicy$outboundSchema` instead. */
1020
+ export const outboundSchema = VendorPolicy$outboundSchema;
1021
+ /** @deprecated use `VendorPolicy$Outbound` instead. */
1022
+ export type Outbound = VendorPolicy$Outbound;
1023
+ }
1024
+
1025
+ export function vendorPolicyToJSON(vendorPolicy: VendorPolicy): string {
1026
+ return JSON.stringify(VendorPolicy$outboundSchema.parse(vendorPolicy));
1027
+ }
1028
+
1029
+ export function vendorPolicyFromJSON(
1030
+ jsonString: string,
1031
+ ): SafeParseResult<VendorPolicy, SDKValidationError> {
1032
+ return safeParse(
1033
+ jsonString,
1034
+ (x) => VendorPolicy$inboundSchema.parse(JSON.parse(x)),
1035
+ `Failed to parse 'VendorPolicy' from JSON`,
1036
+ );
1037
+ }
1038
+
1039
+ /** @internal */
1040
+ export const VisitorPolicy$inboundSchema: z.ZodType<
1041
+ VisitorPolicy,
1042
+ z.ZodTypeDef,
1043
+ unknown
1044
+ > = z.object({
1045
+ auto_checkout_visitors: z.boolean(),
1046
+ require_visit_request_zone: z.boolean(),
1047
+ show_general_visitor: z.boolean(),
1048
+ store_visitor_dl_number: z.boolean(),
1049
+ visit_request_demographics: z.string().optional(),
1050
+ visitor_subtypes: z.array(z.string()).optional(),
1051
+ }).transform((v) => {
1052
+ return remap$(v, {
1053
+ "auto_checkout_visitors": "autoCheckoutVisitors",
1054
+ "require_visit_request_zone": "requireVisitRequestZone",
1055
+ "show_general_visitor": "showGeneralVisitor",
1056
+ "store_visitor_dl_number": "storeVisitorDlNumber",
1057
+ "visit_request_demographics": "visitRequestDemographics",
1058
+ "visitor_subtypes": "visitorSubtypes",
1059
+ });
1060
+ });
1061
+
1062
+ /** @internal */
1063
+ export type VisitorPolicy$Outbound = {
1064
+ auto_checkout_visitors: boolean;
1065
+ require_visit_request_zone: boolean;
1066
+ show_general_visitor: boolean;
1067
+ store_visitor_dl_number: boolean;
1068
+ visit_request_demographics?: string | undefined;
1069
+ visitor_subtypes?: Array<string> | undefined;
1070
+ };
1071
+
1072
+ /** @internal */
1073
+ export const VisitorPolicy$outboundSchema: z.ZodType<
1074
+ VisitorPolicy$Outbound,
1075
+ z.ZodTypeDef,
1076
+ VisitorPolicy
1077
+ > = z.object({
1078
+ autoCheckoutVisitors: z.boolean(),
1079
+ requireVisitRequestZone: z.boolean(),
1080
+ showGeneralVisitor: z.boolean(),
1081
+ storeVisitorDlNumber: z.boolean(),
1082
+ visitRequestDemographics: z.string().optional(),
1083
+ visitorSubtypes: z.array(z.string()).optional(),
1084
+ }).transform((v) => {
1085
+ return remap$(v, {
1086
+ autoCheckoutVisitors: "auto_checkout_visitors",
1087
+ requireVisitRequestZone: "require_visit_request_zone",
1088
+ showGeneralVisitor: "show_general_visitor",
1089
+ storeVisitorDlNumber: "store_visitor_dl_number",
1090
+ visitRequestDemographics: "visit_request_demographics",
1091
+ visitorSubtypes: "visitor_subtypes",
1092
+ });
1093
+ });
1094
+
1095
+ /**
1096
+ * @internal
1097
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1098
+ */
1099
+ export namespace VisitorPolicy$ {
1100
+ /** @deprecated use `VisitorPolicy$inboundSchema` instead. */
1101
+ export const inboundSchema = VisitorPolicy$inboundSchema;
1102
+ /** @deprecated use `VisitorPolicy$outboundSchema` instead. */
1103
+ export const outboundSchema = VisitorPolicy$outboundSchema;
1104
+ /** @deprecated use `VisitorPolicy$Outbound` instead. */
1105
+ export type Outbound = VisitorPolicy$Outbound;
1106
+ }
1107
+
1108
+ export function visitorPolicyToJSON(visitorPolicy: VisitorPolicy): string {
1109
+ return JSON.stringify(VisitorPolicy$outboundSchema.parse(visitorPolicy));
1110
+ }
1111
+
1112
+ export function visitorPolicyFromJSON(
1113
+ jsonString: string,
1114
+ ): SafeParseResult<VisitorPolicy, SDKValidationError> {
1115
+ return safeParse(
1116
+ jsonString,
1117
+ (x) => VisitorPolicy$inboundSchema.parse(JSON.parse(x)),
1118
+ `Failed to parse 'VisitorPolicy' from JSON`,
1119
+ );
1120
+ }
1121
+
1122
+ /** @internal */
1123
+ export const WorkflowPolicy$inboundSchema: z.ZodType<
1124
+ WorkflowPolicy,
1125
+ z.ZodTypeDef,
1126
+ unknown
1127
+ > = z.object({
1128
+ auto_approve_dept_change_requests: z.boolean(),
1129
+ auto_approve_role_change_requests: z.boolean(),
1130
+ auto_approve_zone_change_requests: z.boolean(),
1131
+ }).transform((v) => {
1132
+ return remap$(v, {
1133
+ "auto_approve_dept_change_requests": "autoApproveDeptChangeRequests",
1134
+ "auto_approve_role_change_requests": "autoApproveRoleChangeRequests",
1135
+ "auto_approve_zone_change_requests": "autoApproveZoneChangeRequests",
1136
+ });
1137
+ });
1138
+
1139
+ /** @internal */
1140
+ export type WorkflowPolicy$Outbound = {
1141
+ auto_approve_dept_change_requests: boolean;
1142
+ auto_approve_role_change_requests: boolean;
1143
+ auto_approve_zone_change_requests: boolean;
1144
+ };
1145
+
1146
+ /** @internal */
1147
+ export const WorkflowPolicy$outboundSchema: z.ZodType<
1148
+ WorkflowPolicy$Outbound,
1149
+ z.ZodTypeDef,
1150
+ WorkflowPolicy
1151
+ > = z.object({
1152
+ autoApproveDeptChangeRequests: z.boolean(),
1153
+ autoApproveRoleChangeRequests: z.boolean(),
1154
+ autoApproveZoneChangeRequests: z.boolean(),
1155
+ }).transform((v) => {
1156
+ return remap$(v, {
1157
+ autoApproveDeptChangeRequests: "auto_approve_dept_change_requests",
1158
+ autoApproveRoleChangeRequests: "auto_approve_role_change_requests",
1159
+ autoApproveZoneChangeRequests: "auto_approve_zone_change_requests",
1160
+ });
1161
+ });
1162
+
1163
+ /**
1164
+ * @internal
1165
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1166
+ */
1167
+ export namespace WorkflowPolicy$ {
1168
+ /** @deprecated use `WorkflowPolicy$inboundSchema` instead. */
1169
+ export const inboundSchema = WorkflowPolicy$inboundSchema;
1170
+ /** @deprecated use `WorkflowPolicy$outboundSchema` instead. */
1171
+ export const outboundSchema = WorkflowPolicy$outboundSchema;
1172
+ /** @deprecated use `WorkflowPolicy$Outbound` instead. */
1173
+ export type Outbound = WorkflowPolicy$Outbound;
1174
+ }
1175
+
1176
+ export function workflowPolicyToJSON(workflowPolicy: WorkflowPolicy): string {
1177
+ return JSON.stringify(WorkflowPolicy$outboundSchema.parse(workflowPolicy));
1178
+ }
1179
+
1180
+ export function workflowPolicyFromJSON(
1181
+ jsonString: string,
1182
+ ): SafeParseResult<WorkflowPolicy, SDKValidationError> {
1183
+ return safeParse(
1184
+ jsonString,
1185
+ (x) => WorkflowPolicy$inboundSchema.parse(JSON.parse(x)),
1186
+ `Failed to parse 'WorkflowPolicy' from JSON`,
1187
+ );
1188
+ }
1189
+
1190
+ /** @internal */
1191
+ export const Facility$inboundSchema: z.ZodType<
1192
+ Facility,
1193
+ z.ZodTypeDef,
1194
+ unknown
1195
+ > = z.object({
1196
+ appointment_policy: z.nullable(z.lazy(() => AppointmentPolicy$inboundSchema))
1197
+ .optional(),
1198
+ contacts: z.nullable(z.lazy(() => Contacts$inboundSchema)).optional(),
1199
+ vendor_counts: z.nullable(z.lazy(() => VendorCounts$inboundSchema))
1200
+ .optional(),
1201
+ email_domain: z.nullable(z.string()).optional(),
1202
+ facility_type: z.nullable(z.string()).optional(),
1203
+ flu_credential: z.lazy(() => FluCredential$inboundSchema).optional(),
1204
+ id: z.number().int().optional(),
1205
+ image_urls: ImageSet$inboundSchema.optional(),
1206
+ location: z.lazy(() => Location$inboundSchema).optional(),
1207
+ name: z.string().optional(),
1208
+ scrubs_policy: z.nullable(z.lazy(() => ScrubsPolicy$inboundSchema))
1209
+ .optional(),
1210
+ status: z.string().optional(),
1211
+ system: z.union([SystemSummary$inboundSchema, z.number().int()]).optional(),
1212
+ uses: z.lazy(() => Uses$inboundSchema).optional(),
1213
+ vendor_guest_policy: z.nullable(z.lazy(() => VendorGuestPolicy$inboundSchema))
1214
+ .optional(),
1215
+ vendor_policy: z.nullable(z.lazy(() => VendorPolicy$inboundSchema))
1216
+ .optional(),
1217
+ visible: z.boolean().optional(),
1218
+ visitor_policy: z.nullable(z.lazy(() => VisitorPolicy$inboundSchema))
1219
+ .optional(),
1220
+ workflow_policy: z.nullable(z.lazy(() => WorkflowPolicy$inboundSchema))
1221
+ .optional(),
1222
+ }).transform((v) => {
1223
+ return remap$(v, {
1224
+ "appointment_policy": "appointmentPolicy",
1225
+ "vendor_counts": "vendorCounts",
1226
+ "email_domain": "emailDomain",
1227
+ "facility_type": "facilityType",
1228
+ "flu_credential": "fluCredential",
1229
+ "image_urls": "imageUrls",
1230
+ "scrubs_policy": "scrubsPolicy",
1231
+ "vendor_guest_policy": "vendorGuestPolicy",
1232
+ "vendor_policy": "vendorPolicy",
1233
+ "visitor_policy": "visitorPolicy",
1234
+ "workflow_policy": "workflowPolicy",
1235
+ });
1236
+ });
1237
+
1238
+ /** @internal */
1239
+ export type Facility$Outbound = {
1240
+ appointment_policy?: AppointmentPolicy$Outbound | null | undefined;
1241
+ contacts?: Contacts$Outbound | null | undefined;
1242
+ vendor_counts?: VendorCounts$Outbound | null | undefined;
1243
+ email_domain?: string | null | undefined;
1244
+ facility_type?: string | null | undefined;
1245
+ flu_credential?: FluCredential$Outbound | undefined;
1246
+ id?: number | undefined;
1247
+ image_urls?: ImageSet$Outbound | undefined;
1248
+ location?: Location$Outbound | undefined;
1249
+ name?: string | undefined;
1250
+ scrubs_policy?: ScrubsPolicy$Outbound | null | undefined;
1251
+ status?: string | undefined;
1252
+ system?: SystemSummary$Outbound | number | undefined;
1253
+ uses?: Uses$Outbound | undefined;
1254
+ vendor_guest_policy?: VendorGuestPolicy$Outbound | null | undefined;
1255
+ vendor_policy?: VendorPolicy$Outbound | null | undefined;
1256
+ visible?: boolean | undefined;
1257
+ visitor_policy?: VisitorPolicy$Outbound | null | undefined;
1258
+ workflow_policy?: WorkflowPolicy$Outbound | null | undefined;
1259
+ };
1260
+
1261
+ /** @internal */
1262
+ export const Facility$outboundSchema: z.ZodType<
1263
+ Facility$Outbound,
1264
+ z.ZodTypeDef,
1265
+ Facility
1266
+ > = z.object({
1267
+ appointmentPolicy: z.nullable(z.lazy(() => AppointmentPolicy$outboundSchema))
1268
+ .optional(),
1269
+ contacts: z.nullable(z.lazy(() => Contacts$outboundSchema)).optional(),
1270
+ vendorCounts: z.nullable(z.lazy(() => VendorCounts$outboundSchema))
1271
+ .optional(),
1272
+ emailDomain: z.nullable(z.string()).optional(),
1273
+ facilityType: z.nullable(z.string()).optional(),
1274
+ fluCredential: z.lazy(() => FluCredential$outboundSchema).optional(),
1275
+ id: z.number().int().optional(),
1276
+ imageUrls: ImageSet$outboundSchema.optional(),
1277
+ location: z.lazy(() => Location$outboundSchema).optional(),
1278
+ name: z.string().optional(),
1279
+ scrubsPolicy: z.nullable(z.lazy(() => ScrubsPolicy$outboundSchema))
1280
+ .optional(),
1281
+ status: z.string().optional(),
1282
+ system: z.union([SystemSummary$outboundSchema, z.number().int()]).optional(),
1283
+ uses: z.lazy(() => Uses$outboundSchema).optional(),
1284
+ vendorGuestPolicy: z.nullable(z.lazy(() => VendorGuestPolicy$outboundSchema))
1285
+ .optional(),
1286
+ vendorPolicy: z.nullable(z.lazy(() => VendorPolicy$outboundSchema))
1287
+ .optional(),
1288
+ visible: z.boolean().optional(),
1289
+ visitorPolicy: z.nullable(z.lazy(() => VisitorPolicy$outboundSchema))
1290
+ .optional(),
1291
+ workflowPolicy: z.nullable(z.lazy(() => WorkflowPolicy$outboundSchema))
1292
+ .optional(),
1293
+ }).transform((v) => {
1294
+ return remap$(v, {
1295
+ appointmentPolicy: "appointment_policy",
1296
+ vendorCounts: "vendor_counts",
1297
+ emailDomain: "email_domain",
1298
+ facilityType: "facility_type",
1299
+ fluCredential: "flu_credential",
1300
+ imageUrls: "image_urls",
1301
+ scrubsPolicy: "scrubs_policy",
1302
+ vendorGuestPolicy: "vendor_guest_policy",
1303
+ vendorPolicy: "vendor_policy",
1304
+ visitorPolicy: "visitor_policy",
1305
+ workflowPolicy: "workflow_policy",
1306
+ });
1307
+ });
1308
+
1309
+ /**
1310
+ * @internal
1311
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1312
+ */
1313
+ export namespace Facility$ {
1314
+ /** @deprecated use `Facility$inboundSchema` instead. */
1315
+ export const inboundSchema = Facility$inboundSchema;
1316
+ /** @deprecated use `Facility$outboundSchema` instead. */
1317
+ export const outboundSchema = Facility$outboundSchema;
1318
+ /** @deprecated use `Facility$Outbound` instead. */
1319
+ export type Outbound = Facility$Outbound;
1320
+ }
1321
+
1322
+ export function facilityToJSON(facility: Facility): string {
1323
+ return JSON.stringify(Facility$outboundSchema.parse(facility));
1324
+ }
1325
+
1326
+ export function facilityFromJSON(
1327
+ jsonString: string,
1328
+ ): SafeParseResult<Facility, SDKValidationError> {
1329
+ return safeParse(
1330
+ jsonString,
1331
+ (x) => Facility$inboundSchema.parse(JSON.parse(x)),
1332
+ `Failed to parse 'Facility' from JSON`,
1333
+ );
1334
+ }