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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/__tests__/events.test.js +2 -4
  3. package/dist/commonjs/__tests__/events.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +6 -9
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/funcs/eventsCreateEvent.d.ts +1 -1
  8. package/dist/commonjs/funcs/eventsCreateEvent.d.ts.map +1 -1
  9. package/dist/commonjs/funcs/eventsCreateEvent.js +1 -1
  10. package/dist/commonjs/funcs/eventsCreateEvent.js.map +1 -1
  11. package/dist/commonjs/funcs/eventsGetEvent.d.ts +12 -4
  12. package/dist/commonjs/funcs/eventsGetEvent.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/eventsGetEvent.js +12 -4
  14. package/dist/commonjs/funcs/eventsGetEvent.js.map +1 -1
  15. package/dist/commonjs/funcs/eventsListFeed.d.ts +14 -2
  16. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/eventsListFeed.js +14 -2
  18. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  19. package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js +2 -0
  20. package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
  21. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +14 -2
  22. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  23. package/dist/commonjs/funcs/eventsListPendingInvitations.js +14 -2
  24. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  25. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +13 -2
  26. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  27. package/dist/commonjs/funcs/eventsListStandingAppointments.js +13 -2
  28. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  29. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  30. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  31. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
  32. package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  33. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
  34. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  35. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js +2 -0
  36. package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
  37. package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
  38. package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
  39. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  40. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
  42. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
  43. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
  44. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  45. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
  46. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  47. package/dist/commonjs/lib/config.d.ts +2 -2
  48. package/dist/commonjs/lib/config.js +2 -2
  49. package/dist/commonjs/models/components/event.d.ts +98 -0
  50. package/dist/commonjs/models/components/event.d.ts.map +1 -0
  51. package/dist/commonjs/models/components/event.js +110 -0
  52. package/dist/commonjs/models/components/event.js.map +1 -0
  53. package/dist/commonjs/models/components/expand.d.ts +6 -0
  54. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  55. package/dist/commonjs/models/components/expand.js +6 -0
  56. package/dist/commonjs/models/components/expand.js.map +1 -1
  57. package/dist/commonjs/models/components/index.d.ts +2 -4
  58. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  59. package/dist/commonjs/models/components/index.js +2 -4
  60. package/dist/commonjs/models/components/index.js.map +1 -1
  61. package/dist/commonjs/models/components/invite.d.ts +72 -0
  62. package/dist/commonjs/models/components/invite.d.ts.map +1 -0
  63. package/dist/commonjs/models/components/invite.js +109 -0
  64. package/dist/commonjs/models/components/invite.js.map +1 -0
  65. package/dist/commonjs/models/operations/createevent.d.ts +19 -0
  66. package/dist/commonjs/models/operations/createevent.d.ts.map +1 -1
  67. package/dist/commonjs/models/operations/createevent.js +3 -0
  68. package/dist/commonjs/models/operations/createevent.js.map +1 -1
  69. package/dist/commonjs/models/operations/getevent.d.ts +0 -89
  70. package/dist/commonjs/models/operations/getevent.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/getevent.js +1 -77
  72. package/dist/commonjs/models/operations/getevent.js.map +1 -1
  73. package/dist/commonjs/models/operations/listfeed.d.ts +1 -1
  74. package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/listfeed.js +1 -2
  76. package/dist/commonjs/models/operations/listfeed.js.map +1 -1
  77. package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts +17 -0
  78. package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
  79. package/dist/commonjs/models/operations/listorsearchvendorinvitees.js +4 -0
  80. package/dist/commonjs/models/operations/listorsearchvendorinvitees.js.map +1 -1
  81. package/dist/commonjs/models/operations/listpendinginvitations.d.ts +1 -1
  82. package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -1
  83. package/dist/commonjs/models/operations/listpendinginvitations.js +1 -2
  84. package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -1
  85. package/dist/commonjs/models/operations/liststandingappointments.d.ts +1 -1
  86. package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/liststandingappointments.js +1 -2
  88. package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -1
  89. package/dist/commonjs/react-query/eventsCreateEvent.d.ts +1 -1
  90. package/dist/commonjs/react-query/eventsCreateEvent.d.ts.map +1 -1
  91. package/dist/commonjs/react-query/eventsCreateEvent.js.map +1 -1
  92. package/dist/commonjs/react-query/eventsGetEvent.core.d.ts +1 -1
  93. package/dist/commonjs/react-query/eventsGetEvent.core.d.ts.map +1 -1
  94. package/dist/commonjs/react-query/eventsGetEvent.d.ts +20 -6
  95. package/dist/commonjs/react-query/eventsGetEvent.d.ts.map +1 -1
  96. package/dist/commonjs/react-query/eventsGetEvent.js +20 -6
  97. package/dist/commonjs/react-query/eventsGetEvent.js.map +1 -1
  98. package/dist/commonjs/react-query/eventsListFeed.d.ts +56 -8
  99. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  100. package/dist/commonjs/react-query/eventsListFeed.js +56 -8
  101. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  102. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
  103. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
  104. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
  105. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
  106. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
  107. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
  108. package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
  109. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +56 -8
  110. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  111. package/dist/commonjs/react-query/eventsListPendingInvitations.js +56 -8
  112. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  113. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +52 -8
  114. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  115. package/dist/commonjs/react-query/eventsListStandingAppointments.js +52 -8
  116. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  117. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  118. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  119. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
  120. package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  121. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
  122. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  123. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js +4 -0
  124. package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
  125. package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
  126. package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
  127. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  128. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  129. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
  130. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
  131. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
  132. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  133. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
  134. package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
  135. package/dist/commonjs/sdk/events.d.ts +52 -10
  136. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  137. package/dist/commonjs/sdk/events.js +51 -9
  138. package/dist/commonjs/sdk/events.js.map +1 -1
  139. package/dist/commonjs/sdk/fhirconfigs.d.ts +5 -1
  140. package/dist/commonjs/sdk/fhirconfigs.d.ts.map +1 -1
  141. package/dist/commonjs/sdk/fhirconfigs.js +5 -1
  142. package/dist/commonjs/sdk/fhirconfigs.js.map +1 -1
  143. package/dist/commonjs/sdk/organizations.d.ts +2 -0
  144. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  145. package/dist/commonjs/sdk/organizations.js +2 -0
  146. package/dist/commonjs/sdk/organizations.js.map +1 -1
  147. package/dist/commonjs/sdk/vendors.d.ts +2 -0
  148. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  149. package/dist/commonjs/sdk/vendors.js +2 -0
  150. package/dist/commonjs/sdk/vendors.js.map +1 -1
  151. package/dist/esm/__tests__/events.test.js +2 -4
  152. package/dist/esm/__tests__/events.test.js.map +1 -1
  153. package/dist/esm/__tests__/vendors.test.js +1 -1
  154. package/dist/esm/__tests__/zones.test.js +6 -9
  155. package/dist/esm/__tests__/zones.test.js.map +1 -1
  156. package/dist/esm/funcs/eventsCreateEvent.d.ts +1 -1
  157. package/dist/esm/funcs/eventsCreateEvent.d.ts.map +1 -1
  158. package/dist/esm/funcs/eventsCreateEvent.js +1 -1
  159. package/dist/esm/funcs/eventsCreateEvent.js.map +1 -1
  160. package/dist/esm/funcs/eventsGetEvent.d.ts +12 -4
  161. package/dist/esm/funcs/eventsGetEvent.d.ts.map +1 -1
  162. package/dist/esm/funcs/eventsGetEvent.js +12 -4
  163. package/dist/esm/funcs/eventsGetEvent.js.map +1 -1
  164. package/dist/esm/funcs/eventsListFeed.d.ts +14 -2
  165. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  166. package/dist/esm/funcs/eventsListFeed.js +14 -2
  167. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  168. package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js +2 -0
  169. package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
  170. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +14 -2
  171. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  172. package/dist/esm/funcs/eventsListPendingInvitations.js +14 -2
  173. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  174. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +13 -2
  175. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  176. package/dist/esm/funcs/eventsListStandingAppointments.js +13 -2
  177. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  178. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  179. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  180. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
  181. package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  182. package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
  183. package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  184. package/dist/esm/funcs/fhirConfigsGetFhirConfig.js +2 -0
  185. package/dist/esm/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
  186. package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
  187. package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
  188. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  189. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  190. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
  191. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
  192. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
  193. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  194. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
  195. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  196. package/dist/esm/lib/config.d.ts +2 -2
  197. package/dist/esm/lib/config.js +2 -2
  198. package/dist/esm/models/components/event.d.ts +98 -0
  199. package/dist/esm/models/components/event.d.ts.map +1 -0
  200. package/dist/esm/models/components/event.js +69 -0
  201. package/dist/esm/models/components/event.js.map +1 -0
  202. package/dist/esm/models/components/expand.d.ts +6 -0
  203. package/dist/esm/models/components/expand.d.ts.map +1 -1
  204. package/dist/esm/models/components/expand.js +6 -0
  205. package/dist/esm/models/components/expand.js.map +1 -1
  206. package/dist/esm/models/components/index.d.ts +2 -4
  207. package/dist/esm/models/components/index.d.ts.map +1 -1
  208. package/dist/esm/models/components/index.js +2 -4
  209. package/dist/esm/models/components/index.js.map +1 -1
  210. package/dist/esm/models/components/invite.d.ts +72 -0
  211. package/dist/esm/models/components/invite.d.ts.map +1 -0
  212. package/dist/esm/models/components/invite.js +69 -0
  213. package/dist/esm/models/components/invite.js.map +1 -0
  214. package/dist/esm/models/operations/createevent.d.ts +19 -0
  215. package/dist/esm/models/operations/createevent.d.ts.map +1 -1
  216. package/dist/esm/models/operations/createevent.js +3 -0
  217. package/dist/esm/models/operations/createevent.js.map +1 -1
  218. package/dist/esm/models/operations/getevent.d.ts +0 -89
  219. package/dist/esm/models/operations/getevent.d.ts.map +1 -1
  220. package/dist/esm/models/operations/getevent.js +0 -70
  221. package/dist/esm/models/operations/getevent.js.map +1 -1
  222. package/dist/esm/models/operations/listfeed.d.ts +1 -1
  223. package/dist/esm/models/operations/listfeed.d.ts.map +1 -1
  224. package/dist/esm/models/operations/listfeed.js +1 -2
  225. package/dist/esm/models/operations/listfeed.js.map +1 -1
  226. package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts +17 -0
  227. package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
  228. package/dist/esm/models/operations/listorsearchvendorinvitees.js +4 -0
  229. package/dist/esm/models/operations/listorsearchvendorinvitees.js.map +1 -1
  230. package/dist/esm/models/operations/listpendinginvitations.d.ts +1 -1
  231. package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -1
  232. package/dist/esm/models/operations/listpendinginvitations.js +1 -2
  233. package/dist/esm/models/operations/listpendinginvitations.js.map +1 -1
  234. package/dist/esm/models/operations/liststandingappointments.d.ts +1 -1
  235. package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -1
  236. package/dist/esm/models/operations/liststandingappointments.js +1 -2
  237. package/dist/esm/models/operations/liststandingappointments.js.map +1 -1
  238. package/dist/esm/react-query/eventsCreateEvent.d.ts +1 -1
  239. package/dist/esm/react-query/eventsCreateEvent.d.ts.map +1 -1
  240. package/dist/esm/react-query/eventsCreateEvent.js.map +1 -1
  241. package/dist/esm/react-query/eventsGetEvent.core.d.ts +1 -1
  242. package/dist/esm/react-query/eventsGetEvent.core.d.ts.map +1 -1
  243. package/dist/esm/react-query/eventsGetEvent.d.ts +20 -6
  244. package/dist/esm/react-query/eventsGetEvent.d.ts.map +1 -1
  245. package/dist/esm/react-query/eventsGetEvent.js +20 -6
  246. package/dist/esm/react-query/eventsGetEvent.js.map +1 -1
  247. package/dist/esm/react-query/eventsListFeed.d.ts +56 -8
  248. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  249. package/dist/esm/react-query/eventsListFeed.js +56 -8
  250. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  251. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
  252. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
  253. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
  254. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
  255. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
  256. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
  257. package/dist/esm/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
  258. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +56 -8
  259. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  260. package/dist/esm/react-query/eventsListPendingInvitations.js +56 -8
  261. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  262. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +52 -8
  263. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  264. package/dist/esm/react-query/eventsListStandingAppointments.js +52 -8
  265. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  266. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
  267. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
  268. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
  269. package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
  270. package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
  271. package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
  272. package/dist/esm/react-query/fhirConfigsGetFhirConfig.js +4 -0
  273. package/dist/esm/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
  274. package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
  275. package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
  276. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
  277. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
  278. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
  279. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
  280. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
  281. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  282. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
  283. package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
  284. package/dist/esm/sdk/events.d.ts +52 -10
  285. package/dist/esm/sdk/events.d.ts.map +1 -1
  286. package/dist/esm/sdk/events.js +51 -9
  287. package/dist/esm/sdk/events.js.map +1 -1
  288. package/dist/esm/sdk/fhirconfigs.d.ts +5 -1
  289. package/dist/esm/sdk/fhirconfigs.d.ts.map +1 -1
  290. package/dist/esm/sdk/fhirconfigs.js +5 -1
  291. package/dist/esm/sdk/fhirconfigs.js.map +1 -1
  292. package/dist/esm/sdk/organizations.d.ts +2 -0
  293. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  294. package/dist/esm/sdk/organizations.js +2 -0
  295. package/dist/esm/sdk/organizations.js.map +1 -1
  296. package/dist/esm/sdk/vendors.d.ts +2 -0
  297. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  298. package/dist/esm/sdk/vendors.js +2 -0
  299. package/dist/esm/sdk/vendors.js.map +1 -1
  300. package/jsr.json +1 -1
  301. package/package.json +1 -1
  302. package/src/__tests__/events.test.ts +2 -4
  303. package/src/__tests__/vendors.test.ts +1 -1
  304. package/src/__tests__/zones.test.ts +6 -9
  305. package/src/funcs/eventsCreateEvent.ts +4 -0
  306. package/src/funcs/eventsGetEvent.ts +15 -7
  307. package/src/funcs/eventsListFeed.ts +14 -2
  308. package/src/funcs/eventsListOrSearchVendorInvitees.ts +2 -0
  309. package/src/funcs/eventsListPendingInvitations.ts +14 -2
  310. package/src/funcs/eventsListStandingAppointments.ts +13 -2
  311. package/src/funcs/fhirConfigsDeleteFhirConfigById.ts +2 -0
  312. package/src/funcs/fhirConfigsGetFhirConfig.ts +2 -0
  313. package/src/funcs/fhirConfigsListOfFhirConfigurations.ts +1 -1
  314. package/src/funcs/organizationsCreateCompanyTargetFacility.ts +2 -0
  315. package/src/funcs/vendorsGetVendorInvoiceDetails.ts +2 -0
  316. package/src/lib/config.ts +2 -2
  317. package/src/models/components/event.ts +214 -0
  318. package/src/models/components/expand.ts +6 -0
  319. package/src/models/components/index.ts +2 -4
  320. package/src/models/components/invite.ts +168 -0
  321. package/src/models/operations/createevent.ts +22 -0
  322. package/src/models/operations/getevent.ts +0 -223
  323. package/src/models/operations/listfeed.ts +2 -3
  324. package/src/models/operations/listorsearchvendorinvitees.ts +21 -0
  325. package/src/models/operations/listpendinginvitations.ts +2 -3
  326. package/src/models/operations/liststandingappointments.ts +2 -5
  327. package/src/react-query/eventsCreateEvent.ts +1 -0
  328. package/src/react-query/eventsGetEvent.core.ts +1 -1
  329. package/src/react-query/eventsGetEvent.ts +20 -6
  330. package/src/react-query/eventsListFeed.ts +56 -8
  331. package/src/react-query/eventsListOrSearchVendorInvitees.core.ts +8 -0
  332. package/src/react-query/eventsListOrSearchVendorInvitees.ts +4 -0
  333. package/src/react-query/eventsListPendingInvitations.ts +56 -8
  334. package/src/react-query/eventsListStandingAppointments.ts +52 -8
  335. package/src/react-query/fhirConfigsDeleteFhirConfigById.ts +2 -0
  336. package/src/react-query/fhirConfigsGetFhirConfig.ts +4 -0
  337. package/src/react-query/fhirConfigsListOfFhirConfigurations.ts +4 -4
  338. package/src/react-query/organizationsCreateCompanyTargetFacility.ts +2 -0
  339. package/src/react-query/vendorsGetVendorInvoiceDetails.ts +4 -0
  340. package/src/sdk/events.ts +52 -10
  341. package/src/sdk/fhirconfigs.ts +5 -1
  342. package/src/sdk/organizations.ts +2 -0
  343. package/src/sdk/vendors.ts +2 -0
  344. package/dist/commonjs/models/components/feed.d.ts +0 -33
  345. package/dist/commonjs/models/components/feed.d.ts.map +0 -1
  346. package/dist/commonjs/models/components/feed.js +0 -75
  347. package/dist/commonjs/models/components/feed.js.map +0 -1
  348. package/dist/commonjs/models/components/invitee.d.ts +0 -23
  349. package/dist/commonjs/models/components/invitee.d.ts.map +0 -1
  350. package/dist/commonjs/models/components/invitee.js +0 -68
  351. package/dist/commonjs/models/components/invitee.js.map +0 -1
  352. package/dist/commonjs/models/components/pendinginvitation.d.ts +0 -41
  353. package/dist/commonjs/models/components/pendinginvitation.d.ts.map +0 -1
  354. package/dist/commonjs/models/components/pendinginvitation.js +0 -85
  355. package/dist/commonjs/models/components/pendinginvitation.js.map +0 -1
  356. package/dist/commonjs/models/components/standingappointment.d.ts +0 -34
  357. package/dist/commonjs/models/components/standingappointment.d.ts.map +0 -1
  358. package/dist/commonjs/models/components/standingappointment.js +0 -74
  359. package/dist/commonjs/models/components/standingappointment.js.map +0 -1
  360. package/dist/esm/models/components/feed.d.ts +0 -33
  361. package/dist/esm/models/components/feed.d.ts.map +0 -1
  362. package/dist/esm/models/components/feed.js +0 -38
  363. package/dist/esm/models/components/feed.js.map +0 -1
  364. package/dist/esm/models/components/invitee.d.ts +0 -23
  365. package/dist/esm/models/components/invitee.d.ts.map +0 -1
  366. package/dist/esm/models/components/invitee.js +0 -31
  367. package/dist/esm/models/components/invitee.js.map +0 -1
  368. package/dist/esm/models/components/pendinginvitation.d.ts +0 -41
  369. package/dist/esm/models/components/pendinginvitation.d.ts.map +0 -1
  370. package/dist/esm/models/components/pendinginvitation.js +0 -47
  371. package/dist/esm/models/components/pendinginvitation.js.map +0 -1
  372. package/dist/esm/models/components/standingappointment.d.ts +0 -34
  373. package/dist/esm/models/components/standingappointment.d.ts.map +0 -1
  374. package/dist/esm/models/components/standingappointment.js +0 -37
  375. package/dist/esm/models/components/standingappointment.js.map +0 -1
  376. package/src/models/components/feed.ts +0 -74
  377. package/src/models/components/invitee.ts +0 -58
  378. package/src/models/components/pendinginvitation.ts +0 -102
  379. package/src/models/components/standingappointment.ts +0 -78
@@ -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
 
@@ -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,