@squonk/account-server-client 4.7.0-trunk.2383504127 → 4.7.2

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 (1004) hide show
  1. package/.github/workflows/ci.yml +40 -0
  2. package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +8 -14
  3. package/dist/api/actions/actions.cjs +28 -22
  4. package/dist/api/actions/actions.cjs.map +1 -1
  5. package/dist/api/actions/actions.d.cts +14 -15
  6. package/dist/api/actions/actions.d.cts.map +1 -1
  7. package/dist/api/actions/actions.d.ts +14 -15
  8. package/dist/api/actions/actions.d.ts.map +1 -1
  9. package/dist/api/actions/actions.fetch.cjs +33 -16
  10. package/dist/api/actions/actions.fetch.cjs.map +1 -1
  11. package/dist/api/actions/actions.fetch.d.cts +18 -19
  12. package/dist/api/actions/actions.fetch.d.cts.map +1 -1
  13. package/dist/api/actions/actions.fetch.d.ts +18 -19
  14. package/dist/api/actions/actions.fetch.d.ts.map +1 -1
  15. package/dist/api/actions/actions.fetch.js +30 -13
  16. package/dist/api/actions/actions.fetch.js.map +1 -1
  17. package/dist/api/actions/actions.js +25 -19
  18. package/dist/api/actions/actions.js.map +1 -1
  19. package/dist/api/api-schemas/actionDetail.d.cts +0 -1
  20. package/dist/api/api-schemas/actionDetail.d.cts.map +1 -1
  21. package/dist/api/api-schemas/actionDetail.d.ts +0 -1
  22. package/dist/api/api-schemas/actionDetail.d.ts.map +1 -1
  23. package/dist/api/api-schemas/actionGetResponse.d.cts +2 -5
  24. package/dist/api/api-schemas/actionGetResponse.d.cts.map +1 -1
  25. package/dist/api/api-schemas/actionGetResponse.d.ts +2 -5
  26. package/dist/api/api-schemas/actionGetResponse.d.ts.map +1 -1
  27. package/dist/api/api-schemas/asError.d.cts +4 -4
  28. package/dist/api/api-schemas/asError.d.cts.map +1 -1
  29. package/dist/api/api-schemas/asError.d.ts +4 -4
  30. package/dist/api/api-schemas/asError.d.ts.map +1 -1
  31. package/dist/api/api-schemas/assetDetail.d.cts +0 -1
  32. package/dist/api/api-schemas/assetDetail.d.cts.map +1 -1
  33. package/dist/api/api-schemas/assetDetail.d.ts +0 -1
  34. package/dist/api/api-schemas/assetDetail.d.ts.map +1 -1
  35. package/dist/api/api-schemas/assetDetailScope.cjs +1 -2
  36. package/dist/api/api-schemas/assetDetailScope.cjs.map +1 -1
  37. package/dist/api/api-schemas/assetDetailScope.d.cts +4 -4
  38. package/dist/api/api-schemas/assetDetailScope.d.cts.map +1 -1
  39. package/dist/api/api-schemas/assetDetailScope.d.ts +4 -4
  40. package/dist/api/api-schemas/assetDetailScope.d.ts.map +1 -1
  41. package/dist/api/api-schemas/assetDetailScope.js +1 -1
  42. package/dist/api/api-schemas/assetDetailScope.js.map +1 -1
  43. package/dist/api/api-schemas/assetGetByIdResponse.d.cts +0 -1
  44. package/dist/api/api-schemas/assetGetByIdResponse.d.cts.map +1 -1
  45. package/dist/api/api-schemas/assetGetByIdResponse.d.ts +0 -1
  46. package/dist/api/api-schemas/assetGetByIdResponse.d.ts.map +1 -1
  47. package/dist/api/api-schemas/assetGetResponse.d.cts +2 -5
  48. package/dist/api/api-schemas/assetGetResponse.d.cts.map +1 -1
  49. package/dist/api/api-schemas/assetGetResponse.d.ts +2 -5
  50. package/dist/api/api-schemas/assetGetResponse.d.ts.map +1 -1
  51. package/dist/api/api-schemas/assetPatchBodyBody.d.cts +6 -9
  52. package/dist/api/api-schemas/assetPatchBodyBody.d.cts.map +1 -1
  53. package/dist/api/api-schemas/assetPatchBodyBody.d.ts +6 -9
  54. package/dist/api/api-schemas/assetPatchBodyBody.d.ts.map +1 -1
  55. package/dist/api/api-schemas/assetPostBodyBody.d.cts +6 -13
  56. package/dist/api/api-schemas/assetPostBodyBody.d.cts.map +1 -1
  57. package/dist/api/api-schemas/assetPostBodyBody.d.ts +6 -13
  58. package/dist/api/api-schemas/assetPostBodyBody.d.ts.map +1 -1
  59. package/dist/api/api-schemas/assetPostBodyBodyScope.cjs +1 -2
  60. package/dist/api/api-schemas/assetPostBodyBodyScope.cjs.map +1 -1
  61. package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts +4 -4
  62. package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts.map +1 -1
  63. package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts +4 -4
  64. package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts.map +1 -1
  65. package/dist/api/api-schemas/assetPostBodyBodyScope.js +1 -1
  66. package/dist/api/api-schemas/assetPostBodyBodyScope.js.map +1 -1
  67. package/dist/api/api-schemas/assetPostResponse.d.cts +5 -6
  68. package/dist/api/api-schemas/assetPostResponse.d.cts.map +1 -1
  69. package/dist/api/api-schemas/assetPostResponse.d.ts +5 -6
  70. package/dist/api/api-schemas/assetPostResponse.d.ts.map +1 -1
  71. package/dist/api/api-schemas/attachAssetParams.d.cts +0 -1
  72. package/dist/api/api-schemas/attachAssetParams.d.cts.map +1 -1
  73. package/dist/api/api-schemas/attachAssetParams.d.ts +0 -1
  74. package/dist/api/api-schemas/attachAssetParams.d.ts.map +1 -1
  75. package/dist/api/api-schemas/chargeAdditionalData.d.cts +4 -4
  76. package/dist/api/api-schemas/chargeAdditionalData.d.cts.map +1 -1
  77. package/dist/api/api-schemas/chargeAdditionalData.d.ts +4 -4
  78. package/dist/api/api-schemas/chargeAdditionalData.d.ts.map +1 -1
  79. package/dist/api/api-schemas/chargeSummary.d.cts +0 -1
  80. package/dist/api/api-schemas/chargeSummary.d.cts.map +1 -1
  81. package/dist/api/api-schemas/chargeSummary.d.ts +0 -1
  82. package/dist/api/api-schemas/chargeSummary.d.ts.map +1 -1
  83. package/dist/api/api-schemas/chargeSummaryType.cjs +1 -2
  84. package/dist/api/api-schemas/chargeSummaryType.cjs.map +1 -1
  85. package/dist/api/api-schemas/chargeSummaryType.d.cts +4 -4
  86. package/dist/api/api-schemas/chargeSummaryType.d.cts.map +1 -1
  87. package/dist/api/api-schemas/chargeSummaryType.d.ts +4 -4
  88. package/dist/api/api-schemas/chargeSummaryType.d.ts.map +1 -1
  89. package/dist/api/api-schemas/chargeSummaryType.js +1 -1
  90. package/dist/api/api-schemas/chargeSummaryType.js.map +1 -1
  91. package/dist/api/api-schemas/chargesGetResponse.d.cts +0 -1
  92. package/dist/api/api-schemas/chargesGetResponse.d.cts.map +1 -1
  93. package/dist/api/api-schemas/chargesGetResponse.d.ts +0 -1
  94. package/dist/api/api-schemas/chargesGetResponse.d.ts.map +1 -1
  95. package/dist/api/api-schemas/detachAssetParams.d.cts +0 -1
  96. package/dist/api/api-schemas/detachAssetParams.d.cts.map +1 -1
  97. package/dist/api/api-schemas/detachAssetParams.d.ts +0 -1
  98. package/dist/api/api-schemas/detachAssetParams.d.ts.map +1 -1
  99. package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts +4 -4
  100. package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts.map +1 -1
  101. package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts +4 -4
  102. package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts.map +1 -1
  103. package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts +0 -1
  104. package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts.map +1 -1
  105. package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts +0 -1
  106. package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts.map +1 -1
  107. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs +1 -2
  108. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs.map +1 -1
  109. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts +4 -4
  110. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts.map +1 -1
  111. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts +4 -4
  112. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts.map +1 -1
  113. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js +1 -1
  114. package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js.map +1 -1
  115. package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts +0 -1
  116. package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts.map +1 -1
  117. package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts +0 -1
  118. package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts.map +1 -1
  119. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs +1 -2
  120. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs.map +1 -1
  121. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts +4 -4
  122. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts.map +1 -1
  123. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts +4 -4
  124. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts.map +1 -1
  125. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js +1 -1
  126. package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js.map +1 -1
  127. package/dist/api/api-schemas/getActionsParams.d.cts +1 -2
  128. package/dist/api/api-schemas/getActionsParams.d.cts.map +1 -1
  129. package/dist/api/api-schemas/getActionsParams.d.ts +1 -2
  130. package/dist/api/api-schemas/getActionsParams.d.ts.map +1 -1
  131. package/dist/api/api-schemas/getAssetParams.d.cts +0 -1
  132. package/dist/api/api-schemas/getAssetParams.d.cts.map +1 -1
  133. package/dist/api/api-schemas/getAssetParams.d.ts +0 -1
  134. package/dist/api/api-schemas/getAssetParams.d.ts.map +1 -1
  135. package/dist/api/api-schemas/getChargesParams.d.cts +0 -1
  136. package/dist/api/api-schemas/getChargesParams.d.cts.map +1 -1
  137. package/dist/api/api-schemas/getChargesParams.d.ts +0 -1
  138. package/dist/api/api-schemas/getChargesParams.d.ts.map +1 -1
  139. package/dist/api/api-schemas/getOrganisationChargesParams.d.cts +0 -1
  140. package/dist/api/api-schemas/getOrganisationChargesParams.d.cts.map +1 -1
  141. package/dist/api/api-schemas/getOrganisationChargesParams.d.ts +0 -1
  142. package/dist/api/api-schemas/getOrganisationChargesParams.d.ts.map +1 -1
  143. package/dist/api/api-schemas/getOrganisationsParams.d.cts +0 -1
  144. package/dist/api/api-schemas/getOrganisationsParams.d.cts.map +1 -1
  145. package/dist/api/api-schemas/getOrganisationsParams.d.ts +0 -1
  146. package/dist/api/api-schemas/getOrganisationsParams.d.ts.map +1 -1
  147. package/dist/api/api-schemas/getProductChargesParams.d.cts +0 -1
  148. package/dist/api/api-schemas/getProductChargesParams.d.cts.map +1 -1
  149. package/dist/api/api-schemas/getProductChargesParams.d.ts +0 -1
  150. package/dist/api/api-schemas/getProductChargesParams.d.ts.map +1 -1
  151. package/dist/api/api-schemas/getUnitChargesParams.d.cts +0 -1
  152. package/dist/api/api-schemas/getUnitChargesParams.d.cts.map +1 -1
  153. package/dist/api/api-schemas/getUnitChargesParams.d.ts +0 -1
  154. package/dist/api/api-schemas/getUnitChargesParams.d.ts.map +1 -1
  155. package/dist/api/api-schemas/getUnitsParams.d.cts +0 -1
  156. package/dist/api/api-schemas/getUnitsParams.d.cts.map +1 -1
  157. package/dist/api/api-schemas/getUnitsParams.d.ts +0 -1
  158. package/dist/api/api-schemas/getUnitsParams.d.ts.map +1 -1
  159. package/dist/api/api-schemas/merchantDetail.d.cts +0 -1
  160. package/dist/api/api-schemas/merchantDetail.d.cts.map +1 -1
  161. package/dist/api/api-schemas/merchantDetail.d.ts +0 -1
  162. package/dist/api/api-schemas/merchantDetail.d.ts.map +1 -1
  163. package/dist/api/api-schemas/merchantDetailKind.cjs +1 -2
  164. package/dist/api/api-schemas/merchantDetailKind.cjs.map +1 -1
  165. package/dist/api/api-schemas/merchantDetailKind.d.cts +4 -4
  166. package/dist/api/api-schemas/merchantDetailKind.d.cts.map +1 -1
  167. package/dist/api/api-schemas/merchantDetailKind.d.ts +4 -4
  168. package/dist/api/api-schemas/merchantDetailKind.d.ts.map +1 -1
  169. package/dist/api/api-schemas/merchantDetailKind.js +1 -1
  170. package/dist/api/api-schemas/merchantDetailKind.js.map +1 -1
  171. package/dist/api/api-schemas/merchantGetResponse.d.cts +0 -1
  172. package/dist/api/api-schemas/merchantGetResponse.d.cts.map +1 -1
  173. package/dist/api/api-schemas/merchantGetResponse.d.ts +0 -1
  174. package/dist/api/api-schemas/merchantGetResponse.d.ts.map +1 -1
  175. package/dist/api/api-schemas/merchantSummary.d.cts +0 -1
  176. package/dist/api/api-schemas/merchantSummary.d.cts.map +1 -1
  177. package/dist/api/api-schemas/merchantSummary.d.ts +0 -1
  178. package/dist/api/api-schemas/merchantSummary.d.ts.map +1 -1
  179. package/dist/api/api-schemas/merchantSummaryKind.cjs +1 -2
  180. package/dist/api/api-schemas/merchantSummaryKind.cjs.map +1 -1
  181. package/dist/api/api-schemas/merchantSummaryKind.d.cts +4 -4
  182. package/dist/api/api-schemas/merchantSummaryKind.d.cts.map +1 -1
  183. package/dist/api/api-schemas/merchantSummaryKind.d.ts +4 -4
  184. package/dist/api/api-schemas/merchantSummaryKind.d.ts.map +1 -1
  185. package/dist/api/api-schemas/merchantSummaryKind.js +1 -1
  186. package/dist/api/api-schemas/merchantSummaryKind.js.map +1 -1
  187. package/dist/api/api-schemas/merchantsGetResponse.d.cts +1 -3
  188. package/dist/api/api-schemas/merchantsGetResponse.d.cts.map +1 -1
  189. package/dist/api/api-schemas/merchantsGetResponse.d.ts +1 -3
  190. package/dist/api/api-schemas/merchantsGetResponse.d.ts.map +1 -1
  191. package/dist/api/api-schemas/organisationAllDetail.d.cts +0 -1
  192. package/dist/api/api-schemas/organisationAllDetail.d.cts.map +1 -1
  193. package/dist/api/api-schemas/organisationAllDetail.d.ts +0 -1
  194. package/dist/api/api-schemas/organisationAllDetail.d.ts.map +1 -1
  195. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs +1 -2
  196. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs.map +1 -1
  197. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts +4 -4
  198. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts.map +1 -1
  199. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts +4 -4
  200. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts.map +1 -1
  201. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js +1 -1
  202. package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js.map +1 -1
  203. package/dist/api/api-schemas/organisationChargeSummary.d.cts +0 -1
  204. package/dist/api/api-schemas/organisationChargeSummary.d.cts.map +1 -1
  205. package/dist/api/api-schemas/organisationChargeSummary.d.ts +0 -1
  206. package/dist/api/api-schemas/organisationChargeSummary.d.ts.map +1 -1
  207. package/dist/api/api-schemas/organisationChargesGetResponse.d.cts +0 -1
  208. package/dist/api/api-schemas/organisationChargesGetResponse.d.cts.map +1 -1
  209. package/dist/api/api-schemas/organisationChargesGetResponse.d.ts +0 -1
  210. package/dist/api/api-schemas/organisationChargesGetResponse.d.ts.map +1 -1
  211. package/dist/api/api-schemas/organisationDetail.d.cts +0 -1
  212. package/dist/api/api-schemas/organisationDetail.d.cts.map +1 -1
  213. package/dist/api/api-schemas/organisationDetail.d.ts +0 -1
  214. package/dist/api/api-schemas/organisationDetail.d.ts.map +1 -1
  215. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs +1 -2
  216. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs.map +1 -1
  217. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts +4 -4
  218. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts.map +1 -1
  219. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts +4 -4
  220. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts.map +1 -1
  221. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js +1 -1
  222. package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js.map +1 -1
  223. package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts +3 -7
  224. package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts.map +1 -1
  225. package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts +3 -7
  226. package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts.map +1 -1
  227. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs +1 -2
  228. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs.map +1 -1
  229. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts +4 -4
  230. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts.map +1 -1
  231. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts +4 -4
  232. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts.map +1 -1
  233. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js +1 -1
  234. package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js.map +1 -1
  235. package/dist/api/api-schemas/organisationGetResponse.d.cts +0 -1
  236. package/dist/api/api-schemas/organisationGetResponse.d.cts.map +1 -1
  237. package/dist/api/api-schemas/organisationGetResponse.d.ts +0 -1
  238. package/dist/api/api-schemas/organisationGetResponse.d.ts.map +1 -1
  239. package/dist/api/api-schemas/organisationPatchBodyBody.d.cts +6 -5
  240. package/dist/api/api-schemas/organisationPatchBodyBody.d.cts.map +1 -1
  241. package/dist/api/api-schemas/organisationPatchBodyBody.d.ts +6 -5
  242. package/dist/api/api-schemas/organisationPatchBodyBody.d.ts.map +1 -1
  243. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs +1 -2
  244. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  245. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts +6 -6
  246. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
  247. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts +6 -6
  248. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
  249. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js +1 -1
  250. package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
  251. package/dist/api/api-schemas/organisationPostBodyBody.d.cts +2 -5
  252. package/dist/api/api-schemas/organisationPostBodyBody.d.cts.map +1 -1
  253. package/dist/api/api-schemas/organisationPostBodyBody.d.ts +2 -5
  254. package/dist/api/api-schemas/organisationPostBodyBody.d.ts.map +1 -1
  255. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs +1 -2
  256. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  257. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts +4 -4
  258. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
  259. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts +4 -4
  260. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
  261. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js +1 -1
  262. package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js.map +1 -1
  263. package/dist/api/api-schemas/organisationPostResponse.d.cts +4 -4
  264. package/dist/api/api-schemas/organisationPostResponse.d.cts.map +1 -1
  265. package/dist/api/api-schemas/organisationPostResponse.d.ts +4 -4
  266. package/dist/api/api-schemas/organisationPostResponse.d.ts.map +1 -1
  267. package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts +0 -1
  268. package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts.map +1 -1
  269. package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts +0 -1
  270. package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts.map +1 -1
  271. package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts +1 -3
  272. package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts.map +1 -1
  273. package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts +1 -3
  274. package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts.map +1 -1
  275. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs +1 -2
  276. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  277. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts +4 -4
  278. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
  279. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts +4 -4
  280. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
  281. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js +1 -1
  282. package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js.map +1 -1
  283. package/dist/api/api-schemas/organisationUnitPostResponse.d.cts +4 -4
  284. package/dist/api/api-schemas/organisationUnitPostResponse.d.cts.map +1 -1
  285. package/dist/api/api-schemas/organisationUnitPostResponse.d.ts +4 -4
  286. package/dist/api/api-schemas/organisationUnitPostResponse.d.ts.map +1 -1
  287. package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts +1 -3
  288. package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts.map +1 -1
  289. package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts +1 -3
  290. package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts.map +1 -1
  291. package/dist/api/api-schemas/organisationsGetResponse.d.cts +0 -1
  292. package/dist/api/api-schemas/organisationsGetResponse.d.cts.map +1 -1
  293. package/dist/api/api-schemas/organisationsGetResponse.d.ts +0 -1
  294. package/dist/api/api-schemas/organisationsGetResponse.d.ts.map +1 -1
  295. package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts +4 -4
  296. package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts.map +1 -1
  297. package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts +4 -4
  298. package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts.map +1 -1
  299. package/dist/api/api-schemas/personalUnitPutResponse.d.cts +4 -4
  300. package/dist/api/api-schemas/personalUnitPutResponse.d.cts.map +1 -1
  301. package/dist/api/api-schemas/personalUnitPutResponse.d.ts +4 -4
  302. package/dist/api/api-schemas/personalUnitPutResponse.d.ts.map +1 -1
  303. package/dist/api/api-schemas/processingChargeItem.d.cts +0 -1
  304. package/dist/api/api-schemas/processingChargeItem.d.cts.map +1 -1
  305. package/dist/api/api-schemas/processingChargeItem.d.ts +0 -1
  306. package/dist/api/api-schemas/processingChargeItem.d.ts.map +1 -1
  307. package/dist/api/api-schemas/processingCharges.d.cts +0 -1
  308. package/dist/api/api-schemas/processingCharges.d.cts.map +1 -1
  309. package/dist/api/api-schemas/processingCharges.d.ts +0 -1
  310. package/dist/api/api-schemas/processingCharges.d.ts.map +1 -1
  311. package/dist/api/api-schemas/processingChargesMerchantKind.cjs +1 -2
  312. package/dist/api/api-schemas/processingChargesMerchantKind.cjs.map +1 -1
  313. package/dist/api/api-schemas/processingChargesMerchantKind.d.cts +4 -4
  314. package/dist/api/api-schemas/processingChargesMerchantKind.d.cts.map +1 -1
  315. package/dist/api/api-schemas/processingChargesMerchantKind.d.ts +4 -4
  316. package/dist/api/api-schemas/processingChargesMerchantKind.d.ts.map +1 -1
  317. package/dist/api/api-schemas/processingChargesMerchantKind.js +1 -1
  318. package/dist/api/api-schemas/processingChargesMerchantKind.js.map +1 -1
  319. package/dist/api/api-schemas/productChargesGetResponse.d.cts +0 -1
  320. package/dist/api/api-schemas/productChargesGetResponse.d.cts.map +1 -1
  321. package/dist/api/api-schemas/productChargesGetResponse.d.ts +0 -1
  322. package/dist/api/api-schemas/productChargesGetResponse.d.ts.map +1 -1
  323. package/dist/api/api-schemas/productChargesGetResponseProductType.cjs +1 -2
  324. package/dist/api/api-schemas/productChargesGetResponseProductType.cjs.map +1 -1
  325. package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts +4 -4
  326. package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts.map +1 -1
  327. package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts +4 -4
  328. package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts.map +1 -1
  329. package/dist/api/api-schemas/productChargesGetResponseProductType.js +1 -1
  330. package/dist/api/api-schemas/productChargesGetResponseProductType.js.map +1 -1
  331. package/dist/api/api-schemas/productClaimDetail.d.cts +6 -8
  332. package/dist/api/api-schemas/productClaimDetail.d.cts.map +1 -1
  333. package/dist/api/api-schemas/productClaimDetail.d.ts +6 -8
  334. package/dist/api/api-schemas/productClaimDetail.d.ts.map +1 -1
  335. package/dist/api/api-schemas/productCoinsDetail.d.cts +4 -4
  336. package/dist/api/api-schemas/productCoinsDetail.d.cts.map +1 -1
  337. package/dist/api/api-schemas/productCoinsDetail.d.ts +4 -4
  338. package/dist/api/api-schemas/productCoinsDetail.d.ts.map +1 -1
  339. package/dist/api/api-schemas/productDetail.d.cts +5 -10
  340. package/dist/api/api-schemas/productDetail.d.cts.map +1 -1
  341. package/dist/api/api-schemas/productDetail.d.ts +5 -10
  342. package/dist/api/api-schemas/productDetail.d.ts.map +1 -1
  343. package/dist/api/api-schemas/productDetailFlavour.cjs +1 -2
  344. package/dist/api/api-schemas/productDetailFlavour.cjs.map +1 -1
  345. package/dist/api/api-schemas/productDetailFlavour.d.cts +4 -5
  346. package/dist/api/api-schemas/productDetailFlavour.d.cts.map +1 -1
  347. package/dist/api/api-schemas/productDetailFlavour.d.ts +4 -5
  348. package/dist/api/api-schemas/productDetailFlavour.d.ts.map +1 -1
  349. package/dist/api/api-schemas/productDetailFlavour.js +1 -1
  350. package/dist/api/api-schemas/productDetailFlavour.js.map +1 -1
  351. package/dist/api/api-schemas/productDetailType.cjs +1 -2
  352. package/dist/api/api-schemas/productDetailType.cjs.map +1 -1
  353. package/dist/api/api-schemas/productDetailType.d.cts +4 -5
  354. package/dist/api/api-schemas/productDetailType.d.cts.map +1 -1
  355. package/dist/api/api-schemas/productDetailType.d.ts +4 -5
  356. package/dist/api/api-schemas/productDetailType.d.ts.map +1 -1
  357. package/dist/api/api-schemas/productDetailType.js +1 -1
  358. package/dist/api/api-schemas/productDetailType.js.map +1 -1
  359. package/dist/api/api-schemas/productDmProjectTier.d.cts +0 -1
  360. package/dist/api/api-schemas/productDmProjectTier.d.cts.map +1 -1
  361. package/dist/api/api-schemas/productDmProjectTier.d.ts +0 -1
  362. package/dist/api/api-schemas/productDmProjectTier.d.ts.map +1 -1
  363. package/dist/api/api-schemas/productDmStorage.d.cts +0 -1
  364. package/dist/api/api-schemas/productDmStorage.d.cts.map +1 -1
  365. package/dist/api/api-schemas/productDmStorage.d.ts +0 -1
  366. package/dist/api/api-schemas/productDmStorage.d.ts.map +1 -1
  367. package/dist/api/api-schemas/productDmStorageDetail.d.cts +1 -2
  368. package/dist/api/api-schemas/productDmStorageDetail.d.cts.map +1 -1
  369. package/dist/api/api-schemas/productDmStorageDetail.d.ts +1 -2
  370. package/dist/api/api-schemas/productDmStorageDetail.d.ts.map +1 -1
  371. package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts +5 -7
  372. package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts.map +1 -1
  373. package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts +5 -7
  374. package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts.map +1 -1
  375. package/dist/api/api-schemas/productDmStorageDetailSize.d.cts +7 -11
  376. package/dist/api/api-schemas/productDmStorageDetailSize.d.cts.map +1 -1
  377. package/dist/api/api-schemas/productDmStorageDetailSize.d.ts +7 -11
  378. package/dist/api/api-schemas/productDmStorageDetailSize.d.ts.map +1 -1
  379. package/dist/api/api-schemas/productInstanceDetail.d.cts +0 -1
  380. package/dist/api/api-schemas/productInstanceDetail.d.cts.map +1 -1
  381. package/dist/api/api-schemas/productInstanceDetail.d.ts +0 -1
  382. package/dist/api/api-schemas/productInstanceDetail.d.ts.map +1 -1
  383. package/dist/api/api-schemas/productInstanceDetailCoins.d.cts +5 -7
  384. package/dist/api/api-schemas/productInstanceDetailCoins.d.cts.map +1 -1
  385. package/dist/api/api-schemas/productInstanceDetailCoins.d.ts +5 -7
  386. package/dist/api/api-schemas/productInstanceDetailCoins.d.ts.map +1 -1
  387. package/dist/api/api-schemas/productPatchBodyBody.d.cts +4 -4
  388. package/dist/api/api-schemas/productPatchBodyBody.d.cts.map +1 -1
  389. package/dist/api/api-schemas/productPatchBodyBody.d.ts +4 -4
  390. package/dist/api/api-schemas/productPatchBodyBody.d.ts.map +1 -1
  391. package/dist/api/api-schemas/productType.d.cts +0 -1
  392. package/dist/api/api-schemas/productType.d.cts.map +1 -1
  393. package/dist/api/api-schemas/productType.d.ts +0 -1
  394. package/dist/api/api-schemas/productType.d.ts.map +1 -1
  395. package/dist/api/api-schemas/productTypeServiceKind.cjs +1 -2
  396. package/dist/api/api-schemas/productTypeServiceKind.cjs.map +1 -1
  397. package/dist/api/api-schemas/productTypeServiceKind.d.cts +4 -4
  398. package/dist/api/api-schemas/productTypeServiceKind.d.cts.map +1 -1
  399. package/dist/api/api-schemas/productTypeServiceKind.d.ts +4 -4
  400. package/dist/api/api-schemas/productTypeServiceKind.d.ts.map +1 -1
  401. package/dist/api/api-schemas/productTypeServiceKind.js +1 -1
  402. package/dist/api/api-schemas/productTypeServiceKind.js.map +1 -1
  403. package/dist/api/api-schemas/productUnitGetResponse.d.cts +3 -3
  404. package/dist/api/api-schemas/productUnitGetResponse.d.cts.map +1 -1
  405. package/dist/api/api-schemas/productUnitGetResponse.d.ts +3 -3
  406. package/dist/api/api-schemas/productUnitGetResponse.d.ts.map +1 -1
  407. package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts +0 -1
  408. package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts.map +1 -1
  409. package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts +0 -1
  410. package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts.map +1 -1
  411. package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts +4 -4
  412. package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts.map +1 -1
  413. package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts +4 -4
  414. package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts.map +1 -1
  415. package/dist/api/api-schemas/productsGetResponse.d.cts +3 -3
  416. package/dist/api/api-schemas/productsGetResponse.d.cts.map +1 -1
  417. package/dist/api/api-schemas/productsGetResponse.d.ts +3 -3
  418. package/dist/api/api-schemas/productsGetResponse.d.ts.map +1 -1
  419. package/dist/api/api-schemas/productsGetTypesResponse.d.cts +0 -1
  420. package/dist/api/api-schemas/productsGetTypesResponse.d.cts.map +1 -1
  421. package/dist/api/api-schemas/productsGetTypesResponse.d.ts +0 -1
  422. package/dist/api/api-schemas/productsGetTypesResponse.d.ts.map +1 -1
  423. package/dist/api/api-schemas/qFormatParameter.cjs +1 -2
  424. package/dist/api/api-schemas/qFormatParameter.cjs.map +1 -1
  425. package/dist/api/api-schemas/qFormatParameter.d.cts +4 -4
  426. package/dist/api/api-schemas/qFormatParameter.d.cts.map +1 -1
  427. package/dist/api/api-schemas/qFormatParameter.d.ts +4 -4
  428. package/dist/api/api-schemas/qFormatParameter.d.ts.map +1 -1
  429. package/dist/api/api-schemas/qFormatParameter.js +1 -1
  430. package/dist/api/api-schemas/qFormatParameter.js.map +1 -1
  431. package/dist/api/api-schemas/qFromParameter.d.cts +4 -4
  432. package/dist/api/api-schemas/qFromParameter.d.cts.map +1 -1
  433. package/dist/api/api-schemas/qFromParameter.d.ts +4 -4
  434. package/dist/api/api-schemas/qFromParameter.d.ts.map +1 -1
  435. package/dist/api/api-schemas/qMIdParameter.d.cts +4 -4
  436. package/dist/api/api-schemas/qMIdParameter.d.cts.map +1 -1
  437. package/dist/api/api-schemas/qMIdParameter.d.ts +4 -4
  438. package/dist/api/api-schemas/qMIdParameter.d.ts.map +1 -1
  439. package/dist/api/api-schemas/qNameParameter.d.cts +4 -4
  440. package/dist/api/api-schemas/qNameParameter.d.cts.map +1 -1
  441. package/dist/api/api-schemas/qNameParameter.d.ts +4 -4
  442. package/dist/api/api-schemas/qNameParameter.d.ts.map +1 -1
  443. package/dist/api/api-schemas/qOrgIdParameter.d.cts +4 -4
  444. package/dist/api/api-schemas/qOrgIdParameter.d.cts.map +1 -1
  445. package/dist/api/api-schemas/qOrgIdParameter.d.ts +4 -4
  446. package/dist/api/api-schemas/qOrgIdParameter.d.ts.map +1 -1
  447. package/dist/api/api-schemas/qPbpParameter.d.cts +4 -4
  448. package/dist/api/api-schemas/qPbpParameter.d.cts.map +1 -1
  449. package/dist/api/api-schemas/qPbpParameter.d.ts +4 -4
  450. package/dist/api/api-schemas/qPbpParameter.d.ts.map +1 -1
  451. package/dist/api/api-schemas/qProductIdParameter.d.cts +4 -4
  452. package/dist/api/api-schemas/qProductIdParameter.d.cts.map +1 -1
  453. package/dist/api/api-schemas/qProductIdParameter.d.ts +4 -4
  454. package/dist/api/api-schemas/qProductIdParameter.d.ts.map +1 -1
  455. package/dist/api/api-schemas/qUnitIdParameter.d.cts +4 -4
  456. package/dist/api/api-schemas/qUnitIdParameter.d.cts.map +1 -1
  457. package/dist/api/api-schemas/qUnitIdParameter.d.ts +4 -4
  458. package/dist/api/api-schemas/qUnitIdParameter.d.ts.map +1 -1
  459. package/dist/api/api-schemas/qUntilParameter.d.cts +4 -4
  460. package/dist/api/api-schemas/qUntilParameter.d.cts.map +1 -1
  461. package/dist/api/api-schemas/qUntilParameter.d.ts +4 -4
  462. package/dist/api/api-schemas/qUntilParameter.d.ts.map +1 -1
  463. package/dist/api/api-schemas/qUserIdParameter.d.cts +4 -4
  464. package/dist/api/api-schemas/qUserIdParameter.d.cts.map +1 -1
  465. package/dist/api/api-schemas/qUserIdParameter.d.ts +4 -4
  466. package/dist/api/api-schemas/qUserIdParameter.d.ts.map +1 -1
  467. package/dist/api/api-schemas/stateGetVersionResponse.d.cts +5 -6
  468. package/dist/api/api-schemas/stateGetVersionResponse.d.cts.map +1 -1
  469. package/dist/api/api-schemas/stateGetVersionResponse.d.ts +5 -6
  470. package/dist/api/api-schemas/stateGetVersionResponse.d.ts.map +1 -1
  471. package/dist/api/api-schemas/storageChargeItem.d.cts +0 -1
  472. package/dist/api/api-schemas/storageChargeItem.d.cts.map +1 -1
  473. package/dist/api/api-schemas/storageChargeItem.d.ts +0 -1
  474. package/dist/api/api-schemas/storageChargeItem.d.ts.map +1 -1
  475. package/dist/api/api-schemas/storageCharges.d.cts +0 -1
  476. package/dist/api/api-schemas/storageCharges.d.cts.map +1 -1
  477. package/dist/api/api-schemas/storageCharges.d.ts +0 -1
  478. package/dist/api/api-schemas/storageCharges.d.ts.map +1 -1
  479. package/dist/api/api-schemas/unitAllDetail.d.cts +0 -1
  480. package/dist/api/api-schemas/unitAllDetail.d.cts.map +1 -1
  481. package/dist/api/api-schemas/unitAllDetail.d.ts +0 -1
  482. package/dist/api/api-schemas/unitAllDetail.d.ts.map +1 -1
  483. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs +1 -2
  484. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs.map +1 -1
  485. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts +4 -4
  486. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts.map +1 -1
  487. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts +4 -4
  488. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts.map +1 -1
  489. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js +1 -1
  490. package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js.map +1 -1
  491. package/dist/api/api-schemas/unitChargeSummary.d.cts +0 -1
  492. package/dist/api/api-schemas/unitChargeSummary.d.cts.map +1 -1
  493. package/dist/api/api-schemas/unitChargeSummary.d.ts +0 -1
  494. package/dist/api/api-schemas/unitChargeSummary.d.ts.map +1 -1
  495. package/dist/api/api-schemas/unitChargesGetResponse.d.cts +0 -1
  496. package/dist/api/api-schemas/unitChargesGetResponse.d.cts.map +1 -1
  497. package/dist/api/api-schemas/unitChargesGetResponse.d.ts +0 -1
  498. package/dist/api/api-schemas/unitChargesGetResponse.d.ts.map +1 -1
  499. package/dist/api/api-schemas/unitDetail.d.cts +0 -1
  500. package/dist/api/api-schemas/unitDetail.d.cts.map +1 -1
  501. package/dist/api/api-schemas/unitDetail.d.ts +0 -1
  502. package/dist/api/api-schemas/unitDetail.d.ts.map +1 -1
  503. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs +1 -2
  504. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs.map +1 -1
  505. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts +4 -4
  506. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts.map +1 -1
  507. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts +4 -4
  508. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts.map +1 -1
  509. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js +1 -1
  510. package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js.map +1 -1
  511. package/dist/api/api-schemas/unitGetResponse.d.cts +0 -1
  512. package/dist/api/api-schemas/unitGetResponse.d.cts.map +1 -1
  513. package/dist/api/api-schemas/unitGetResponse.d.ts +0 -1
  514. package/dist/api/api-schemas/unitGetResponse.d.ts.map +1 -1
  515. package/dist/api/api-schemas/unitPatchBodyBody.d.cts +6 -5
  516. package/dist/api/api-schemas/unitPatchBodyBody.d.cts.map +1 -1
  517. package/dist/api/api-schemas/unitPatchBodyBody.d.ts +6 -5
  518. package/dist/api/api-schemas/unitPatchBodyBody.d.ts.map +1 -1
  519. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs +1 -2
  520. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
  521. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts +6 -6
  522. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
  523. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts +6 -6
  524. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
  525. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js +1 -1
  526. package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
  527. package/dist/api/api-schemas/unitProductChargeSummary.d.cts +0 -1
  528. package/dist/api/api-schemas/unitProductChargeSummary.d.cts.map +1 -1
  529. package/dist/api/api-schemas/unitProductChargeSummary.d.ts +0 -1
  530. package/dist/api/api-schemas/unitProductChargeSummary.d.ts.map +1 -1
  531. package/dist/api/api-schemas/unitProductPostBodyBody.d.cts +7 -6
  532. package/dist/api/api-schemas/unitProductPostBodyBody.d.cts.map +1 -1
  533. package/dist/api/api-schemas/unitProductPostBodyBody.d.ts +7 -6
  534. package/dist/api/api-schemas/unitProductPostBodyBody.d.ts.map +1 -1
  535. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs +1 -2
  536. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs.map +1 -1
  537. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts +4 -4
  538. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts.map +1 -1
  539. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts +4 -4
  540. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts.map +1 -1
  541. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js +1 -1
  542. package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js.map +1 -1
  543. package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs +1 -2
  544. package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs.map +1 -1
  545. package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts +6 -6
  546. package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts.map +1 -1
  547. package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts +6 -6
  548. package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts.map +1 -1
  549. package/dist/api/api-schemas/unitProductPostBodyBodyType.js +1 -1
  550. package/dist/api/api-schemas/unitProductPostBodyBodyType.js.map +1 -1
  551. package/dist/api/api-schemas/unitProductPostResponse.d.cts +4 -4
  552. package/dist/api/api-schemas/unitProductPostResponse.d.cts.map +1 -1
  553. package/dist/api/api-schemas/unitProductPostResponse.d.ts +4 -4
  554. package/dist/api/api-schemas/unitProductPostResponse.d.ts.map +1 -1
  555. package/dist/api/api-schemas/unitsGetResponse.d.cts +1 -3
  556. package/dist/api/api-schemas/unitsGetResponse.d.cts.map +1 -1
  557. package/dist/api/api-schemas/unitsGetResponse.d.ts +1 -3
  558. package/dist/api/api-schemas/unitsGetResponse.d.ts.map +1 -1
  559. package/dist/api/api-schemas/userAccountDetail.d.cts +0 -1
  560. package/dist/api/api-schemas/userAccountDetail.d.cts.map +1 -1
  561. package/dist/api/api-schemas/userAccountDetail.d.ts +0 -1
  562. package/dist/api/api-schemas/userAccountDetail.d.ts.map +1 -1
  563. package/dist/api/api-schemas/userAccountGetResponse.d.cts +0 -1
  564. package/dist/api/api-schemas/userAccountGetResponse.d.cts.map +1 -1
  565. package/dist/api/api-schemas/userAccountGetResponse.d.ts +0 -1
  566. package/dist/api/api-schemas/userAccountGetResponse.d.ts.map +1 -1
  567. package/dist/api/api-schemas/userDetail.d.cts +4 -4
  568. package/dist/api/api-schemas/userDetail.d.cts.map +1 -1
  569. package/dist/api/api-schemas/userDetail.d.ts +4 -4
  570. package/dist/api/api-schemas/userDetail.d.ts.map +1 -1
  571. package/dist/api/api-schemas/usersGetResponse.d.cts +1 -3
  572. package/dist/api/api-schemas/usersGetResponse.d.cts.map +1 -1
  573. package/dist/api/api-schemas/usersGetResponse.d.ts +1 -3
  574. package/dist/api/api-schemas/usersGetResponse.d.ts.map +1 -1
  575. package/dist/api/asset/asset.cjs +70 -70
  576. package/dist/api/asset/asset.cjs.map +1 -1
  577. package/dist/api/asset/asset.d.cts +43 -52
  578. package/dist/api/asset/asset.d.cts.map +1 -1
  579. package/dist/api/asset/asset.d.ts +43 -52
  580. package/dist/api/asset/asset.d.ts.map +1 -1
  581. package/dist/api/asset/asset.fetch.cjs +91 -32
  582. package/dist/api/asset/asset.fetch.cjs.map +1 -1
  583. package/dist/api/asset/asset.fetch.d.cts +73 -82
  584. package/dist/api/asset/asset.fetch.d.cts.map +1 -1
  585. package/dist/api/asset/asset.fetch.d.ts +73 -82
  586. package/dist/api/asset/asset.fetch.d.ts.map +1 -1
  587. package/dist/api/asset/asset.fetch.js +81 -22
  588. package/dist/api/asset/asset.fetch.js.map +1 -1
  589. package/dist/api/asset/asset.js +60 -60
  590. package/dist/api/asset/asset.js.map +1 -1
  591. package/dist/api/charges/charges.cjs +46 -53
  592. package/dist/api/charges/charges.cjs.map +1 -1
  593. package/dist/api/charges/charges.d.cts +50 -52
  594. package/dist/api/charges/charges.d.cts.map +1 -1
  595. package/dist/api/charges/charges.d.ts +50 -52
  596. package/dist/api/charges/charges.d.ts.map +1 -1
  597. package/dist/api/charges/charges.fetch.cjs +66 -40
  598. package/dist/api/charges/charges.fetch.cjs.map +1 -1
  599. package/dist/api/charges/charges.fetch.d.cts +66 -68
  600. package/dist/api/charges/charges.fetch.d.cts.map +1 -1
  601. package/dist/api/charges/charges.fetch.d.ts +66 -68
  602. package/dist/api/charges/charges.fetch.d.ts.map +1 -1
  603. package/dist/api/charges/charges.fetch.js +63 -37
  604. package/dist/api/charges/charges.fetch.js.map +1 -1
  605. package/dist/api/charges/charges.js +43 -50
  606. package/dist/api/charges/charges.js.map +1 -1
  607. package/dist/api/event-stream/event-stream.cjs +37 -37
  608. package/dist/api/event-stream/event-stream.cjs.map +1 -1
  609. package/dist/api/event-stream/event-stream.d.cts +25 -29
  610. package/dist/api/event-stream/event-stream.d.cts.map +1 -1
  611. package/dist/api/event-stream/event-stream.d.ts +25 -29
  612. package/dist/api/event-stream/event-stream.d.ts.map +1 -1
  613. package/dist/api/event-stream/event-stream.fetch.cjs +50 -23
  614. package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -1
  615. package/dist/api/event-stream/event-stream.fetch.d.cts +40 -44
  616. package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -1
  617. package/dist/api/event-stream/event-stream.fetch.d.ts +40 -44
  618. package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -1
  619. package/dist/api/event-stream/event-stream.fetch.js +45 -18
  620. package/dist/api/event-stream/event-stream.fetch.js.map +1 -1
  621. package/dist/api/event-stream/event-stream.js +32 -32
  622. package/dist/api/event-stream/event-stream.js.map +1 -1
  623. package/dist/api/merchant/merchant.cjs +27 -26
  624. package/dist/api/merchant/merchant.cjs.map +1 -1
  625. package/dist/api/merchant/merchant.d.cts +19 -21
  626. package/dist/api/merchant/merchant.d.cts.map +1 -1
  627. package/dist/api/merchant/merchant.d.ts +19 -21
  628. package/dist/api/merchant/merchant.d.ts.map +1 -1
  629. package/dist/api/merchant/merchant.fetch.cjs +35 -22
  630. package/dist/api/merchant/merchant.fetch.cjs.map +1 -1
  631. package/dist/api/merchant/merchant.fetch.d.cts +27 -29
  632. package/dist/api/merchant/merchant.fetch.d.cts.map +1 -1
  633. package/dist/api/merchant/merchant.fetch.d.ts +27 -29
  634. package/dist/api/merchant/merchant.fetch.d.ts.map +1 -1
  635. package/dist/api/merchant/merchant.fetch.js +32 -19
  636. package/dist/api/merchant/merchant.fetch.js.map +1 -1
  637. package/dist/api/merchant/merchant.js +24 -23
  638. package/dist/api/merchant/merchant.js.map +1 -1
  639. package/dist/api/organisation/organisation.cjs +52 -57
  640. package/dist/api/organisation/organisation.cjs.map +1 -1
  641. package/dist/api/organisation/organisation.d.cts +43 -49
  642. package/dist/api/organisation/organisation.d.cts.map +1 -1
  643. package/dist/api/organisation/organisation.d.ts +43 -49
  644. package/dist/api/organisation/organisation.d.ts.map +1 -1
  645. package/dist/api/organisation/organisation.fetch.cjs +71 -32
  646. package/dist/api/organisation/organisation.fetch.cjs.map +1 -1
  647. package/dist/api/organisation/organisation.fetch.d.cts +65 -71
  648. package/dist/api/organisation/organisation.fetch.d.cts.map +1 -1
  649. package/dist/api/organisation/organisation.fetch.d.ts +65 -71
  650. package/dist/api/organisation/organisation.fetch.d.ts.map +1 -1
  651. package/dist/api/organisation/organisation.fetch.js +65 -26
  652. package/dist/api/organisation/organisation.fetch.js.map +1 -1
  653. package/dist/api/organisation/organisation.js +46 -51
  654. package/dist/api/organisation/organisation.js.map +1 -1
  655. package/dist/api/product/product.cjs +56 -76
  656. package/dist/api/product/product.cjs.map +1 -1
  657. package/dist/api/product/product.d.cts +66 -75
  658. package/dist/api/product/product.d.cts.map +1 -1
  659. package/dist/api/product/product.d.ts +66 -75
  660. package/dist/api/product/product.d.ts.map +1 -1
  661. package/dist/api/product/product.fetch.cjs +86 -51
  662. package/dist/api/product/product.fetch.cjs.map +1 -1
  663. package/dist/api/product/product.fetch.d.cts +100 -109
  664. package/dist/api/product/product.fetch.d.cts.map +1 -1
  665. package/dist/api/product/product.fetch.d.ts +100 -109
  666. package/dist/api/product/product.fetch.d.ts.map +1 -1
  667. package/dist/api/product/product.fetch.js +80 -45
  668. package/dist/api/product/product.fetch.js.map +1 -1
  669. package/dist/api/product/product.js +50 -70
  670. package/dist/api/product/product.js.map +1 -1
  671. package/dist/api/state/state.cjs +22 -15
  672. package/dist/api/state/state.cjs.map +1 -1
  673. package/dist/api/state/state.d.cts +8 -8
  674. package/dist/api/state/state.d.cts.map +1 -1
  675. package/dist/api/state/state.d.ts +8 -8
  676. package/dist/api/state/state.d.ts.map +1 -1
  677. package/dist/api/state/state.fetch.cjs +25 -15
  678. package/dist/api/state/state.fetch.cjs.map +1 -1
  679. package/dist/api/state/state.fetch.d.cts +11 -11
  680. package/dist/api/state/state.fetch.d.cts.map +1 -1
  681. package/dist/api/state/state.fetch.d.ts +11 -11
  682. package/dist/api/state/state.fetch.d.ts.map +1 -1
  683. package/dist/api/state/state.fetch.js +22 -12
  684. package/dist/api/state/state.fetch.js.map +1 -1
  685. package/dist/api/state/state.js +19 -12
  686. package/dist/api/state/state.js.map +1 -1
  687. package/dist/api/unit/unit.cjs +75 -84
  688. package/dist/api/unit/unit.cjs.map +1 -1
  689. package/dist/api/unit/unit.d.cts +60 -70
  690. package/dist/api/unit/unit.d.cts.map +1 -1
  691. package/dist/api/unit/unit.d.ts +60 -70
  692. package/dist/api/unit/unit.d.ts.map +1 -1
  693. package/dist/api/unit/unit.fetch.cjs +101 -43
  694. package/dist/api/unit/unit.fetch.cjs.map +1 -1
  695. package/dist/api/unit/unit.fetch.d.cts +97 -107
  696. package/dist/api/unit/unit.fetch.d.cts.map +1 -1
  697. package/dist/api/unit/unit.fetch.d.ts +97 -107
  698. package/dist/api/unit/unit.fetch.d.ts.map +1 -1
  699. package/dist/api/unit/unit.fetch.js +91 -33
  700. package/dist/api/unit/unit.fetch.js.map +1 -1
  701. package/dist/api/unit/unit.js +65 -74
  702. package/dist/api/unit/unit.js.map +1 -1
  703. package/dist/api/user/user.cjs +64 -68
  704. package/dist/api/user/user.cjs.map +1 -1
  705. package/dist/api/user/user.d.cts +50 -57
  706. package/dist/api/user/user.d.cts.map +1 -1
  707. package/dist/api/user/user.d.ts +50 -57
  708. package/dist/api/user/user.d.ts.map +1 -1
  709. package/dist/api/user/user.fetch.cjs +80 -33
  710. package/dist/api/user/user.fetch.cjs.map +1 -1
  711. package/dist/api/user/user.fetch.d.cts +74 -81
  712. package/dist/api/user/user.fetch.d.cts.map +1 -1
  713. package/dist/api/user/user.fetch.d.ts +74 -81
  714. package/dist/api/user/user.fetch.d.ts.map +1 -1
  715. package/dist/api/user/user.fetch.js +73 -26
  716. package/dist/api/user/user.fetch.js.map +1 -1
  717. package/dist/api/user/user.js +57 -61
  718. package/dist/api/user/user.js.map +1 -1
  719. package/dist/custom-axios.cjs +3 -4
  720. package/dist/custom-axios.cjs.map +1 -1
  721. package/dist/custom-axios.d.cts +1 -3
  722. package/dist/custom-axios.d.cts.map +1 -1
  723. package/dist/custom-axios.d.ts +1 -3
  724. package/dist/custom-axios.d.ts.map +1 -1
  725. package/dist/custom-axios.js +2 -3
  726. package/dist/custom-axios.js.map +1 -1
  727. package/dist/custom-fetch.cjs +1 -2
  728. package/dist/custom-fetch.cjs.map +1 -1
  729. package/dist/custom-fetch.d.cts +0 -1
  730. package/dist/custom-fetch.d.cts.map +1 -1
  731. package/dist/custom-fetch.d.ts +0 -1
  732. package/dist/custom-fetch.d.ts.map +1 -1
  733. package/dist/custom-fetch.js +1 -1
  734. package/dist/custom-fetch.js.map +1 -1
  735. package/dist/index.cjs +27 -27
  736. package/dist/index.d.cts +9 -11
  737. package/dist/index.d.ts +9 -11
  738. package/dist/index.js +1 -2
  739. package/morph-query-keys.ts +2 -1
  740. package/orval.config.ts +9 -15
  741. package/package.json +13 -11
  742. package/pnpm-workspace.yaml +5 -1
  743. package/src/api/actions/actions.fetch.ts +44 -34
  744. package/src/api/actions/actions.ts +40 -30
  745. package/src/api/api-schemas/actionDetail.fetch.ts +22 -0
  746. package/src/api/api-schemas/actionDetail.ts +4 -4
  747. package/src/api/api-schemas/actionGetResponse.fetch.ts +18 -0
  748. package/src/api/api-schemas/actionGetResponse.ts +6 -8
  749. package/src/api/api-schemas/asError.fetch.ts +15 -0
  750. package/src/api/api-schemas/asError.ts +4 -4
  751. package/src/api/api-schemas/assetDetail.fetch.ts +27 -0
  752. package/src/api/api-schemas/assetDetail.ts +4 -4
  753. package/src/api/api-schemas/assetDetailScope.fetch.ts +20 -0
  754. package/src/api/api-schemas/assetDetailScope.ts +4 -5
  755. package/src/api/api-schemas/assetGetByIdResponse.fetch.ts +13 -0
  756. package/src/api/api-schemas/assetGetByIdResponse.ts +4 -4
  757. package/src/api/api-schemas/assetGetResponse.fetch.ts +18 -0
  758. package/src/api/api-schemas/assetGetResponse.ts +6 -8
  759. package/src/api/api-schemas/assetPatchBodyBody.fetch.ts +19 -0
  760. package/src/api/api-schemas/assetPatchBodyBody.ts +4 -4
  761. package/src/api/api-schemas/assetPostBodyBody.fetch.ts +32 -0
  762. package/src/api/api-schemas/assetPostBodyBody.ts +4 -4
  763. package/src/api/api-schemas/assetPostBodyBodyScope.fetch.ts +24 -0
  764. package/src/api/api-schemas/assetPostBodyBodyScope.ts +4 -5
  765. package/src/api/api-schemas/assetPostResponse.fetch.ts +15 -0
  766. package/src/api/api-schemas/assetPostResponse.ts +5 -6
  767. package/src/api/api-schemas/attachAssetParams.fetch.ts +19 -0
  768. package/src/api/api-schemas/attachAssetParams.ts +4 -4
  769. package/src/api/api-schemas/chargeAdditionalData.fetch.ts +14 -0
  770. package/src/api/api-schemas/chargeAdditionalData.ts +4 -4
  771. package/src/api/api-schemas/chargeSummary.fetch.ts +18 -0
  772. package/src/api/api-schemas/chargeSummary.ts +4 -4
  773. package/src/api/api-schemas/chargeSummaryType.fetch.ts +17 -0
  774. package/src/api/api-schemas/chargeSummaryType.ts +4 -5
  775. package/src/api/api-schemas/chargesGetResponse.fetch.ts +19 -0
  776. package/src/api/api-schemas/chargesGetResponse.ts +4 -4
  777. package/src/api/api-schemas/detachAssetParams.fetch.ts +19 -0
  778. package/src/api/api-schemas/detachAssetParams.ts +4 -4
  779. package/src/api/api-schemas/eventStreamGetPostResponse.fetch.ts +21 -0
  780. package/src/api/api-schemas/eventStreamGetPostResponse.ts +4 -4
  781. package/src/api/api-schemas/eventStreamPostBodyBody.fetch.ts +13 -0
  782. package/src/api/api-schemas/eventStreamPostBodyBody.ts +4 -4
  783. package/src/api/api-schemas/eventStreamPostBodyBodyFormat.fetch.ts +18 -0
  784. package/src/api/api-schemas/eventStreamPostBodyBodyFormat.ts +4 -5
  785. package/src/api/api-schemas/eventStreamVersionGetResponse.fetch.ts +20 -0
  786. package/src/api/api-schemas/eventStreamVersionGetResponse.ts +4 -4
  787. package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.fetch.ts +22 -0
  788. package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.ts +4 -5
  789. package/src/api/api-schemas/getActionsParams.fetch.ts +52 -0
  790. package/src/api/api-schemas/getActionsParams.ts +5 -5
  791. package/src/api/api-schemas/getAssetParams.fetch.ts +39 -0
  792. package/src/api/api-schemas/getAssetParams.ts +6 -6
  793. package/src/api/api-schemas/getChargesParams.fetch.ts +30 -0
  794. package/src/api/api-schemas/getChargesParams.ts +5 -5
  795. package/src/api/api-schemas/getOrganisationChargesParams.fetch.ts +30 -0
  796. package/src/api/api-schemas/getOrganisationChargesParams.ts +5 -5
  797. package/src/api/api-schemas/getOrganisationsParams.fetch.ts +18 -0
  798. package/src/api/api-schemas/getOrganisationsParams.ts +4 -4
  799. package/src/api/api-schemas/getProductChargesParams.fetch.ts +30 -0
  800. package/src/api/api-schemas/getProductChargesParams.ts +5 -5
  801. package/src/api/api-schemas/getUnitChargesParams.fetch.ts +30 -0
  802. package/src/api/api-schemas/getUnitChargesParams.ts +5 -5
  803. package/src/api/api-schemas/getUnitsParams.fetch.ts +18 -0
  804. package/src/api/api-schemas/getUnitsParams.ts +4 -4
  805. package/src/api/api-schemas/index.ts +12 -14
  806. package/src/api/api-schemas/merchantDetail.fetch.ts +23 -0
  807. package/src/api/api-schemas/merchantDetail.ts +4 -4
  808. package/src/api/api-schemas/merchantDetailKind.fetch.ts +17 -0
  809. package/src/api/api-schemas/merchantDetailKind.ts +4 -5
  810. package/src/api/api-schemas/merchantGetResponse.fetch.ts +13 -0
  811. package/src/api/api-schemas/merchantGetResponse.ts +4 -4
  812. package/src/api/api-schemas/merchantSummary.fetch.ts +20 -0
  813. package/src/api/api-schemas/merchantSummary.ts +4 -4
  814. package/src/api/api-schemas/merchantSummaryKind.fetch.ts +17 -0
  815. package/src/api/api-schemas/merchantSummaryKind.ts +4 -5
  816. package/src/api/api-schemas/merchantsGetResponse.fetch.ts +17 -0
  817. package/src/api/api-schemas/merchantsGetResponse.ts +5 -6
  818. package/src/api/api-schemas/organisationAllDetail.fetch.ts +30 -0
  819. package/src/api/api-schemas/organisationAllDetail.ts +4 -4
  820. package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.fetch.ts +23 -0
  821. package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.ts +4 -5
  822. package/src/api/api-schemas/organisationChargeSummary.fetch.ts +17 -0
  823. package/src/api/api-schemas/organisationChargeSummary.ts +4 -4
  824. package/src/api/api-schemas/organisationChargesGetResponse.fetch.ts +20 -0
  825. package/src/api/api-schemas/organisationChargesGetResponse.ts +4 -4
  826. package/src/api/api-schemas/organisationDetail.fetch.ts +27 -0
  827. package/src/api/api-schemas/organisationDetail.ts +4 -4
  828. package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.fetch.ts +23 -0
  829. package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.ts +4 -5
  830. package/src/api/api-schemas/organisationGetDefaultResponse.fetch.ts +25 -0
  831. package/src/api/api-schemas/organisationGetDefaultResponse.ts +7 -10
  832. package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.fetch.ts +23 -0
  833. package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.ts +4 -5
  834. package/src/api/api-schemas/organisationGetResponse.fetch.ts +13 -0
  835. package/src/api/api-schemas/organisationGetResponse.ts +4 -4
  836. package/src/api/api-schemas/organisationPatchBodyBody.fetch.ts +22 -0
  837. package/src/api/api-schemas/organisationPatchBodyBody.ts +9 -7
  838. package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.fetch.ts +25 -0
  839. package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.ts +6 -7
  840. package/src/api/api-schemas/organisationPostBodyBody.fetch.ts +23 -0
  841. package/src/api/api-schemas/organisationPostBodyBody.ts +4 -4
  842. package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.fetch.ts +23 -0
  843. package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.ts +4 -5
  844. package/src/api/api-schemas/organisationPostResponse.fetch.ts +15 -0
  845. package/src/api/api-schemas/organisationPostResponse.ts +4 -4
  846. package/src/api/api-schemas/organisationUnitChargeSummary.fetch.ts +26 -0
  847. package/src/api/api-schemas/organisationUnitChargeSummary.ts +4 -4
  848. package/src/api/api-schemas/organisationUnitPostBodyBody.fetch.ts +27 -0
  849. package/src/api/api-schemas/organisationUnitPostBodyBody.ts +4 -4
  850. package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.fetch.ts +23 -0
  851. package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.ts +4 -5
  852. package/src/api/api-schemas/organisationUnitPostResponse.fetch.ts +15 -0
  853. package/src/api/api-schemas/organisationUnitPostResponse.ts +4 -4
  854. package/src/api/api-schemas/organisationUnitsGetResponse.fetch.ts +19 -0
  855. package/src/api/api-schemas/organisationUnitsGetResponse.ts +5 -6
  856. package/src/api/api-schemas/organisationsGetResponse.fetch.ts +17 -0
  857. package/src/api/api-schemas/organisationsGetResponse.ts +4 -4
  858. package/src/api/api-schemas/personalUnitPutBodyBody.fetch.ts +19 -0
  859. package/src/api/api-schemas/personalUnitPutBodyBody.ts +4 -4
  860. package/src/api/api-schemas/personalUnitPutResponse.fetch.ts +17 -0
  861. package/src/api/api-schemas/personalUnitPutResponse.ts +4 -4
  862. package/src/api/api-schemas/processingChargeItem.fetch.ts +25 -0
  863. package/src/api/api-schemas/processingChargeItem.ts +4 -4
  864. package/src/api/api-schemas/processingCharges.fetch.ts +25 -0
  865. package/src/api/api-schemas/processingCharges.ts +5 -5
  866. package/src/api/api-schemas/processingChargesMerchantKind.fetch.ts +15 -0
  867. package/src/api/api-schemas/processingChargesMerchantKind.ts +4 -5
  868. package/src/api/api-schemas/productChargesGetResponse.fetch.ts +36 -0
  869. package/src/api/api-schemas/productChargesGetResponse.ts +5 -5
  870. package/src/api/api-schemas/productChargesGetResponseProductType.fetch.ts +18 -0
  871. package/src/api/api-schemas/productChargesGetResponseProductType.ts +4 -5
  872. package/src/api/api-schemas/productClaimDetail.fetch.ts +17 -0
  873. package/src/api/api-schemas/productClaimDetail.ts +6 -8
  874. package/src/api/api-schemas/productCoinsDetail.fetch.ts +35 -0
  875. package/src/api/api-schemas/productCoinsDetail.ts +4 -4
  876. package/src/api/api-schemas/productDetail.fetch.ts +24 -0
  877. package/src/api/api-schemas/productDetail.ts +9 -13
  878. package/src/api/api-schemas/productDetailFlavour.fetch.ts +22 -0
  879. package/src/api/api-schemas/productDetailFlavour.ts +4 -6
  880. package/src/api/api-schemas/productDetailType.fetch.ts +20 -0
  881. package/src/api/api-schemas/productDetailType.ts +4 -6
  882. package/src/api/api-schemas/productDmProjectTier.fetch.ts +29 -0
  883. package/src/api/api-schemas/productDmProjectTier.ts +8 -8
  884. package/src/api/api-schemas/productDmStorage.fetch.ts +25 -0
  885. package/src/api/api-schemas/productDmStorage.ts +7 -7
  886. package/src/api/api-schemas/productDmStorageDetail.fetch.ts +17 -0
  887. package/src/api/api-schemas/productDmStorageDetail.ts +5 -5
  888. package/src/api/api-schemas/productDmStorageDetailCoins.fetch.ts +17 -0
  889. package/src/api/api-schemas/productDmStorageDetailCoins.ts +4 -4
  890. package/src/api/api-schemas/productDmStorageDetailSize.fetch.ts +21 -0
  891. package/src/api/api-schemas/productDmStorageDetailSize.ts +4 -4
  892. package/src/api/api-schemas/productInstanceDetail.fetch.ts +15 -0
  893. package/src/api/api-schemas/productInstanceDetail.ts +4 -4
  894. package/src/api/api-schemas/productInstanceDetailCoins.fetch.ts +15 -0
  895. package/src/api/api-schemas/productInstanceDetailCoins.ts +5 -6
  896. package/src/api/api-schemas/productPatchBodyBody.fetch.ts +28 -0
  897. package/src/api/api-schemas/productPatchBodyBody.ts +4 -4
  898. package/src/api/api-schemas/productType.fetch.ts +20 -0
  899. package/src/api/api-schemas/productType.ts +4 -4
  900. package/src/api/api-schemas/productTypeServiceKind.fetch.ts +18 -0
  901. package/src/api/api-schemas/productTypeServiceKind.ts +4 -5
  902. package/src/api/api-schemas/productUnitGetResponse.fetch.ts +17 -0
  903. package/src/api/api-schemas/productUnitGetResponse.ts +7 -6
  904. package/src/api/api-schemas/productsGetDefaultStorageCost.fetch.ts +15 -0
  905. package/src/api/api-schemas/productsGetDefaultStorageCost.ts +4 -4
  906. package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.fetch.ts +16 -0
  907. package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.ts +4 -4
  908. package/src/api/api-schemas/productsGetResponse.fetch.ts +18 -0
  909. package/src/api/api-schemas/productsGetResponse.ts +7 -6
  910. package/src/api/api-schemas/productsGetTypesResponse.fetch.ts +18 -0
  911. package/src/api/api-schemas/productsGetTypesResponse.ts +4 -4
  912. package/src/api/api-schemas/qFormatParameter.fetch.ts +17 -0
  913. package/src/api/api-schemas/qFormatParameter.ts +4 -5
  914. package/src/api/api-schemas/qFromParameter.fetch.ts +15 -0
  915. package/src/api/api-schemas/qFromParameter.ts +4 -4
  916. package/src/api/api-schemas/qMIdParameter.fetch.ts +15 -0
  917. package/src/api/api-schemas/qMIdParameter.ts +4 -4
  918. package/src/api/api-schemas/qNameParameter.fetch.ts +15 -0
  919. package/src/api/api-schemas/qNameParameter.ts +4 -4
  920. package/src/api/api-schemas/qOrgIdParameter.fetch.ts +15 -0
  921. package/src/api/api-schemas/qOrgIdParameter.ts +4 -4
  922. package/src/api/api-schemas/qPbpParameter.fetch.ts +15 -0
  923. package/src/api/api-schemas/qPbpParameter.ts +4 -4
  924. package/src/api/api-schemas/qProductIdParameter.fetch.ts +15 -0
  925. package/src/api/api-schemas/qProductIdParameter.ts +4 -4
  926. package/src/api/api-schemas/qUnitIdParameter.fetch.ts +15 -0
  927. package/src/api/api-schemas/qUnitIdParameter.ts +4 -4
  928. package/src/api/api-schemas/qUntilParameter.fetch.ts +15 -0
  929. package/src/api/api-schemas/qUntilParameter.ts +4 -4
  930. package/src/api/api-schemas/qUserIdParameter.fetch.ts +15 -0
  931. package/src/api/api-schemas/qUserIdParameter.ts +4 -4
  932. package/src/api/api-schemas/stateGetVersionResponse.fetch.ts +15 -0
  933. package/src/api/api-schemas/stateGetVersionResponse.ts +5 -6
  934. package/src/api/api-schemas/storageChargeItem.fetch.ts +24 -0
  935. package/src/api/api-schemas/storageChargeItem.ts +4 -4
  936. package/src/api/api-schemas/storageCharges.fetch.ts +16 -0
  937. package/src/api/api-schemas/storageCharges.ts +4 -4
  938. package/src/api/api-schemas/unitAllDetail.fetch.ts +32 -0
  939. package/src/api/api-schemas/unitAllDetail.ts +4 -4
  940. package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.fetch.ts +23 -0
  941. package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.ts +4 -5
  942. package/src/api/api-schemas/unitChargeSummary.fetch.ts +15 -0
  943. package/src/api/api-schemas/unitChargeSummary.ts +4 -4
  944. package/src/api/api-schemas/unitChargesGetResponse.fetch.ts +37 -0
  945. package/src/api/api-schemas/unitChargesGetResponse.ts +4 -4
  946. package/src/api/api-schemas/unitDetail.fetch.ts +29 -0
  947. package/src/api/api-schemas/unitDetail.ts +4 -4
  948. package/src/api/api-schemas/unitDetailDefaultProductPrivacy.fetch.ts +23 -0
  949. package/src/api/api-schemas/unitDetailDefaultProductPrivacy.ts +4 -5
  950. package/src/api/api-schemas/unitGetResponse.fetch.ts +13 -0
  951. package/src/api/api-schemas/unitGetResponse.ts +4 -4
  952. package/src/api/api-schemas/unitPatchBodyBody.fetch.ts +22 -0
  953. package/src/api/api-schemas/unitPatchBodyBody.ts +9 -7
  954. package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.fetch.ts +25 -0
  955. package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.ts +6 -7
  956. package/src/api/api-schemas/unitProductChargeSummary.fetch.ts +17 -0
  957. package/src/api/api-schemas/unitProductChargeSummary.ts +4 -4
  958. package/src/api/api-schemas/unitProductPostBodyBody.fetch.ts +38 -0
  959. package/src/api/api-schemas/unitProductPostBodyBody.ts +10 -8
  960. package/src/api/api-schemas/unitProductPostBodyBodyFlavour.fetch.ts +23 -0
  961. package/src/api/api-schemas/unitProductPostBodyBodyFlavour.ts +4 -5
  962. package/src/api/api-schemas/unitProductPostBodyBodyType.fetch.ts +23 -0
  963. package/src/api/api-schemas/unitProductPostBodyBodyType.ts +6 -7
  964. package/src/api/api-schemas/unitProductPostResponse.fetch.ts +15 -0
  965. package/src/api/api-schemas/unitProductPostResponse.ts +4 -4
  966. package/src/api/api-schemas/unitsGetResponse.fetch.ts +16 -0
  967. package/src/api/api-schemas/unitsGetResponse.ts +5 -6
  968. package/src/api/api-schemas/userAccountDetail.fetch.ts +19 -0
  969. package/src/api/api-schemas/userAccountDetail.ts +4 -4
  970. package/src/api/api-schemas/userAccountGetResponse.fetch.ts +13 -0
  971. package/src/api/api-schemas/userAccountGetResponse.ts +4 -4
  972. package/src/api/api-schemas/userDetail.fetch.ts +15 -0
  973. package/src/api/api-schemas/userDetail.ts +4 -4
  974. package/src/api/api-schemas/usersGetResponse.fetch.ts +21 -0
  975. package/src/api/api-schemas/usersGetResponse.ts +5 -6
  976. package/src/api/asset/asset.fetch.ts +121 -134
  977. package/src/api/asset/asset.ts +113 -104
  978. package/src/api/charges/charges.fetch.ts +134 -128
  979. package/src/api/charges/charges.ts +115 -109
  980. package/src/api/event-stream/event-stream.fetch.ts +73 -74
  981. package/src/api/event-stream/event-stream.ts +63 -60
  982. package/src/api/merchant/merchant.fetch.ts +65 -57
  983. package/src/api/merchant/merchant.ts +58 -50
  984. package/src/api/organisation/organisation.fetch.ts +113 -119
  985. package/src/api/organisation/organisation.ts +93 -96
  986. package/src/api/product/product.fetch.ts +178 -193
  987. package/src/api/product/product.ts +147 -159
  988. package/src/api/state/state.fetch.ts +37 -26
  989. package/src/api/state/state.ts +34 -23
  990. package/src/api/unit/unit.fetch.ts +162 -181
  991. package/src/api/unit/unit.ts +137 -143
  992. package/src/api/user/user.fetch.ts +129 -135
  993. package/src/api/user/user.ts +116 -112
  994. package/tsdown.config.ts +1 -1
  995. package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts +0 -12
  996. package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts.map +0 -1
  997. package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts +0 -12
  998. package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts.map +0 -1
  999. package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts +0 -9
  1000. package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts.map +0 -1
  1001. package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts +0 -9
  1002. package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts.map +0 -1
  1003. package/src/api/api-schemas/productUnitGetResponseProduct.ts +0 -17
  1004. package/src/api/api-schemas/productsGetResponseProductsItem.ts +0 -14
