@greensecurity/javascript-sdk 0.45.0-beta.25 → 0.45.0-beta.27

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 (379) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/__tests__/events.test.js +2 -4
  3. package/dist/commonjs/__tests__/events.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +6 -9
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/funcs/eventsCreateEvent.d.ts +1 -1
  8. package/dist/commonjs/funcs/eventsCreateEvent.d.ts.map +1 -1
  9. package/dist/commonjs/funcs/eventsCreateEvent.js +1 -1
  10. package/dist/commonjs/funcs/eventsCreateEvent.js.map +1 -1
  11. package/dist/commonjs/funcs/eventsGetEvent.d.ts +12 -4
  12. package/dist/commonjs/funcs/eventsGetEvent.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/eventsGetEvent.js +12 -4
  14. package/dist/commonjs/funcs/eventsGetEvent.js.map +1 -1
  15. package/dist/commonjs/funcs/eventsListFeed.d.ts +14 -2
  16. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/eventsListFeed.js +14 -2
  18. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  19. package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js +2 -0
  20. package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
  21. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +14 -2
  22. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  23. package/dist/commonjs/funcs/eventsListPendingInvitations.js +14 -2
  24. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  25. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +13 -2
  26. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  27. package/dist/commonjs/funcs/eventsListStandingAppointments.js +13 -2
  28. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  29. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  30. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  31. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
  32. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  33. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
  34. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  35. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js +2 -0
  36. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
  37. package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
  38. package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
  39. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  40. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
  42. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
  43. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
  44. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  45. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
  46. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  47. package/dist/commonjs/lib/config.d.ts +2 -2
  48. package/dist/commonjs/lib/config.js +2 -2
  49. package/dist/commonjs/models/components/event.d.ts +98 -0
  50. package/dist/commonjs/models/components/event.d.ts.map +1 -0
  51. package/dist/commonjs/models/components/event.js +110 -0
  52. package/dist/commonjs/models/components/event.js.map +1 -0
  53. package/dist/commonjs/models/components/expand.d.ts +6 -0
  54. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  55. package/dist/commonjs/models/components/expand.js +6 -0
  56. package/dist/commonjs/models/components/expand.js.map +1 -1
  57. package/dist/commonjs/models/components/index.d.ts +2 -4
  58. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  59. package/dist/commonjs/models/components/index.js +2 -4
  60. package/dist/commonjs/models/components/index.js.map +1 -1
  61. package/dist/commonjs/models/components/invite.d.ts +72 -0
  62. package/dist/commonjs/models/components/invite.d.ts.map +1 -0
  63. package/dist/commonjs/models/components/invite.js +109 -0
  64. package/dist/commonjs/models/components/invite.js.map +1 -0
  65. package/dist/commonjs/models/operations/createevent.d.ts +19 -0
  66. package/dist/commonjs/models/operations/createevent.d.ts.map +1 -1
  67. package/dist/commonjs/models/operations/createevent.js +3 -0
  68. package/dist/commonjs/models/operations/createevent.js.map +1 -1
  69. package/dist/commonjs/models/operations/getevent.d.ts +0 -89
  70. package/dist/commonjs/models/operations/getevent.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/getevent.js +1 -77
  72. package/dist/commonjs/models/operations/getevent.js.map +1 -1
  73. package/dist/commonjs/models/operations/listfeed.d.ts +1 -1
  74. package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/listfeed.js +1 -2
  76. package/dist/commonjs/models/operations/listfeed.js.map +1 -1
  77. package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts +17 -0
  78. package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
  79. package/dist/commonjs/models/operations/listorsearchvendorinvitees.js +4 -0
  80. package/dist/commonjs/models/operations/listorsearchvendorinvitees.js.map +1 -1
  81. package/dist/commonjs/models/operations/listpendinginvitations.d.ts +1 -1
  82. package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -1
  83. package/dist/commonjs/models/operations/listpendinginvitations.js +1 -2
  84. package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -1
  85. package/dist/commonjs/models/operations/liststandingappointments.d.ts +1 -1
  86. package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/liststandingappointments.js +1 -2
  88. package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -1
  89. package/dist/commonjs/react-query/eventsCreateEvent.d.ts +1 -1
  90. package/dist/commonjs/react-query/eventsCreateEvent.d.ts.map +1 -1
  91. package/dist/commonjs/react-query/eventsCreateEvent.js.map +1 -1
  92. package/dist/commonjs/react-query/eventsGetEvent.core.d.ts +1 -1
  93. package/dist/commonjs/react-query/eventsGetEvent.core.d.ts.map +1 -1
  94. package/dist/commonjs/react-query/eventsGetEvent.d.ts +20 -6
  95. package/dist/commonjs/react-query/eventsGetEvent.d.ts.map +1 -1
  96. package/dist/commonjs/react-query/eventsGetEvent.js +20 -6
  97. package/dist/commonjs/react-query/eventsGetEvent.js.map +1 -1
  98. package/dist/commonjs/react-query/eventsListFeed.d.ts +56 -8
  99. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  100. package/dist/commonjs/react-query/eventsListFeed.js +56 -8
  101. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  102. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
  103. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
  104. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
  105. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
  106. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
  107. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
  108. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
  109. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +56 -8
  110. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  111. package/dist/commonjs/react-query/eventsListPendingInvitations.js +56 -8
  112. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  113. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +52 -8
  114. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  115. package/dist/commonjs/react-query/eventsListStandingAppointments.js +52 -8
  116. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  117. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  118. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  119. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
  120. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  121. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
  122. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  123. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js +4 -0
  124. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
  125. package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
  126. package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
  127. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  128. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  129. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
  130. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
  131. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
  132. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  133. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
  134. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
  135. package/dist/commonjs/sdk/events.d.ts +52 -10
  136. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  137. package/dist/commonjs/sdk/events.js +51 -9
  138. package/dist/commonjs/sdk/events.js.map +1 -1
  139. package/dist/commonjs/sdk/fhirconfigs.d.ts +5 -1
  140. package/dist/commonjs/sdk/fhirconfigs.d.ts.map +1 -1
  141. package/dist/commonjs/sdk/fhirconfigs.js +5 -1
  142. package/dist/commonjs/sdk/fhirconfigs.js.map +1 -1
  143. package/dist/commonjs/sdk/organizations.d.ts +2 -0
  144. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  145. package/dist/commonjs/sdk/organizations.js +2 -0
  146. package/dist/commonjs/sdk/organizations.js.map +1 -1
  147. package/dist/commonjs/sdk/vendors.d.ts +2 -0
  148. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  149. package/dist/commonjs/sdk/vendors.js +2 -0
  150. package/dist/commonjs/sdk/vendors.js.map +1 -1
  151. package/dist/esm/__tests__/events.test.js +2 -4
  152. package/dist/esm/__tests__/events.test.js.map +1 -1
  153. package/dist/esm/__tests__/vendors.test.js +1 -1
  154. package/dist/esm/__tests__/zones.test.js +6 -9
  155. package/dist/esm/__tests__/zones.test.js.map +1 -1
  156. package/dist/esm/funcs/eventsCreateEvent.d.ts +1 -1
  157. package/dist/esm/funcs/eventsCreateEvent.d.ts.map +1 -1
  158. package/dist/esm/funcs/eventsCreateEvent.js +1 -1
  159. package/dist/esm/funcs/eventsCreateEvent.js.map +1 -1
  160. package/dist/esm/funcs/eventsGetEvent.d.ts +12 -4
  161. package/dist/esm/funcs/eventsGetEvent.d.ts.map +1 -1
  162. package/dist/esm/funcs/eventsGetEvent.js +12 -4
  163. package/dist/esm/funcs/eventsGetEvent.js.map +1 -1
  164. package/dist/esm/funcs/eventsListFeed.d.ts +14 -2
  165. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  166. package/dist/esm/funcs/eventsListFeed.js +14 -2
  167. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  168. package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js +2 -0
  169. package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
  170. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +14 -2
  171. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  172. package/dist/esm/funcs/eventsListPendingInvitations.js +14 -2
  173. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  174. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +13 -2
  175. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  176. package/dist/esm/funcs/eventsListStandingAppointments.js +13 -2
  177. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  178. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  179. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  180. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
  181. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  182. package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
  183. package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  184. package/dist/esm/funcs/fhirConfigsGetFhirConfig.js +2 -0
  185. package/dist/esm/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
  186. package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
  187. package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
  188. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  189. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  190. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
  191. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
  192. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
  193. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  194. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
  195. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  196. package/dist/esm/lib/config.d.ts +2 -2
  197. package/dist/esm/lib/config.js +2 -2
  198. package/dist/esm/models/components/event.d.ts +98 -0
  199. package/dist/esm/models/components/event.d.ts.map +1 -0
  200. package/dist/esm/models/components/event.js +69 -0
  201. package/dist/esm/models/components/event.js.map +1 -0
  202. package/dist/esm/models/components/expand.d.ts +6 -0
  203. package/dist/esm/models/components/expand.d.ts.map +1 -1
  204. package/dist/esm/models/components/expand.js +6 -0
  205. package/dist/esm/models/components/expand.js.map +1 -1
  206. package/dist/esm/models/components/index.d.ts +2 -4
  207. package/dist/esm/models/components/index.d.ts.map +1 -1
  208. package/dist/esm/models/components/index.js +2 -4
  209. package/dist/esm/models/components/index.js.map +1 -1
  210. package/dist/esm/models/components/invite.d.ts +72 -0
  211. package/dist/esm/models/components/invite.d.ts.map +1 -0
  212. package/dist/esm/models/components/invite.js +69 -0
  213. package/dist/esm/models/components/invite.js.map +1 -0
  214. package/dist/esm/models/operations/createevent.d.ts +19 -0
  215. package/dist/esm/models/operations/createevent.d.ts.map +1 -1
  216. package/dist/esm/models/operations/createevent.js +3 -0
  217. package/dist/esm/models/operations/createevent.js.map +1 -1
  218. package/dist/esm/models/operations/getevent.d.ts +0 -89
  219. package/dist/esm/models/operations/getevent.d.ts.map +1 -1
  220. package/dist/esm/models/operations/getevent.js +0 -70
  221. package/dist/esm/models/operations/getevent.js.map +1 -1
  222. package/dist/esm/models/operations/listfeed.d.ts +1 -1
  223. package/dist/esm/models/operations/listfeed.d.ts.map +1 -1
  224. package/dist/esm/models/operations/listfeed.js +1 -2
  225. package/dist/esm/models/operations/listfeed.js.map +1 -1
  226. package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts +17 -0
  227. package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
  228. package/dist/esm/models/operations/listorsearchvendorinvitees.js +4 -0
  229. package/dist/esm/models/operations/listorsearchvendorinvitees.js.map +1 -1
  230. package/dist/esm/models/operations/listpendinginvitations.d.ts +1 -1
  231. package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -1
  232. package/dist/esm/models/operations/listpendinginvitations.js +1 -2
  233. package/dist/esm/models/operations/listpendinginvitations.js.map +1 -1
  234. package/dist/esm/models/operations/liststandingappointments.d.ts +1 -1
  235. package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -1
  236. package/dist/esm/models/operations/liststandingappointments.js +1 -2
  237. package/dist/esm/models/operations/liststandingappointments.js.map +1 -1
  238. package/dist/esm/react-query/eventsCreateEvent.d.ts +1 -1
  239. package/dist/esm/react-query/eventsCreateEvent.d.ts.map +1 -1
  240. package/dist/esm/react-query/eventsCreateEvent.js.map +1 -1
  241. package/dist/esm/react-query/eventsGetEvent.core.d.ts +1 -1
  242. package/dist/esm/react-query/eventsGetEvent.core.d.ts.map +1 -1
  243. package/dist/esm/react-query/eventsGetEvent.d.ts +20 -6
  244. package/dist/esm/react-query/eventsGetEvent.d.ts.map +1 -1
  245. package/dist/esm/react-query/eventsGetEvent.js +20 -6
  246. package/dist/esm/react-query/eventsGetEvent.js.map +1 -1
  247. package/dist/esm/react-query/eventsListFeed.d.ts +56 -8
  248. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  249. package/dist/esm/react-query/eventsListFeed.js +56 -8
  250. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  251. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
  252. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
  253. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
  254. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
  255. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
  256. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
  257. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
  258. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +56 -8
  259. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  260. package/dist/esm/react-query/eventsListPendingInvitations.js +56 -8
  261. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  262. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +52 -8
  263. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  264. package/dist/esm/react-query/eventsListStandingAppointments.js +52 -8
  265. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  266. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  267. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  268. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
  269. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  270. package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
  271. package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  272. package/dist/esm/react-query/fhirConfigsGetFhirConfig.js +4 -0
  273. package/dist/esm/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
  274. package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
  275. package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
  276. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  277. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  278. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
  279. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
  280. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
  281. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  282. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
  283. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
  284. package/dist/esm/sdk/events.d.ts +52 -10
  285. package/dist/esm/sdk/events.d.ts.map +1 -1
  286. package/dist/esm/sdk/events.js +51 -9
  287. package/dist/esm/sdk/events.js.map +1 -1
  288. package/dist/esm/sdk/fhirconfigs.d.ts +5 -1
  289. package/dist/esm/sdk/fhirconfigs.d.ts.map +1 -1
  290. package/dist/esm/sdk/fhirconfigs.js +5 -1
  291. package/dist/esm/sdk/fhirconfigs.js.map +1 -1
  292. package/dist/esm/sdk/organizations.d.ts +2 -0
  293. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  294. package/dist/esm/sdk/organizations.js +2 -0
  295. package/dist/esm/sdk/organizations.js.map +1 -1
  296. package/dist/esm/sdk/vendors.d.ts +2 -0
  297. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  298. package/dist/esm/sdk/vendors.js +2 -0
  299. package/dist/esm/sdk/vendors.js.map +1 -1
  300. package/jsr.json +1 -1
  301. package/package.json +1 -1
  302. package/src/__tests__/events.test.ts +2 -4
  303. package/src/__tests__/vendors.test.ts +1 -1
  304. package/src/__tests__/zones.test.ts +6 -9
  305. package/src/funcs/eventsCreateEvent.ts +4 -0
  306. package/src/funcs/eventsGetEvent.ts +15 -7
  307. package/src/funcs/eventsListFeed.ts +14 -2
  308. package/src/funcs/eventsListOrSearchVendorInvitees.ts +2 -0
  309. package/src/funcs/eventsListPendingInvitations.ts +14 -2
  310. package/src/funcs/eventsListStandingAppointments.ts +13 -2
  311. package/src/funcs/fhirConfigsDeleteFhirConfigById.ts +2 -0
  312. package/src/funcs/fhirConfigsGetFhirConfig.ts +2 -0
  313. package/src/funcs/fhirConfigsListOfFhirConfigurations.ts +1 -1
  314. package/src/funcs/organizationsCreateCompanyTargetFacility.ts +2 -0
  315. package/src/funcs/vendorsGetVendorInvoiceDetails.ts +2 -0
  316. package/src/lib/config.ts +2 -2
  317. package/src/models/components/event.ts +214 -0
  318. package/src/models/components/expand.ts +6 -0
  319. package/src/models/components/index.ts +2 -4
  320. package/src/models/components/invite.ts +168 -0
  321. package/src/models/operations/createevent.ts +22 -0
  322. package/src/models/operations/getevent.ts +0 -223
  323. package/src/models/operations/listfeed.ts +2 -3
  324. package/src/models/operations/listorsearchvendorinvitees.ts +21 -0
  325. package/src/models/operations/listpendinginvitations.ts +2 -3
  326. package/src/models/operations/liststandingappointments.ts +2 -5
  327. package/src/react-query/eventsCreateEvent.ts +1 -0
  328. package/src/react-query/eventsGetEvent.core.ts +1 -1
  329. package/src/react-query/eventsGetEvent.ts +20 -6
  330. package/src/react-query/eventsListFeed.ts +56 -8
  331. package/src/react-query/eventsListOrSearchVendorInvitees.core.ts +8 -0
  332. package/src/react-query/eventsListOrSearchVendorInvitees.ts +4 -0
  333. package/src/react-query/eventsListPendingInvitations.ts +56 -8
  334. package/src/react-query/eventsListStandingAppointments.ts +52 -8
  335. package/src/react-query/fhirConfigsDeleteFhirConfigById.ts +2 -0
  336. package/src/react-query/fhirConfigsGetFhirConfig.ts +4 -0
  337. package/src/react-query/fhirConfigsListOfFhirConfigurations.ts +4 -4
  338. package/src/react-query/organizationsCreateCompanyTargetFacility.ts +2 -0
  339. package/src/react-query/vendorsGetVendorInvoiceDetails.ts +4 -0
  340. package/src/sdk/events.ts +52 -10
  341. package/src/sdk/fhirconfigs.ts +5 -1
  342. package/src/sdk/organizations.ts +2 -0
  343. package/src/sdk/vendors.ts +2 -0
  344. package/dist/commonjs/models/components/feed.d.ts +0 -33
  345. package/dist/commonjs/models/components/feed.d.ts.map +0 -1
  346. package/dist/commonjs/models/components/feed.js +0 -75
  347. package/dist/commonjs/models/components/feed.js.map +0 -1
  348. package/dist/commonjs/models/components/invitee.d.ts +0 -23
  349. package/dist/commonjs/models/components/invitee.d.ts.map +0 -1
  350. package/dist/commonjs/models/components/invitee.js +0 -68
  351. package/dist/commonjs/models/components/invitee.js.map +0 -1
  352. package/dist/commonjs/models/components/pendinginvitation.d.ts +0 -41
  353. package/dist/commonjs/models/components/pendinginvitation.d.ts.map +0 -1
  354. package/dist/commonjs/models/components/pendinginvitation.js +0 -85
  355. package/dist/commonjs/models/components/pendinginvitation.js.map +0 -1
  356. package/dist/commonjs/models/components/standingappointment.d.ts +0 -34
  357. package/dist/commonjs/models/components/standingappointment.d.ts.map +0 -1
  358. package/dist/commonjs/models/components/standingappointment.js +0 -74
  359. package/dist/commonjs/models/components/standingappointment.js.map +0 -1
  360. package/dist/esm/models/components/feed.d.ts +0 -33
  361. package/dist/esm/models/components/feed.d.ts.map +0 -1
  362. package/dist/esm/models/components/feed.js +0 -38
  363. package/dist/esm/models/components/feed.js.map +0 -1
  364. package/dist/esm/models/components/invitee.d.ts +0 -23
  365. package/dist/esm/models/components/invitee.d.ts.map +0 -1
  366. package/dist/esm/models/components/invitee.js +0 -31
  367. package/dist/esm/models/components/invitee.js.map +0 -1
  368. package/dist/esm/models/components/pendinginvitation.d.ts +0 -41
  369. package/dist/esm/models/components/pendinginvitation.d.ts.map +0 -1
  370. package/dist/esm/models/components/pendinginvitation.js +0 -47
  371. package/dist/esm/models/components/pendinginvitation.js.map +0 -1
  372. package/dist/esm/models/components/standingappointment.d.ts +0 -34
  373. package/dist/esm/models/components/standingappointment.d.ts.map +0 -1
  374. package/dist/esm/models/components/standingappointment.js +0 -37
  375. package/dist/esm/models/components/standingappointment.js.map +0 -1
  376. package/src/models/components/feed.ts +0 -74
  377. package/src/models/components/invitee.ts +0 -58
  378. package/src/models/components/pendinginvitation.ts +0 -102
  379. package/src/models/components/standingappointment.ts +0 -78
