@unified-api/typescript-sdk 2.86.3 → 2.86.4

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 (305) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +24 -16
  3. package/dist/commonjs/funcs/calendarGetCalendarLocation.d.ts +18 -0
  4. package/dist/commonjs/funcs/calendarGetCalendarLocation.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/calendarGetCalendarLocation.js +129 -0
  6. package/dist/commonjs/funcs/calendarGetCalendarLocation.js.map +1 -0
  7. package/dist/commonjs/funcs/calendarGetCalendarRoom.d.ts +18 -0
  8. package/dist/commonjs/funcs/{clubsListClubsLocations.d.ts.map → calendarGetCalendarRoom.d.ts.map} +1 -1
  9. package/dist/commonjs/funcs/calendarGetCalendarRoom.js +129 -0
  10. package/dist/commonjs/funcs/calendarGetCalendarRoom.js.map +1 -0
  11. package/dist/commonjs/funcs/calendarListCalendarBusies.js +1 -0
  12. package/dist/commonjs/funcs/calendarListCalendarBusies.js.map +1 -1
  13. package/dist/commonjs/funcs/calendarListCalendarLocations.d.ts +18 -0
  14. package/dist/commonjs/funcs/calendarListCalendarLocations.d.ts.map +1 -0
  15. package/dist/commonjs/funcs/calendarListCalendarLocations.js +133 -0
  16. package/dist/commonjs/funcs/calendarListCalendarLocations.js.map +1 -0
  17. package/dist/commonjs/funcs/calendarListCalendarRooms.d.ts +18 -0
  18. package/dist/commonjs/funcs/calendarListCalendarRooms.d.ts.map +1 -0
  19. package/dist/commonjs/funcs/calendarListCalendarRooms.js +134 -0
  20. package/dist/commonjs/funcs/calendarListCalendarRooms.js.map +1 -0
  21. package/dist/commonjs/funcs/eventListCalendarEvents.js +1 -0
  22. package/dist/commonjs/funcs/eventListCalendarEvents.js.map +1 -1
  23. package/dist/commonjs/funcs/{clubsGetClubsLocation.d.ts → locationGetClubsLocation.d.ts} +2 -2
  24. package/dist/commonjs/funcs/locationGetClubsLocation.d.ts.map +1 -0
  25. package/dist/commonjs/funcs/{clubsGetClubsLocation.js → locationGetClubsLocation.js} +3 -3
  26. package/dist/commonjs/funcs/locationGetClubsLocation.js.map +1 -0
  27. package/dist/commonjs/funcs/{clubsListClubsLocations.d.ts → locationListClubsLocations.d.ts} +2 -2
  28. package/dist/commonjs/funcs/locationListClubsLocations.d.ts.map +1 -0
  29. package/dist/commonjs/funcs/{clubsListClubsLocations.js → locationListClubsLocations.js} +3 -3
  30. package/dist/commonjs/funcs/locationListClubsLocations.js.map +1 -0
  31. package/dist/commonjs/lib/config.d.ts +2 -2
  32. package/dist/commonjs/lib/config.js +2 -2
  33. package/dist/commonjs/sdk/calendar.d.ts +28 -0
  34. package/dist/commonjs/sdk/calendar.d.ts.map +1 -1
  35. package/dist/commonjs/sdk/calendar.js +40 -0
  36. package/dist/commonjs/sdk/calendar.js.map +1 -1
  37. package/dist/commonjs/sdk/clubs.js +4 -4
  38. package/dist/commonjs/sdk/clubs.js.map +1 -1
  39. package/dist/commonjs/sdk/location.d.ts +14 -0
  40. package/dist/commonjs/sdk/location.d.ts.map +1 -1
  41. package/dist/commonjs/sdk/location.js +24 -4
  42. package/dist/commonjs/sdk/location.js.map +1 -1
  43. package/dist/commonjs/sdk/models/operations/createcalendarevent.d.ts +1 -0
  44. package/dist/commonjs/sdk/models/operations/createcalendarevent.d.ts.map +1 -1
  45. package/dist/commonjs/sdk/models/operations/createcalendarevent.js +1 -0
  46. package/dist/commonjs/sdk/models/operations/createcalendarevent.js.map +1 -1
  47. package/dist/commonjs/sdk/models/operations/getcalendarevent.d.ts +1 -0
  48. package/dist/commonjs/sdk/models/operations/getcalendarevent.d.ts.map +1 -1
  49. package/dist/commonjs/sdk/models/operations/getcalendarevent.js +1 -0
  50. package/dist/commonjs/sdk/models/operations/getcalendarevent.js.map +1 -1
  51. package/dist/commonjs/sdk/models/operations/getcalendarlocation.d.ts +46 -0
  52. package/dist/commonjs/sdk/models/operations/getcalendarlocation.d.ts.map +1 -0
  53. package/dist/commonjs/sdk/models/operations/getcalendarlocation.js +72 -0
  54. package/dist/commonjs/sdk/models/operations/getcalendarlocation.js.map +1 -0
  55. package/dist/commonjs/sdk/models/operations/getcalendarroom.d.ts +54 -0
  56. package/dist/commonjs/sdk/models/operations/getcalendarroom.d.ts.map +1 -0
  57. package/dist/commonjs/sdk/models/operations/getcalendarroom.js +79 -0
  58. package/dist/commonjs/sdk/models/operations/getcalendarroom.js.map +1 -0
  59. package/dist/commonjs/sdk/models/operations/index.d.ts +4 -0
  60. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  61. package/dist/commonjs/sdk/models/operations/index.js +4 -0
  62. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  63. package/dist/commonjs/sdk/models/operations/listcalendarbusies.d.ts +5 -0
  64. package/dist/commonjs/sdk/models/operations/listcalendarbusies.d.ts.map +1 -1
  65. package/dist/commonjs/sdk/models/operations/listcalendarbusies.js +2 -0
  66. package/dist/commonjs/sdk/models/operations/listcalendarbusies.js.map +1 -1
  67. package/dist/commonjs/sdk/models/operations/listcalendarevents.d.ts +6 -0
  68. package/dist/commonjs/sdk/models/operations/listcalendarevents.d.ts.map +1 -1
  69. package/dist/commonjs/sdk/models/operations/listcalendarevents.js +3 -0
  70. package/dist/commonjs/sdk/models/operations/listcalendarevents.js.map +1 -1
  71. package/dist/commonjs/sdk/models/operations/listcalendarlocations.d.ts +64 -0
  72. package/dist/commonjs/sdk/models/operations/listcalendarlocations.d.ts.map +1 -0
  73. package/dist/commonjs/sdk/models/operations/listcalendarlocations.js +80 -0
  74. package/dist/commonjs/sdk/models/operations/listcalendarlocations.js.map +1 -0
  75. package/dist/commonjs/sdk/models/operations/listcalendarrooms.d.ts +77 -0
  76. package/dist/commonjs/sdk/models/operations/listcalendarrooms.d.ts.map +1 -0
  77. package/dist/commonjs/sdk/models/operations/listcalendarrooms.js +88 -0
  78. package/dist/commonjs/sdk/models/operations/listcalendarrooms.js.map +1 -0
  79. package/dist/commonjs/sdk/models/operations/patchcalendarevent.d.ts +1 -0
  80. package/dist/commonjs/sdk/models/operations/patchcalendarevent.d.ts.map +1 -1
  81. package/dist/commonjs/sdk/models/operations/patchcalendarevent.js +1 -0
  82. package/dist/commonjs/sdk/models/operations/patchcalendarevent.js.map +1 -1
  83. package/dist/commonjs/sdk/models/operations/updatecalendarevent.d.ts +1 -0
  84. package/dist/commonjs/sdk/models/operations/updatecalendarevent.d.ts.map +1 -1
  85. package/dist/commonjs/sdk/models/operations/updatecalendarevent.js +1 -0
  86. package/dist/commonjs/sdk/models/operations/updatecalendarevent.js.map +1 -1
  87. package/dist/commonjs/sdk/models/shared/calendarevent.d.ts +5 -0
  88. package/dist/commonjs/sdk/models/shared/calendarevent.d.ts.map +1 -1
  89. package/dist/commonjs/sdk/models/shared/calendarevent.js +4 -0
  90. package/dist/commonjs/sdk/models/shared/calendarevent.js.map +1 -1
  91. package/dist/commonjs/sdk/models/shared/calendarlocation.d.ts +42 -0
  92. package/dist/commonjs/sdk/models/shared/calendarlocation.d.ts.map +1 -0
  93. package/dist/commonjs/sdk/models/shared/calendarlocation.js +82 -0
  94. package/dist/commonjs/sdk/models/shared/calendarlocation.js.map +1 -0
  95. package/dist/commonjs/sdk/models/shared/calendarroom.d.ts +54 -0
  96. package/dist/commonjs/sdk/models/shared/calendarroom.d.ts.map +1 -0
  97. package/dist/commonjs/sdk/models/shared/calendarroom.js +89 -0
  98. package/dist/commonjs/sdk/models/shared/calendarroom.js.map +1 -0
  99. package/dist/commonjs/sdk/models/shared/index.d.ts +4 -1
  100. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  101. package/dist/commonjs/sdk/models/shared/index.js +4 -1
  102. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  103. package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts +10 -1
  104. package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  105. package/dist/commonjs/sdk/models/shared/integrationsupport.js +163 -154
  106. package/dist/commonjs/sdk/models/shared/integrationsupport.js.map +1 -1
  107. package/dist/commonjs/sdk/models/shared/propertycalendarlocationaddress.d.ts +20 -0
  108. package/dist/commonjs/sdk/models/shared/propertycalendarlocationaddress.d.ts.map +1 -0
  109. package/dist/commonjs/sdk/models/shared/propertycalendarlocationaddress.js +64 -0
  110. package/dist/commonjs/sdk/models/shared/propertycalendarlocationaddress.js.map +1 -0
  111. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  112. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  113. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  114. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  115. package/dist/commonjs/sdk/models/shared/{virtualwebhookchannelid.d.ts → virtualwebhookcarrierid.d.ts} +9 -9
  116. package/dist/commonjs/sdk/models/shared/virtualwebhookcarrierid.d.ts.map +1 -0
  117. package/dist/commonjs/sdk/models/shared/{virtualwebhookchannelid.js → virtualwebhookcarrierid.js} +12 -12
  118. package/dist/commonjs/sdk/models/shared/virtualwebhookcarrierid.js.map +1 -0
  119. package/dist/commonjs/sdk/models/shared/webhook.d.ts +2 -0
  120. package/dist/commonjs/sdk/models/shared/webhook.d.ts.map +1 -1
  121. package/dist/commonjs/sdk/models/shared/webhook.js +2 -0
  122. package/dist/commonjs/sdk/models/shared/webhook.js.map +1 -1
  123. package/dist/commonjs/sdk/room.d.ts +20 -0
  124. package/dist/commonjs/sdk/room.d.ts.map +1 -0
  125. package/dist/commonjs/sdk/room.js +32 -0
  126. package/dist/commonjs/sdk/room.js.map +1 -0
  127. package/dist/commonjs/sdk/sdk.d.ts +5 -2
  128. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  129. package/dist/commonjs/sdk/sdk.js +7 -3
  130. package/dist/commonjs/sdk/sdk.js.map +1 -1
  131. package/dist/esm/funcs/calendarGetCalendarLocation.d.ts +18 -0
  132. package/dist/esm/funcs/calendarGetCalendarLocation.d.ts.map +1 -0
  133. package/dist/esm/funcs/calendarGetCalendarLocation.js +93 -0
  134. package/dist/esm/funcs/calendarGetCalendarLocation.js.map +1 -0
  135. package/dist/esm/funcs/calendarGetCalendarRoom.d.ts +18 -0
  136. package/dist/esm/funcs/{clubsListClubsLocations.d.ts.map → calendarGetCalendarRoom.d.ts.map} +1 -1
  137. package/dist/esm/funcs/calendarGetCalendarRoom.js +93 -0
  138. package/dist/esm/funcs/calendarGetCalendarRoom.js.map +1 -0
  139. package/dist/esm/funcs/calendarListCalendarBusies.js +1 -0
  140. package/dist/esm/funcs/calendarListCalendarBusies.js.map +1 -1
  141. package/dist/esm/funcs/calendarListCalendarLocations.d.ts +18 -0
  142. package/dist/esm/funcs/calendarListCalendarLocations.d.ts.map +1 -0
  143. package/dist/esm/funcs/calendarListCalendarLocations.js +97 -0
  144. package/dist/esm/funcs/calendarListCalendarLocations.js.map +1 -0
  145. package/dist/esm/funcs/calendarListCalendarRooms.d.ts +18 -0
  146. package/dist/esm/funcs/calendarListCalendarRooms.d.ts.map +1 -0
  147. package/dist/esm/funcs/calendarListCalendarRooms.js +98 -0
  148. package/dist/esm/funcs/calendarListCalendarRooms.js.map +1 -0
  149. package/dist/esm/funcs/eventListCalendarEvents.js +1 -0
  150. package/dist/esm/funcs/eventListCalendarEvents.js.map +1 -1
  151. package/dist/esm/funcs/{clubsGetClubsLocation.d.ts → locationGetClubsLocation.d.ts} +2 -2
  152. package/dist/esm/funcs/locationGetClubsLocation.d.ts.map +1 -0
  153. package/dist/esm/funcs/{clubsGetClubsLocation.js → locationGetClubsLocation.js} +2 -2
  154. package/dist/esm/funcs/locationGetClubsLocation.js.map +1 -0
  155. package/dist/esm/funcs/{clubsListClubsLocations.d.ts → locationListClubsLocations.d.ts} +2 -2
  156. package/dist/esm/funcs/locationListClubsLocations.d.ts.map +1 -0
  157. package/dist/esm/funcs/{clubsListClubsLocations.js → locationListClubsLocations.js} +2 -2
  158. package/dist/esm/funcs/locationListClubsLocations.js.map +1 -0
  159. package/dist/esm/lib/config.d.ts +2 -2
  160. package/dist/esm/lib/config.js +2 -2
  161. package/dist/esm/sdk/calendar.d.ts +28 -0
  162. package/dist/esm/sdk/calendar.d.ts.map +1 -1
  163. package/dist/esm/sdk/calendar.js +40 -0
  164. package/dist/esm/sdk/calendar.js.map +1 -1
  165. package/dist/esm/sdk/clubs.js +4 -4
  166. package/dist/esm/sdk/clubs.js.map +1 -1
  167. package/dist/esm/sdk/location.d.ts +14 -0
  168. package/dist/esm/sdk/location.d.ts.map +1 -1
  169. package/dist/esm/sdk/location.js +24 -4
  170. package/dist/esm/sdk/location.js.map +1 -1
  171. package/dist/esm/sdk/models/operations/createcalendarevent.d.ts +1 -0
  172. package/dist/esm/sdk/models/operations/createcalendarevent.d.ts.map +1 -1
  173. package/dist/esm/sdk/models/operations/createcalendarevent.js +1 -0
  174. package/dist/esm/sdk/models/operations/createcalendarevent.js.map +1 -1
  175. package/dist/esm/sdk/models/operations/getcalendarevent.d.ts +1 -0
  176. package/dist/esm/sdk/models/operations/getcalendarevent.d.ts.map +1 -1
  177. package/dist/esm/sdk/models/operations/getcalendarevent.js +1 -0
  178. package/dist/esm/sdk/models/operations/getcalendarevent.js.map +1 -1
  179. package/dist/esm/sdk/models/operations/getcalendarlocation.d.ts +46 -0
  180. package/dist/esm/sdk/models/operations/getcalendarlocation.d.ts.map +1 -0
  181. package/dist/esm/sdk/models/operations/getcalendarlocation.js +35 -0
  182. package/dist/esm/sdk/models/operations/getcalendarlocation.js.map +1 -0
  183. package/dist/esm/sdk/models/operations/getcalendarroom.d.ts +54 -0
  184. package/dist/esm/sdk/models/operations/getcalendarroom.d.ts.map +1 -0
  185. package/dist/esm/sdk/models/operations/getcalendarroom.js +42 -0
  186. package/dist/esm/sdk/models/operations/getcalendarroom.js.map +1 -0
  187. package/dist/esm/sdk/models/operations/index.d.ts +4 -0
  188. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  189. package/dist/esm/sdk/models/operations/index.js +4 -0
  190. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  191. package/dist/esm/sdk/models/operations/listcalendarbusies.d.ts +5 -0
  192. package/dist/esm/sdk/models/operations/listcalendarbusies.d.ts.map +1 -1
  193. package/dist/esm/sdk/models/operations/listcalendarbusies.js +2 -0
  194. package/dist/esm/sdk/models/operations/listcalendarbusies.js.map +1 -1
  195. package/dist/esm/sdk/models/operations/listcalendarevents.d.ts +6 -0
  196. package/dist/esm/sdk/models/operations/listcalendarevents.d.ts.map +1 -1
  197. package/dist/esm/sdk/models/operations/listcalendarevents.js +3 -0
  198. package/dist/esm/sdk/models/operations/listcalendarevents.js.map +1 -1
  199. package/dist/esm/sdk/models/operations/listcalendarlocations.d.ts +64 -0
  200. package/dist/esm/sdk/models/operations/listcalendarlocations.d.ts.map +1 -0
  201. package/dist/esm/sdk/models/operations/listcalendarlocations.js +43 -0
  202. package/dist/esm/sdk/models/operations/listcalendarlocations.js.map +1 -0
  203. package/dist/esm/sdk/models/operations/listcalendarrooms.d.ts +77 -0
  204. package/dist/esm/sdk/models/operations/listcalendarrooms.d.ts.map +1 -0
  205. package/dist/esm/sdk/models/operations/listcalendarrooms.js +51 -0
  206. package/dist/esm/sdk/models/operations/listcalendarrooms.js.map +1 -0
  207. package/dist/esm/sdk/models/operations/patchcalendarevent.d.ts +1 -0
  208. package/dist/esm/sdk/models/operations/patchcalendarevent.d.ts.map +1 -1
  209. package/dist/esm/sdk/models/operations/patchcalendarevent.js +1 -0
  210. package/dist/esm/sdk/models/operations/patchcalendarevent.js.map +1 -1
  211. package/dist/esm/sdk/models/operations/updatecalendarevent.d.ts +1 -0
  212. package/dist/esm/sdk/models/operations/updatecalendarevent.d.ts.map +1 -1
  213. package/dist/esm/sdk/models/operations/updatecalendarevent.js +1 -0
  214. package/dist/esm/sdk/models/operations/updatecalendarevent.js.map +1 -1
  215. package/dist/esm/sdk/models/shared/calendarevent.d.ts +5 -0
  216. package/dist/esm/sdk/models/shared/calendarevent.d.ts.map +1 -1
  217. package/dist/esm/sdk/models/shared/calendarevent.js +4 -0
  218. package/dist/esm/sdk/models/shared/calendarevent.js.map +1 -1
  219. package/dist/esm/sdk/models/shared/calendarlocation.d.ts +42 -0
  220. package/dist/esm/sdk/models/shared/calendarlocation.d.ts.map +1 -0
  221. package/dist/esm/sdk/models/shared/calendarlocation.js +45 -0
  222. package/dist/esm/sdk/models/shared/calendarlocation.js.map +1 -0
  223. package/dist/esm/sdk/models/shared/calendarroom.d.ts +54 -0
  224. package/dist/esm/sdk/models/shared/calendarroom.d.ts.map +1 -0
  225. package/dist/esm/sdk/models/shared/calendarroom.js +52 -0
  226. package/dist/esm/sdk/models/shared/calendarroom.js.map +1 -0
  227. package/dist/esm/sdk/models/shared/index.d.ts +4 -1
  228. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  229. package/dist/esm/sdk/models/shared/index.js +4 -1
  230. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  231. package/dist/esm/sdk/models/shared/integrationsupport.d.ts +10 -1
  232. package/dist/esm/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  233. package/dist/esm/sdk/models/shared/integrationsupport.js +10 -1
  234. package/dist/esm/sdk/models/shared/integrationsupport.js.map +1 -1
  235. package/dist/esm/sdk/models/shared/propertycalendarlocationaddress.d.ts +20 -0
  236. package/dist/esm/sdk/models/shared/propertycalendarlocationaddress.d.ts.map +1 -0
  237. package/dist/esm/sdk/models/shared/propertycalendarlocationaddress.js +27 -0
  238. package/dist/esm/sdk/models/shared/propertycalendarlocationaddress.js.map +1 -0
  239. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  240. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  241. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  242. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  243. package/dist/esm/sdk/models/shared/{virtualwebhookchannelid.d.ts → virtualwebhookcarrierid.d.ts} +9 -9
  244. package/dist/esm/sdk/models/shared/virtualwebhookcarrierid.d.ts.map +1 -0
  245. package/dist/esm/sdk/models/shared/{virtualwebhookchannelid.js → virtualwebhookcarrierid.js} +8 -8
  246. package/dist/esm/sdk/models/shared/virtualwebhookcarrierid.js.map +1 -0
  247. package/dist/esm/sdk/models/shared/webhook.d.ts +2 -0
  248. package/dist/esm/sdk/models/shared/webhook.d.ts.map +1 -1
  249. package/dist/esm/sdk/models/shared/webhook.js +2 -0
  250. package/dist/esm/sdk/models/shared/webhook.js.map +1 -1
  251. package/dist/esm/sdk/room.d.ts +20 -0
  252. package/dist/esm/sdk/room.d.ts.map +1 -0
  253. package/dist/esm/sdk/room.js +28 -0
  254. package/dist/esm/sdk/room.js.map +1 -0
  255. package/dist/esm/sdk/sdk.d.ts +5 -2
  256. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  257. package/dist/esm/sdk/sdk.js +7 -3
  258. package/dist/esm/sdk/sdk.js.map +1 -1
  259. package/examples/accountingCreateAccountingAccount.example.ts +2 -2
  260. package/jsr.json +1 -1
  261. package/package.json +1 -1
  262. package/src/funcs/calendarGetCalendarLocation.ts +180 -0
  263. package/src/funcs/calendarGetCalendarRoom.ts +177 -0
  264. package/src/funcs/calendarListCalendarBusies.ts +1 -0
  265. package/src/funcs/calendarListCalendarLocations.ts +182 -0
  266. package/src/funcs/calendarListCalendarRooms.ts +182 -0
  267. package/src/funcs/eventListCalendarEvents.ts +1 -0
  268. package/src/funcs/{clubsGetClubsLocation.ts → locationGetClubsLocation.ts} +1 -1
  269. package/src/funcs/{clubsListClubsLocations.ts → locationListClubsLocations.ts} +1 -1
  270. package/src/lib/config.ts +2 -2
  271. package/src/sdk/calendar.ts +72 -0
  272. package/src/sdk/clubs.ts +4 -4
  273. package/src/sdk/location.ts +40 -4
  274. package/src/sdk/models/operations/createcalendarevent.ts +1 -0
  275. package/src/sdk/models/operations/getcalendarevent.ts +1 -0
  276. package/src/sdk/models/operations/getcalendarlocation.ts +81 -0
  277. package/src/sdk/models/operations/getcalendarroom.ts +87 -0
  278. package/src/sdk/models/operations/index.ts +4 -0
  279. package/src/sdk/models/operations/listcalendarbusies.ts +7 -0
  280. package/src/sdk/models/operations/listcalendarevents.ts +8 -0
  281. package/src/sdk/models/operations/listcalendarlocations.ts +109 -0
  282. package/src/sdk/models/operations/listcalendarrooms.ts +119 -0
  283. package/src/sdk/models/operations/patchcalendarevent.ts +1 -0
  284. package/src/sdk/models/operations/updatecalendarevent.ts +1 -0
  285. package/src/sdk/models/shared/calendarevent.ts +9 -0
  286. package/src/sdk/models/shared/calendarlocation.ts +92 -0
  287. package/src/sdk/models/shared/calendarroom.ts +113 -0
  288. package/src/sdk/models/shared/index.ts +4 -1
  289. package/src/sdk/models/shared/integrationsupport.ts +20 -3
  290. package/src/sdk/models/shared/propertycalendarlocationaddress.ts +55 -0
  291. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  292. package/src/sdk/models/shared/{virtualwebhookchannelid.ts → virtualwebhookcarrierid.ts} +14 -14
  293. package/src/sdk/models/shared/webhook.ts +2 -0
  294. package/src/sdk/room.ts +46 -0
  295. package/src/sdk/sdk.ts +11 -5
  296. package/dist/commonjs/funcs/clubsGetClubsLocation.d.ts.map +0 -1
  297. package/dist/commonjs/funcs/clubsGetClubsLocation.js.map +0 -1
  298. package/dist/commonjs/funcs/clubsListClubsLocations.js.map +0 -1
  299. package/dist/commonjs/sdk/models/shared/virtualwebhookchannelid.d.ts.map +0 -1
  300. package/dist/commonjs/sdk/models/shared/virtualwebhookchannelid.js.map +0 -1
  301. package/dist/esm/funcs/clubsGetClubsLocation.d.ts.map +0 -1
  302. package/dist/esm/funcs/clubsGetClubsLocation.js.map +0 -1
  303. package/dist/esm/funcs/clubsListClubsLocations.js.map +0 -1
  304. package/dist/esm/sdk/models/shared/virtualwebhookchannelid.d.ts.map +0 -1
  305. package/dist/esm/sdk/models/shared/virtualwebhookchannelid.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unified-api/typescript-sdk",