@@ -1 +1 @@
1
- {"version":3,"file":"organisation.fetch.cjs","names":["customFetch","queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>>","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createOrganisation>>,\n { data: OrganisationPostBodyBody }\n >","queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>>","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n >","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n { orgId: string }\n >","queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>>"],"sources":["../../../src/api/organisation/organisation.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA 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.7\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 { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets all the Organisations that you are a member of, or a specific Organisation by name.\n\nYou can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.\n\n * @summary Gets Organisations\n */\nexport type getOrganisationsResponse200 = { data: OrganisationsGetResponse; status: 200 };\n\nexport type getOrganisationsResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationsResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationsResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationsResponseSuccess = getOrganisationsResponse200 & { headers: Headers };\nexport type getOrganisationsResponseError = (\n | getOrganisationsResponse401\n | getOrganisationsResponse403\n | getOrganisationsResponse404\n) & { headers: Headers };\n\nexport type getOrganisationsResponse =\n | getOrganisationsResponseSuccess\n | getOrganisationsResponseError;\n\nexport const getGetOrganisationsUrl = (params?: GetOrganisationsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/organisation?${stringifiedParams}` : `/organisation`;\n};\n\nexport const getOrganisations = async (\n params?: GetOrganisationsParams,\n options?: RequestInit,\n): Promise<getOrganisationsResponse> => {\n return customFetch<getOrganisationsResponse>(getGetOrganisationsUrl(params), {\n ...options,\n method: \"GET\",\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 customFetch>;\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, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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 customFetch>;\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, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Creates a new Organisation.\n\nThe **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\nYou need admin rights to use this method\n\n * @summary Create a new organisation\n */\nexport type createOrganisationResponse201 = { data: OrganisationPostResponse; status: 201 };\n\nexport type createOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type createOrganisationResponse401 = { data: void; status: 401 };\n\nexport type createOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type createOrganisationResponseSuccess = createOrganisationResponse201 & {\n headers: Headers;\n};\nexport type createOrganisationResponseError = (\n | createOrganisationResponse400\n | createOrganisationResponse401\n | createOrganisationResponse403\n) & { headers: Headers };\n\nexport type createOrganisationResponse =\n | createOrganisationResponseSuccess\n | createOrganisationResponseError;\n\nexport const getCreateOrganisationUrl = () => {\n return `/organisation`;\n};\n\nexport const createOrganisation = async (\n organisationPostBodyBody: OrganisationPostBodyBody,\n options?: RequestInit,\n): Promise<createOrganisationResponse> => {\n return customFetch<createOrganisationResponse>(getCreateOrganisationUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPostBodyBody),\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 customFetch>;\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationOptions = getCreateOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, 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\nMembers of an Organisation's **Unit** do not have access to the Organisation.\n\n * @summary Gets an Organisation\n */\nexport type getOrganisationResponse200 = { data: OrganisationAllDetail; status: 200 };\n\nexport type getOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationResponseSuccess = getOrganisationResponse200 & { headers: Headers };\nexport type getOrganisationResponseError = (\n | getOrganisationResponse401\n | getOrganisationResponse403\n | getOrganisationResponse404\n) & { headers: Headers };\n\nexport type getOrganisationResponse = getOrganisationResponseSuccess | getOrganisationResponseError;\n\nexport const getGetOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\nexport const getOrganisation = async (\n orgId: string,\n options?: RequestInit,\n): Promise<getOrganisationResponse> => {\n return customFetch<getOrganisationResponse>(getGetOrganisationUrl(orgId), {\n ...options,\n method: \"GET\",\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 customFetch>;\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, { signal, ...requestOptions });\n\n return { queryKey, queryFn, enabled: !!orgId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationQueryOptions(orgId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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 customFetch>;\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, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.\n\nChanges 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\nYou have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.\n\n * @summary Adjust an existing Organisation\n */\nexport type patchOrganisationResponse200 = { data: void; status: 200 };\n\nexport type patchOrganisationResponse401 = { data: void; status: 401 };\n\nexport type patchOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type patchOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type patchOrganisationResponseSuccess = patchOrganisationResponse200 & { headers: Headers };\nexport type patchOrganisationResponseError = (\n | patchOrganisationResponse401\n | patchOrganisationResponse403\n | patchOrganisationResponse404\n) & { headers: Headers };\n\nexport type patchOrganisationResponse =\n | patchOrganisationResponseSuccess\n | patchOrganisationResponseError;\n\nexport const getPatchOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\nexport const patchOrganisation = async (\n orgId: string,\n organisationPatchBodyBody: OrganisationPatchBodyBody,\n options?: RequestInit,\n): Promise<patchOrganisationResponse> => {\n return customFetch<patchOrganisationResponse>(getPatchOrganisationUrl(orgId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPatchBodyBody),\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 customFetch>;\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationOptions = getPatchOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, 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\nYou need admin rights to use this method\n\n * @summary Deletes an Organisation\n */\nexport type deleteOrganisationResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationResponseSuccess = deleteOrganisationResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationResponseError = (\n | deleteOrganisationResponse400\n | deleteOrganisationResponse401\n | deleteOrganisationResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationResponse =\n | deleteOrganisationResponseSuccess\n | deleteOrganisationResponseError;\n\nexport const getDeleteOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\nexport const deleteOrganisation = async (\n orgId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationResponse> => {\n return customFetch<deleteOrganisationResponse>(getDeleteOrganisationUrl(orgId), {\n ...options,\n method: \"DELETE\",\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 },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n const mutationOptions = getDeleteOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.\n\nAny authorised user can see the Default Organisation.\n\n * @summary Gets the Default Organisation\n */\nexport type getDefaultOrganisationResponse200 = {\n data: OrganisationGetDefaultResponse;\n status: 200;\n};\n\nexport type getDefaultOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getDefaultOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getDefaultOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getDefaultOrganisationResponseSuccess = getDefaultOrganisationResponse200 & {\n headers: Headers;\n};\nexport type getDefaultOrganisationResponseError = (\n | getDefaultOrganisationResponse401\n | getDefaultOrganisationResponse403\n | getDefaultOrganisationResponse404\n) & { headers: Headers };\n\nexport type getDefaultOrganisationResponse =\n | getDefaultOrganisationResponseSuccess\n | getDefaultOrganisationResponseError;\n\nexport const getGetDefaultOrganisationUrl = () => {\n return `/default/organisation`;\n};\n\nexport const getDefaultOrganisation = async (\n options?: RequestInit,\n): Promise<getDefaultOrganisationResponse> => {\n return customFetch<getDefaultOrganisationResponse>(getGetDefaultOrganisationUrl(), {\n ...options,\n method: \"GET\",\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 customFetch>;\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({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetDefaultOrganisationQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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 customFetch>;\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({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\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 customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"organisation.fetch.cjs","names":["customFetch"],"sources":["../../../src/api/organisation/organisation.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.7\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 { 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 getOrganisationsResponse200 = { data: OrganisationsGetResponse; status: 200 };\n\nexport type getOrganisationsResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationsResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationsResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationsResponseSuccess = getOrganisationsResponse200 & { headers: Headers };\nexport type getOrganisationsResponseError = (\n | getOrganisationsResponse401\n | getOrganisationsResponse403\n | getOrganisationsResponse404\n) & { headers: Headers };\n\nexport type getOrganisationsResponse =\n | getOrganisationsResponseSuccess\n | getOrganisationsResponseError;\n\nexport const getGetOrganisationsUrl = (params?: GetOrganisationsParams) => {\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 ? `/organisation?${stringifiedParams}` : `/organisation`;\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 = async (\n params?: GetOrganisationsParams,\n options?: RequestInit,\n): Promise<getOrganisationsResponse> => {\n return customFetch<getOrganisationsResponse>(getGetOrganisationsUrl(params), {\n ...options,\n method: \"GET\",\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 customFetch>;\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, { signal, ...requestOptions });\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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, { signal, ...requestOptions });\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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\nexport type createOrganisationResponse201 = { data: OrganisationPostResponse; status: 201 };\n\nexport type createOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type createOrganisationResponse401 = { data: void; status: 401 };\n\nexport type createOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type createOrganisationResponseSuccess = createOrganisationResponse201 & {\n headers: Headers;\n};\nexport type createOrganisationResponseError = (\n | createOrganisationResponse400\n | createOrganisationResponse401\n | createOrganisationResponse403\n) & { headers: Headers };\n\nexport type createOrganisationResponse =\n | createOrganisationResponseSuccess\n | createOrganisationResponseError;\n\nexport const getCreateOrganisationUrl = () => {\n return `/organisation`;\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 = async (\n organisationPostBodyBody: OrganisationPostBodyBody,\n options?: RequestInit,\n): Promise<createOrganisationResponse> => {\n return customFetch<createOrganisationResponse>(getCreateOrganisationUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPostBodyBody),\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 customFetch>;\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 customFetch>;\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};\nexport type getOrganisationResponse200 = { data: OrganisationAllDetail; status: 200 };\n\nexport type getOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationResponseSuccess = getOrganisationResponse200 & { headers: Headers };\nexport type getOrganisationResponseError = (\n | getOrganisationResponse401\n | getOrganisationResponse403\n | getOrganisationResponse404\n) & { headers: Headers };\n\nexport type getOrganisationResponse = getOrganisationResponseSuccess | getOrganisationResponseError;\n\nexport const getGetOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\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 = async (\n orgId: string,\n options?: RequestInit,\n): Promise<getOrganisationResponse> => {\n return customFetch<getOrganisationResponse>(getGetOrganisationUrl(orgId), {\n ...options,\n method: \"GET\",\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 customFetch>;\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, { signal, ...requestOptions });\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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, { signal, ...requestOptions });\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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\nexport type patchOrganisationResponse200 = { data: void; status: 200 };\n\nexport type patchOrganisationResponse401 = { data: void; status: 401 };\n\nexport type patchOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type patchOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type patchOrganisationResponseSuccess = patchOrganisationResponse200 & { headers: Headers };\nexport type patchOrganisationResponseError = (\n | patchOrganisationResponse401\n | patchOrganisationResponse403\n | patchOrganisationResponse404\n) & { headers: Headers };\n\nexport type patchOrganisationResponse =\n | patchOrganisationResponseSuccess\n | patchOrganisationResponseError;\n\nexport const getPatchOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\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 = async (\n orgId: string,\n organisationPatchBodyBody: OrganisationPatchBodyBody,\n options?: RequestInit,\n): Promise<patchOrganisationResponse> => {\n return customFetch<patchOrganisationResponse>(getPatchOrganisationUrl(orgId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPatchBodyBody),\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 customFetch>;\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 customFetch>;\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};\nexport type deleteOrganisationResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationResponseSuccess = deleteOrganisationResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationResponseError = (\n | deleteOrganisationResponse400\n | deleteOrganisationResponse401\n | deleteOrganisationResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationResponse =\n | deleteOrganisationResponseSuccess\n | deleteOrganisationResponseError;\n\nexport const getDeleteOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\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 * You need admin rights to use this method\n * @summary Deletes an Organisation\n */\nexport const deleteOrganisation = async (\n orgId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationResponse> => {\n return customFetch<deleteOrganisationResponse>(getDeleteOrganisationUrl(orgId), {\n ...options,\n method: \"DELETE\",\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 },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\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 customFetch>;\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};\nexport type getDefaultOrganisationResponse200 = {\n data: OrganisationGetDefaultResponse;\n status: 200;\n};\n\nexport type getDefaultOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getDefaultOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getDefaultOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getDefaultOrganisationResponseSuccess = getDefaultOrganisationResponse200 & {\n headers: Headers;\n};\nexport type getDefaultOrganisationResponseError = (\n | getDefaultOrganisationResponse401\n | getDefaultOrganisationResponse403\n | getDefaultOrganisationResponse404\n) & { headers: Headers };\n\nexport type getDefaultOrganisationResponse =\n | getDefaultOrganisationResponseSuccess\n | getDefaultOrganisationResponseError;\n\nexport const getGetDefaultOrganisationUrl = () => {\n return `/default/organisation`;\n};\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 = async (\n options?: RequestInit,\n): Promise<getDefaultOrganisationResponse> => {\n return customFetch<getDefaultOrganisationResponse>(getGetDefaultOrganisationUrl(), {\n ...options,\n method: \"GET\",\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 customFetch>;\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({ signal, ...requestOptions });\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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({ signal, ...requestOptions });\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 customFetch>;\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 customFetch>;\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 customFetch>;\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 customFetch>;\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":"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"}
@@ -11,13 +11,6 @@ import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, InvalidateOp
11
11
 
12
12
  //#region src/api/organisation/organisation.fetch.d.ts
13
13
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
14
- /**
15
- * Gets all the Organisations that you are a member of, or a specific Organisation by name.
16
-
17
- You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.
18
-
19
- * @summary Gets Organisations
20
- */
21
14
  type getOrganisationsResponse200 = {
22
15
  data: OrganisationsGetResponse;
23
16
  status: 200;
@@ -42,13 +35,19 @@ type getOrganisationsResponseError = (getOrganisationsResponse401 | getOrganisat
42
35
  };
43
36
  type getOrganisationsResponse = getOrganisationsResponseSuccess | getOrganisationsResponseError;
44
37
  declare const getGetOrganisationsUrl: (params?: GetOrganisationsParams) => string;
38
+ /**
39
+ * Gets all the Organisations that you are a member of, or a specific Organisation by name.
40
+ *
41
+ * You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.
42
+ * @summary Gets Organisations
43
+ */
45
44
  declare const getOrganisations: (params?: GetOrganisationsParams, options?: RequestInit) => Promise<getOrganisationsResponse>;
46
45
  declare const getGetOrganisationsQueryKey: (params?: GetOrganisationsParams) => readonly ["account-server", "organisation", ...GetOrganisationsParams[]];
47
46
  declare const getGetOrganisationsQueryOptions: <TData = Awaited<ReturnType<typeof getOrganisations>>, TError = ErrorType<void | AsError>>(params?: GetOrganisationsParams, options?: {
48
47
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;
49
48
  request?: SecondParameter<typeof customFetch>;
50
49
  }) => UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData> & {
51
- queryKey: DataTag<QueryKey, TData>;
50
+ queryKey: DataTag<QueryKey, TData, TError>;
52
51
  };
53
52
  type GetOrganisationsQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisations>>>;
54
53
  type GetOrganisationsQueryError = ErrorType<void | AsError>;
@@ -56,19 +55,19 @@ declare function useGetOrganisations<TData = Awaited<ReturnType<typeof getOrgani
56
55
  query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, Awaited<ReturnType<typeof getOrganisations>>>, "initialData">;
57
56
  request?: SecondParameter<typeof customFetch>;
58
57
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
59
- queryKey: DataTag<QueryKey, TData>;
58
+ queryKey: DataTag<QueryKey, TData, TError>;
60
59
  };
61
60
  declare function useGetOrganisations<TData = Awaited<ReturnType<typeof getOrganisations>>, TError = ErrorType<void | AsError>>(params?: GetOrganisationsParams, options?: {
62
61
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, Awaited<ReturnType<typeof getOrganisations>>>, "initialData">;
63
62
  request?: SecondParameter<typeof customFetch>;
64
63
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
65
- queryKey: DataTag<QueryKey, TData>;
64
+ queryKey: DataTag<QueryKey, TData, TError>;
66
65
  };
67
66
  declare function useGetOrganisations<TData = Awaited<ReturnType<typeof getOrganisations>>, TError = ErrorType<void | AsError>>(params?: GetOrganisationsParams, options?: {
68
67
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;
69
68
  request?: SecondParameter<typeof customFetch>;
70
69
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
71
- queryKey: DataTag<QueryKey, TData>;
70
+ queryKey: DataTag<QueryKey, TData, TError>;
72
71
  };
73
72
  /**
74
73
  * @summary Gets Organisations
@@ -78,7 +77,7 @@ declare const getGetOrganisationsSuspenseQueryOptions: <TData = Awaited<ReturnTy
78
77
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;
79
78
  request?: SecondParameter<typeof customFetch>;
80
79
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData> & {
81
- queryKey: DataTag<QueryKey, TData>;
80
+ queryKey: DataTag<QueryKey, TData, TError>;
82
81
  };
83
82
  type GetOrganisationsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisations>>>;
84
83
  type GetOrganisationsSuspenseQueryError = ErrorType<void | AsError>;
@@ -86,29 +85,20 @@ declare function useGetOrganisationsSuspense<TData = Awaited<ReturnType<typeof g
86
85
  query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;
87
86
  request?: SecondParameter<typeof customFetch>;
88
87
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
89
- queryKey: DataTag<QueryKey, TData>;
88
+ queryKey: DataTag<QueryKey, TData, TError>;
90
89
  };
91
90
  declare function useGetOrganisationsSuspense<TData = Awaited<ReturnType<typeof getOrganisations>>, TError = ErrorType<void | AsError>>(params?: GetOrganisationsParams, options?: {
92
91
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;
93
92
  request?: SecondParameter<typeof customFetch>;
94
93
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
95
- queryKey: DataTag<QueryKey, TData>;
94
+ queryKey: DataTag<QueryKey, TData, TError>;
96
95
  };
97
96
  declare function useGetOrganisationsSuspense<TData = Awaited<ReturnType<typeof getOrganisations>>, TError = ErrorType<void | AsError>>(params?: GetOrganisationsParams, options?: {
98
97
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;
99
98
  request?: SecondParameter<typeof customFetch>;
100
99
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
101
- queryKey: DataTag<QueryKey, TData>;
100
+ queryKey: DataTag<QueryKey, TData, TError>;
102
101
  };
103
- /**
104
- * Creates a new Organisation.
105
-
106
- 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.
107
-
108
- You need admin rights to use this method
109
-
110
- * @summary Create a new organisation
111
- */
112
102
  type createOrganisationResponse201 = {
113
103
  data: OrganisationPostResponse;
114
104
  status: 201;
@@ -133,6 +123,14 @@ type createOrganisationResponseError = (createOrganisationResponse400 | createOr
133
123
  };
134
124
  type createOrganisationResponse = createOrganisationResponseSuccess | createOrganisationResponseError;
135
125
  declare const getCreateOrganisationUrl: () => string;
126
+ /**
127
+ * Creates a new Organisation.
128
+ *
129
+ * 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.
130
+ *
131
+ * You need admin rights to use this method
132
+ * @summary Create a new organisation
133
+ */
136
134
  declare const createOrganisation: (organisationPostBodyBody: OrganisationPostBodyBody, options?: RequestInit) => Promise<createOrganisationResponse>;
137
135
  declare const getCreateOrganisationMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
138
136
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof createOrganisation>>, TError, {
@@ -156,13 +154,6 @@ declare const useCreateOrganisation: <TError = ErrorType<AsError | void>, TConte
156
154
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createOrganisation>>, TError, {
157
155
  data: OrganisationPostBodyBody;
158
156
  }, TContext>;
159
- /**
160
- * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.
161
-
162
- Members of an Organisation's **Unit** do not have access to the Organisation.
163
-
164
- * @summary Gets an Organisation
165
- */
166
157
  type getOrganisationResponse200 = {
167
158
  data: OrganisationAllDetail;
168
159
  status: 200;
@@ -187,13 +178,19 @@ type getOrganisationResponseError = (getOrganisationResponse401 | getOrganisatio
187
178
  };
188
179
  type getOrganisationResponse = getOrganisationResponseSuccess | getOrganisationResponseError;
189
180
  declare const getGetOrganisationUrl: (orgId: string) => string;
181
+ /**
182
+ * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.
183
+ *
184
+ * Members of an Organisation's **Unit** do not have access to the Organisation.
185
+ * @summary Gets an Organisation
186
+ */
190
187
  declare const getOrganisation: (orgId: string, options?: RequestInit) => Promise<getOrganisationResponse>;
191
- declare const getGetOrganisationQueryKey: (orgId?: string) => readonly ["account-server", "organisation", string | undefined];
188
+ declare const getGetOrganisationQueryKey: (orgId: string) => readonly ["account-server", "organisation", string];
192
189
  declare const getGetOrganisationQueryOptions: <TData = Awaited<ReturnType<typeof getOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
193
190
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;
194
191
  request?: SecondParameter<typeof customFetch>;
195
192
  }) => UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData> & {
196
- queryKey: DataTag<QueryKey, TData>;
193
+ queryKey: DataTag<QueryKey, TData, TError>;
197
194
  };
198
195
  type GetOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisation>>>;
199
196
  type GetOrganisationQueryError = ErrorType<void | AsError>;
@@ -201,19 +198,19 @@ declare function useGetOrganisation<TData = Awaited<ReturnType<typeof getOrganis
201
198
  query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, Awaited<ReturnType<typeof getOrganisation>>>, "initialData">;
202
199
  request?: SecondParameter<typeof customFetch>;
203
200
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
204
- queryKey: DataTag<QueryKey, TData>;
201
+ queryKey: DataTag<QueryKey, TData, TError>;
205
202
  };
206
203
  declare function useGetOrganisation<TData = Awaited<ReturnType<typeof getOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
207
204
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, Awaited<ReturnType<typeof getOrganisation>>>, "initialData">;
208
205
  request?: SecondParameter<typeof customFetch>;
209
206
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
210
- queryKey: DataTag<QueryKey, TData>;
207
+ queryKey: DataTag<QueryKey, TData, TError>;
211
208
  };
212
209
  declare function useGetOrganisation<TData = Awaited<ReturnType<typeof getOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
213
210
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;
214
211
  request?: SecondParameter<typeof customFetch>;
215
212
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
216
- queryKey: DataTag<QueryKey, TData>;
213
+ queryKey: DataTag<QueryKey, TData, TError>;
217
214
  };
218
215
  /**
219
216
  * @summary Gets an Organisation
@@ -223,7 +220,7 @@ declare const getGetOrganisationSuspenseQueryOptions: <TData = Awaited<ReturnTyp
223
220
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;
224
221
  request?: SecondParameter<typeof customFetch>;
225
222
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData> & {
226
- queryKey: DataTag<QueryKey, TData>;
223
+ queryKey: DataTag<QueryKey, TData, TError>;
227
224
  };
228
225
  type GetOrganisationSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisation>>>;
229
226
  type GetOrganisationSuspenseQueryError = ErrorType<void | AsError>;
@@ -231,29 +228,20 @@ declare function useGetOrganisationSuspense<TData = Awaited<ReturnType<typeof ge
231
228
  query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;
232
229
  request?: SecondParameter<typeof customFetch>;
233
230
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
234
- queryKey: DataTag<QueryKey, TData>;
231
+ queryKey: DataTag<QueryKey, TData, TError>;
235
232
  };
236
233
  declare function useGetOrganisationSuspense<TData = Awaited<ReturnType<typeof getOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
237
234
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;
238
235
  request?: SecondParameter<typeof customFetch>;
239
236
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
240
- queryKey: DataTag<QueryKey, TData>;
237
+ queryKey: DataTag<QueryKey, TData, TError>;
241
238
  };
242
239
  declare function useGetOrganisationSuspense<TData = Awaited<ReturnType<typeof getOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
243
240
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;
244
241
  request?: SecondParameter<typeof customFetch>;
245
242
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
246
- queryKey: DataTag<QueryKey, TData>;
243
+ queryKey: DataTag<QueryKey, TData, TError>;
247
244
  };
248
- /**
249
- * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.
250
-
251
- 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.
252
-
253
- You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.
254
-
255
- * @summary Adjust an existing Organisation
256
- */
257
245
  type patchOrganisationResponse200 = {
258
246
  data: void;
259
247
  status: 200;
@@ -278,6 +266,14 @@ type patchOrganisationResponseError = (patchOrganisationResponse401 | patchOrgan
278
266
  };
279
267
  type patchOrganisationResponse = patchOrganisationResponseSuccess | patchOrganisationResponseError;
280
268
  declare const getPatchOrganisationUrl: (orgId: string) => string;
269
+ /**
270
+ * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.
271
+ *
272
+ * 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.
273
+ *
274
+ * You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.
275
+ * @summary Adjust an existing Organisation
276
+ */
281
277
  declare const patchOrganisation: (orgId: string, organisationPatchBodyBody: OrganisationPatchBodyBody, options?: RequestInit) => Promise<patchOrganisationResponse>;
282
278
  declare const getPatchOrganisationMutationOptions: <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
283
279
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof patchOrganisation>>, TError, {
@@ -305,13 +301,6 @@ declare const usePatchOrganisation: <TError = ErrorType<void | AsError>, TContex
305
301
  orgId: string;
306
302
  data: OrganisationPatchBodyBody;
307
303
  }, TContext>;
308
- /**
309
- * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
310
-
311
- You need admin rights to use this method
312
-
313
- * @summary Deletes an Organisation
314
- */
315
304
  type deleteOrganisationResponse204 = {
316
305
  data: void;
317
306
  status: 204;
@@ -336,6 +325,12 @@ type deleteOrganisationResponseError = (deleteOrganisationResponse400 | deleteOr
336
325
  };
337
326
  type deleteOrganisationResponse = deleteOrganisationResponseSuccess | deleteOrganisationResponseError;
338
327
  declare const getDeleteOrganisationUrl: (orgId: string) => string;
328
+ /**
329
+ * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
330
+ *
331
+ * You need admin rights to use this method
332
+ * @summary Deletes an Organisation
333
+ */
339
334
  declare const deleteOrganisation: (orgId: string, options?: RequestInit) => Promise<deleteOrganisationResponse>;
340
335
  declare const getDeleteOrganisationMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
341
336
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganisation>>, TError, {
@@ -358,13 +353,6 @@ declare const useDeleteOrganisation: <TError = ErrorType<AsError | void>, TConte
358
353
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteOrganisation>>, TError, {
359
354
  orgId: string;
360
355
  }, TContext>;
361
- /**
362
- * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.
363
-
364
- Any authorised user can see the Default Organisation.
365
-
366
- * @summary Gets the Default Organisation
367
- */
368
356
  type getDefaultOrganisationResponse200 = {
369
357
  data: OrganisationGetDefaultResponse;
370
358
  status: 200;
@@ -389,13 +377,19 @@ type getDefaultOrganisationResponseError = (getDefaultOrganisationResponse401 |
389
377
  };
390
378
  type getDefaultOrganisationResponse = getDefaultOrganisationResponseSuccess | getDefaultOrganisationResponseError;
391
379
  declare const getGetDefaultOrganisationUrl: () => string;
380
+ /**
381
+ * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.
382
+ *
383
+ * Any authorised user can see the Default Organisation.
384
+ * @summary Gets the Default Organisation
385
+ */
392
386
  declare const getDefaultOrganisation: (options?: RequestInit) => Promise<getDefaultOrganisationResponse>;
393
387
  declare const getGetDefaultOrganisationQueryKey: () => readonly ["account-server", "default", "organisation"];
394
388
  declare const getGetDefaultOrganisationQueryOptions: <TData = Awaited<ReturnType<typeof getDefaultOrganisation>>, TError = ErrorType<void | AsError>>(options?: {
395
389
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>>;
396
390
  request?: SecondParameter<typeof customFetch>;
397
391
  }) => UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData> & {
398
- queryKey: DataTag<QueryKey, TData>;
392
+ queryKey: DataTag<QueryKey, TData, TError>;
399
393
  };
400
394
  type GetDefaultOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getDefaultOrganisation>>>;
401
395
  type GetDefaultOrganisationQueryError = ErrorType<void | AsError>;
@@ -403,19 +397,19 @@ declare function useGetDefaultOrganisation<TData = Awaited<ReturnType<typeof get
403
397
  query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, Awaited<ReturnType<typeof getDefaultOrganisation>>>, "initialData">;
404
398
  request?: SecondParameter<typeof customFetch>;
405
399
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
406
- queryKey: DataTag<QueryKey, TData>;
400
+ queryKey: DataTag<QueryKey, TData, TError>;
407
401
  };
408
402
  declare function useGetDefaultOrganisation<TData = Awaited<ReturnType<typeof getDefaultOrganisation>>, TError = ErrorType<void | AsError>>(options?: {
409
403
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, Awaited<ReturnType<typeof getDefaultOrganisation>>>, "initialData">;
410
404
  request?: SecondParameter<typeof customFetch>;
411
405
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
412
- queryKey: DataTag<QueryKey, TData>;
406
+ queryKey: DataTag<QueryKey, TData, TError>;
413
407
  };
414
408
  declare function useGetDefaultOrganisation<TData = Awaited<ReturnType<typeof getDefaultOrganisation>>, TError = ErrorType<void | AsError>>(options?: {
415
409
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>>;
416
410
  request?: SecondParameter<typeof customFetch>;
417
411
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
418
- queryKey: DataTag<QueryKey, TData>;
412
+ queryKey: DataTag<QueryKey, TData, TError>;
419
413
  };
420
414
  /**
421
415
  * @summary Gets the Default Organisation
@@ -425,7 +419,7 @@ declare const getGetDefaultOrganisationSuspenseQueryOptions: <TData = Awaited<Re
425
419
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>>;
426
420
  request?: SecondParameter<typeof customFetch>;
427
421
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData> & {
428
- queryKey: DataTag<QueryKey, TData>;
422
+ queryKey: DataTag<QueryKey, TData, TError>;
429
423
  };
430
424
  type GetDefaultOrganisationSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getDefaultOrganisation>>>;
431
425
  type GetDefaultOrganisationSuspenseQueryError = ErrorType<void | AsError>;
@@ -433,19 +427,19 @@ declare function useGetDefaultOrganisationSuspense<TData = Awaited<ReturnType<ty
433
427
  query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>>;
434
428
  request?: SecondParameter<typeof customFetch>;
435
429
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
436
- queryKey: DataTag<QueryKey, TData>;
430
+ queryKey: DataTag<QueryKey, TData, TError>;
437
431
  };
438
432
  declare function useGetDefaultOrganisationSuspense<TData = Awaited<ReturnType<typeof getDefaultOrganisation>>, TError = ErrorType<void | AsError>>(options?: {
439
433
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>>;
440
434
  request?: SecondParameter<typeof customFetch>;
441
435
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
442
- queryKey: DataTag<QueryKey, TData>;
436
+ queryKey: DataTag<QueryKey, TData, TError>;
443
437
  };
444
438
  declare function useGetDefaultOrganisationSuspense<TData = Awaited<ReturnType<typeof getDefaultOrganisation>>, TError = ErrorType<void | AsError>>(options?: {
445
439
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>>;
446
440
  request?: SecondParameter<typeof customFetch>;
447
441
  }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
448
- queryKey: DataTag<QueryKey, TData>;
442
+ queryKey: DataTag<QueryKey, TData, TError>;
449
443
  };
450
444
  //#endregion
451
445
  export { CreateOrganisationMutationBody, CreateOrganisationMutationError, CreateOrganisationMutationResult, DeleteOrganisationMutationError, DeleteOrganisationMutationResult, GetDefaultOrganisationQueryError, GetDefaultOrganisationQueryResult, GetDefaultOrganisationSuspenseQueryError, GetDefaultOrganisationSuspenseQueryResult, GetOrganisationQueryError, GetOrganisationQueryResult, GetOrganisationSuspenseQueryError, GetOrganisationSuspenseQueryResult, GetOrganisationsQueryError, GetOrganisationsQueryResult, GetOrganisationsSuspenseQueryError, GetOrganisationsSuspenseQueryResult, PatchOrganisationMutationBody, PatchOrganisationMutationError, PatchOrganisationMutationResult, createOrganisation, createOrganisationResponse, createOrganisationResponse201, createOrganisationResponse400, createOrganisationResponse401, createOrganisationResponse403, createOrganisationResponseError, createOrganisationResponseSuccess, deleteOrganisation, deleteOrganisationResponse, deleteOrganisationResponse204, deleteOrganisationResponse400, deleteOrganisationResponse401, deleteOrganisationResponse403, deleteOrganisationResponseError, deleteOrganisationResponseSuccess, getCreateOrganisationMutationOptions, getCreateOrganisationUrl, getDefaultOrganisation, getDefaultOrganisationResponse, getDefaultOrganisationResponse200, getDefaultOrganisationResponse401, getDefaultOrganisationResponse403, getDefaultOrganisationResponse404, getDefaultOrganisationResponseError, getDefaultOrganisationResponseSuccess, getDeleteOrganisationMutationOptions, getDeleteOrganisationUrl, getGetDefaultOrganisationQueryKey, getGetDefaultOrganisationQueryOptions, getGetDefaultOrganisationSuspenseQueryOptions, getGetDefaultOrganisationUrl, getGetOrganisationQueryKey, getGetOrganisationQueryOptions, getGetOrganisationSuspenseQueryOptions, getGetOrganisationUrl, getGetOrganisationsQueryKey, getGetOrganisationsQueryOptions, getGetOrganisationsSuspenseQueryOptions, getGetOrganisationsUrl, getOrganisation, getOrganisationResponse, getOrganisationResponse200, getOrganisationResponse401, getOrganisationResponse403, getOrganisationResponse404, getOrganisationResponseError, getOrganisationResponseSuccess, getOrganisations, getOrganisationsResponse, getOrganisationsResponse200, getOrganisationsResponse401, getOrganisationsResponse403, getOrganisationsResponse404, getOrganisationsResponseError, getOrganisationsResponseSuccess, getPatchOrganisationMutationOptions, getPatchOrganisationUrl, invalidateGetDefaultOrganisation, invalidateGetOrganisation, invalidateGetOrganisations, patchOrganisation, patchOrganisationResponse, patchOrganisationResponse200, patchOrganisationResponse401, patchOrganisationResponse403, patchOrganisationResponse404, patchOrganisationResponseError, patchOrganisationResponseSuccess, useCreateOrganisation, useDeleteOrganisation, useGetDefaultOrganisation, useGetDefaultOrganisationSuspense, useGetOrganisation, useGetOrganisationSuspense, useGetOrganisations, useGetOrganisationsSuspense, usePatchOrganisation };