@@ -42,16 +42,13 @@ test("Zones List Or Search Security Zones", async () => {
42
42
  facility: {
43
43
  contacts: {
44
44
  contact: {
45
- status: "Active",
46
- department: 123,
47
- },
48
- adminContact: {
49
- status: "Inactive",
45
+ status: "Deleted",
50
46
  department: 123,
51
47
  },
48
+ adminContact: null,
52
49
  techContact: {
53
50
  status: "Active",
54
- department: 123,
51
+ department: null,
55
52
  },
56
53
  greenSecurityCsm: {
57
54
  status: "Active",
@@ -60,9 +57,9 @@ test("Zones List Or Search Security Zones", async () => {
60
57
  accountManager: null,
61
58
  },
62
59
  vendorGuestPolicy: {
63
- enabled: false,
60
+ enabled: true,
64
61
  vendorGuestLimitAndOr: "and",
65
- vendorGuestRequireEmail: true,
62
+ vendorGuestRequireEmail: false,
66
63
  },
67
64
  },
68
65
  },
@@ -83,7 +80,7 @@ test("Zones Security Zone Checkin", async () => {
83
80
 
84
81
  const result = await greenSecurity.zones.securityZoneCheckin({
85
82
  qrCode: "<value>",
86
- zoneId: 776072,
83
+ zoneId: 542818,
87
84
  });
88
85
  expect(result).toBeDefined();
89
86
  expect(result).toEqual({});
@@ -44,6 +44,7 @@ export function eventsCreateEvent(
44
44
  Result<
45
45
  operations.CreateEventCreateEventOk,
46
46
  | errors.ApiErrorResponse
47
+ | errors.ApiValidationErrorResponse
47
48
  | GreenSecurityError
48
49
  | ResponseValidationError
49
50
  | ConnectionError
@@ -70,6 +71,7 @@ async function $do(
70
71
  Result<
71
72
  operations.CreateEventCreateEventOk,
72
73
  | errors.ApiErrorResponse
74
+ | errors.ApiValidationErrorResponse
73
75
  | GreenSecurityError
74
76
  | ResponseValidationError
75
77
  | ConnectionError
@@ -152,6 +154,7 @@ async function $do(
152
154
  const [result] = await M.match<
153
155
  operations.CreateEventCreateEventOk,
154
156
  | errors.ApiErrorResponse
157
+ | errors.ApiValidationErrorResponse
155
158
  | GreenSecurityError
156
159
  | ResponseValidationError
157
160
  | ConnectionError
@@ -163,6 +166,7 @@ async function $do(
163
166
  >(
164
167
  M.json(200, operations.CreateEventCreateEventOk$inboundSchema),
165
168
  M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
169
+ M.jsonErr(422, errors.ApiValidationErrorResponse$inboundSchema),
166
170
  M.fail("4XX"),
167
171
  M.fail([500, "5XX"]),
168
172
  )(response, req, { extraFields: responseFields });
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
14
15
  import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
15
16
  import {
16
17
  ConnectionError,
@@ -36,12 +37,19 @@ import { Result } from "../types/fp.js";
36
37
  *
37
38
  * Available `expand` scopes are:
38
39
  *
39
- * - `event.facility`
40
- * - `event.department`
41
- * - `event.invitees`
40
+ * - event.facility
41
+ * - event.department
42
+ * - event.invitees
43
+ * - event.location
44
+ * - event.attendees
45
+ * - event.creator
42
46
  *
43
47
  * Unrecognised values are ignored.
44
48
  *
49
+ * This route always returns the current `Event` shape, whatever SDK version is calling: it was
50
+ * introduced after the calendar list endpoints and has never served the older string-valued
51
+ * shape they did.
52
+ *
45
53
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
46
54
  */
47
55
  export function eventsGetEvent(
@@ -50,7 +58,7 @@ export function eventsGetEvent(
50
58
  options?: RequestOptions,
51
59
  ): APIPromise<
52
60
  Result<
53
- operations.GetEventGetEventOk,
61
+ components.Event,
54
62
  | errors.ApiErrorResponse
55
63
  | GreenSecurityError
56
64
  | ResponseValidationError
@@ -76,7 +84,7 @@ async function $do(
76
84
  ): Promise<
77
85
  [
78
86
  Result<
79
- operations.GetEventGetEventOk,
87
+ components.Event,
80
88
  | errors.ApiErrorResponse
81
89
  | GreenSecurityError
82
90
  | ResponseValidationError
@@ -168,7 +176,7 @@ async function $do(
168
176
  };
169
177
 
170
178
  const [result] = await M.match<
171
- operations.GetEventGetEventOk,
179
+ components.Event,
172
180
  | errors.ApiErrorResponse
173
181
  | GreenSecurityError
174
182
  | ResponseValidationError
@@ -179,7 +187,7 @@ async function $do(
179
187
  | UnexpectedClientError
180
188
  | SDKValidationError
181
189
  >(
182
- M.json(200, operations.GetEventGetEventOk$inboundSchema),
190
+ M.json(200, components.Event$inboundSchema),
183
191
  M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
184
192
  M.fail("4XX"),
185
193
  M.fail([500, "5XX"]),
@@ -36,9 +36,21 @@ import {
36
36
  * List events feed
37
37
  *
38
38
  * @remarks
39
- * List events feed
39
+ * List events feed.
40
+ *
41
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
42
+ * the caller's role and their relationship to the record decide what is returned.
43
+ *
44
+ * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
45
+ * so `event_creator`, `event_creator_img_url` and `invitees` are populated — the fields this
46
+ * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
47
+ * instead, in which `facility` and `department` are name strings rather than ids; the server
48
+ * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
49
+ * shape it was generated against until it is regenerated.
40
50
  *
41
- * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission - the caller's role and their relationship to the record decide what is returned.
51
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
52
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
53
+ * build is compared against it.
42
54
  *
43
55
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
56
  */
@@ -123,10 +123,12 @@ async function $do(
123
123
  }, { explode: false }),
124
124
  encodeFormQuery({
125
125
  "desc": payload.desc,
126
+ "facility_id": payload.facility_id,
126
127
  "items_per_page": payload.items_per_page,
127
128
  "page": payload.page,
128
129
  "search": payload.search,
129
130
  "sort": payload.sort,
131
+ "vendor_id": payload.vendor_id,
130
132
  }),
131
133
  );
132
134
 
@@ -36,9 +36,21 @@ import {
36
36
  * List pending invitations
37
37
  *
38
38
  * @remarks
39
- * List pending invitations
39
+ * List pending invitations.
40
+ *
41
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
42
+ * the caller's role and their relationship to the record decide what is returned.
43
+ *
44
+ * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
45
+ * so `event` is the expanded `{ id, name }` summary rather than a bare id, and `invitee` is
46
+ * populated — the appointment and the recipient this list has always named. This endpoint
47
+ * takes no `expand` parameter; both scopes are applied on every call and cannot be turned off.
48
+ * SDK builds below `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
49
+ * embeds the appointment.
40
50
  *
41
- * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission - the caller's role and their relationship to the record decide what is returned.
51
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
52
+ * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
53
+ * build is compared against it.
42
54
  *
43
55
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
56
  */
@@ -36,9 +36,20 @@ import {
36
36
  * List standing appointments
37
37
  *
38
38
  * @remarks
39
- * List standing appointment
39
+ * List standing appointments.
40
40
  *
41
- * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission - the caller's role and their relationship to the record decide what is returned.
41
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
42
+ * the caller's role and their relationship to the record decide what is returned.
43
+ *
44
+ * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
45
+ * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
46
+ * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
47
+ * the reader's own outstanding invite. SDK builds below `0.55.0-beta.1` receive the older
48
+ * `StandingAppointment` shape instead.
49
+ *
50
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
51
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
52
+ * build is compared against it.
42
53
  *
43
54
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
55
  */
@@ -31,6 +31,8 @@ import { Result } from "../types/fp.js";
31
31
  * Delete a FHIR config by ID
32
32
  *
33
33
  * @remarks
34
+ * Requires the `fhir_config` / `delete` permission.
35
+ *
34
36
  * **Permissions.** Requires the `fhir_configs.delete` permission.
35
37
  *
36
38
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -33,6 +33,8 @@ import { Result } from "../types/fp.js";
33
33
  * @remarks
34
34
  * Retrieve a FHIR configuration by ID.
35
35
  *
36
+ * This endpoint requires the `fhir_configs` / `view` permission.
37
+ *
36
38
  * **Permissions.** Requires the `fhir_configs.view` permission.
37
39
  *
38
40
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -36,7 +36,7 @@ import {
36
36
  * List of FHIR configurations
37
37
  *
38
38
  * @remarks
39
- * List available FHIR configurations.
39
+ * List available FHIR configurations. This method requires the `fhir_config` / `view` permission.
40
40
  *
41
41
  * **Permissions.** Requires the `fhir_configs.view` permission.
42
42
  *
@@ -50,6 +50,8 @@ import { Result } from "../types/fp.js";
50
50
  *
51
51
  * **Permissions.** Requires the `target_facilities.add` permission.
52
52
  *
53
+ * **Permissions.** Requires the `target_facilities.add` permission.
54
+ *
53
55
  * Available `expand` scopes are:
54
56
  *
55
57
  * - `company_target_facility.facility`
@@ -35,6 +35,8 @@ import { Result } from "../types/fp.js";
35
35
  *
36
36
  * **Permissions.** Requires the `invoices.view` permission.
37
37
  *
38
+ * **Permissions.** Requires the `invoices.view` permission.
39
+ *
38
40
  * Available `expand` scopes are:
39
41
  *
40
42
  * - `invoice.invoice_type`
package/src/lib/config.ts CHANGED
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "0.45.0",
83
- sdkVersion: "0.45.0-beta.25",
83
+ sdkVersion: "0.45.0-beta.27",
84
84
  genVersion: "2.938.0",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.45.0-beta.25 2.938.0 0.45.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.45.0-beta.27 2.938.0 0.45.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -0,0 +1,214 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { smartUnion } from "../../types/smartUnion.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+ import { Invite, Invite$inboundSchema } from "./invite.js";
13
+
14
+ export type EventFacility2 = {
15
+ id: number;
16
+ name: string | null;
17
+ };
18
+
19
+ /**
20
+ * The facility id, or a summary when `event.facility` is passed to `expand`. Null when the appointment was booked against a department alone.
21
+ */
22
+ export type EventFacility = EventFacility2 | number;
23
+
24
+ export type Department2 = {
25
+ id: number;
26
+ name: string | null;
27
+ };
28
+
29
+ /**
30
+ * The department id, or a summary when `event.department` is passed to `expand`. Null when the appointment was booked against a facility alone.
31
+ */
32
+ export type EventDepartment = Department2 | number;
33
+
34
+ /**
35
+ * An appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless their scope is passed. SDK builds below `0.55.0-beta.1` receive `Feed` or `StandingAppointment` instead, which is chosen from the `X-SDK-User-Agent` header.
36
+ *
37
+ * @remarks
38
+ *
39
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. A build is compared to it by semantic-version ordering, in which a prerelease sorts below its own release: so `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release — `0.55.0-alpha.1` — does not.
40
+ */
41
+ export type Event = {
42
+ id?: number | undefined;
43
+ /**
44
+ * The event name.
45
+ */
46
+ title?: string | null | undefined;
47
+ /**
48
+ * Start date and time in UTC (ISO 8601 format, e.g. 2026-02-23T14:00:00Z). Null if not set.
49
+ */
50
+ start?: string | null | undefined;
51
+ /**
52
+ * End date and time in UTC (ISO 8601 format, e.g. 2026-02-23T15:00:00Z). Null if not set.
53
+ */
54
+ end?: string | null | undefined;
55
+ allDay?: boolean | undefined;
56
+ /**
57
+ * Verbatim ("Approved") unless `event.viewer_invite` is passed to `expand`, which lower-cases it and appends the reading user's own outstanding invite, e.g. "approved but user invite pending". `/events/standing-appointments` passes it.
58
+ */
59
+ status?: string | null | undefined;
60
+ standingAppt?: boolean | undefined;
61
+ bringingFood?: boolean | undefined;
62
+ notes?: string | null | undefined;
63
+ /**
64
+ * ISO 8601 date-time when the event was approved.
65
+ */
66
+ dateApproved?: string | null | undefined;
67
+ /**
68
+ * The facility id, or a summary when `event.facility` is passed to `expand`. Null when the appointment was booked against a department alone.
69
+ */
70
+ facility?: EventFacility2 | number | null | undefined;
71
+ /**
72
+ * The department id, or a summary when `event.department` is passed to `expand`. Null when the appointment was booked against a facility alone.
73
+ */
74
+ department?: Department2 | number | null | undefined;
75
+ /**
76
+ * "Facility - Department". Populated when `event.location` is passed to `expand`.
77
+ */
78
+ location?: string | null | undefined;
79
+ /**
80
+ * Populated when `event.attendees` is passed to `expand`.
81
+ */
82
+ attendees?: Array<string> | null | undefined;
83
+ /**
84
+ * Populated when `event.creator` is passed to `expand`.
85
+ */
86
+ eventCreator?: string | null | undefined;
87
+ /**
88
+ * Populated when `event.creator` is passed to `expand`.
89
+ */
90
+ eventCreatorImgUrl?: string | null | undefined;
91
+ /**
92
+ * Populated when `event.invitees` is passed to `expand`.
93
+ */
94
+ invitees?: Array<Invite> | null | undefined;
95
+ };
96
+
97
+ /** @internal */
98
+ export const EventFacility2$inboundSchema: z.ZodType<
99
+ EventFacility2,
100
+ z.ZodTypeDef,
101
+ unknown
102
+ > = z.object({
103
+ id: types.number(),
104
+ name: types.nullable(types.string()),
105
+ });
106
+
107
+ export function eventFacility2FromJSON(
108
+ jsonString: string,
109
+ ): SafeParseResult<EventFacility2, SDKValidationError> {
110
+ return safeParse(
111
+ jsonString,
112
+ (x) => EventFacility2$inboundSchema.parse(JSON.parse(x)),
113
+ `Failed to parse 'EventFacility2' from JSON`,
114
+ );
115
+ }
116
+
117
+ /** @internal */
118
+ export const EventFacility$inboundSchema: z.ZodType<
119
+ EventFacility,
120
+ z.ZodTypeDef,
121
+ unknown
122
+ > = smartUnion([z.lazy(() => EventFacility2$inboundSchema), types.number()]);
123
+
124
+ export function eventFacilityFromJSON(
125
+ jsonString: string,
126
+ ): SafeParseResult<EventFacility, SDKValidationError> {
127
+ return safeParse(
128
+ jsonString,
129
+ (x) => EventFacility$inboundSchema.parse(JSON.parse(x)),
130
+ `Failed to parse 'EventFacility' from JSON`,
131
+ );
132
+ }
133
+
134
+ /** @internal */
135
+ export const Department2$inboundSchema: z.ZodType<
136
+ Department2,
137
+ z.ZodTypeDef,
138
+ unknown
139
+ > = z.object({
140
+ id: types.number(),
141
+ name: types.nullable(types.string()),
142
+ });
143
+
144
+ export function department2FromJSON(
145
+ jsonString: string,
146
+ ): SafeParseResult<Department2, SDKValidationError> {
147
+ return safeParse(
148
+ jsonString,
149
+ (x) => Department2$inboundSchema.parse(JSON.parse(x)),
150
+ `Failed to parse 'Department2' from JSON`,
151
+ );
152
+ }
153
+
154
+ /** @internal */
155
+ export const EventDepartment$inboundSchema: z.ZodType<
156
+ EventDepartment,
157
+ z.ZodTypeDef,
158
+ unknown
159
+ > = smartUnion([z.lazy(() => Department2$inboundSchema), types.number()]);
160
+
161
+ export function eventDepartmentFromJSON(
162
+ jsonString: string,
163
+ ): SafeParseResult<EventDepartment, SDKValidationError> {
164
+ return safeParse(
165
+ jsonString,
166
+ (x) => EventDepartment$inboundSchema.parse(JSON.parse(x)),
167
+ `Failed to parse 'EventDepartment' from JSON`,
168
+ );
169
+ }
170
+
171
+ /** @internal */
172
+ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
173
+ .object({
174
+ id: types.optional(types.number()),
175
+ title: z.nullable(types.string()).optional(),
176
+ start: z.nullable(types.string()).optional(),
177
+ end: z.nullable(types.string()).optional(),
178
+ all_day: types.optional(types.boolean()),
179
+ status: z.nullable(types.string()).optional(),
180
+ standing_appt: types.optional(types.boolean()),
181
+ bringing_food: types.optional(types.boolean()),
182
+ notes: z.nullable(types.string()).optional(),
183
+ date_approved: z.nullable(types.string()).optional(),
184
+ facility: z.nullable(
185
+ smartUnion([z.lazy(() => EventFacility2$inboundSchema), types.number()]),
186
+ ).optional(),
187
+ department: z.nullable(
188
+ smartUnion([z.lazy(() => Department2$inboundSchema), types.number()]),
189
+ ).optional(),
190
+ location: z.nullable(types.string()).optional(),
191
+ attendees: z.nullable(z.array(types.string())).optional(),
192
+ event_creator: z.nullable(types.string()).optional(),
193
+ event_creator_img_url: z.nullable(types.string()).optional(),
194
+ invitees: z.nullable(z.array(Invite$inboundSchema)).optional(),
195
+ }).transform((v) => {
196
+ return remap$(v, {
197
+ "all_day": "allDay",
198
+ "standing_appt": "standingAppt",
199
+ "bringing_food": "bringingFood",
200
+ "date_approved": "dateApproved",
201
+ "event_creator": "eventCreator",
202
+ "event_creator_img_url": "eventCreatorImgUrl",
203
+ });
204
+ });
205
+
206
+ export function eventFromJSON(
207
+ jsonString: string,
208
+ ): SafeParseResult<Event, SDKValidationError> {
209
+ return safeParse(
210
+ jsonString,
211
+ (x) => Event$inboundSchema.parse(JSON.parse(x)),
212
+ `Failed to parse 'Event' from JSON`,
213
+ );
214
+ }
@@ -165,6 +165,12 @@ export const Expand = {
165
165
  VisitorCheckinVisitingZone: "visitor_checkin.visiting_zone",
166
166
  VisitorCheckinPii: "visitor_checkin.pii",
167
167
  VisitorCheckinExternalScreens: "visitor_checkin.external_screens",
168
+ EventLocation: "event.location",
169
+ EventAttendees: "event.attendees",
170
+ EventCreator: "event.creator",
171
+ EventViewerInvite: "event.viewer_invite",
172
+ InviteEvent: "invite.event",
173
+ InviteInvitee: "invite.invitee",
168
174
  } as const;
169
175
  /**
170
176
  * An expansion scope that is valid for the object being requested.
@@ -34,13 +34,13 @@ export * from "./distributor.js";
34
34
  export * from "./distributorcreate.js";
35
35
  export * from "./distributorupdate.js";
36
36
  export * from "./emailpreferences.js";
37
+ export * from "./event.js";
37
38
  export * from "./expand.js";
38
39
  export * from "./facility.js";
39
40
  export * from "./facilitycalendarsummary.js";
40
41
  export * from "./facilitystatus.js";
41
42
  export * from "./facilitysummary.js";
42
43
  export * from "./facilityvendortype.js";
43
- export * from "./feed.js";
44
44
  export * from "./fhirconfig.js";
45
45
  export * from "./fhirconfigcreate.js";
46
46
  export * from "./fhirconfigpartialupdate.js";
@@ -49,7 +49,7 @@ export * from "./financialstatus.js";
49
49
  export * from "./fullreport.js";
50
50
  export * from "./handoff.js";
51
51
  export * from "./imageset.js";
52
- export * from "./invitee.js";
52
+ export * from "./invite.js";
53
53
  export * from "./invoice.js";
54
54
  export * from "./invoicefinancialstatus.js";
55
55
  export * from "./invoiceitem.js";
@@ -80,7 +80,6 @@ export * from "./passwordnotsetresponse.js";
80
80
  export * from "./passwordrequiredresponse.js";
81
81
  export * from "./paymentprofile.js";
82
82
  export * from "./paymentprofileinfo.js";
83
- export * from "./pendinginvitation.js";
84
83
  export * from "./product.js";
85
84
  export * from "./productvariant.js";
86
85
  export * from "./samlloginrequiredresponse.js";
@@ -91,7 +90,6 @@ export * from "./screeningquestion.js";
91
90
  export * from "./screeningresponse.js";
92
91
  export * from "./security.js";
93
92
  export * from "./ssocontinuation.js";
94
- export * from "./standingappointment.js";
95
93
  export * from "./state.js";
96
94
  export * from "./subscription.js";
97
95
  export * from "./supervisor.js";