3
- "version": "2.86.3",
3
+ "version": "2.86.4",
4
4
  "author": "Unified",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -0,0 +1,180 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import * as shared from "../sdk/models/shared/index.js";
26
+ import { APICall, APIPromise } from "../sdk/types/async.js";
27
+ import { Result } from "../sdk/types/fp.js";
28
+
29
+ /**
30
+ * Retrieve a location
31
+ *
32
+ * @remarks
33
+ * Retrieves a single CalendarLocation by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
34
+ */
35
+ export function calendarGetCalendarLocation(
36
+ client: UnifiedToCore,
37
+ request: operations.GetCalendarLocationRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ shared.CalendarLocation,
42
+ | UnifiedToError
43
+ | ResponseValidationError
44
+ | ConnectionError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | InvalidRequestError
48
+ | UnexpectedClientError
49
+ | SDKValidationError
50
+ >
51
+ > {
52
+ return new APIPromise($do(
53
+ client,
54
+ request,
55
+ options,
56
+ ));
57
+ }
58
+
59
+ async function $do(
60
+ client: UnifiedToCore,
61
+ request: operations.GetCalendarLocationRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<
64
+ [
65
+ Result<
66
+ shared.CalendarLocation,
67
+ | UnifiedToError
68
+ | ResponseValidationError
69
+ | ConnectionError
70
+ | RequestAbortedError
71
+ | RequestTimeoutError
72
+ | InvalidRequestError
73
+ | UnexpectedClientError
74
+ | SDKValidationError
75
+ >,
76
+ APICall,
77
+ ]
78
+ > {
79
+ const parsed = safeParse(
80
+ request,
81
+ (value) =>
82
+ operations.GetCalendarLocationRequest$outboundSchema.parse(value),
83
+ "Input validation failed",
84
+ );
85
+ if (!parsed.ok) {
86
+ return [parsed, { status: "invalid" }];
87
+ }
88
+ const payload = parsed.value;
89
+ const body = null;
90
+
91
+ const pathParams = {
92
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
93
+ explode: false,
94
+ charEncoding: "percent",
95
+ }),
96
+ id: encodeSimple("id", payload.id, {
97
+ explode: false,
98
+ charEncoding: "percent",
99
+ }),
100
+ };
101
+ const path = pathToFunc("/calendar/{connection_id}/location/{id}")(
102
+ pathParams,
103
+ );
104
+
105
+ const query = encodeFormQuery({
106
+ "fields": payload.fields,
107
+ "raw": payload.raw,
108
+ });
109
+
110
+ const headers = new Headers(compactMap({
111
+ Accept: "application/json",
112
+ }));
113
+
114
+ const securityInput = await extractSecurity(client._options.security);
115
+ const requestSecurity = resolveGlobalSecurity(securityInput);
116
+
117
+ const context = {
118
+ options: client._options,
119
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
120
+ operationID: "getCalendarLocation",
121
+ oAuth2Scopes: null,
122
+
123
+ resolvedSecurity: requestSecurity,
124
+
125
+ securitySource: client._options.security,
126
+ retryConfig: options?.retries
127
+ || client._options.retryConfig
128
+ || { strategy: "none" },
129
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
130
+ };
131
+
132
+ const requestRes = client._createRequest(context, {
133
+ security: requestSecurity,
134
+ method: "GET",
135
+ baseURL: options?.serverURL,
136
+ path: path,
137
+ headers: headers,
138
+ query: query,
139
+ body: body,
140
+ userAgent: client._options.userAgent,
141
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
142
+ }, options);
143
+ if (!requestRes.ok) {
144
+ return [requestRes, { status: "invalid" }];
145
+ }
146
+ const req = requestRes.value;
147
+
148
+ const doResult = await client._do(req, {
149
+ context,
150
+ isErrorStatusCode: (statusCode: number) =>
151
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
152
+ retryConfig: context.retryConfig,
153
+ retryCodes: context.retryCodes,
154
+ });
155
+ if (!doResult.ok) {
156
+ return [doResult, { status: "request-error", request: req }];
157
+ }
158
+ const response = doResult.value;
159
+
160
+ const [result] = await M.match<
161
+ shared.CalendarLocation,
162
+ | UnifiedToError
163
+ | ResponseValidationError
164
+ | ConnectionError
165
+ | RequestAbortedError
166
+ | RequestTimeoutError
167
+ | InvalidRequestError
168
+ | UnexpectedClientError
169
+ | SDKValidationError
170
+ >(
171
+ M.json(200, shared.CalendarLocation$inboundSchema),
172
+ M.fail("4XX"),
173
+ M.fail("5XX"),
174
+ )(response, req);
175
+ if (!result.ok) {
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
178
+
179
+ return [result, { status: "complete", request: req, response }];
180
+ }
@@ -0,0 +1,177 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import * as shared from "../sdk/models/shared/index.js";
26
+ import { APICall, APIPromise } from "../sdk/types/async.js";
27
+ import { Result } from "../sdk/types/fp.js";
28
+
29
+ /**
30
+ * Retrieve a room
31
+ *
32
+ * @remarks
33
+ * Retrieves a single CalendarRoom by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.
34
+ */
35
+ export function calendarGetCalendarRoom(
36
+ client: UnifiedToCore,
37
+ request: operations.GetCalendarRoomRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ shared.CalendarRoom,
42
+ | UnifiedToError
43
+ | ResponseValidationError
44
+ | ConnectionError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | InvalidRequestError
48
+ | UnexpectedClientError
49
+ | SDKValidationError
50
+ >
51
+ > {
52
+ return new APIPromise($do(
53
+ client,
54
+ request,
55
+ options,
56
+ ));
57
+ }
58
+
59
+ async function $do(
60
+ client: UnifiedToCore,
61
+ request: operations.GetCalendarRoomRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<
64
+ [
65
+ Result<
66
+ shared.CalendarRoom,
67
+ | UnifiedToError
68
+ | ResponseValidationError
69
+ | ConnectionError
70
+ | RequestAbortedError
71
+ | RequestTimeoutError
72
+ | InvalidRequestError
73
+ | UnexpectedClientError
74
+ | SDKValidationError
75
+ >,
76
+ APICall,
77
+ ]
78
+ > {
79
+ const parsed = safeParse(
80
+ request,
81
+ (value) => operations.GetCalendarRoomRequest$outboundSchema.parse(value),
82
+ "Input validation failed",
83
+ );
84
+ if (!parsed.ok) {
85
+ return [parsed, { status: "invalid" }];
86
+ }
87
+ const payload = parsed.value;
88
+ const body = null;
89
+
90
+ const pathParams = {
91
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
92
+ explode: false,
93
+ charEncoding: "percent",
94
+ }),
95
+ id: encodeSimple("id", payload.id, {
96
+ explode: false,
97
+ charEncoding: "percent",
98
+ }),
99
+ };
100
+ const path = pathToFunc("/calendar/{connection_id}/room/{id}")(pathParams);
101
+
102
+ const query = encodeFormQuery({
103
+ "fields": payload.fields,
104
+ "raw": payload.raw,
105
+ });
106
+
107
+ const headers = new Headers(compactMap({
108
+ Accept: "application/json",
109
+ }));
110
+
111
+ const securityInput = await extractSecurity(client._options.security);
112
+ const requestSecurity = resolveGlobalSecurity(securityInput);
113
+
114
+ const context = {
115
+ options: client._options,
116
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
117
+ operationID: "getCalendarRoom",
118
+ oAuth2Scopes: null,
119
+
120
+ resolvedSecurity: requestSecurity,
121
+
122
+ securitySource: client._options.security,
123
+ retryConfig: options?.retries
124
+ || client._options.retryConfig
125
+ || { strategy: "none" },
126
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
127
+ };
128
+
129
+ const requestRes = client._createRequest(context, {
130
+ security: requestSecurity,
131
+ method: "GET",
132
+ baseURL: options?.serverURL,
133
+ path: path,
134
+ headers: headers,
135
+ query: query,
136
+ body: body,
137
+ userAgent: client._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
139
+ }, options);
140
+ if (!requestRes.ok) {
141
+ return [requestRes, { status: "invalid" }];
142
+ }
143
+ const req = requestRes.value;
144
+
145
+ const doResult = await client._do(req, {
146
+ context,
147
+ isErrorStatusCode: (statusCode: number) =>
148
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req }];
154
+ }
155
+ const response = doResult.value;
156
+
157
+ const [result] = await M.match<
158
+ shared.CalendarRoom,
159
+ | UnifiedToError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.json(200, shared.CalendarRoom$inboundSchema),
169
+ M.fail("4XX"),
170
+ M.fail("5XX"),
171
+ )(response, req);
172
+ if (!result.ok) {
173
+ return [result, { status: "complete", request: req, response }];
174
+ }
175
+
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
@@ -105,6 +105,7 @@ async function $do(
105
105
  "order": payload.order,
106
106
  "query": payload.query,
107
107
  "raw": payload.raw,
108
+ "room_id": payload.room_id,
108
109
  "sort": payload.sort,
109
110
  "start_gte": payload.start_gte,
110
111
  "updated_gte": payload.updated_gte,
@@ -0,0 +1,182 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { UnifiedToCore } from "../core.js";
7
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../sdk/models/errors/httpclienterrors.js";
22
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
24
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
25
+ import * as operations from "../sdk/models/operations/index.js";
26
+ import * as shared from "../sdk/models/shared/index.js";
27
+ import { APICall, APIPromise } from "../sdk/types/async.js";
28
+ import { Result } from "../sdk/types/fp.js";
29
+
30
+ /**
31
+ * List all locations
32
+ *
33
+ * @remarks
34
+ * Returns a list of CalendarLocations. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.
35
+ */
36
+ export function calendarListCalendarLocations(
37
+ client: UnifiedToCore,
38
+ request: operations.ListCalendarLocationsRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ Array<shared.CalendarLocation>,
43
+ | UnifiedToError
44
+ | ResponseValidationError
45
+ | ConnectionError
46
+ | RequestAbortedError
47
+ | RequestTimeoutError
48
+ | InvalidRequestError
49
+ | UnexpectedClientError
50
+ | SDKValidationError
51
+ >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: UnifiedToCore,
62
+ request: operations.ListCalendarLocationsRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ Array<shared.CalendarLocation>,
68
+ | UnifiedToError
69
+ | ResponseValidationError
70
+ | ConnectionError
71
+ | RequestAbortedError
72
+ | RequestTimeoutError
73
+ | InvalidRequestError
74
+ | UnexpectedClientError
75
+ | SDKValidationError
76
+ >,
77
+ APICall,
78
+ ]
79
+ > {
80
+ const parsed = safeParse(
81
+ request,
82
+ (value) =>
83
+ operations.ListCalendarLocationsRequest$outboundSchema.parse(value),
84
+ "Input validation failed",
85
+ );
86
+ if (!parsed.ok) {
87
+ return [parsed, { status: "invalid" }];
88
+ }
89
+ const payload = parsed.value;
90
+ const body = null;
91
+
92
+ const pathParams = {
93
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
94
+ explode: false,
95
+ charEncoding: "percent",
96
+ }),
97
+ };
98
+ const path = pathToFunc("/calendar/{connection_id}/location")(pathParams);
99
+
100
+ const query = encodeFormQuery({
101
+ "fields": payload.fields,
102
+ "limit": payload.limit,
103
+ "offset": payload.offset,
104
+ "order": payload.order,
105
+ "parent_id": payload.parent_id,
106
+ "query": payload.query,
107
+ "raw": payload.raw,
108
+ "sort": payload.sort,
109
+ "updated_gte": payload.updated_gte,
110
+ });
111
+
112
+ const headers = new Headers(compactMap({
113
+ Accept: "application/json",
114
+ }));
115
+
116
+ const securityInput = await extractSecurity(client._options.security);
117
+ const requestSecurity = resolveGlobalSecurity(securityInput);
118
+
119
+ const context = {
120
+ options: client._options,
121
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
122
+ operationID: "listCalendarLocations",
123
+ oAuth2Scopes: null,
124
+
125
+ resolvedSecurity: requestSecurity,
126
+
127
+ securitySource: client._options.security,
128
+ retryConfig: options?.retries
129
+ || client._options.retryConfig
130
+ || { strategy: "none" },
131
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
132
+ };
133
+
134
+ const requestRes = client._createRequest(context, {
135
+ security: requestSecurity,
136
+ method: "GET",
137
+ baseURL: options?.serverURL,
138
+ path: path,
139
+ headers: headers,
140
+ query: query,
141
+ body: body,
142
+ userAgent: client._options.userAgent,
143
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
144
+ }, options);
145
+ if (!requestRes.ok) {
146
+ return [requestRes, { status: "invalid" }];
147
+ }
148
+ const req = requestRes.value;
149
+
150
+ const doResult = await client._do(req, {
151
+ context,
152
+ isErrorStatusCode: (statusCode: number) =>
153
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
154
+ retryConfig: context.retryConfig,
155
+ retryCodes: context.retryCodes,
156
+ });
157
+ if (!doResult.ok) {
158
+ return [doResult, { status: "request-error", request: req }];
159
+ }
160
+ const response = doResult.value;
161
+
162
+ const [result] = await M.match<
163
+ Array<shared.CalendarLocation>,
164
+ | UnifiedToError
165
+ | ResponseValidationError
166
+ | ConnectionError
167
+ | RequestAbortedError
168
+ | RequestTimeoutError
169
+ | InvalidRequestError
170
+ | UnexpectedClientError
171
+ | SDKValidationError
172
+ >(
173
+ M.json(200, z.array(shared.CalendarLocation$inboundSchema)),
174
+ M.fail("4XX"),
175
+ M.fail("5XX"),
176
+ )(response, req);
177
+ if (!result.ok) {
178
+ return [result, { status: "complete", request: req, response }];
179
+ }
180
+
181
+ return [result, { status: "complete", request: req, response }];
182
+ }