@greensecurity/javascript-sdk 0.45.0-beta.26 → 0.45.0-beta.28

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 (449) 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__/vendors.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  7. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/zones.test.js +13 -6
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/admin-funcs/doAdmin.d.ts +3 -1
  11. package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
  12. package/dist/commonjs/admin-funcs/doAdmin.js +22 -4
  13. package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
  14. package/dist/commonjs/admin-funcs/networksCreate.d.ts +36 -0
  15. package/dist/commonjs/admin-funcs/networksCreate.d.ts.map +1 -0
  16. package/dist/commonjs/admin-funcs/networksCreate.js +51 -0
  17. package/dist/commonjs/admin-funcs/networksCreate.js.map +1 -0
  18. package/dist/commonjs/admin-funcs/networksGet.d.ts +3 -0
  19. package/dist/commonjs/admin-funcs/networksGet.d.ts.map +1 -0
  20. package/dist/commonjs/admin-funcs/networksGet.js +16 -0
  21. package/dist/commonjs/admin-funcs/networksGet.js.map +1 -0
  22. package/dist/commonjs/admin-funcs/networksList.d.ts +12 -0
  23. package/dist/commonjs/admin-funcs/networksList.d.ts.map +1 -0
  24. package/dist/commonjs/admin-funcs/networksList.js +40 -0
  25. package/dist/commonjs/admin-funcs/networksList.js.map +1 -0
  26. package/dist/commonjs/admin-funcs/zoneDevicesGet.d.ts +3 -0
  27. package/dist/commonjs/admin-funcs/zoneDevicesGet.d.ts.map +1 -0
  28. package/dist/commonjs/admin-funcs/zoneDevicesGet.js +16 -0
  29. package/dist/commonjs/admin-funcs/zoneDevicesGet.js.map +1 -0
  30. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +11 -0
  31. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -0
  32. package/dist/commonjs/admin-funcs/zoneDevicesList.js +37 -0
  33. package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -0
  34. package/dist/commonjs/funcs/eventsCreateEvent.d.ts +1 -1
  35. package/dist/commonjs/funcs/eventsCreateEvent.d.ts.map +1 -1
  36. package/dist/commonjs/funcs/eventsCreateEvent.js +1 -1
  37. package/dist/commonjs/funcs/eventsCreateEvent.js.map +1 -1
  38. package/dist/commonjs/funcs/eventsGetEvent.d.ts +12 -4
  39. package/dist/commonjs/funcs/eventsGetEvent.d.ts.map +1 -1
  40. package/dist/commonjs/funcs/eventsGetEvent.js +12 -4
  41. package/dist/commonjs/funcs/eventsGetEvent.js.map +1 -1
  42. package/dist/commonjs/funcs/eventsListFeed.d.ts +14 -2
  43. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  44. package/dist/commonjs/funcs/eventsListFeed.js +14 -2
  45. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  46. package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js +2 -0
  47. package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
  48. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +14 -2
  49. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  50. package/dist/commonjs/funcs/eventsListPendingInvitations.js +14 -2
  51. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  52. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +13 -2
  53. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  54. package/dist/commonjs/funcs/eventsListStandingAppointments.js +13 -2
  55. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  56. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  57. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  58. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
  59. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  60. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
  61. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  62. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js +2 -0
  63. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
  64. package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
  65. package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
  66. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  67. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  68. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
  69. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
  70. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
  71. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  72. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
  73. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  74. package/dist/commonjs/index.extras.d.ts +14 -0
  75. package/dist/commonjs/index.extras.d.ts.map +1 -1
  76. package/dist/commonjs/index.extras.js +16 -0
  77. package/dist/commonjs/index.extras.js.map +1 -1
  78. package/dist/commonjs/lib/config.d.ts +2 -2
  79. package/dist/commonjs/lib/config.js +2 -2
  80. package/dist/commonjs/models/components/event.d.ts +98 -0
  81. package/dist/commonjs/models/components/event.d.ts.map +1 -0
  82. package/dist/commonjs/models/components/event.js +110 -0
  83. package/dist/commonjs/models/components/event.js.map +1 -0
  84. package/dist/commonjs/models/components/expand.d.ts +6 -0
  85. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/expand.js +6 -0
  87. package/dist/commonjs/models/components/expand.js.map +1 -1
  88. package/dist/commonjs/models/components/index.d.ts +2 -4
  89. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  90. package/dist/commonjs/models/components/index.js +2 -4
  91. package/dist/commonjs/models/components/index.js.map +1 -1
  92. package/dist/commonjs/models/components/invite.d.ts +72 -0
  93. package/dist/commonjs/models/components/invite.d.ts.map +1 -0
  94. package/dist/commonjs/models/components/invite.js +109 -0
  95. package/dist/commonjs/models/components/invite.js.map +1 -0
  96. package/dist/commonjs/models/operations/createevent.d.ts +19 -0
  97. package/dist/commonjs/models/operations/createevent.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/createevent.js +3 -0
  99. package/dist/commonjs/models/operations/createevent.js.map +1 -1
  100. package/dist/commonjs/models/operations/getevent.d.ts +0 -89
  101. package/dist/commonjs/models/operations/getevent.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/getevent.js +1 -77
  103. package/dist/commonjs/models/operations/getevent.js.map +1 -1
  104. package/dist/commonjs/models/operations/listfeed.d.ts +1 -1
  105. package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -1
  106. package/dist/commonjs/models/operations/listfeed.js +1 -2
  107. package/dist/commonjs/models/operations/listfeed.js.map +1 -1
  108. package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts +17 -0
  109. package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
  110. package/dist/commonjs/models/operations/listorsearchvendorinvitees.js +4 -0
  111. package/dist/commonjs/models/operations/listorsearchvendorinvitees.js.map +1 -1
  112. package/dist/commonjs/models/operations/listpendinginvitations.d.ts +1 -1
  113. package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -1
  114. package/dist/commonjs/models/operations/listpendinginvitations.js +1 -2
  115. package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -1
  116. package/dist/commonjs/models/operations/liststandingappointments.d.ts +1 -1
  117. package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -1
  118. package/dist/commonjs/models/operations/liststandingappointments.js +1 -2
  119. package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -1
  120. package/dist/commonjs/react-query/eventsCreateEvent.d.ts +1 -1
  121. package/dist/commonjs/react-query/eventsCreateEvent.d.ts.map +1 -1
  122. package/dist/commonjs/react-query/eventsCreateEvent.js.map +1 -1
  123. package/dist/commonjs/react-query/eventsGetEvent.core.d.ts +1 -1
  124. package/dist/commonjs/react-query/eventsGetEvent.core.d.ts.map +1 -1
  125. package/dist/commonjs/react-query/eventsGetEvent.d.ts +20 -6
  126. package/dist/commonjs/react-query/eventsGetEvent.d.ts.map +1 -1
  127. package/dist/commonjs/react-query/eventsGetEvent.js +20 -6
  128. package/dist/commonjs/react-query/eventsGetEvent.js.map +1 -1
  129. package/dist/commonjs/react-query/eventsListFeed.d.ts +56 -8
  130. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  131. package/dist/commonjs/react-query/eventsListFeed.js +56 -8
  132. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  133. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
  134. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
  135. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
  136. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
  137. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
  138. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
  139. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
  140. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +56 -8
  141. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  142. package/dist/commonjs/react-query/eventsListPendingInvitations.js +56 -8
  143. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  144. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +52 -8
  145. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  146. package/dist/commonjs/react-query/eventsListStandingAppointments.js +52 -8
  147. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  148. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  149. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  150. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
  151. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  152. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
  153. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  154. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js +4 -0
  155. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
  156. package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
  157. package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
  158. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  159. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  160. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
  161. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
  162. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
  163. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  164. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
  165. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
  166. package/dist/commonjs/sdk/events.d.ts +52 -10
  167. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  168. package/dist/commonjs/sdk/events.js +51 -9
  169. package/dist/commonjs/sdk/events.js.map +1 -1
  170. package/dist/commonjs/sdk/fhirconfigs.d.ts +5 -1
  171. package/dist/commonjs/sdk/fhirconfigs.d.ts.map +1 -1
  172. package/dist/commonjs/sdk/fhirconfigs.js +5 -1
  173. package/dist/commonjs/sdk/fhirconfigs.js.map +1 -1
  174. package/dist/commonjs/sdk/organizations.d.ts +2 -0
  175. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  176. package/dist/commonjs/sdk/organizations.js +2 -0
  177. package/dist/commonjs/sdk/organizations.js.map +1 -1
  178. package/dist/commonjs/sdk/vendors.d.ts +2 -0
  179. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  180. package/dist/commonjs/sdk/vendors.js +2 -0
  181. package/dist/commonjs/sdk/vendors.js.map +1 -1
  182. package/dist/esm/__tests__/events.test.js +2 -4
  183. package/dist/esm/__tests__/events.test.js.map +1 -1
  184. package/dist/esm/__tests__/vendors.test.js +1 -1
  185. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  186. package/dist/esm/__tests__/webhooks.test.js +1 -1
  187. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  188. package/dist/esm/__tests__/zones.test.js +13 -6
  189. package/dist/esm/__tests__/zones.test.js.map +1 -1
  190. package/dist/esm/admin-funcs/doAdmin.d.ts +3 -1
  191. package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
  192. package/dist/esm/admin-funcs/doAdmin.js +21 -4
  193. package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
  194. package/dist/esm/admin-funcs/networksCreate.d.ts +36 -0
  195. package/dist/esm/admin-funcs/networksCreate.d.ts.map +1 -0
  196. package/dist/esm/admin-funcs/networksCreate.js +48 -0
  197. package/dist/esm/admin-funcs/networksCreate.js.map +1 -0
  198. package/dist/esm/admin-funcs/networksGet.d.ts +3 -0
  199. package/dist/esm/admin-funcs/networksGet.d.ts.map +1 -0
  200. package/dist/esm/admin-funcs/networksGet.js +13 -0
  201. package/dist/esm/admin-funcs/networksGet.js.map +1 -0
  202. package/dist/esm/admin-funcs/networksList.d.ts +12 -0
  203. package/dist/esm/admin-funcs/networksList.d.ts.map +1 -0
  204. package/dist/esm/admin-funcs/networksList.js +37 -0
  205. package/dist/esm/admin-funcs/networksList.js.map +1 -0
  206. package/dist/esm/admin-funcs/zoneDevicesGet.d.ts +3 -0
  207. package/dist/esm/admin-funcs/zoneDevicesGet.d.ts.map +1 -0
  208. package/dist/esm/admin-funcs/zoneDevicesGet.js +13 -0
  209. package/dist/esm/admin-funcs/zoneDevicesGet.js.map +1 -0
  210. package/dist/esm/admin-funcs/zoneDevicesList.d.ts +11 -0
  211. package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -0
  212. package/dist/esm/admin-funcs/zoneDevicesList.js +34 -0
  213. package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -0
  214. package/dist/esm/funcs/eventsCreateEvent.d.ts +1 -1
  215. package/dist/esm/funcs/eventsCreateEvent.d.ts.map +1 -1
  216. package/dist/esm/funcs/eventsCreateEvent.js +1 -1
  217. package/dist/esm/funcs/eventsCreateEvent.js.map +1 -1
  218. package/dist/esm/funcs/eventsGetEvent.d.ts +12 -4
  219. package/dist/esm/funcs/eventsGetEvent.d.ts.map +1 -1
  220. package/dist/esm/funcs/eventsGetEvent.js +12 -4
  221. package/dist/esm/funcs/eventsGetEvent.js.map +1 -1
  222. package/dist/esm/funcs/eventsListFeed.d.ts +14 -2
  223. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  224. package/dist/esm/funcs/eventsListFeed.js +14 -2
  225. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  226. package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js +2 -0
  227. package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
  228. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +14 -2
  229. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  230. package/dist/esm/funcs/eventsListPendingInvitations.js +14 -2
  231. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  232. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +13 -2
  233. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  234. package/dist/esm/funcs/eventsListStandingAppointments.js +13 -2
  235. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  236. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  237. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  238. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
  239. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  240. package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
  241. package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  242. package/dist/esm/funcs/fhirConfigsGetFhirConfig.js +2 -0
  243. package/dist/esm/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
  244. package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
  245. package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
  246. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  247. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  248. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
  249. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
  250. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
  251. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  252. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
  253. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  254. package/dist/esm/index.extras.d.ts +14 -0
  255. package/dist/esm/index.extras.d.ts.map +1 -1
  256. package/dist/esm/index.extras.js +16 -0
  257. package/dist/esm/index.extras.js.map +1 -1
  258. package/dist/esm/lib/config.d.ts +2 -2
  259. package/dist/esm/lib/config.js +2 -2
  260. package/dist/esm/models/components/event.d.ts +98 -0
  261. package/dist/esm/models/components/event.d.ts.map +1 -0
  262. package/dist/esm/models/components/event.js +69 -0
  263. package/dist/esm/models/components/event.js.map +1 -0
  264. package/dist/esm/models/components/expand.d.ts +6 -0
  265. package/dist/esm/models/components/expand.d.ts.map +1 -1
  266. package/dist/esm/models/components/expand.js +6 -0
  267. package/dist/esm/models/components/expand.js.map +1 -1
  268. package/dist/esm/models/components/index.d.ts +2 -4
  269. package/dist/esm/models/components/index.d.ts.map +1 -1
  270. package/dist/esm/models/components/index.js +2 -4
  271. package/dist/esm/models/components/index.js.map +1 -1
  272. package/dist/esm/models/components/invite.d.ts +72 -0
  273. package/dist/esm/models/components/invite.d.ts.map +1 -0
  274. package/dist/esm/models/components/invite.js +69 -0
  275. package/dist/esm/models/components/invite.js.map +1 -0
  276. package/dist/esm/models/operations/createevent.d.ts +19 -0
  277. package/dist/esm/models/operations/createevent.d.ts.map +1 -1
  278. package/dist/esm/models/operations/createevent.js +3 -0
  279. package/dist/esm/models/operations/createevent.js.map +1 -1
  280. package/dist/esm/models/operations/getevent.d.ts +0 -89
  281. package/dist/esm/models/operations/getevent.d.ts.map +1 -1
  282. package/dist/esm/models/operations/getevent.js +0 -70
  283. package/dist/esm/models/operations/getevent.js.map +1 -1
  284. package/dist/esm/models/operations/listfeed.d.ts +1 -1
  285. package/dist/esm/models/operations/listfeed.d.ts.map +1 -1
  286. package/dist/esm/models/operations/listfeed.js +1 -2
  287. package/dist/esm/models/operations/listfeed.js.map +1 -1
  288. package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts +17 -0
  289. package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
  290. package/dist/esm/models/operations/listorsearchvendorinvitees.js +4 -0
  291. package/dist/esm/models/operations/listorsearchvendorinvitees.js.map +1 -1
  292. package/dist/esm/models/operations/listpendinginvitations.d.ts +1 -1
  293. package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -1
  294. package/dist/esm/models/operations/listpendinginvitations.js +1 -2
  295. package/dist/esm/models/operations/listpendinginvitations.js.map +1 -1
  296. package/dist/esm/models/operations/liststandingappointments.d.ts +1 -1
  297. package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -1
  298. package/dist/esm/models/operations/liststandingappointments.js +1 -2
  299. package/dist/esm/models/operations/liststandingappointments.js.map +1 -1
  300. package/dist/esm/react-query/eventsCreateEvent.d.ts +1 -1
  301. package/dist/esm/react-query/eventsCreateEvent.d.ts.map +1 -1
  302. package/dist/esm/react-query/eventsCreateEvent.js.map +1 -1
  303. package/dist/esm/react-query/eventsGetEvent.core.d.ts +1 -1
  304. package/dist/esm/react-query/eventsGetEvent.core.d.ts.map +1 -1
  305. package/dist/esm/react-query/eventsGetEvent.d.ts +20 -6
  306. package/dist/esm/react-query/eventsGetEvent.d.ts.map +1 -1
  307. package/dist/esm/react-query/eventsGetEvent.js +20 -6
  308. package/dist/esm/react-query/eventsGetEvent.js.map +1 -1
  309. package/dist/esm/react-query/eventsListFeed.d.ts +56 -8
  310. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  311. package/dist/esm/react-query/eventsListFeed.js +56 -8
  312. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  313. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
  314. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
  315. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
  316. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
  317. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
  318. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
  319. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
  320. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +56 -8
  321. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  322. package/dist/esm/react-query/eventsListPendingInvitations.js +56 -8
  323. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  324. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +52 -8
  325. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  326. package/dist/esm/react-query/eventsListStandingAppointments.js +52 -8
  327. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  328. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  329. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  330. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
  331. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  332. package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
  333. package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  334. package/dist/esm/react-query/fhirConfigsGetFhirConfig.js +4 -0
  335. package/dist/esm/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
  336. package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
  337. package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
  338. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  339. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  340. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
  341. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
  342. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
  343. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  344. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
  345. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
  346. package/dist/esm/sdk/events.d.ts +52 -10
  347. package/dist/esm/sdk/events.d.ts.map +1 -1
  348. package/dist/esm/sdk/events.js +51 -9
  349. package/dist/esm/sdk/events.js.map +1 -1
  350. package/dist/esm/sdk/fhirconfigs.d.ts +5 -1
  351. package/dist/esm/sdk/fhirconfigs.d.ts.map +1 -1
  352. package/dist/esm/sdk/fhirconfigs.js +5 -1
  353. package/dist/esm/sdk/fhirconfigs.js.map +1 -1
  354. package/dist/esm/sdk/organizations.d.ts +2 -0
  355. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  356. package/dist/esm/sdk/organizations.js +2 -0
  357. package/dist/esm/sdk/organizations.js.map +1 -1
  358. package/dist/esm/sdk/vendors.d.ts +2 -0
  359. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  360. package/dist/esm/sdk/vendors.js +2 -0
  361. package/dist/esm/sdk/vendors.js.map +1 -1
  362. package/jsr.json +1 -1
  363. package/package.json +1 -1
  364. package/src/__tests__/events.test.ts +2 -4
  365. package/src/__tests__/vendors.test.ts +1 -1
  366. package/src/__tests__/webhooks.test.ts +1 -1
  367. package/src/__tests__/zones.test.ts +13 -6
  368. package/src/admin-funcs/doAdmin.ts +43 -10
  369. package/src/admin-funcs/networksCreate.ts +101 -0
  370. package/src/admin-funcs/networksGet.ts +13 -0
  371. package/src/admin-funcs/networksList.ts +56 -0
  372. package/src/admin-funcs/zoneDevicesGet.ts +13 -0
  373. package/src/admin-funcs/zoneDevicesList.ts +47 -0
  374. package/src/funcs/eventsCreateEvent.ts +4 -0
  375. package/src/funcs/eventsGetEvent.ts +15 -7
  376. package/src/funcs/eventsListFeed.ts +14 -2
  377. package/src/funcs/eventsListOrSearchVendorInvitees.ts +2 -0
  378. package/src/funcs/eventsListPendingInvitations.ts +14 -2
  379. package/src/funcs/eventsListStandingAppointments.ts +13 -2
  380. package/src/funcs/fhirConfigsDeleteFhirConfigById.ts +2 -0
  381. package/src/funcs/fhirConfigsGetFhirConfig.ts +2 -0
  382. package/src/funcs/fhirConfigsListOfFhirConfigurations.ts +1 -1
  383. package/src/funcs/organizationsCreateCompanyTargetFacility.ts +2 -0
  384. package/src/funcs/vendorsGetVendorInvoiceDetails.ts +2 -0
  385. package/src/index.extras.ts +19 -0
  386. package/src/lib/config.ts +2 -2
  387. package/src/models/components/event.ts +214 -0
  388. package/src/models/components/expand.ts +6 -0
  389. package/src/models/components/index.ts +2 -4
  390. package/src/models/components/invite.ts +168 -0
  391. package/src/models/operations/createevent.ts +22 -0
  392. package/src/models/operations/getevent.ts +0 -223
  393. package/src/models/operations/listfeed.ts +2 -3
  394. package/src/models/operations/listorsearchvendorinvitees.ts +21 -0
  395. package/src/models/operations/listpendinginvitations.ts +2 -3
  396. package/src/models/operations/liststandingappointments.ts +2 -5
  397. package/src/react-query/eventsCreateEvent.ts +1 -0
  398. package/src/react-query/eventsGetEvent.core.ts +1 -1
  399. package/src/react-query/eventsGetEvent.ts +20 -6
  400. package/src/react-query/eventsListFeed.ts +56 -8
  401. package/src/react-query/eventsListOrSearchVendorInvitees.core.ts +8 -0
  402. package/src/react-query/eventsListOrSearchVendorInvitees.ts +4 -0
  403. package/src/react-query/eventsListPendingInvitations.ts +56 -8
  404. package/src/react-query/eventsListStandingAppointments.ts +52 -8
  405. package/src/react-query/fhirConfigsDeleteFhirConfigById.ts +2 -0
  406. package/src/react-query/fhirConfigsGetFhirConfig.ts +4 -0
  407. package/src/react-query/fhirConfigsListOfFhirConfigurations.ts +4 -4
  408. package/src/react-query/organizationsCreateCompanyTargetFacility.ts +2 -0
  409. package/src/react-query/vendorsGetVendorInvoiceDetails.ts +4 -0
  410. package/src/sdk/events.ts +52 -10
  411. package/src/sdk/fhirconfigs.ts +5 -1
  412. package/src/sdk/organizations.ts +2 -0
  413. package/src/sdk/vendors.ts +2 -0
  414. package/dist/commonjs/models/components/feed.d.ts +0 -33
  415. package/dist/commonjs/models/components/feed.d.ts.map +0 -1
  416. package/dist/commonjs/models/components/feed.js +0 -75
  417. package/dist/commonjs/models/components/feed.js.map +0 -1
  418. package/dist/commonjs/models/components/invitee.d.ts +0 -23
  419. package/dist/commonjs/models/components/invitee.d.ts.map +0 -1
  420. package/dist/commonjs/models/components/invitee.js +0 -68
  421. package/dist/commonjs/models/components/invitee.js.map +0 -1
  422. package/dist/commonjs/models/components/pendinginvitation.d.ts +0 -41
  423. package/dist/commonjs/models/components/pendinginvitation.d.ts.map +0 -1
  424. package/dist/commonjs/models/components/pendinginvitation.js +0 -85
  425. package/dist/commonjs/models/components/pendinginvitation.js.map +0 -1
  426. package/dist/commonjs/models/components/standingappointment.d.ts +0 -34
  427. package/dist/commonjs/models/components/standingappointment.d.ts.map +0 -1
  428. package/dist/commonjs/models/components/standingappointment.js +0 -74
  429. package/dist/commonjs/models/components/standingappointment.js.map +0 -1
  430. package/dist/esm/models/components/feed.d.ts +0 -33
  431. package/dist/esm/models/components/feed.d.ts.map +0 -1
  432. package/dist/esm/models/components/feed.js +0 -38
  433. package/dist/esm/models/components/feed.js.map +0 -1
  434. package/dist/esm/models/components/invitee.d.ts +0 -23
  435. package/dist/esm/models/components/invitee.d.ts.map +0 -1
  436. package/dist/esm/models/components/invitee.js +0 -31
  437. package/dist/esm/models/components/invitee.js.map +0 -1
  438. package/dist/esm/models/components/pendinginvitation.d.ts +0 -41
  439. package/dist/esm/models/components/pendinginvitation.d.ts.map +0 -1
  440. package/dist/esm/models/components/pendinginvitation.js +0 -47
  441. package/dist/esm/models/components/pendinginvitation.js.map +0 -1
  442. package/dist/esm/models/components/standingappointment.d.ts +0 -34
  443. package/dist/esm/models/components/standingappointment.d.ts.map +0 -1
  444. package/dist/esm/models/components/standingappointment.js +0 -37
  445. package/dist/esm/models/components/standingappointment.js.map +0 -1
  446. package/src/models/components/feed.ts +0 -74
  447. package/src/models/components/invitee.ts +0 -58
  448. package/src/models/components/pendinginvitation.ts +0 -102
  449. package/src/models/components/standingappointment.ts +0 -78
