@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
@@ -3,13 +3,7 @@
3
3
  */
4
4
 
5
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
6
  import * as components from "../components/index.js";
12
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
7
 
14
8
  export type GetEventRequest = {
15
9
  /**
@@ -22,81 +16,6 @@ export type GetEventRequest = {
22
16
  expand?: Array<components.Expand> | undefined;
23
17
  };
24
18
 
25
- export type Facility2 = {};
26
-
27
- /**
28
- * The facility ID, or the expanded facility object when `event.facility` is passed to `expand`.
29
- */
30
- export type Facility = number | Facility2;
31
-
32
- export type Department2 = {};
33
-
34
- /**
35
- * The department ID, or the expanded department object when `event.department` is passed to `expand`.
36
- */
37
- export type Department = number | Department2;
38
-
39
- export type Invitees = {
40
- id?: number | undefined;
41
- userId?: number | null | undefined;
42
- companyId?: number | null | undefined;
43
- departmentId?: number | null | undefined;
44
- status?: string | undefined;
45
- dateReviewed?: string | null | undefined;
46
- };
47
-
48
- /**
49
- * The request was successful, and the server has returned the requested resource in the response body.
50
- */
51
- export type GetEventGetEventOk = {
52
- id?: number | undefined;
53
- /**
54
- * The event name.
55
- */
56
- title?: string | undefined;
57
- /**
58
- * Date and time in 12-hour format with 15-minute precision.
59
- *
60
- * @remarks
61
- * Format: MM/DD/YYYY h:mm am/pm (e.g., "07/18/2025 12:15 pm" or "7:15 pm").
62
- * - Hours: 1 to 12 (zero-padded or not)
63
- * - Minutes: 00, 15, 30, or 45
64
- * - AM/PM in lowercase
65
- */
66
- start?: string | undefined;
67
- /**
68
- * Date and time in 12-hour format with 15-minute precision.
69
- *
70
- * @remarks
71
- * Format: MM/DD/YYYY h:mm am/pm (e.g., "07/18/2025 12:15 pm" or "7:15 pm").
72
- * - Hours: 1 to 12 (zero-padded or not)
73
- * - Minutes: 00, 15, 30, or 45
74
- * - AM/PM in lowercase
75
- */
76
- end?: string | undefined;
77
- allDay?: boolean | undefined;
78
- standingAppt?: boolean | undefined;
79
- bringingFood?: boolean | undefined;
80
- notes?: string | null | undefined;
81
- status?: string | undefined;
82
- /**
83
- * ISO 8601 date-time when the event was approved.
84
- */
85
- dateApproved?: string | null | undefined;
86
- /**
87
- * The facility ID, or the expanded facility object when `event.facility` is passed to `expand`.
88
- */
89
- facility?: number | Facility2 | undefined;
90
- /**
91
- * The department ID, or the expanded department object when `event.department` is passed to `expand`.
92
- */
93
- department?: number | Department2 | undefined;
94
- /**
95
- * Populated when `event.invitees` is passed to `expand`.
96
- */
97
- invitees?: Array<Invitees> | null | undefined;
98
- };
99
-
100
19
  /** @internal */
101
20
  export type GetEventRequest$Outbound = {
102
21
  id: number;
@@ -118,145 +37,3 @@ export function getEventRequestToJSON(
118
37
  ): string {
119
38
  return JSON.stringify(GetEventRequest$outboundSchema.parse(getEventRequest));
120
39
  }
121
-
122
- /** @internal */
123
- export const Facility2$inboundSchema: z.ZodType<
124
- Facility2,
125
- z.ZodTypeDef,
126
- unknown
127
- > = z.object({});
128
-
129
- export function facility2FromJSON(
130
- jsonString: string,
131
- ): SafeParseResult<Facility2, SDKValidationError> {
132
- return safeParse(
133
- jsonString,
134
- (x) => Facility2$inboundSchema.parse(JSON.parse(x)),
135
- `Failed to parse 'Facility2' from JSON`,
136
- );
137
- }
138
-
139
- /** @internal */
140
- export const Facility$inboundSchema: z.ZodType<
141
- Facility,
142
- z.ZodTypeDef,
143
- unknown
144
- > = smartUnion([types.number(), z.lazy(() => Facility2$inboundSchema)]);
145
-
146
- export function facilityFromJSON(
147
- jsonString: string,
148
- ): SafeParseResult<Facility, SDKValidationError> {
149
- return safeParse(
150
- jsonString,
151
- (x) => Facility$inboundSchema.parse(JSON.parse(x)),
152
- `Failed to parse 'Facility' from JSON`,
153
- );
154
- }
155
-
156
- /** @internal */
157
- export const Department2$inboundSchema: z.ZodType<
158
- Department2,
159
- z.ZodTypeDef,
160
- unknown
161
- > = z.object({});
162
-
163
- export function department2FromJSON(
164
- jsonString: string,
165
- ): SafeParseResult<Department2, SDKValidationError> {
166
- return safeParse(
167
- jsonString,
168
- (x) => Department2$inboundSchema.parse(JSON.parse(x)),
169
- `Failed to parse 'Department2' from JSON`,
170
- );
171
- }
172
-
173
- /** @internal */
174
- export const Department$inboundSchema: z.ZodType<
175
- Department,
176
- z.ZodTypeDef,
177
- unknown
178
- > = smartUnion([types.number(), z.lazy(() => Department2$inboundSchema)]);
179
-
180
- export function departmentFromJSON(
181
- jsonString: string,
182
- ): SafeParseResult<Department, SDKValidationError> {
183
- return safeParse(
184
- jsonString,
185
- (x) => Department$inboundSchema.parse(JSON.parse(x)),
186
- `Failed to parse 'Department' from JSON`,
187
- );
188
- }
189
-
190
- /** @internal */
191
- export const Invitees$inboundSchema: z.ZodType<
192
- Invitees,
193
- z.ZodTypeDef,
194
- unknown
195
- > = z.object({
196
- id: types.optional(types.number()),
197
- user_id: z.nullable(types.number()).optional(),
198
- company_id: z.nullable(types.number()).optional(),
199
- department_id: z.nullable(types.number()).optional(),
200
- status: types.optional(types.string()),
201
- date_reviewed: z.nullable(types.string()).optional(),
202
- }).transform((v) => {
203
- return remap$(v, {
204
- "user_id": "userId",
205
- "company_id": "companyId",
206
- "department_id": "departmentId",
207
- "date_reviewed": "dateReviewed",
208
- });
209
- });
210
-
211
- export function inviteesFromJSON(
212
- jsonString: string,
213
- ): SafeParseResult<Invitees, SDKValidationError> {
214
- return safeParse(
215
- jsonString,
216
- (x) => Invitees$inboundSchema.parse(JSON.parse(x)),
217
- `Failed to parse 'Invitees' from JSON`,
218
- );
219
- }
220
-
221
- /** @internal */
222
- export const GetEventGetEventOk$inboundSchema: z.ZodType<
223
- GetEventGetEventOk,
224
- z.ZodTypeDef,
225
- unknown
226
- > = z.object({
227
- id: types.optional(types.number()),
228
- title: types.optional(types.string()),
229
- start: types.optional(types.string()),
230
- end: types.optional(types.string()),
231
- all_day: types.optional(types.boolean()),
232
- standing_appt: types.optional(types.boolean()),
233
- bringing_food: types.optional(types.boolean()),
234
- notes: z.nullable(types.string()).optional(),
235
- status: types.optional(types.string()),
236
- date_approved: z.nullable(types.string()).optional(),
237
- facility: types.optional(
238
- smartUnion([types.number(), z.lazy(() => Facility2$inboundSchema)]),
239
- ),
240
- department: types.optional(
241
- smartUnion([types.number(), z.lazy(() => Department2$inboundSchema)]),
242
- ),
243
- invitees: z.nullable(z.array(z.lazy(() => Invitees$inboundSchema)))
244
- .optional(),
245
- }).transform((v) => {
246
- return remap$(v, {
247
- "all_day": "allDay",
248
- "standing_appt": "standingAppt",
249
- "bringing_food": "bringingFood",
250
- "date_approved": "dateApproved",
251
- });
252
- });
253
-
254
- export function getEventGetEventOkFromJSON(
255
- jsonString: string,
256
- ): SafeParseResult<GetEventGetEventOk, SDKValidationError> {
257
- return safeParse(
258
- jsonString,
259
- (x) => GetEventGetEventOk$inboundSchema.parse(JSON.parse(x)),
260
- `Failed to parse 'GetEventGetEventOk' from JSON`,
261
- );
262
- }
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
- import * as types from "../../types/primitives.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
@@ -85,7 +84,7 @@ export type ListFeedListFeedOk = {
85
84
  * Pagination information for a pageable list
86
85
  */
87
86
  pager: components.Pager;
88
- items: Array<components.Feed | null>;
87
+ items: Array<components.Event>;
89
88
  };
90
89
 
91
90
  export type ListFeedResponse = {
@@ -165,7 +164,7 @@ export const ListFeedListFeedOk$inboundSchema: z.ZodType<
165
164
  unknown
166
165
  > = z.object({
167
166
  pager: components.Pager$inboundSchema,
168
- items: z.array(types.nullable(components.Feed$inboundSchema)),
167
+ items: z.array(components.Event$inboundSchema),
169
168
  });
170
169
 
171
170
  export function listFeedListFeedOkFromJSON(
@@ -35,6 +35,21 @@ export type ListOrSearchVendorInviteesRequest = {
35
35
  * Search for objects by the search string
36
36
  */
37
37
  search?: string | undefined;
38
+ /**
39
+ * The vendor whose invitable directory to search. Required when the caller is not itself a
40
+ *
41
+ * @remarks
42
+ * vendor; it is resolved through the caller's own access scope, so it can only name a vendor
43
+ * the caller may already read. Ignored for a vendor caller, which always searches its own.
44
+ */
45
+ vendorId?: number | undefined;
46
+ /**
47
+ * Narrows the search to one of the vendor's approved, calendaring-enabled target facilities.
48
+ *
49
+ * @remarks
50
+ * A facility the vendor does not target yields no results rather than widening the search.
51
+ */
52
+ facilityId?: number | undefined;
38
53
  };
39
54
 
40
55
  /**
@@ -60,6 +75,8 @@ export type ListOrSearchVendorInviteesRequest$Outbound = {
60
75
  items_per_page?: number | undefined;
61
76
  expand?: Array<string> | undefined;
62
77
  search?: string | undefined;
78
+ vendor_id?: number | undefined;
79
+ facility_id?: number | undefined;
63
80
  };
64
81
 
65
82
  /** @internal */
@@ -74,9 +91,13 @@ export const ListOrSearchVendorInviteesRequest$outboundSchema: z.ZodType<
74
91
  itemsPerPage: z.number().int().optional(),
75
92
  expand: z.array(components.Expand$outboundSchema).optional(),
76
93
  search: z.string().optional(),
94
+ vendorId: z.number().int().optional(),
95
+ facilityId: z.number().int().optional(),
77
96
  }).transform((v) => {
78
97
  return remap$(v, {
79
98
  itemsPerPage: "items_per_page",
99
+ vendorId: "vendor_id",
100
+ facilityId: "facility_id",
80
101
  });
81
102
  });
82
103
 
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
- import * as types from "../../types/primitives.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
@@ -61,7 +60,7 @@ export type ListPendingInvitationsListPendingInvitationsOk = {
61
60
  * Pagination information for a pageable list
62
61
  */
63
62
  pager: components.Pager;
64
- items: Array<components.PendingInvitation | null>;
63
+ items: Array<components.Invite>;
65
64
  };
66
65
 
67
66
  export type ListPendingInvitationsResponse = {
@@ -128,7 +127,7 @@ export const ListPendingInvitationsListPendingInvitationsOk$inboundSchema:
128
127
  unknown
129
128
  > = z.object({
130
129
  pager: components.Pager$inboundSchema,
131
- items: z.array(types.nullable(components.PendingInvitation$inboundSchema)),
130
+ items: z.array(components.Invite$inboundSchema),
132
131
  });
133
132
 
134
133
  export function listPendingInvitationsListPendingInvitationsOkFromJSON(
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
- import * as types from "../../types/primitives.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
@@ -85,7 +84,7 @@ export type ListStandingAppointmentsListStandingAppointmentsOk = {
85
84
  * Pagination information for a pageable list
86
85
  */
87
86
  pager: components.Pager;
88
- items: Array<components.StandingAppointment | null>;
87
+ items: Array<components.Event>;
89
88
  };
90
89
 
91
90
  export type ListStandingAppointmentsResponse = {
@@ -170,9 +169,7 @@ export const ListStandingAppointmentsListStandingAppointmentsOk$inboundSchema:
170
169
  unknown
171
170
  > = z.object({
172
171
  pager: components.Pager$inboundSchema,
173
- items: z.array(
174
- types.nullable(components.StandingAppointment$inboundSchema),
175
- ),
172
+ items: z.array(components.Event$inboundSchema),
176
173
  });
177
174
 
178
175
  export function listStandingAppointmentsListStandingAppointmentsOkFromJSON(
@@ -36,6 +36,7 @@ export type EventsCreateEventMutationData = operations.CreateEventCreateEventOk;
36
36
 
37
37
  export type EventsCreateEventMutationError =
38
38
  | errors.ApiErrorResponse
39
+ | errors.ApiValidationErrorResponse
39
40
  | GreenSecurityError
40
41
  | ResponseValidationError
41
42
  | ConnectionError
@@ -14,7 +14,7 @@ import { RequestOptions } from "../lib/sdks.js";
14
14
  import * as components from "../models/components/index.js";
15
15
  import * as operations from "../models/operations/index.js";
16
16
  import { unwrapAsync } from "../types/fp.js";
17
- export type EventsGetEventQueryData = operations.GetEventGetEventOk;
17
+ export type EventsGetEventQueryData = components.Event;
18
18
 
19
19
  export function prefetchEventsGetEvent(
20
20
  queryClient: QueryClient,
@@ -63,11 +63,18 @@ export type EventsGetEventQueryError =
63
63
  *
64
64
  * Available `expand` scopes are:
65
65
  *
66
- * - `event.facility`
67
- * - `event.department`
68
- * - `event.invitees`
66
+ * - event.facility
67
+ * - event.department
68
+ * - event.invitees
69
+ * - event.location
70
+ * - event.attendees
71
+ * - event.creator
69
72
  *
70
73
  * Unrecognised values are ignored.
74
+ *
75
+ * This route always returns the current `Event` shape, whatever SDK version is calling: it was
76
+ * introduced after the calendar list endpoints and has never served the older string-valued
77
+ * shape they did.
71
78
  */
72
79
  export function useEventsGetEvent(
73
80
  request: operations.GetEventRequest,
@@ -94,11 +101,18 @@ export function useEventsGetEvent(
94
101
  *
95
102
  * Available `expand` scopes are:
96
103
  *
97
- * - `event.facility`
98
- * - `event.department`
99
- * - `event.invitees`
104
+ * - event.facility
105
+ * - event.department
106
+ * - event.invitees
107
+ * - event.location
108
+ * - event.attendees
109
+ * - event.creator
100
110
  *
101
111
  * Unrecognised values are ignored.
112
+ *
113
+ * This route always returns the current `Event` shape, whatever SDK version is calling: it was
114
+ * introduced after the calendar list endpoints and has never served the older string-valued
115
+ * shape they did.
102
116
  */
103
117
  export function useEventsGetEventSuspense(
104
118
  request: operations.GetEventRequest,
@@ -75,9 +75,21 @@ export type EventsListFeedQueryError =
75
75
  * List events feed
76
76
  *
77
77
  * @remarks
78
- * List events feed
78
+ * List events feed.
79
+ *
80
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
81
+ * the caller's role and their relationship to the record decide what is returned.
82
+ *
83
+ * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
84
+ * so `event_creator`, `event_creator_img_url` and `invitees` are populated — the fields this
85
+ * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
86
+ * instead, in which `facility` and `department` are name strings rather than ids; the server
87
+ * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
88
+ * shape it was generated against until it is regenerated.
79
89
  *
80
- * **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.
90
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
91
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
92
+ * build is compared against it.
81
93
  */
82
94
  export function useEventsListFeed(
83
95
  request: operations.ListFeedRequest,
@@ -98,9 +110,21 @@ export function useEventsListFeed(
98
110
  * List events feed
99
111
  *
100
112
  * @remarks
101
- * List events feed
113
+ * List events feed.
114
+ *
115
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
116
+ * the caller's role and their relationship to the record decide what is returned.
117
+ *
118
+ * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
119
+ * so `event_creator`, `event_creator_img_url` and `invitees` are populated — the fields this
120
+ * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
121
+ * instead, in which `facility` and `department` are name strings rather than ids; the server
122
+ * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
123
+ * shape it was generated against until it is regenerated.
102
124
  *
103
- * **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.
125
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
126
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
127
+ * build is compared against it.
104
128
  */
105
129
  export function useEventsListFeedSuspense(
106
130
  request: operations.ListFeedRequest,
@@ -124,9 +148,21 @@ export function useEventsListFeedSuspense(
124
148
  * List events feed
125
149
  *
126
150
  * @remarks
127
- * List events feed
151
+ * List events feed.
152
+ *
153
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
154
+ * the caller's role and their relationship to the record decide what is returned.
155
+ *
156
+ * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
157
+ * so `event_creator`, `event_creator_img_url` and `invitees` are populated — the fields this
158
+ * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
159
+ * instead, in which `facility` and `department` are name strings rather than ids; the server
160
+ * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
161
+ * shape it was generated against until it is regenerated.
128
162
  *
129
- * **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.
163
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
164
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
165
+ * build is compared against it.
130
166
  */
131
167
  export function useEventsListFeedInfinite(
132
168
  request: operations.ListFeedRequest,
@@ -161,9 +197,21 @@ export function useEventsListFeedInfinite(
161
197
  * List events feed
162
198
  *
163
199
  * @remarks
164
- * List events feed
200
+ * List events feed.
201
+ *
202
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
203
+ * the caller's role and their relationship to the record decide what is returned.
204
+ *
205
+ * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
206
+ * so `event_creator`, `event_creator_img_url` and `invitees` are populated — the fields this
207
+ * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
208
+ * instead, in which `facility` and `department` are name strings rather than ids; the server
209
+ * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
210
+ * shape it was generated against until it is regenerated.
165
211
  *
166
- * **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.
212
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
213
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
214
+ * build is compared against it.
167
215
  */
168
216
  export function useEventsListFeedInfiniteSuspense(
169
217
  request: operations.ListFeedRequest,
@@ -81,6 +81,8 @@ export function buildEventsListOrSearchVendorInviteesQuery(
81
81
  itemsPerPage: request.itemsPerPage,
82
82
  expand: request.expand,
83
83
  search: request.search,
84
+ vendorId: request.vendorId,
85
+ facilityId: request.facilityId,
84
86
  }),
85
87
  queryFn: async function eventsListOrSearchVendorInviteesQueryFn(
86
88
  ctx,
@@ -126,6 +128,8 @@ export function buildEventsListOrSearchVendorInviteesInfiniteQuery(
126
128
  itemsPerPage: request.itemsPerPage,
127
129
  expand: request.expand,
128
130
  search: request.search,
131
+ vendorId: request.vendorId,
132
+ facilityId: request.facilityId,
129
133
  }),
130
134
  queryFn: async function eventsListOrSearchVendorInviteesQuery(
131
135
  ctx,
@@ -169,6 +173,8 @@ export function queryKeyEventsListOrSearchVendorInvitees(
169
173
  itemsPerPage?: number | undefined;
170
174
  expand?: Array<components.Expand> | undefined;
171
175
  search?: string | undefined;
176
+ vendorId?: number | undefined;
177
+ facilityId?: number | undefined;
172
178
  },
173
179
  ): QueryKey {
174
180
  return [
@@ -187,6 +193,8 @@ export function queryKeyEventsListOrSearchVendorInviteesInfinite(
187
193
  itemsPerPage?: number | undefined;
188
194
  expand?: Array<components.Expand> | undefined;
189
195
  search?: string | undefined;
196
+ vendorId?: number | undefined;
197
+ facilityId?: number | undefined;
190
198
  },
191
199
  ): QueryKey {
192
200
  return [
@@ -261,6 +261,8 @@ export function setEventsListOrSearchVendorInviteesData(
261
261
  itemsPerPage?: number | undefined;
262
262
  expand?: Array<components.Expand> | undefined;
263
263
  search?: string | undefined;
264
+ vendorId?: number | undefined;
265
+ facilityId?: number | undefined;
264
266
  },
265
267
  ],
266
268
  data: EventsListOrSearchVendorInviteesQueryData,
@@ -283,6 +285,8 @@ export function invalidateEventsListOrSearchVendorInvitees(
283
285
  itemsPerPage?: number | undefined;
284
286
  expand?: Array<components.Expand> | undefined;
285
287
  search?: string | undefined;
288
+ vendorId?: number | undefined;
289
+ facilityId?: number | undefined;
286
290
  }]
287
291
  >,
288
292
  filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
@@ -75,9 +75,21 @@ export type EventsListPendingInvitationsQueryError =
75
75
  * List pending invitations
76
76
  *
77
77
  * @remarks
78
- * List pending invitations
78
+ * List pending invitations.
79
+ *
80
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
81
+ * the caller's role and their relationship to the record decide what is returned.
82
+ *
83
+ * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
84
+ * so `event` is the expanded `{ id, name }` summary rather than a bare id, and `invitee` is
85
+ * populated — the appointment and the recipient this list has always named. This endpoint
86
+ * takes no `expand` parameter; both scopes are applied on every call and cannot be turned off.
87
+ * SDK builds below `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
88
+ * embeds the appointment.
79
89
  *
80
- * **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.
90
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
91
+ * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
92
+ * build is compared against it.
81
93
  */
82
94
  export function useEventsListPendingInvitations(
83
95
  request: operations.ListPendingInvitationsRequest,
@@ -104,9 +116,21 @@ export function useEventsListPendingInvitations(
104
116
  * List pending invitations
105
117
  *
106
118
  * @remarks
107
- * List pending invitations
119
+ * List pending invitations.
120
+ *
121
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
122
+ * the caller's role and their relationship to the record decide what is returned.
123
+ *
124
+ * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
125
+ * so `event` is the expanded `{ id, name }` summary rather than a bare id, and `invitee` is
126
+ * populated — the appointment and the recipient this list has always named. This endpoint
127
+ * takes no `expand` parameter; both scopes are applied on every call and cannot be turned off.
128
+ * SDK builds below `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
129
+ * embeds the appointment.
108
130
  *
109
- * **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.
131
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
132
+ * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
133
+ * build is compared against it.
110
134
  */
111
135
  export function useEventsListPendingInvitationsSuspense(
112
136
  request: operations.ListPendingInvitationsRequest,
@@ -133,9 +157,21 @@ export function useEventsListPendingInvitationsSuspense(
133
157
  * List pending invitations
134
158
  *
135
159
  * @remarks
136
- * List pending invitations
160
+ * List pending invitations.
161
+ *
162
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
163
+ * the caller's role and their relationship to the record decide what is returned.
164
+ *
165
+ * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
166
+ * so `event` is the expanded `{ id, name }` summary rather than a bare id, and `invitee` is
167
+ * populated — the appointment and the recipient this list has always named. This endpoint
168
+ * takes no `expand` parameter; both scopes are applied on every call and cannot be turned off.
169
+ * SDK builds below `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
170
+ * embeds the appointment.
137
171
  *
138
- * **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.
172
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
173
+ * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
174
+ * build is compared against it.
139
175
  */
140
176
  export function useEventsListPendingInvitationsInfinite(
141
177
  request: operations.ListPendingInvitationsRequest,
@@ -176,9 +212,21 @@ export function useEventsListPendingInvitationsInfinite(
176
212
  * List pending invitations
177
213
  *
178
214
  * @remarks
179
- * List pending invitations
215
+ * List pending invitations.
216
+ *
217
+ * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
218
+ * the caller's role and their relationship to the record decide what is returned.
219
+ *
220
+ * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
221
+ * so `event` is the expanded `{ id, name }` summary rather than a bare id, and `invitee` is
222
+ * populated — the appointment and the recipient this list has always named. This endpoint
223
+ * takes no `expand` parameter; both scopes are applied on every call and cannot be turned off.
224
+ * SDK builds below `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
225
+ * embeds the appointment.
180
226
  *
181
- * **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.
227
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
228
+ * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
229
+ * build is compared against it.
182
230
  */
183
231
  export function useEventsListPendingInvitationsInfiniteSuspense(
184
232
  request: operations.ListPendingInvitationsRequest,