@squonk/account-server-client 4.11.0 → 4.12.1

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 (644) hide show
  1. package/dist/api/actions/actions.cjs +1 -1
  2. package/dist/api/actions/actions.cjs.map +1 -1
  3. package/dist/api/actions/actions.fetch.cjs +1 -1
  4. package/dist/api/actions/actions.fetch.cjs.map +1 -1
  5. package/dist/api/actions/actions.fetch.js +1 -1
  6. package/dist/api/actions/actions.fetch.js.map +1 -1
  7. package/dist/api/actions/actions.js +1 -1
  8. package/dist/api/actions/actions.js.map +1 -1
  9. package/dist/api/api-schemas/asError.d.cts +1 -1
  10. package/dist/api/api-schemas/asError.d.ts +1 -1
  11. package/dist/api/api-schemas/assetDetailScope.cjs.map +1 -1
  12. package/dist/api/api-schemas/assetDetailScope.d.cts +1 -1
  13. package/dist/api/api-schemas/assetDetailScope.d.ts +1 -1
  14. package/dist/api/api-schemas/assetDetailScope.js.map +1 -1
  15. package/dist/api/api-schemas/assetPatchBodyBody.d.cts +1 -1
  16. package/dist/api/api-schemas/assetPatchBodyBody.d.ts +1 -1
  17. package/dist/api/api-schemas/assetPostBodyBodyScope.cjs.map +1 -1
  18. package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts +1 -1
  19. package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts +1 -1
  20. package/dist/api/api-schemas/assetPostBodyBodyScope.js.map +1 -1
  21. package/dist/api/api-schemas/assetPostResponse.d.cts +1 -1
  22. package/dist/api/api-schemas/assetPostResponse.d.ts +1 -1
  23. package/dist/api/api-schemas/capabilityDetailMerchantKind.cjs.map +1 -1
  24. package/dist/api/api-schemas/capabilityDetailMerchantKind.d.cts +1 -1
  25. package/dist/api/api-schemas/capabilityDetailMerchantKind.d.ts +1 -1
  26. package/dist/api/api-schemas/capabilityDetailMerchantKind.js.map +1 -1
  27. package/dist/api/api-schemas/capabilityDetailSpec.d.cts +1 -1
  28. package/dist/api/api-schemas/capabilityDetailSpec.d.ts +1 -1
  29. package/dist/api/api-schemas/capabilityPostBodyBody.d.cts +1 -1
  30. package/dist/api/api-schemas/capabilityPostBodyBody.d.ts +1 -1
  31. package/dist/api/api-schemas/capabilityPostResponse.d.cts +1 -1
  32. package/dist/api/api-schemas/capabilityPostResponse.d.ts +1 -1
  33. package/dist/api/api-schemas/chargeAdditionalData.d.cts +1 -1
  34. package/dist/api/api-schemas/chargeAdditionalData.d.ts +1 -1
  35. package/dist/api/api-schemas/chargeSummaryType.cjs.map +1 -1
  36. package/dist/api/api-schemas/chargeSummaryType.d.cts +1 -1
  37. package/dist/api/api-schemas/chargeSummaryType.d.ts +1 -1
  38. package/dist/api/api-schemas/chargeSummaryType.js.map +1 -1
  39. package/dist/api/api-schemas/defaultCapabilityDetailMerchantKind.cjs.map +1 -1
  40. package/dist/api/api-schemas/defaultCapabilityDetailMerchantKind.d.cts +1 -1
  41. package/dist/api/api-schemas/defaultCapabilityDetailMerchantKind.d.ts +1 -1
  42. package/dist/api/api-schemas/defaultCapabilityDetailMerchantKind.js.map +1 -1
  43. package/dist/api/api-schemas/defaultCapabilityDetailSpec.d.cts +1 -1
  44. package/dist/api/api-schemas/defaultCapabilityDetailSpec.d.ts +1 -1
  45. package/dist/api/api-schemas/deleteCapabilityParams.d.cts +12 -0
  46. package/dist/api/api-schemas/deleteCapabilityParams.d.cts.map +1 -0
  47. package/dist/api/api-schemas/deleteCapabilityParams.d.ts +12 -0
  48. package/dist/api/api-schemas/deleteCapabilityParams.d.ts.map +1 -0
  49. package/dist/api/api-schemas/deleteDefaultCapabilityParams.d.cts +12 -0
  50. package/dist/api/api-schemas/deleteDefaultCapabilityParams.d.cts.map +1 -0
  51. package/dist/api/api-schemas/deleteDefaultCapabilityParams.d.ts +12 -0
  52. package/dist/api/api-schemas/deleteDefaultCapabilityParams.d.ts.map +1 -0
  53. package/dist/api/api-schemas/deleteOrganisationParams.d.cts +12 -0
  54. package/dist/api/api-schemas/deleteOrganisationParams.d.cts.map +1 -0
  55. package/dist/api/api-schemas/deleteOrganisationParams.d.ts +12 -0
  56. package/dist/api/api-schemas/deleteOrganisationParams.d.ts.map +1 -0
  57. package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts +1 -1
  58. package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts +1 -1
  59. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs.map +1 -1
  60. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts +1 -1
  61. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts +1 -1
  62. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js.map +1 -1
  63. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs.map +1 -1
  64. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts +1 -1
  65. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts +1 -1
  66. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js.map +1 -1
  67. package/dist/api/api-schemas/incidentDetailScope.cjs.map +1 -1
  68. package/dist/api/api-schemas/incidentDetailScope.d.cts +1 -1
  69. package/dist/api/api-schemas/incidentDetailScope.d.ts +1 -1
  70. package/dist/api/api-schemas/incidentDetailScope.js.map +1 -1
  71. package/dist/api/api-schemas/merchantDetailKind.cjs.map +1 -1
  72. package/dist/api/api-schemas/merchantDetailKind.d.cts +1 -1
  73. package/dist/api/api-schemas/merchantDetailKind.d.ts +1 -1
  74. package/dist/api/api-schemas/merchantDetailKind.js.map +1 -1
  75. package/dist/api/api-schemas/merchantSummaryKind.cjs.map +1 -1
  76. package/dist/api/api-schemas/merchantSummaryKind.d.cts +1 -1
  77. package/dist/api/api-schemas/merchantSummaryKind.d.ts +1 -1
  78. package/dist/api/api-schemas/merchantSummaryKind.js.map +1 -1
  79. package/dist/api/api-schemas/notificationDetailState.cjs.map +1 -1
  80. package/dist/api/api-schemas/notificationDetailState.d.cts +1 -1
  81. package/dist/api/api-schemas/notificationDetailState.d.ts +1 -1
  82. package/dist/api/api-schemas/notificationDetailState.js.map +1 -1
  83. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs.map +1 -1
  84. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts +1 -1
  85. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts +1 -1
  86. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js.map +1 -1
  87. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs.map +1 -1
  88. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts +1 -1
  89. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts +1 -1
  90. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js.map +1 -1
  91. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs.map +1 -1
  92. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts +1 -1
  93. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts +1 -1
  94. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js.map +1 -1
  95. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  96. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts +1 -1
  97. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts +1 -1
  98. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
  99. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  100. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts +1 -1
  101. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts +1 -1
  102. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js.map +1 -1
  103. package/dist/api/api-schemas/organisationPostResponse.d.cts +1 -1
  104. package/dist/api/api-schemas/organisationPostResponse.d.ts +1 -1
  105. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  106. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts +1 -1
  107. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts +1 -1
  108. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js.map +1 -1
  109. package/dist/api/api-schemas/organisationUnitPostResponse.d.cts +1 -1
  110. package/dist/api/api-schemas/organisationUnitPostResponse.d.ts +1 -1
  111. package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts +1 -1
  112. package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts +1 -1
  113. package/dist/api/api-schemas/personalUnitPutResponse.d.cts +1 -1
  114. package/dist/api/api-schemas/personalUnitPutResponse.d.ts +1 -1
  115. package/dist/api/api-schemas/processingChargesMerchantKind.cjs.map +1 -1
  116. package/dist/api/api-schemas/processingChargesMerchantKind.d.cts +1 -1
  117. package/dist/api/api-schemas/processingChargesMerchantKind.d.ts +1 -1
  118. package/dist/api/api-schemas/processingChargesMerchantKind.js.map +1 -1
  119. package/dist/api/api-schemas/productChargesGetResponseProductType.cjs.map +1 -1
  120. package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts +1 -1
  121. package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts +1 -1
  122. package/dist/api/api-schemas/productChargesGetResponseProductType.js.map +1 -1
  123. package/dist/api/api-schemas/productClaimDetail.d.cts +1 -1
  124. package/dist/api/api-schemas/productClaimDetail.d.ts +1 -1
  125. package/dist/api/api-schemas/productCoinsDetail.d.cts +1 -1
  126. package/dist/api/api-schemas/productCoinsDetail.d.ts +1 -1
  127. package/dist/api/api-schemas/productDetailFlavour.cjs.map +1 -1
  128. package/dist/api/api-schemas/productDetailFlavour.d.cts +1 -1
  129. package/dist/api/api-schemas/productDetailFlavour.d.ts +1 -1
  130. package/dist/api/api-schemas/productDetailFlavour.js.map +1 -1
  131. package/dist/api/api-schemas/productDetailType.cjs.map +1 -1
  132. package/dist/api/api-schemas/productDetailType.d.cts +1 -1
  133. package/dist/api/api-schemas/productDetailType.d.ts +1 -1
  134. package/dist/api/api-schemas/productDetailType.js.map +1 -1
  135. package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts +1 -1
  136. package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts +1 -1
  137. package/dist/api/api-schemas/productDmStorageDetailSize.d.cts +1 -1
  138. package/dist/api/api-schemas/productDmStorageDetailSize.d.ts +1 -1
  139. package/dist/api/api-schemas/productInstanceDetailCoins.d.cts +1 -1
  140. package/dist/api/api-schemas/productInstanceDetailCoins.d.ts +1 -1
  141. package/dist/api/api-schemas/productPatchBodyBody.d.cts +1 -1
  142. package/dist/api/api-schemas/productPatchBodyBody.d.ts +1 -1
  143. package/dist/api/api-schemas/productTypeServiceKind.cjs.map +1 -1
  144. package/dist/api/api-schemas/productTypeServiceKind.d.cts +1 -1
  145. package/dist/api/api-schemas/productTypeServiceKind.d.ts +1 -1
  146. package/dist/api/api-schemas/productTypeServiceKind.js.map +1 -1
  147. package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts +1 -1
  148. package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts +1 -1
  149. package/dist/api/api-schemas/qAssetScopeParameter.cjs.map +1 -1
  150. package/dist/api/api-schemas/qAssetScopeParameter.d.cts +1 -1
  151. package/dist/api/api-schemas/qAssetScopeParameter.d.ts +1 -1
  152. package/dist/api/api-schemas/qAssetScopeParameter.js.map +1 -1
  153. package/dist/api/api-schemas/qCapabilityParameter.d.cts +1 -1
  154. package/dist/api/api-schemas/qCapabilityParameter.d.ts +1 -1
  155. package/dist/api/api-schemas/qCreatedFromParameter.d.cts +1 -1
  156. package/dist/api/api-schemas/qCreatedFromParameter.d.ts +1 -1
  157. package/dist/api/api-schemas/qCreatedUntilParameter.d.cts +1 -1
  158. package/dist/api/api-schemas/qCreatedUntilParameter.d.ts +1 -1
  159. package/dist/api/api-schemas/qForceParameter.d.cts +18 -0
  160. package/dist/api/api-schemas/qForceParameter.d.cts.map +1 -0
  161. package/dist/api/api-schemas/qForceParameter.d.ts +18 -0
  162. package/dist/api/api-schemas/qForceParameter.d.ts.map +1 -0
  163. package/dist/api/api-schemas/qFormatParameter.cjs.map +1 -1
  164. package/dist/api/api-schemas/qFormatParameter.d.cts +1 -1
  165. package/dist/api/api-schemas/qFormatParameter.d.ts +1 -1
  166. package/dist/api/api-schemas/qFormatParameter.js.map +1 -1
  167. package/dist/api/api-schemas/qFromParameter.d.cts +1 -1
  168. package/dist/api/api-schemas/qFromParameter.d.ts +1 -1
  169. package/dist/api/api-schemas/qIncidentKindParameter.d.cts +1 -1
  170. package/dist/api/api-schemas/qIncidentKindParameter.d.ts +1 -1
  171. package/dist/api/api-schemas/qMIdParameter.d.cts +1 -1
  172. package/dist/api/api-schemas/qMIdParameter.d.ts +1 -1
  173. package/dist/api/api-schemas/qNameParameter.d.cts +1 -1
  174. package/dist/api/api-schemas/qNameParameter.d.ts +1 -1
  175. package/dist/api/api-schemas/qNotificationStateParameter.cjs.map +1 -1
  176. package/dist/api/api-schemas/qNotificationStateParameter.d.cts +1 -1
  177. package/dist/api/api-schemas/qNotificationStateParameter.d.ts +1 -1
  178. package/dist/api/api-schemas/qNotificationStateParameter.js.map +1 -1
  179. package/dist/api/api-schemas/qOrgIdParameter.d.cts +1 -1
  180. package/dist/api/api-schemas/qOrgIdParameter.d.ts +1 -1
  181. package/dist/api/api-schemas/qPbpParameter.d.cts +1 -1
  182. package/dist/api/api-schemas/qPbpParameter.d.ts +1 -1
  183. package/dist/api/api-schemas/qProductIdParameter.d.cts +1 -1
  184. package/dist/api/api-schemas/qProductIdParameter.d.ts +1 -1
  185. package/dist/api/api-schemas/qRelayParameter.d.cts +1 -1
  186. package/dist/api/api-schemas/qRelayParameter.d.ts +1 -1
  187. package/dist/api/api-schemas/qUnitIdParameter.d.cts +1 -1
  188. package/dist/api/api-schemas/qUnitIdParameter.d.ts +1 -1
  189. package/dist/api/api-schemas/qUntilParameter.d.cts +1 -1
  190. package/dist/api/api-schemas/qUntilParameter.d.ts +1 -1
  191. package/dist/api/api-schemas/qUserIdParameter.d.cts +1 -1
  192. package/dist/api/api-schemas/qUserIdParameter.d.ts +1 -1
  193. package/dist/api/api-schemas/stateGetVersionResponse.d.cts +1 -1
  194. package/dist/api/api-schemas/stateGetVersionResponse.d.ts +1 -1
  195. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs.map +1 -1
  196. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts +1 -1
  197. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts +1 -1
  198. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js.map +1 -1
  199. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs.map +1 -1
  200. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts +1 -1
  201. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts +1 -1
  202. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js.map +1 -1
  203. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  204. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts +1 -1
  205. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts +1 -1
  206. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
  207. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs.map +1 -1
  208. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts +1 -1
  209. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts +1 -1
  210. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js.map +1 -1
  211. package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs.map +1 -1
  212. package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts +1 -1
  213. package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts +1 -1
  214. package/dist/api/api-schemas/unitProductPostBodyBodyType.js.map +1 -1
  215. package/dist/api/api-schemas/unitProductPostResponse.d.cts +1 -1
  216. package/dist/api/api-schemas/unitProductPostResponse.d.ts +1 -1
  217. package/dist/api/api-schemas/userDetail.d.cts +1 -1
  218. package/dist/api/api-schemas/userDetail.d.ts +1 -1
  219. package/dist/api/asset/asset.cjs +1 -1
  220. package/dist/api/asset/asset.cjs.map +1 -1
  221. package/dist/api/asset/asset.fetch.cjs +1 -1
  222. package/dist/api/asset/asset.fetch.cjs.map +1 -1
  223. package/dist/api/asset/asset.fetch.js +1 -1
  224. package/dist/api/asset/asset.fetch.js.map +1 -1
  225. package/dist/api/asset/asset.js +1 -1
  226. package/dist/api/asset/asset.js.map +1 -1
  227. package/dist/api/capabilities/capabilities.cjs +11 -9
  228. package/dist/api/capabilities/capabilities.cjs.map +1 -1
  229. package/dist/api/capabilities/capabilities.d.cts +14 -4
  230. package/dist/api/capabilities/capabilities.d.cts.map +1 -1
  231. package/dist/api/capabilities/capabilities.d.ts +14 -4
  232. package/dist/api/capabilities/capabilities.d.ts.map +1 -1
  233. package/dist/api/capabilities/capabilities.fetch.cjs +25 -15
  234. package/dist/api/capabilities/capabilities.fetch.cjs.map +1 -1
  235. package/dist/api/capabilities/capabilities.fetch.d.cts +16 -6
  236. package/dist/api/capabilities/capabilities.fetch.d.cts.map +1 -1
  237. package/dist/api/capabilities/capabilities.fetch.d.ts +16 -6
  238. package/dist/api/capabilities/capabilities.fetch.d.ts.map +1 -1
  239. package/dist/api/capabilities/capabilities.fetch.js +25 -15
  240. package/dist/api/capabilities/capabilities.fetch.js.map +1 -1
  241. package/dist/api/capabilities/capabilities.js +11 -9
  242. package/dist/api/capabilities/capabilities.js.map +1 -1
  243. package/dist/api/charges/charges.cjs +1 -1
  244. package/dist/api/charges/charges.cjs.map +1 -1
  245. package/dist/api/charges/charges.fetch.cjs +1 -1
  246. package/dist/api/charges/charges.fetch.cjs.map +1 -1
  247. package/dist/api/charges/charges.fetch.js +1 -1
  248. package/dist/api/charges/charges.fetch.js.map +1 -1
  249. package/dist/api/charges/charges.js +1 -1
  250. package/dist/api/charges/charges.js.map +1 -1
  251. package/dist/api/event-stream/event-stream.cjs +1 -1
  252. package/dist/api/event-stream/event-stream.cjs.map +1 -1
  253. package/dist/api/event-stream/event-stream.fetch.cjs +1 -1
  254. package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -1
  255. package/dist/api/event-stream/event-stream.fetch.js +1 -1
  256. package/dist/api/event-stream/event-stream.fetch.js.map +1 -1
  257. package/dist/api/event-stream/event-stream.js +1 -1
  258. package/dist/api/event-stream/event-stream.js.map +1 -1
  259. package/dist/api/merchant/merchant.cjs +1 -1
  260. package/dist/api/merchant/merchant.cjs.map +1 -1
  261. package/dist/api/merchant/merchant.fetch.cjs +1 -1
  262. package/dist/api/merchant/merchant.fetch.cjs.map +1 -1
  263. package/dist/api/merchant/merchant.fetch.js +1 -1
  264. package/dist/api/merchant/merchant.fetch.js.map +1 -1
  265. package/dist/api/merchant/merchant.js +1 -1
  266. package/dist/api/merchant/merchant.js.map +1 -1
  267. package/dist/api/notifications/notifications.cjs +1 -1
  268. package/dist/api/notifications/notifications.cjs.map +1 -1
  269. package/dist/api/notifications/notifications.fetch.cjs +1 -1
  270. package/dist/api/notifications/notifications.fetch.cjs.map +1 -1
  271. package/dist/api/notifications/notifications.fetch.js +1 -1
  272. package/dist/api/notifications/notifications.fetch.js.map +1 -1
  273. package/dist/api/notifications/notifications.js +1 -1
  274. package/dist/api/notifications/notifications.js.map +1 -1
  275. package/dist/api/organisation/organisation.cjs +6 -5
  276. package/dist/api/organisation/organisation.cjs.map +1 -1
  277. package/dist/api/organisation/organisation.d.cts +7 -2
  278. package/dist/api/organisation/organisation.d.cts.map +1 -1
  279. package/dist/api/organisation/organisation.d.ts +7 -2
  280. package/dist/api/organisation/organisation.d.ts.map +1 -1
  281. package/dist/api/organisation/organisation.fetch.cjs +13 -8
  282. package/dist/api/organisation/organisation.fetch.cjs.map +1 -1
  283. package/dist/api/organisation/organisation.fetch.d.cts +8 -3
  284. package/dist/api/organisation/organisation.fetch.d.cts.map +1 -1
  285. package/dist/api/organisation/organisation.fetch.d.ts +8 -3
  286. package/dist/api/organisation/organisation.fetch.d.ts.map +1 -1
  287. package/dist/api/organisation/organisation.fetch.js +13 -8
  288. package/dist/api/organisation/organisation.fetch.js.map +1 -1
  289. package/dist/api/organisation/organisation.js +6 -5
  290. package/dist/api/organisation/organisation.js.map +1 -1
  291. package/dist/api/product/product.cjs +1 -1
  292. package/dist/api/product/product.cjs.map +1 -1
  293. package/dist/api/product/product.fetch.cjs +1 -1
  294. package/dist/api/product/product.fetch.cjs.map +1 -1
  295. package/dist/api/product/product.fetch.js +1 -1
  296. package/dist/api/product/product.fetch.js.map +1 -1
  297. package/dist/api/product/product.js +1 -1
  298. package/dist/api/product/product.js.map +1 -1
  299. package/dist/api/state/state.cjs +1 -1
  300. package/dist/api/state/state.cjs.map +1 -1
  301. package/dist/api/state/state.fetch.cjs +1 -1
  302. package/dist/api/state/state.fetch.cjs.map +1 -1
  303. package/dist/api/state/state.fetch.js +1 -1
  304. package/dist/api/state/state.fetch.js.map +1 -1
  305. package/dist/api/state/state.js +1 -1
  306. package/dist/api/state/state.js.map +1 -1
  307. package/dist/api/unit/unit.cjs +1 -1
  308. package/dist/api/unit/unit.cjs.map +1 -1
  309. package/dist/api/unit/unit.fetch.cjs +1 -1
  310. package/dist/api/unit/unit.fetch.cjs.map +1 -1
  311. package/dist/api/unit/unit.fetch.js +1 -1
  312. package/dist/api/unit/unit.fetch.js.map +1 -1
  313. package/dist/api/unit/unit.js +1 -1
  314. package/dist/api/unit/unit.js.map +1 -1
  315. package/dist/api/user/user.cjs +1 -1
  316. package/dist/api/user/user.cjs.map +1 -1
  317. package/dist/api/user/user.fetch.cjs +1 -1
  318. package/dist/api/user/user.fetch.cjs.map +1 -1
  319. package/dist/api/user/user.fetch.js +1 -1
  320. package/dist/api/user/user.fetch.js.map +1 -1
  321. package/dist/api/user/user.js +1 -1
  322. package/dist/api/user/user.js.map +1 -1
  323. package/dist/index.d.cts +5 -1
  324. package/dist/index.d.ts +5 -1
  325. package/package.json +1 -1
  326. package/src/api/actions/actions.fetch.ts +1 -1
  327. package/src/api/actions/actions.ts +1 -1
  328. package/src/api/api-schemas/actionDetail.fetch.ts +1 -1
  329. package/src/api/api-schemas/actionDetail.ts +1 -1
  330. package/src/api/api-schemas/actionGetResponse.fetch.ts +1 -1
  331. package/src/api/api-schemas/actionGetResponse.ts +1 -1
  332. package/src/api/api-schemas/allCapabilitiesGetResponse.fetch.ts +1 -1
  333. package/src/api/api-schemas/allCapabilitiesGetResponse.ts +1 -1
  334. package/src/api/api-schemas/asError.fetch.ts +1 -1
  335. package/src/api/api-schemas/asError.ts +1 -1
  336. package/src/api/api-schemas/assetDetail.fetch.ts +1 -1
  337. package/src/api/api-schemas/assetDetail.ts +1 -1
  338. package/src/api/api-schemas/assetDetailScope.fetch.ts +1 -1
  339. package/src/api/api-schemas/assetDetailScope.ts +1 -1
  340. package/src/api/api-schemas/assetGetByIdResponse.fetch.ts +1 -1
  341. package/src/api/api-schemas/assetGetByIdResponse.ts +1 -1
  342. package/src/api/api-schemas/assetGetResponse.fetch.ts +1 -1
  343. package/src/api/api-schemas/assetGetResponse.ts +1 -1
  344. package/src/api/api-schemas/assetPatchBodyBody.fetch.ts +1 -1
  345. package/src/api/api-schemas/assetPatchBodyBody.ts +1 -1
  346. package/src/api/api-schemas/assetPostBodyBody.fetch.ts +1 -1
  347. package/src/api/api-schemas/assetPostBodyBody.ts +1 -1
  348. package/src/api/api-schemas/assetPostBodyBodyScope.fetch.ts +1 -1
  349. package/src/api/api-schemas/assetPostBodyBodyScope.ts +1 -1
  350. package/src/api/api-schemas/assetPostResponse.fetch.ts +1 -1
  351. package/src/api/api-schemas/assetPostResponse.ts +1 -1
  352. package/src/api/api-schemas/attachAssetParams.fetch.ts +1 -1
  353. package/src/api/api-schemas/attachAssetParams.ts +1 -1
  354. package/src/api/api-schemas/capabilitiesGetResponse.fetch.ts +1 -1
  355. package/src/api/api-schemas/capabilitiesGetResponse.ts +1 -1
  356. package/src/api/api-schemas/capabilityDetail.fetch.ts +1 -1
  357. package/src/api/api-schemas/capabilityDetail.ts +1 -1
  358. package/src/api/api-schemas/capabilityDetailMerchantKind.fetch.ts +1 -1
  359. package/src/api/api-schemas/capabilityDetailMerchantKind.ts +1 -1
  360. package/src/api/api-schemas/capabilityDetailSpec.fetch.ts +1 -1
  361. package/src/api/api-schemas/capabilityDetailSpec.ts +1 -1
  362. package/src/api/api-schemas/capabilityPostBodyBody.fetch.ts +1 -1
  363. package/src/api/api-schemas/capabilityPostBodyBody.ts +1 -1
  364. package/src/api/api-schemas/capabilityPostResponse.fetch.ts +1 -1
  365. package/src/api/api-schemas/capabilityPostResponse.ts +1 -1
  366. package/src/api/api-schemas/chargeAdditionalData.fetch.ts +1 -1
  367. package/src/api/api-schemas/chargeAdditionalData.ts +1 -1
  368. package/src/api/api-schemas/chargeSummary.fetch.ts +1 -1
  369. package/src/api/api-schemas/chargeSummary.ts +1 -1
  370. package/src/api/api-schemas/chargeSummaryType.fetch.ts +1 -1
  371. package/src/api/api-schemas/chargeSummaryType.ts +1 -1
  372. package/src/api/api-schemas/chargesGetResponse.fetch.ts +1 -1
  373. package/src/api/api-schemas/chargesGetResponse.ts +1 -1
  374. package/src/api/api-schemas/defaultCapabilitiesGetResponse.fetch.ts +1 -1
  375. package/src/api/api-schemas/defaultCapabilitiesGetResponse.ts +1 -1
  376. package/src/api/api-schemas/defaultCapabilityDetail.fetch.ts +1 -1
  377. package/src/api/api-schemas/defaultCapabilityDetail.ts +1 -1
  378. package/src/api/api-schemas/defaultCapabilityDetailMerchantKind.fetch.ts +1 -1
  379. package/src/api/api-schemas/defaultCapabilityDetailMerchantKind.ts +1 -1
  380. package/src/api/api-schemas/defaultCapabilityDetailSpec.fetch.ts +1 -1
  381. package/src/api/api-schemas/defaultCapabilityDetailSpec.ts +1 -1
  382. package/src/api/api-schemas/deleteCapabilityParams.fetch.ts +18 -0
  383. package/src/api/api-schemas/deleteCapabilityParams.ts +18 -0
  384. package/src/api/api-schemas/deleteDefaultCapabilityParams.fetch.ts +18 -0
  385. package/src/api/api-schemas/deleteDefaultCapabilityParams.ts +18 -0
  386. package/src/api/api-schemas/deleteOrganisationParams.fetch.ts +18 -0
  387. package/src/api/api-schemas/deleteOrganisationParams.ts +18 -0
  388. package/src/api/api-schemas/detachAssetParams.fetch.ts +1 -1
  389. package/src/api/api-schemas/detachAssetParams.ts +1 -1
  390. package/src/api/api-schemas/eventStreamGetPostResponse.fetch.ts +1 -1
  391. package/src/api/api-schemas/eventStreamGetPostResponse.ts +1 -1
  392. package/src/api/api-schemas/eventStreamPostBodyBody.fetch.ts +1 -1
  393. package/src/api/api-schemas/eventStreamPostBodyBody.ts +1 -1
  394. package/src/api/api-schemas/eventStreamPostBodyBodyFormat.fetch.ts +1 -1
  395. package/src/api/api-schemas/eventStreamPostBodyBodyFormat.ts +1 -1
  396. package/src/api/api-schemas/eventStreamVersionGetResponse.fetch.ts +1 -1
  397. package/src/api/api-schemas/eventStreamVersionGetResponse.ts +1 -1
  398. package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.fetch.ts +1 -1
  399. package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.ts +1 -1
  400. package/src/api/api-schemas/getActionsParams.fetch.ts +1 -1
  401. package/src/api/api-schemas/getActionsParams.ts +1 -1
  402. package/src/api/api-schemas/getAllCapabilitiesParams.fetch.ts +1 -1
  403. package/src/api/api-schemas/getAllCapabilitiesParams.ts +1 -1
  404. package/src/api/api-schemas/getAssetParams.fetch.ts +1 -1
  405. package/src/api/api-schemas/getAssetParams.ts +1 -1
  406. package/src/api/api-schemas/getChargesParams.fetch.ts +1 -1
  407. package/src/api/api-schemas/getChargesParams.ts +1 -1
  408. package/src/api/api-schemas/getIncidentsParams.fetch.ts +1 -1
  409. package/src/api/api-schemas/getIncidentsParams.ts +1 -1
  410. package/src/api/api-schemas/getNotificationsParams.fetch.ts +1 -1
  411. package/src/api/api-schemas/getNotificationsParams.ts +1 -1
  412. package/src/api/api-schemas/getOrganisationChargesParams.fetch.ts +1 -1
  413. package/src/api/api-schemas/getOrganisationChargesParams.ts +1 -1
  414. package/src/api/api-schemas/getOrganisationsParams.fetch.ts +1 -1
  415. package/src/api/api-schemas/getOrganisationsParams.ts +1 -1
  416. package/src/api/api-schemas/getProductChargesParams.fetch.ts +1 -1
  417. package/src/api/api-schemas/getProductChargesParams.ts +1 -1
  418. package/src/api/api-schemas/getUnitChargesParams.fetch.ts +1 -1
  419. package/src/api/api-schemas/getUnitChargesParams.ts +1 -1
  420. package/src/api/api-schemas/getUnitsParams.fetch.ts +1 -1
  421. package/src/api/api-schemas/getUnitsParams.ts +1 -1
  422. package/src/api/api-schemas/incidentDetail.fetch.ts +1 -1
  423. package/src/api/api-schemas/incidentDetail.ts +1 -1
  424. package/src/api/api-schemas/incidentDetailScope.fetch.ts +1 -1
  425. package/src/api/api-schemas/incidentDetailScope.ts +1 -1
  426. package/src/api/api-schemas/incidentsGetResponse.fetch.ts +1 -1
  427. package/src/api/api-schemas/incidentsGetResponse.ts +1 -1
  428. package/src/api/api-schemas/index.ts +5 -1
  429. package/src/api/api-schemas/merchantDetail.fetch.ts +1 -1
  430. package/src/api/api-schemas/merchantDetail.ts +1 -1
  431. package/src/api/api-schemas/merchantDetailKind.fetch.ts +1 -1
  432. package/src/api/api-schemas/merchantDetailKind.ts +1 -1
  433. package/src/api/api-schemas/merchantGetResponse.fetch.ts +1 -1
  434. package/src/api/api-schemas/merchantGetResponse.ts +1 -1
  435. package/src/api/api-schemas/merchantSummary.fetch.ts +1 -1
  436. package/src/api/api-schemas/merchantSummary.ts +1 -1
  437. package/src/api/api-schemas/merchantSummaryKind.fetch.ts +1 -1
  438. package/src/api/api-schemas/merchantSummaryKind.ts +1 -1
  439. package/src/api/api-schemas/merchantsGetResponse.fetch.ts +1 -1
  440. package/src/api/api-schemas/merchantsGetResponse.ts +1 -1
  441. package/src/api/api-schemas/notificationDetail.fetch.ts +1 -1
  442. package/src/api/api-schemas/notificationDetail.ts +1 -1
  443. package/src/api/api-schemas/notificationDetailState.fetch.ts +1 -1
  444. package/src/api/api-schemas/notificationDetailState.ts +1 -1
  445. package/src/api/api-schemas/notificationsGetResponse.fetch.ts +1 -1
  446. package/src/api/api-schemas/notificationsGetResponse.ts +1 -1
  447. package/src/api/api-schemas/organisationAllDetail.fetch.ts +1 -1
  448. package/src/api/api-schemas/organisationAllDetail.ts +1 -1
  449. package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.fetch.ts +1 -1
  450. package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.ts +1 -1
  451. package/src/api/api-schemas/organisationCapabilities.fetch.ts +1 -1
  452. package/src/api/api-schemas/organisationCapabilities.ts +1 -1
  453. package/src/api/api-schemas/organisationChargeSummary.fetch.ts +1 -1
  454. package/src/api/api-schemas/organisationChargeSummary.ts +1 -1
  455. package/src/api/api-schemas/organisationChargesGetResponse.fetch.ts +1 -1
  456. package/src/api/api-schemas/organisationChargesGetResponse.ts +1 -1
  457. package/src/api/api-schemas/organisationDetail.fetch.ts +1 -1
  458. package/src/api/api-schemas/organisationDetail.ts +1 -1
  459. package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.fetch.ts +1 -1
  460. package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.ts +1 -1
  461. package/src/api/api-schemas/organisationGetDefaultResponse.fetch.ts +1 -1
  462. package/src/api/api-schemas/organisationGetDefaultResponse.ts +1 -1
  463. package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.fetch.ts +1 -1
  464. package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.ts +1 -1
  465. package/src/api/api-schemas/organisationGetResponse.fetch.ts +1 -1
  466. package/src/api/api-schemas/organisationGetResponse.ts +1 -1
  467. package/src/api/api-schemas/organisationPatchBodyBody.fetch.ts +1 -1
  468. package/src/api/api-schemas/organisationPatchBodyBody.ts +1 -1
  469. package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
  470. package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.ts +1 -1
  471. package/src/api/api-schemas/organisationPostBodyBody.fetch.ts +1 -1
  472. package/src/api/api-schemas/organisationPostBodyBody.ts +1 -1
  473. package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
  474. package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.ts +1 -1
  475. package/src/api/api-schemas/organisationPostResponse.fetch.ts +1 -1
  476. package/src/api/api-schemas/organisationPostResponse.ts +1 -1
  477. package/src/api/api-schemas/organisationUnitChargeSummary.fetch.ts +1 -1
  478. package/src/api/api-schemas/organisationUnitChargeSummary.ts +1 -1
  479. package/src/api/api-schemas/organisationUnitPostBodyBody.fetch.ts +1 -1
  480. package/src/api/api-schemas/organisationUnitPostBodyBody.ts +1 -1
  481. package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
  482. package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.ts +1 -1
  483. package/src/api/api-schemas/organisationUnitPostResponse.fetch.ts +1 -1
  484. package/src/api/api-schemas/organisationUnitPostResponse.ts +1 -1
  485. package/src/api/api-schemas/organisationUnitsGetResponse.fetch.ts +1 -1
  486. package/src/api/api-schemas/organisationUnitsGetResponse.ts +1 -1
  487. package/src/api/api-schemas/organisationsGetResponse.fetch.ts +1 -1
  488. package/src/api/api-schemas/organisationsGetResponse.ts +1 -1
  489. package/src/api/api-schemas/personalUnitPutBodyBody.fetch.ts +1 -1
  490. package/src/api/api-schemas/personalUnitPutBodyBody.ts +1 -1
  491. package/src/api/api-schemas/personalUnitPutResponse.fetch.ts +1 -1
  492. package/src/api/api-schemas/personalUnitPutResponse.ts +1 -1
  493. package/src/api/api-schemas/processingChargeItem.fetch.ts +1 -1
  494. package/src/api/api-schemas/processingChargeItem.ts +1 -1
  495. package/src/api/api-schemas/processingCharges.fetch.ts +1 -1
  496. package/src/api/api-schemas/processingCharges.ts +1 -1
  497. package/src/api/api-schemas/processingChargesMerchantKind.fetch.ts +1 -1
  498. package/src/api/api-schemas/processingChargesMerchantKind.ts +1 -1
  499. package/src/api/api-schemas/productChargesGetResponse.fetch.ts +1 -1
  500. package/src/api/api-schemas/productChargesGetResponse.ts +1 -1
  501. package/src/api/api-schemas/productChargesGetResponseProductType.fetch.ts +1 -1
  502. package/src/api/api-schemas/productChargesGetResponseProductType.ts +1 -1
  503. package/src/api/api-schemas/productClaimDetail.fetch.ts +1 -1
  504. package/src/api/api-schemas/productClaimDetail.ts +1 -1
  505. package/src/api/api-schemas/productCoinsDetail.fetch.ts +1 -1
  506. package/src/api/api-schemas/productCoinsDetail.ts +1 -1
  507. package/src/api/api-schemas/productDetail.fetch.ts +1 -1
  508. package/src/api/api-schemas/productDetail.ts +1 -1
  509. package/src/api/api-schemas/productDetailFlavour.fetch.ts +1 -1
  510. package/src/api/api-schemas/productDetailFlavour.ts +1 -1
  511. package/src/api/api-schemas/productDetailType.fetch.ts +1 -1
  512. package/src/api/api-schemas/productDetailType.ts +1 -1
  513. package/src/api/api-schemas/productDmProjectTier.fetch.ts +1 -1
  514. package/src/api/api-schemas/productDmProjectTier.ts +1 -1
  515. package/src/api/api-schemas/productDmStorage.fetch.ts +1 -1
  516. package/src/api/api-schemas/productDmStorage.ts +1 -1
  517. package/src/api/api-schemas/productDmStorageDetail.fetch.ts +1 -1
  518. package/src/api/api-schemas/productDmStorageDetail.ts +1 -1
  519. package/src/api/api-schemas/productDmStorageDetailCoins.fetch.ts +1 -1
  520. package/src/api/api-schemas/productDmStorageDetailCoins.ts +1 -1
  521. package/src/api/api-schemas/productDmStorageDetailSize.fetch.ts +1 -1
  522. package/src/api/api-schemas/productDmStorageDetailSize.ts +1 -1
  523. package/src/api/api-schemas/productInstanceDetail.fetch.ts +1 -1
  524. package/src/api/api-schemas/productInstanceDetail.ts +1 -1
  525. package/src/api/api-schemas/productInstanceDetailCoins.fetch.ts +1 -1
  526. package/src/api/api-schemas/productInstanceDetailCoins.ts +1 -1
  527. package/src/api/api-schemas/productPatchBodyBody.fetch.ts +1 -1
  528. package/src/api/api-schemas/productPatchBodyBody.ts +1 -1
  529. package/src/api/api-schemas/productType.fetch.ts +1 -1
  530. package/src/api/api-schemas/productType.ts +1 -1
  531. package/src/api/api-schemas/productTypeServiceKind.fetch.ts +1 -1
  532. package/src/api/api-schemas/productTypeServiceKind.ts +1 -1
  533. package/src/api/api-schemas/productUnitGetResponse.fetch.ts +1 -1
  534. package/src/api/api-schemas/productUnitGetResponse.ts +1 -1
  535. package/src/api/api-schemas/productsGetDefaultStorageCost.fetch.ts +1 -1
  536. package/src/api/api-schemas/productsGetDefaultStorageCost.ts +1 -1
  537. package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.fetch.ts +1 -1
  538. package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.ts +1 -1
  539. package/src/api/api-schemas/productsGetResponse.fetch.ts +1 -1
  540. package/src/api/api-schemas/productsGetResponse.ts +1 -1
  541. package/src/api/api-schemas/productsGetTypesResponse.fetch.ts +1 -1
  542. package/src/api/api-schemas/productsGetTypesResponse.ts +1 -1
  543. package/src/api/api-schemas/qAssetScopeParameter.fetch.ts +1 -1
  544. package/src/api/api-schemas/qAssetScopeParameter.ts +1 -1
  545. package/src/api/api-schemas/qCapabilityParameter.fetch.ts +1 -1
  546. package/src/api/api-schemas/qCapabilityParameter.ts +1 -1
  547. package/src/api/api-schemas/qCreatedFromParameter.fetch.ts +1 -1
  548. package/src/api/api-schemas/qCreatedFromParameter.ts +1 -1
  549. package/src/api/api-schemas/qCreatedUntilParameter.fetch.ts +1 -1
  550. package/src/api/api-schemas/qCreatedUntilParameter.ts +1 -1
  551. package/src/api/api-schemas/qForceParameter.fetch.ts +15 -0
  552. package/src/api/api-schemas/qForceParameter.ts +15 -0
  553. package/src/api/api-schemas/qFormatParameter.fetch.ts +1 -1
  554. package/src/api/api-schemas/qFormatParameter.ts +1 -1
  555. package/src/api/api-schemas/qFromParameter.fetch.ts +1 -1
  556. package/src/api/api-schemas/qFromParameter.ts +1 -1
  557. package/src/api/api-schemas/qIncidentKindParameter.fetch.ts +1 -1
  558. package/src/api/api-schemas/qIncidentKindParameter.ts +1 -1
  559. package/src/api/api-schemas/qMIdParameter.fetch.ts +1 -1
  560. package/src/api/api-schemas/qMIdParameter.ts +1 -1
  561. package/src/api/api-schemas/qNameParameter.fetch.ts +1 -1
  562. package/src/api/api-schemas/qNameParameter.ts +1 -1
  563. package/src/api/api-schemas/qNotificationStateParameter.fetch.ts +1 -1
  564. package/src/api/api-schemas/qNotificationStateParameter.ts +1 -1
  565. package/src/api/api-schemas/qOrgIdParameter.fetch.ts +1 -1
  566. package/src/api/api-schemas/qOrgIdParameter.ts +1 -1
  567. package/src/api/api-schemas/qPbpParameter.fetch.ts +1 -1
  568. package/src/api/api-schemas/qPbpParameter.ts +1 -1
  569. package/src/api/api-schemas/qProductIdParameter.fetch.ts +1 -1
  570. package/src/api/api-schemas/qProductIdParameter.ts +1 -1
  571. package/src/api/api-schemas/qRelayParameter.fetch.ts +1 -1
  572. package/src/api/api-schemas/qRelayParameter.ts +1 -1
  573. package/src/api/api-schemas/qUnitIdParameter.fetch.ts +1 -1
  574. package/src/api/api-schemas/qUnitIdParameter.ts +1 -1
  575. package/src/api/api-schemas/qUntilParameter.fetch.ts +1 -1
  576. package/src/api/api-schemas/qUntilParameter.ts +1 -1
  577. package/src/api/api-schemas/qUserIdParameter.fetch.ts +1 -1
  578. package/src/api/api-schemas/qUserIdParameter.ts +1 -1
  579. package/src/api/api-schemas/stateGetVersionResponse.fetch.ts +1 -1
  580. package/src/api/api-schemas/stateGetVersionResponse.ts +1 -1
  581. package/src/api/api-schemas/storageChargeItem.fetch.ts +1 -1
  582. package/src/api/api-schemas/storageChargeItem.ts +1 -1
  583. package/src/api/api-schemas/storageCharges.fetch.ts +1 -1
  584. package/src/api/api-schemas/storageCharges.ts +1 -1
  585. package/src/api/api-schemas/unitAllDetail.fetch.ts +1 -1
  586. package/src/api/api-schemas/unitAllDetail.ts +1 -1
  587. package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.fetch.ts +1 -1
  588. package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.ts +1 -1
  589. package/src/api/api-schemas/unitChargeSummary.fetch.ts +1 -1
  590. package/src/api/api-schemas/unitChargeSummary.ts +1 -1
  591. package/src/api/api-schemas/unitChargesGetResponse.fetch.ts +1 -1
  592. package/src/api/api-schemas/unitChargesGetResponse.ts +1 -1
  593. package/src/api/api-schemas/unitDetail.fetch.ts +1 -1
  594. package/src/api/api-schemas/unitDetail.ts +1 -1
  595. package/src/api/api-schemas/unitDetailDefaultProductPrivacy.fetch.ts +1 -1
  596. package/src/api/api-schemas/unitDetailDefaultProductPrivacy.ts +1 -1
  597. package/src/api/api-schemas/unitGetResponse.fetch.ts +1 -1
  598. package/src/api/api-schemas/unitGetResponse.ts +1 -1
  599. package/src/api/api-schemas/unitPatchBodyBody.fetch.ts +1 -1
  600. package/src/api/api-schemas/unitPatchBodyBody.ts +1 -1
  601. package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
  602. package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.ts +1 -1
  603. package/src/api/api-schemas/unitProductChargeSummary.fetch.ts +1 -1
  604. package/src/api/api-schemas/unitProductChargeSummary.ts +1 -1
  605. package/src/api/api-schemas/unitProductPostBodyBody.fetch.ts +1 -1
  606. package/src/api/api-schemas/unitProductPostBodyBody.ts +1 -1
  607. package/src/api/api-schemas/unitProductPostBodyBodyFlavour.fetch.ts +1 -1
  608. package/src/api/api-schemas/unitProductPostBodyBodyFlavour.ts +1 -1
  609. package/src/api/api-schemas/unitProductPostBodyBodyType.fetch.ts +1 -1
  610. package/src/api/api-schemas/unitProductPostBodyBodyType.ts +1 -1
  611. package/src/api/api-schemas/unitProductPostResponse.fetch.ts +1 -1
  612. package/src/api/api-schemas/unitProductPostResponse.ts +1 -1
  613. package/src/api/api-schemas/unitsGetResponse.fetch.ts +1 -1
  614. package/src/api/api-schemas/unitsGetResponse.ts +1 -1
  615. package/src/api/api-schemas/userAccountDetail.fetch.ts +1 -1
  616. package/src/api/api-schemas/userAccountDetail.ts +1 -1
  617. package/src/api/api-schemas/userAccountGetResponse.fetch.ts +1 -1
  618. package/src/api/api-schemas/userAccountGetResponse.ts +1 -1
  619. package/src/api/api-schemas/userDetail.fetch.ts +1 -1
  620. package/src/api/api-schemas/userDetail.ts +1 -1
  621. package/src/api/api-schemas/usersGetResponse.fetch.ts +1 -1
  622. package/src/api/api-schemas/usersGetResponse.ts +1 -1
  623. package/src/api/asset/asset.fetch.ts +1 -1
  624. package/src/api/asset/asset.ts +1 -1
  625. package/src/api/capabilities/capabilities.fetch.ts +61 -26
  626. package/src/api/capabilities/capabilities.ts +23 -19
  627. package/src/api/charges/charges.fetch.ts +1 -1
  628. package/src/api/charges/charges.ts +1 -1
  629. package/src/api/event-stream/event-stream.fetch.ts +1 -1
  630. package/src/api/event-stream/event-stream.ts +1 -1
  631. package/src/api/merchant/merchant.fetch.ts +1 -1
  632. package/src/api/merchant/merchant.ts +1 -1
  633. package/src/api/notifications/notifications.fetch.ts +1 -1
  634. package/src/api/notifications/notifications.ts +1 -1
  635. package/src/api/organisation/organisation.fetch.ts +26 -12
  636. package/src/api/organisation/organisation.ts +15 -10
  637. package/src/api/product/product.fetch.ts +1 -1
  638. package/src/api/product/product.ts +1 -1
  639. package/src/api/state/state.fetch.ts +1 -1
  640. package/src/api/state/state.ts +1 -1
  641. package/src/api/unit/unit.fetch.ts +1 -1
  642. package/src/api/unit/unit.ts +1 -1
  643. package/src/api/user/user.fetch.ts +1 -1
  644. package/src/api/user/user.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.fetch.js","names":[],"sources":["../../../src/api/notifications/notifications.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.11\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetIncidentsParams,\n GetNotificationsParams,\n IncidentsGetResponse,\n NotificationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getNotificationsResponse200 = { data: NotificationsGetResponse; status: 200 };\n\nexport type getNotificationsResponse400 = { data: AsError; status: 400 };\n\nexport type getNotificationsResponse401 = { data: void; status: 401 };\n\nexport type getNotificationsResponse403 = { data: AsError; status: 403 };\n\nexport type getNotificationsResponseSuccess = getNotificationsResponse200 & { headers: Headers };\nexport type getNotificationsResponseError = (\n | getNotificationsResponse400\n | getNotificationsResponse401\n | getNotificationsResponse403\n) & { headers: Headers };\n\nexport type getNotificationsResponse =\n | getNotificationsResponseSuccess\n | getNotificationsResponseError;\n\nexport const getGetNotificationsUrl = (params?: GetNotificationsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/notification?${stringifiedParams}` : `/notification`;\n};\n\n/**\n * Gets Notifications, newest first - who was told about an Incident, over which Relay, and how it went.\n *\n * Each Notification has exactly one delivery attempt and is never retried, so the `reason` of a `FAILED` Notification is the whole of its delivery record, and is returned in full.\n *\n * You need admin rights to use this path.\n * @summary Gets Notifications\n */\nexport const getNotifications = async (\n params?: GetNotificationsParams,\n options?: RequestInit,\n): Promise<getNotificationsResponse> => {\n return customFetch<getNotificationsResponse>(getGetNotificationsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetNotificationsQueryKey = (params?: GetNotificationsParams) => {\n return [\"account-server\", \"notification\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetNotificationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsQueryResult = NonNullable<Awaited<ReturnType<typeof getNotifications>>>;\nexport type GetNotificationsQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Notifications\n */\nexport const invalidateGetNotifications = async (\n queryClient: QueryClient,\n params?: GetNotificationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetNotificationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetNotificationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotifications>>\n>;\nexport type GetNotificationsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getIncidentsResponse200 = { data: IncidentsGetResponse; status: 200 };\n\nexport type getIncidentsResponse400 = { data: AsError; status: 400 };\n\nexport type getIncidentsResponse401 = { data: void; status: 401 };\n\nexport type getIncidentsResponse403 = { data: AsError; status: 403 };\n\nexport type getIncidentsResponseSuccess = getIncidentsResponse200 & { headers: Headers };\nexport type getIncidentsResponseError = (\n | getIncidentsResponse400\n | getIncidentsResponse401\n | getIncidentsResponse403\n) & { headers: Headers };\n\nexport type getIncidentsResponse = getIncidentsResponseSuccess | getIncidentsResponseError;\n\nexport const getGetIncidentsUrl = (params?: GetIncidentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/incident?${stringifiedParams}` : `/incident`;\n};\n\n/**\n * Gets Incidents, newest first - the conditions the Account Server has detected, each recorded once however many people were told.\n *\n * You need admin rights to use this path.\n * @summary Gets Incidents\n */\nexport const getIncidents = async (\n params?: GetIncidentsParams,\n options?: RequestInit,\n): Promise<getIncidentsResponse> => {\n return customFetch<getIncidentsResponse>(getGetIncidentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetIncidentsQueryKey = (params?: GetIncidentsParams) => {\n return [\"account-server\", \"incident\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetIncidentsQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Incidents\n */\nexport const invalidateGetIncidents = async (\n queryClient: QueryClient,\n params?: GetIncidentsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetIncidentsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetIncidentsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQ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EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,wBAAwB,MAAM;CAEzE,MAAM,WAAoE,EAAE,aAC1E,aAAa,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAEpD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,gBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,4BAA4B,QAAQ,OAAO;CAMhE,OAAO,aAJO,SAAS,cAAc,WAIb,GAAG,aAAa,QAAQ;AAClD;;;;AAKA,MAAa,yBAAyB,OACpC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,wBAAwB,MAAM,EAAE,GAAG,OAAO;CAE1F,OAAO;AACT;AAEA,MAAa,uCAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,wBAAwB,MAAM;CAEzE,MAAM,WAAoE,EAAE,aAC1E,aAAa,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAEpD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAgDA,SAAgB,wBAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,oCAAoC,QAAQ,OAAO;CAOxE,OAAO,aALO,iBAAiB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
1
+ {"version":3,"file":"notifications.fetch.js","names":[],"sources":["../../../src/api/notifications/notifications.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.12\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetIncidentsParams,\n GetNotificationsParams,\n IncidentsGetResponse,\n NotificationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getNotificationsResponse200 = { data: NotificationsGetResponse; status: 200 };\n\nexport type getNotificationsResponse400 = { data: AsError; status: 400 };\n\nexport type getNotificationsResponse401 = { data: void; status: 401 };\n\nexport type getNotificationsResponse403 = { data: AsError; status: 403 };\n\nexport type getNotificationsResponseSuccess = getNotificationsResponse200 & { headers: Headers };\nexport type getNotificationsResponseError = (\n | getNotificationsResponse400\n | getNotificationsResponse401\n | getNotificationsResponse403\n) & { headers: Headers };\n\nexport type getNotificationsResponse =\n | getNotificationsResponseSuccess\n | getNotificationsResponseError;\n\nexport const getGetNotificationsUrl = (params?: GetNotificationsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/notification?${stringifiedParams}` : `/notification`;\n};\n\n/**\n * Gets Notifications, newest first - who was told about an Incident, over which Relay, and how it went.\n *\n * Each Notification has exactly one delivery attempt and is never retried, so the `reason` of a `FAILED` Notification is the whole of its delivery record, and is returned in full.\n *\n * You need admin rights to use this path.\n * @summary Gets Notifications\n */\nexport const getNotifications = async (\n params?: GetNotificationsParams,\n options?: RequestInit,\n): Promise<getNotificationsResponse> => {\n return customFetch<getNotificationsResponse>(getGetNotificationsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetNotificationsQueryKey = (params?: GetNotificationsParams) => {\n return [\"account-server\", \"notification\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetNotificationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsQueryResult = NonNullable<Awaited<ReturnType<typeof getNotifications>>>;\nexport type GetNotificationsQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Notifications\n */\nexport const invalidateGetNotifications = async (\n queryClient: QueryClient,\n params?: GetNotificationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetNotificationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetNotificationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotifications>>\n>;\nexport type GetNotificationsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getIncidentsResponse200 = { data: IncidentsGetResponse; status: 200 };\n\nexport type getIncidentsResponse400 = { data: AsError; status: 400 };\n\nexport type getIncidentsResponse401 = { data: void; status: 401 };\n\nexport type getIncidentsResponse403 = { data: AsError; status: 403 };\n\nexport type getIncidentsResponseSuccess = getIncidentsResponse200 & { headers: Headers };\nexport type getIncidentsResponseError = (\n | getIncidentsResponse400\n | getIncidentsResponse401\n | getIncidentsResponse403\n) & { headers: Headers };\n\nexport type getIncidentsResponse = getIncidentsResponseSuccess | getIncidentsResponseError;\n\nexport const getGetIncidentsUrl = (params?: GetIncidentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/incident?${stringifiedParams}` : `/incident`;\n};\n\n/**\n * Gets Incidents, newest first - the conditions the Account Server has detected, each recorded once however many people were told.\n *\n * You need admin rights to use this path.\n * @summary Gets Incidents\n */\nexport const getIncidents = async (\n params?: GetIncidentsParams,\n options?: RequestInit,\n): Promise<getIncidentsResponse> => {\n return customFetch<getIncidentsResponse>(getGetIncidentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetIncidentsQueryKey = (params?: GetIncidentsParams) => {\n return [\"account-server\", \"incident\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetIncidentsQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Incidents\n */\nexport const invalidateGetIncidents = async (\n queryClient: QueryClient,\n params?: GetIncidentsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetIncidentsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetIncidentsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;AAuCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;AAqBA,MAAa,0BAA0B,WAAoC;CACzE,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CA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AG,OAAO;CAE1F,OAAO;AACT;AAEA,MAAa,uCAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,wBAAwB,MAAM;CAEzE,MAAM,WAAoE,EAAE,aAC1E,aAAa,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAEpD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAgDA,SAAgB,wBAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,oCAAoC,QAAQ,OAAO;CAOxE,OAAO,aALO,iBAAiB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
@@ -9,7 +9,7 @@ import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
9
9
  *
10
10
  * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
11
11
  *
12
- * OpenAPI spec version: 4.11
12
+ * OpenAPI spec version: 4.12
13
13
  */
14
14
  const withQueryKey = (query, queryKey) => {
15
15
  const result = { queryKey };
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.js","names":[],"sources":["../../../src/api/notifications/notifications.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.11\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetIncidentsParams,\n GetNotificationsParams,\n IncidentsGetResponse,\n NotificationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\n/**\n * Gets Notifications, newest first - who was told about an Incident, over which Relay, and how it went.\n *\n * Each Notification has exactly one delivery attempt and is never retried, so the `reason` of a `FAILED` Notification is the whole of its delivery record, and is returned in full.\n *\n * You need admin rights to use this path.\n * @summary Gets Notifications\n */\nexport const getNotifications = (\n params?: GetNotificationsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<NotificationsGetResponse>(\n { url: `/notification`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetNotificationsQueryKey = (params?: GetNotificationsParams) => {\n return [\"account-server\", \"notification\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetNotificationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsQueryResult = NonNullable<Awaited<ReturnType<typeof getNotifications>>>;\nexport type GetNotificationsQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Notifications\n */\nexport const invalidateGetNotifications = async (\n queryClient: QueryClient,\n params?: GetNotificationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetNotificationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetNotificationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotifications>>\n>;\nexport type GetNotificationsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * Gets Incidents, newest first - the conditions the Account Server has detected, each recorded once however many people were told.\n *\n * You need admin rights to use this path.\n * @summary Gets Incidents\n */\nexport const getIncidents = (\n params?: GetIncidentsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<IncidentsGetResponse>(\n { url: `/incident`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetIncidentsQueryKey = (params?: GetIncidentsParams) => {\n return [\"account-server\", \"incident\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetIncidentsQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Incidents\n */\nexport const invalidateGetIncidents = async (\n queryClient: QueryClient,\n params?: GetIncidentsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetIncidentsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetIncidentsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;AAuCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;;;;;;;;;AAUA,MAAa,oBACX,QACA,SACA,WACG;CACH,OAAO,eACL;EAAE,KAAK;EAAiB,QAAQ;EAAO;EAAQ;CAAO,GACtD,OACF;AACF;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAkB;EAAgB,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AACvE;AAEA,MAAa,mCAIX,QACA,YA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MAAM;CAEzE,MAAM,WAAoE,EAAE,aAC1E,aAAa,QAAQ,gBAAgB,MAAM;CAE7C,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,gBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,4BAA4B,QAAQ,OAAO;CAMhE,OAAO,aAJO,SAAS,cAAc,WAIb,GAAG,aAAa,QAAQ;AAClD;;;;AAKA,MAAa,yBAAyB,OACpC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,wBAAwB,MAAM,EAAE,GAAG,OAAO;CAE1F,OAAO;AACT;AAEA,MAAa,uCAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,wBAAwB,MAAM;CAEzE,MAAM,WAAoE,EAAE,aAC1E,aAAa,QAAQ,gBAAgB,MAAM;CAE7C,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAgDA,SAAgB,wBAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,oCAAoC,QAAQ,OAAO;CAOxE,OAAO,aALO,iBAAiB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
1
+ {"version":3,"file":"notifications.js","names":[],"sources":["../../../src/api/notifications/notifications.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.12\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetIncidentsParams,\n GetNotificationsParams,\n IncidentsGetResponse,\n NotificationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\n/**\n * Gets Notifications, newest first - who was told about an Incident, over which Relay, and how it went.\n *\n * Each Notification has exactly one delivery attempt and is never retried, so the `reason` of a `FAILED` Notification is the whole of its delivery record, and is returned in full.\n *\n * You need admin rights to use this path.\n * @summary Gets Notifications\n */\nexport const getNotifications = (\n params?: GetNotificationsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<NotificationsGetResponse>(\n { url: `/notification`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetNotificationsQueryKey = (params?: GetNotificationsParams) => {\n return [\"account-server\", \"notification\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetNotificationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsQueryResult = NonNullable<Awaited<ReturnType<typeof getNotifications>>>;\nexport type GetNotificationsQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Notifications\n */\nexport const invalidateGetNotifications = async (\n queryClient: QueryClient,\n params?: GetNotificationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetNotificationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetNotificationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotifications>>\n>;\nexport type GetNotificationsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * Gets Incidents, newest first - the conditions the Account Server has detected, each recorded once however many people were told.\n *\n * You need admin rights to use this path.\n * @summary Gets Incidents\n */\nexport const getIncidents = (\n params?: GetIncidentsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<IncidentsGetResponse>(\n { url: `/incident`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetIncidentsQueryKey = (params?: GetIncidentsParams) => {\n return [\"account-server\", \"incident\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetIncidentsQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Incidents\n */\nexport const invalidateGetIncidents = async (\n queryClient: QueryClient,\n params?: GetIncidentsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetIncidentsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetIncidentsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;AAuCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;;;;;;;;;AAUA,MAAa,oBACX,QACA,SACA,WACG;CACH,OAAO,eACL;EAAE,KAAK;EAAiB,QAAQ;EAAO;EAAQ;CAAO,GACtD,OACF;AACF;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;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MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,wBAAwB,MAAM;CAEzE,MAAM,WAAoE,EAAE,aAC1E,aAAa,QAAQ,gBAAgB,MAAM;CAE7C,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,gBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,4BAA4B,QAAQ,OAAO;CAMhE,OAAO,aAJO,SAAS,cAAc,WAIb,GAAG,aAAa,QAAQ;AAClD;;;;AAKA,MAAa,yBAAyB,OACpC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,wBAAwB,MAAM,EAAE,GAAG,OAAO;CAE1F,OAAO;AACT;AAEA,MAAa,uCAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,wBAAwB,MAAM;CAEzE,MAAM,WAAoE,EAAE,aAC1E,aAAa,QAAQ,gBAAgB,MAAM;CAE7C,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAgDA,SAAgB,wBAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,oCAAoC,QAAQ,OAAO;CAOxE,OAAO,aALO,iBAAiB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
@@ -10,7 +10,7 @@ let _tanstack_react_query = require("@tanstack/react-query");
10
10
  *
11
11
  * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
12
12
  *
13
- * OpenAPI spec version: 4.11
13
+ * OpenAPI spec version: 4.12
14
14
  */
15
15
  const withQueryKey = (query, queryKey) => {
16
16
  const result = { queryKey };
@@ -239,15 +239,16 @@ const usePatchOrganisation = (options, queryClient) => {
239
239
  /**
240
240
  * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
241
241
  *
242
- * The Organisation's **Capabilities** are deleted with it, each doing what it does when it's deleted (for example, the `viz` Capability drops the Organisation's database). If a Capability cannot be deleted the Organisation is not deleted, and the Capabilities that were deleted remain deleted. Only an admin can delete an Organisation that has Capabilities.
242
+ * The Organisation's **Capabilities** are deleted with it, each doing what it does when it's deleted (for example, the `viz` Capability drops the Organisation's database). If a Capability cannot be deleted the Organisation is not deleted, and the Capabilities that were deleted remain deleted. An admin can set `force` to delete the Capabilities (and the Organisation) anyway. Only an admin can delete an Organisation that has Capabilities.
243
243
  *
244
244
  * You need admin rights to use this method
245
245
  * @summary Deletes an Organisation
246
246
  */
247
- const deleteOrganisation = (orgId, options, signal) => {
247
+ const deleteOrganisation = (orgId, params, options, signal) => {
248
248
  return require_custom_axios.customInstance({
249
249
  url: `/organisation/${orgId}`,
250
250
  method: "DELETE",
251
+ params,
251
252
  signal
252
253
  }, options);
253
254
  };
@@ -264,8 +265,8 @@ const getDeleteOrganisationMutationOptions = (options) => {
264
265
  request: void 0
265
266
  };
266
267
  const mutationFn = (props) => {
267
- const { orgId } = props ?? {};
268
- return deleteOrganisation(orgId, requestOptions);
268
+ const { orgId, params } = props ?? {};
269
+ return deleteOrganisation(orgId, params, requestOptions);
269
270
  };
270
271
  return {
271
272
  mutationFn,
@@ -1 +1 @@
1
- {"version":3,"file":"organisation.cjs","names":["customInstance"],"sources":["../../../src/api/organisation/organisation.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.11\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetOrganisationsParams,\n OrganisationAllDetail,\n OrganisationGetDefaultResponse,\n OrganisationPatchBodyBody,\n OrganisationPostBodyBody,\n OrganisationPostResponse,\n OrganisationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\n/**\n * Gets all the Organisations that you are a member of, or a specific Organisation by name.\n *\n * You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.\n * @summary Gets Organisations\n */\nexport const getOrganisations = (\n params?: GetOrganisationsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationsGetResponse>(\n { url: `/organisation`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetOrganisationsQueryKey = (params?: GetOrganisationsParams) => {\n return [\"account-server\", \"organisation\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetOrganisationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisations>>>;\nexport type GetOrganisationsQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Organisations\n */\nexport const invalidateGetOrganisations = async (\n queryClient: QueryClient,\n params?: GetOrganisationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisations>>\n>;\nexport type GetOrganisationsSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * Creates a new Organisation.\n *\n * The **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.\n *\n * You need admin rights to use this method\n * @summary Create a new organisation\n */\nexport const createOrganisation = (\n organisationPostBodyBody: OrganisationPostBodyBody,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationPostResponse>(\n {\n url: `/organisation`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: organisationPostBodyBody,\n signal,\n },\n options,\n );\n};\n\nexport const getCreateOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationKey = [\"createOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createOrganisation>>,\n { data: OrganisationPostBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return createOrganisation(data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type CreateOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof createOrganisation>>\n>;\nexport type CreateOrganisationMutationBody = OrganisationPostBodyBody;\nexport type CreateOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Create a new organisation\n */\nexport const useCreateOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n return useMutation(getCreateOrganisationMutationOptions(options), queryClient);\n};\n/**\n * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.\n *\n * Members of an Organisation's **Unit** do not have access to the Organisation.\n * @summary Gets an Organisation\n */\nexport const getOrganisation = (\n orgId: string,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationAllDetail>(\n { url: `/organisation/${orgId}`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetOrganisationQueryKey = (orgId: string) => {\n return [\"account-server\", \"organisation\", orgId] as const;\n};\n\nexport const getGetOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, requestOptions, signal);\n\n return {\n queryKey,\n queryFn,\n enabled: orgId !== null && orgId !== undefined,\n ...queryOptions,\n } as UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n};\n\nexport type GetOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisation>>>;\nexport type GetOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationQueryOptions(orgId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets an Organisation\n */\nexport const invalidateGetOrganisation = async (\n queryClient: QueryClient,\n orgId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationQueryKey(orgId) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisation>>\n>;\nexport type GetOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.\n *\n * Changes to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.\n *\n * You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.\n * @summary Adjust an existing Organisation\n */\nexport const patchOrganisation = (\n orgId: string,\n organisationPatchBodyBody: OrganisationPatchBodyBody,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<void>(\n {\n url: `/organisation/${orgId}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: organisationPatchBodyBody,\n signal,\n },\n options,\n );\n};\n\nexport const getPatchOrganisationMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationKey = [\"patchOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n > = (props) => {\n const { orgId, data } = props ?? {};\n\n return patchOrganisation(orgId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type PatchOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof patchOrganisation>>\n>;\nexport type PatchOrganisationMutationBody = OrganisationPatchBodyBody;\nexport type PatchOrganisationMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Adjust an existing Organisation\n */\nexport const usePatchOrganisation = <TError = ErrorType<void | AsError>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n return useMutation(getPatchOrganisationMutationOptions(options), queryClient);\n};\n/**\n * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.\n *\n * The Organisation's **Capabilities** are deleted with it, each doing what it does when it's deleted (for example, the `viz` Capability drops the Organisation's database). If a Capability cannot be deleted the Organisation is not deleted, and the Capabilities that were deleted remain deleted. Only an admin can delete an Organisation that has Capabilities.\n *\n * You need admin rights to use this method\n * @summary Deletes an Organisation\n */\nexport const deleteOrganisation = (\n orgId: string,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<void>({ url: `/organisation/${orgId}`, method: \"DELETE\", signal }, options);\n};\n\nexport const getDeleteOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n { orgId: string }\n > = (props) => {\n const { orgId } = props ?? {};\n\n return deleteOrganisation(orgId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisation>>\n>;\n\nexport type DeleteOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes an Organisation\n */\nexport const useDeleteOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n return useMutation(getDeleteOrganisationMutationOptions(options), queryClient);\n};\n/**\n * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.\n *\n * Any authorised user can see the Default Organisation.\n * @summary Gets the Default Organisation\n */\nexport const getDefaultOrganisation = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationGetDefaultResponse>(\n { url: `/default/organisation`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetDefaultOrganisationQueryKey = () => {\n return [\"account-server\", \"default\", \"organisation\"] as const;\n};\n\nexport const getGetDefaultOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetDefaultOrganisationQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets the Default Organisation\n */\nexport const invalidateGetDefaultOrganisation = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetDefaultOrganisationQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetDefaultOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;;AA6CA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;;;;;;;AAQA,MAAa,oBACX,QACA,SACA,WACG;CACH,OAAOA,qBAAAA,eACL;EAAE,KAAK;EAAiB,QAAQ;EAAO;EAAQ;CAAO,GACtD,OACF;AACF;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAkB;EAAgB,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AACvE;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,OAAO,cAAA,GAAA,sBAAA,SAAA,CAJgB,cAAc,WAIb,GAAG,aAAa,QAAQ;AAClD;;;;AAKA,MAAa,6BAA6B,OACxC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,4BAA4B,MAAM,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,2CAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,M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;AAEA,MAAa,0CAA0C;CACrD,OAAO;EAAC;EAAkB;EAAW;CAAc;AACrD;AAEA,MAAa,yCAGX,YAKI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,kCAAkC;CAE7E,MAAM,WAA8E,EAAE,aACpF,uBAAuB,gBAAgB,MAAM;CAE/C,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA+DA,SAAgB,0BAId,SAMA,aACgF;CAChF,MAAM,eAAe,sCAAsC,OAAO;CAMlE,OAAO,cAAA,GAAA,sBAAA,SAAA,CAJgB,cAAc,WAIb,GAAG,aAAa,QAAQ;AAClD;;;;AAKA,MAAa,mCAAmC,OAC9C,aACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,kCAAkC,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,iDAGX,YAKI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,kCAAkC;CAE7E,MAAM,WAA8E,EAAE,aACpF,uBAAuB,gBAAgB,MAAM;CAE/C,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA+CA,SAAgB,kCAId,SAMA,aACwF;CACxF,MAAM,eAAe,8CAA8C,OAAO;CAO1E,OAAO,cAAA,GAAA,sBAAA,iBAAA,CALwB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
1
+ {"version":3,"file":"organisation.cjs","names":["customInstance"],"sources":["../../../src/api/organisation/organisation.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.12\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n DeleteOrganisationParams,\n GetOrganisationsParams,\n OrganisationAllDetail,\n OrganisationGetDefaultResponse,\n OrganisationPatchBodyBody,\n OrganisationPostBodyBody,\n OrganisationPostResponse,\n OrganisationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\n/**\n * Gets all the Organisations that you are a member of, or a specific Organisation by name.\n *\n * You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.\n * @summary Gets Organisations\n */\nexport const getOrganisations = (\n params?: GetOrganisationsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationsGetResponse>(\n { url: `/organisation`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetOrganisationsQueryKey = (params?: GetOrganisationsParams) => {\n return [\"account-server\", \"organisation\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetOrganisationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisations>>>;\nexport type GetOrganisationsQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Organisations\n */\nexport const invalidateGetOrganisations = async (\n queryClient: QueryClient,\n params?: GetOrganisationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisations>>\n>;\nexport type GetOrganisationsSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * Creates a new Organisation.\n *\n * The **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.\n *\n * You need admin rights to use this method\n * @summary Create a new organisation\n */\nexport const createOrganisation = (\n organisationPostBodyBody: OrganisationPostBodyBody,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationPostResponse>(\n {\n url: `/organisation`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: organisationPostBodyBody,\n signal,\n },\n options,\n );\n};\n\nexport const getCreateOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationKey = [\"createOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createOrganisation>>,\n { data: OrganisationPostBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return createOrganisation(data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type CreateOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof createOrganisation>>\n>;\nexport type CreateOrganisationMutationBody = OrganisationPostBodyBody;\nexport type CreateOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Create a new organisation\n */\nexport const useCreateOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n return useMutation(getCreateOrganisationMutationOptions(options), queryClient);\n};\n/**\n * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.\n *\n * Members of an Organisation's **Unit** do not have access to the Organisation.\n * @summary Gets an Organisation\n */\nexport const getOrganisation = (\n orgId: string,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationAllDetail>(\n { url: `/organisation/${orgId}`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetOrganisationQueryKey = (orgId: string) => {\n return [\"account-server\", \"organisation\", orgId] as const;\n};\n\nexport const getGetOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, requestOptions, signal);\n\n return {\n queryKey,\n queryFn,\n enabled: orgId !== null && orgId !== undefined,\n ...queryOptions,\n } as UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n};\n\nexport type GetOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisation>>>;\nexport type GetOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationQueryOptions(orgId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets an Organisation\n */\nexport const invalidateGetOrganisation = async (\n queryClient: QueryClient,\n orgId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationQueryKey(orgId) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisation>>\n>;\nexport type GetOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.\n *\n * Changes to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.\n *\n * You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.\n * @summary Adjust an existing Organisation\n */\nexport const patchOrganisation = (\n orgId: string,\n organisationPatchBodyBody: OrganisationPatchBodyBody,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<void>(\n {\n url: `/organisation/${orgId}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: organisationPatchBodyBody,\n signal,\n },\n options,\n );\n};\n\nexport const getPatchOrganisationMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationKey = [\"patchOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n > = (props) => {\n const { orgId, data } = props ?? {};\n\n return patchOrganisation(orgId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type PatchOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof patchOrganisation>>\n>;\nexport type PatchOrganisationMutationBody = OrganisationPatchBodyBody;\nexport type PatchOrganisationMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Adjust an existing Organisation\n */\nexport const usePatchOrganisation = <TError = ErrorType<void | AsError>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n return useMutation(getPatchOrganisationMutationOptions(options), queryClient);\n};\n/**\n * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.\n *\n * The Organisation's **Capabilities** are deleted with it, each doing what it does when it's deleted (for example, the `viz` Capability drops the Organisation's database). If a Capability cannot be deleted the Organisation is not deleted, and the Capabilities that were deleted remain deleted. An admin can set `force` to delete the Capabilities (and the Organisation) anyway. Only an admin can delete an Organisation that has Capabilities.\n *\n * You need admin rights to use this method\n * @summary Deletes an Organisation\n */\nexport const deleteOrganisation = (\n orgId: string,\n params?: DeleteOrganisationParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<void>(\n { url: `/organisation/${orgId}`, method: \"DELETE\", params, signal },\n options,\n );\n};\n\nexport const getDeleteOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string; params?: DeleteOrganisationParams },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string; params?: DeleteOrganisationParams },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n { orgId: string; params?: DeleteOrganisationParams }\n > = (props) => {\n const { orgId, params } = props ?? {};\n\n return deleteOrganisation(orgId, params, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisation>>\n>;\n\nexport type DeleteOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes an Organisation\n */\nexport const useDeleteOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string; params?: DeleteOrganisationParams },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string; params?: DeleteOrganisationParams },\n TContext\n> => {\n return useMutation(getDeleteOrganisationMutationOptions(options), queryClient);\n};\n/**\n * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.\n *\n * Any authorised user can see the Default Organisation.\n * @summary Gets the Default Organisation\n */\nexport const getDefaultOrganisation = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationGetDefaultResponse>(\n { url: `/default/organisation`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetDefaultOrganisationQueryKey = () => {\n return [\"account-server\", \"default\", \"organisation\"] as const;\n};\n\nexport const getGetDefaultOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetDefaultOrganisationQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets the Default Organisation\n */\nexport const invalidateGetDefaultOrganisation = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetDefaultOrganisationQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetDefaultOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;;AA8CA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;;;;;;;AAQA,MAAa,oBACX,QACA,SACA,WACG;CACH,OAAOA,qBAAAA,eACL;EAAE,KAAK;EAAiB,QAAQ;EAAO;EAAQ;CAAO,GACtD,OACF;AACF;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAkB;EAAgB,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AACvE;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,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cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
@@ -1,4 +1,5 @@
1
1
  import { AsError } from "../api-schemas/asError.cjs";
2
+ import { DeleteOrganisationParams } from "../api-schemas/deleteOrganisationParams.cjs";
2
3
  import { GetOrganisationsParams } from "../api-schemas/getOrganisationsParams.cjs";
3
4
  import { OrganisationAllDetail } from "../api-schemas/organisationAllDetail.cjs";
4
5
  import { OrganisationGetDefaultResponse } from "../api-schemas/organisationGetDefaultResponse.cjs";
@@ -208,19 +209,21 @@ declare const usePatchOrganisation: <TError = ErrorType<void | AsError>, TContex
208
209
  /**
209
210
  * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
210
211
  *
211
- * The Organisation's **Capabilities** are deleted with it, each doing what it does when it's deleted (for example, the `viz` Capability drops the Organisation's database). If a Capability cannot be deleted the Organisation is not deleted, and the Capabilities that were deleted remain deleted. Only an admin can delete an Organisation that has Capabilities.
212
+ * The Organisation's **Capabilities** are deleted with it, each doing what it does when it's deleted (for example, the `viz` Capability drops the Organisation's database). If a Capability cannot be deleted the Organisation is not deleted, and the Capabilities that were deleted remain deleted. An admin can set `force` to delete the Capabilities (and the Organisation) anyway. Only an admin can delete an Organisation that has Capabilities.
212
213
  *
213
214
  * You need admin rights to use this method
214
215
  * @summary Deletes an Organisation
215
216
  */
216
- declare const deleteOrganisation: (orgId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
217
+ declare const deleteOrganisation: (orgId: string, params?: DeleteOrganisationParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
217
218
  declare const getDeleteOrganisationMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
218
219
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganisation>>, TError, {
219
220
  orgId: string;
221
+ params?: DeleteOrganisationParams;
220
222
  }, TContext>;
221
223
  request?: SecondParameter<typeof customInstance>;
222
224
  }) => UseMutationOptions<Awaited<ReturnType<typeof deleteOrganisation>>, TError, {
223
225
  orgId: string;
226
+ params?: DeleteOrganisationParams;
224
227
  }, TContext>;
225
228
  type DeleteOrganisationMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganisation>>>;
226
229
  type DeleteOrganisationMutationError = ErrorType<AsError | void>;
@@ -230,10 +233,12 @@ type DeleteOrganisationMutationError = ErrorType<AsError | void>;
230
233
  declare const useDeleteOrganisation: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
231
234
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganisation>>, TError, {
232
235
  orgId: string;
236
+ params?: DeleteOrganisationParams;
233
237
  }, TContext>;
234
238
  request?: SecondParameter<typeof customInstance>;
235
239
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteOrganisation>>, TError, {
236
240
  orgId: string;
241
+ params?: DeleteOrganisationParams;
237
242
  }, TContext>;
238
243
  /**
239
244
  * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.
@@ -1 +1 @@
1
- {"version":3,"file":"organisation.d.cts","names":[],"sources":["../../../src/api/organisation/organisation.ts"],"mappings":";;;;;;;;;;;;KA2CK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;;;;;;;cAuB5D,gBAAA,GACX,MAAA,GAAS,sBAAA,EACT,OAAA,GAAU,eAAA,QAAuB,cAAA,GACjC,MAAA,GAAS,WAAA,KAAW,OAAA,CAAA,wBAAA;AAAA,cAQT,2BAAA,GAA+B,MAAA,GAAS,sBAAA,oDAAsB,sBAAA;AAAA,cAI9D,+BAAA,WACH,OAAA,CAAQ,UAAA,QAAkB,gBAAA,aACzB,SAAA,QAAiB,OAAA,GAE1B,MAAA,GAAS,sBAAA,EACT,OAAA;EACE,KAAA,GAAQ,OAAA,CAAQ,eAAA,CAAgB,OAAA,CAAQ,UAAA,QAAkB,gBAAA,IAAoB,MAAA,EAAQ,KAAA;EACtF,OAAA,GAAU,eA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