@@ -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`
@@ -55,6 +55,12 @@ import { kioskHeartbeat } from "./admin-funcs/kioskHeartbeat.js";
55
55
  import { listCommunications } from "./admin-funcs/listCommunications.js";
56
56
  import { dismissCommunication } from "./admin-funcs/dismissCommunication.js";
57
57
 
58
+ import { networksList } from "./admin-funcs/networksList.js";
59
+ import { networksGet } from "./admin-funcs/networksGet.js";
60
+ import { networksCreate } from "./admin-funcs/networksCreate.js";
61
+ import { zoneDevicesList } from "./admin-funcs/zoneDevicesList.js";
62
+ import { zoneDevicesGet } from "./admin-funcs/zoneDevicesGet.js";
63
+
58
64
  export const __internal = {
59
65
  getInternalCore,
60
66
  initializeInternalCore,
@@ -139,5 +145,18 @@ export const __internal = {
139
145
  createZoneDevice: kioskCreateZoneDevice,
140
146
  createEvent: kioskCreateEvent,
141
147
  heartbeat: kioskHeartbeat
148
+ },
149
+
150
+ // Gatekeeper provisioning: the network a facility's devices join, and the
151
+ // inventory of the devices themselves.
152
+ networks: {
153
+ list: networksList,
154
+ get: networksGet,
155
+ create: networksCreate
156
+ },
157
+
158
+ zoneDevices: {
159
+ list: zoneDevicesList,
160
+ get: zoneDevicesGet
142
161
  }
143
162
  };
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.26",
83
+ sdkVersion: "0.45.0-beta.28",
84
84
  genVersion: "2.938.0",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.45.0-beta.26 2.938.0 0.45.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.45.0-beta.28 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";
@@ -0,0 +1,168 @@
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 * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import * as types from "../../types/primitives.js";
12
+ import { smartUnion } from "../../types/smartUnion.js";
13
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
14
+
15
+ export type Event2 = {
16
+ id: number;
17
+ name: string | null;
18
+ };
19
+
20
+ /**
21
+ * The event id, or a summary when `invite.event` is passed to `expand`.
22
+ */
23
+ export type InviteEvent = Event2 | number;
24
+
25
+ export const InviteStatus = {
26
+ Pending: "Pending",
27
+ Accepted: "Accepted",
28
+ Declined: "Declined",
29
+ } as const;
30
+ export type InviteStatus = OpenEnum<typeof InviteStatus>;
31
+
32
+ export const InviteType = {
33
+ User: "user",
34
+ Department: "department",
35
+ Company: "company",
36
+ } as const;
37
+ export type InviteType = OpenEnum<typeof InviteType>;
38
+
39
+ /**
40
+ * Who the invitation is addressed to. Populated when `invite.invitee` is passed to `expand`.
41
+ */
42
+ export type Invitee = {
43
+ id?: number | undefined;
44
+ name?: string | null | undefined;
45
+ type?: InviteType | undefined;
46
+ };
47
+
48
+ /**
49
+ * An invitation to an appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. SDK builds below `0.55.0-beta.1` receive `PendingInvitation` instead.
50
+ *
51
+ * @remarks
52
+ *
53
+ * 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.
54
+ */
55
+ export type Invite = {
56
+ id?: number | undefined;
57
+ /**
58
+ * The event id, or a summary when `invite.event` is passed to `expand`.
59
+ */
60
+ event?: Event2 | number | undefined;
61
+ userId?: number | null | undefined;
62
+ companyId?: number | null | undefined;
63
+ departmentId?: number | null | undefined;
64
+ status?: InviteStatus | null | undefined;
65
+ dateReviewed?: string | null | undefined;
66
+ /**
67
+ * Who the invitation is addressed to. Populated when `invite.invitee` is passed to `expand`.
68
+ */
69
+ invitee?: Invitee | null | undefined;
70
+ };
71
+
72
+ /** @internal */
73
+ export const Event2$inboundSchema: z.ZodType<Event2, z.ZodTypeDef, unknown> = z
74
+ .object({
75
+ id: types.number(),
76
+ name: types.nullable(types.string()),
77
+ });
78
+
79
+ export function event2FromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<Event2, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) => Event2$inboundSchema.parse(JSON.parse(x)),
85
+ `Failed to parse 'Event2' from JSON`,
86
+ );
87
+ }
88
+
89
+ /** @internal */
90
+ export const InviteEvent$inboundSchema: z.ZodType<
91
+ InviteEvent,
92
+ z.ZodTypeDef,
93
+ unknown
94
+ > = smartUnion([z.lazy(() => Event2$inboundSchema), types.number()]);
95
+
96
+ export function inviteEventFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<InviteEvent, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => InviteEvent$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'InviteEvent' from JSON`,
103
+ );
104
+ }
105
+
106
+ /** @internal */
107
+ export const InviteStatus$inboundSchema: z.ZodType<
108
+ InviteStatus,
109
+ z.ZodTypeDef,
110
+ unknown
111
+ > = openEnums.inboundSchema(InviteStatus);
112
+
113
+ /** @internal */
114
+ export const InviteType$inboundSchema: z.ZodType<
115
+ InviteType,
116
+ z.ZodTypeDef,
117
+ unknown
118
+ > = openEnums.inboundSchema(InviteType);
119
+
120
+ /** @internal */
121
+ export const Invitee$inboundSchema: z.ZodType<Invitee, z.ZodTypeDef, unknown> =
122
+ z.object({
123
+ id: types.optional(types.number()),
124
+ name: z.nullable(types.string()).optional(),
125
+ type: types.optional(InviteType$inboundSchema),
126
+ });
127
+
128
+ export function inviteeFromJSON(
129
+ jsonString: string,
130
+ ): SafeParseResult<Invitee, SDKValidationError> {
131
+ return safeParse(
132
+ jsonString,
133
+ (x) => Invitee$inboundSchema.parse(JSON.parse(x)),
134
+ `Failed to parse 'Invitee' from JSON`,
135
+ );
136
+ }
137
+
138
+ /** @internal */
139
+ export const Invite$inboundSchema: z.ZodType<Invite, z.ZodTypeDef, unknown> = z
140
+ .object({
141
+ id: types.optional(types.number()),
142
+ event: types.optional(
143
+ smartUnion([z.lazy(() => Event2$inboundSchema), types.number()]),
144
+ ),
145
+ user_id: z.nullable(types.number()).optional(),
146
+ company_id: z.nullable(types.number()).optional(),
147
+ department_id: z.nullable(types.number()).optional(),
148
+ status: z.nullable(InviteStatus$inboundSchema).optional(),
149
+ date_reviewed: z.nullable(types.string()).optional(),
150
+ invitee: z.nullable(z.lazy(() => Invitee$inboundSchema)).optional(),
151
+ }).transform((v) => {
152
+ return remap$(v, {
153
+ "user_id": "userId",
154
+ "company_id": "companyId",
155
+ "department_id": "departmentId",
156
+ "date_reviewed": "dateReviewed",
157
+ });
158
+ });
159
+
160
+ export function inviteFromJSON(
161
+ jsonString: string,
162
+ ): SafeParseResult<Invite, SDKValidationError> {
163
+ return safeParse(
164
+ jsonString,
165
+ (x) => Invite$inboundSchema.parse(JSON.parse(x)),
166
+ `Failed to parse 'Invite' from JSON`,
167
+ );
168
+ }
@@ -32,6 +32,23 @@ export type CreateEventRequestBody = {
32
32
  inviteeUserIds?: Array<number> | undefined;
33
33
  inviteeDepartmentIds?: Array<number> | undefined;
34
34
  notes?: string | undefined;
35
+ /**
36
+ * The user the appointment is booked for. Defaults to the authenticated user, which
37
+ *
38
+ * @remarks
39
+ * is what a vendor or a facility user means. An API service account has no calendar
40
+ * of its own, so it names one here; the user must be a contact of the selected
41
+ * facility (or of its system), or a vendor targeting it.
42
+ */
43
+ organizerUserId?: number | undefined;
44
+ /**
45
+ * The time zone `begin_date`/`begin_time` and `end_date`/`end_time` are given in, as
46
+ *
47
+ * @remarks
48
+ * a Rails time zone name (e.g. "Central Time (US & Canada)"). Defaults to the
49
+ * organizer's own time zone.
50
+ */
51
+ timezone?: string | undefined;
35
52
  };
36
53
 
37
54
  /**
@@ -57,6 +74,8 @@ export type CreateEventRequestBody$Outbound = {
57
74
  invitee_user_ids?: Array<number> | undefined;
58
75
  invitee_department_ids?: Array<number> | undefined;
59
76
  notes?: string | undefined;
77
+ organizer_user_id?: number | undefined;
78
+ timezone?: string | undefined;
60
79
  };
61
80
 
62
81
  /** @internal */
@@ -78,6 +97,8 @@ export const CreateEventRequestBody$outboundSchema: z.ZodType<
78
97
  inviteeUserIds: z.array(z.number().int()).optional(),
79
98
  inviteeDepartmentIds: z.array(z.number().int()).optional(),
80
99
  notes: z.string().optional(),
100
+ organizerUserId: z.number().int().optional(),
101
+ timezone: z.string().optional(),
81
102
  }).transform((v) => {
82
103
  return remap$(v, {
83
104
  facilityId: "facility_id",
@@ -91,6 +112,7 @@ export const CreateEventRequestBody$outboundSchema: z.ZodType<
91
112
  endDate: "end_date",
92
113
  inviteeUserIds: "invitee_user_ids",
93
114
  inviteeDepartmentIds: "invitee_department_ids",
115
+ organizerUserId: "organizer_user_id",
94
116
  });
95
117
  });
96
118