@squonk/account-server-client 4.3.1 → 4.4.0-4-4.2174798239

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 (184) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  2. package/dist/api/actions/actions.cjs +85 -0
  3. package/dist/api/actions/actions.cjs.map +1 -0
  4. package/dist/api/actions/actions.d.cts +74 -0
  5. package/dist/api/actions/actions.d.cts.map +1 -0
  6. package/dist/api/actions/actions.d.ts +74 -0
  7. package/dist/api/actions/actions.d.ts.map +1 -0
  8. package/dist/api/actions/actions.js +79 -0
  9. package/dist/api/actions/actions.js.map +1 -0
  10. package/dist/api/api.schemas.cjs +142 -0
  11. package/dist/api/api.schemas.cjs.map +1 -0
  12. package/dist/api/api.schemas.d.cts +1032 -0
  13. package/dist/api/api.schemas.d.cts.map +1 -0
  14. package/dist/api/api.schemas.d.ts +1032 -0
  15. package/dist/api/api.schemas.d.ts.map +1 -0
  16. package/dist/api/api.schemas.js +118 -0
  17. package/dist/api/api.schemas.js.map +1 -0
  18. package/dist/api/asset/asset.cjs +464 -0
  19. package/dist/api/asset/asset.cjs.map +1 -0
  20. package/{asset → dist/api/asset}/asset.d.cts +132 -130
  21. package/dist/api/asset/asset.d.cts.map +1 -0
  22. package/{asset → dist/api/asset}/asset.d.ts +132 -130
  23. package/dist/api/asset/asset.d.ts.map +1 -0
  24. package/dist/api/asset/asset.js +431 -0
  25. package/dist/api/asset/asset.js.map +1 -0
  26. package/dist/api/charges/charges.cjs +272 -0
  27. package/dist/api/charges/charges.cjs.map +1 -0
  28. package/{charges → dist/api/charges}/charges.d.cts +106 -104
  29. package/dist/api/charges/charges.d.cts.map +1 -0
  30. package/{charges → dist/api/charges}/charges.d.ts +106 -104
  31. package/dist/api/charges/charges.d.ts.map +1 -0
  32. package/dist/api/charges/charges.js +248 -0
  33. package/dist/api/charges/charges.js.map +1 -0
  34. package/dist/api/event-stream/event-stream.cjs +230 -0
  35. package/dist/api/event-stream/event-stream.cjs.map +1 -0
  36. package/{event-stream → dist/api/event-stream}/event-stream.d.cts +75 -73
  37. package/dist/api/event-stream/event-stream.d.cts.map +1 -0
  38. package/{event-stream → dist/api/event-stream}/event-stream.d.ts +75 -73
  39. package/dist/api/event-stream/event-stream.d.ts.map +1 -0
  40. package/dist/api/event-stream/event-stream.js +212 -0
  41. package/dist/api/event-stream/event-stream.js.map +1 -0
  42. package/dist/api/merchant/merchant.cjs +139 -0
  43. package/dist/api/merchant/merchant.cjs.map +1 -0
  44. package/{merchant → dist/api/merchant}/merchant.d.cts +56 -54
  45. package/dist/api/merchant/merchant.d.cts.map +1 -0
  46. package/{merchant → dist/api/merchant}/merchant.d.ts +56 -54
  47. package/dist/api/merchant/merchant.d.ts.map +1 -0
  48. package/dist/api/merchant/merchant.js +127 -0
  49. package/dist/api/merchant/merchant.js.map +1 -0
  50. package/dist/api/organisation/organisation.cjs +341 -0
  51. package/dist/api/organisation/organisation.cjs.map +1 -0
  52. package/{organisation → dist/api/organisation}/organisation.d.cts +112 -110
  53. package/dist/api/organisation/organisation.d.cts.map +1 -0
  54. package/{organisation → dist/api/organisation}/organisation.d.ts +112 -110
  55. package/dist/api/organisation/organisation.d.ts.map +1 -0
  56. package/dist/api/organisation/organisation.js +314 -0
  57. package/dist/api/organisation/organisation.js.map +1 -0
  58. package/dist/api/product/product.cjs +513 -0
  59. package/dist/api/product/product.cjs.map +1 -0
  60. package/{product → dist/api/product}/product.d.cts +188 -186
  61. package/dist/api/product/product.d.cts.map +1 -0
  62. package/{product → dist/api/product}/product.d.ts +188 -186
  63. package/dist/api/product/product.d.ts.map +1 -0
  64. package/dist/api/product/product.js +468 -0
  65. package/dist/api/product/product.js.map +1 -0
  66. package/dist/api/state/state.cjs +76 -0
  67. package/dist/api/state/state.cjs.map +1 -0
  68. package/dist/api/state/state.d.cts +66 -0
  69. package/dist/api/state/state.d.cts.map +1 -0
  70. package/dist/api/state/state.d.ts +66 -0
  71. package/dist/api/state/state.d.ts.map +1 -0
  72. package/dist/api/state/state.js +70 -0
  73. package/dist/api/state/state.js.map +1 -0
  74. package/dist/api/unit/unit.cjs +568 -0
  75. package/dist/api/unit/unit.cjs.map +1 -0
  76. package/{unit → dist/api/unit}/unit.d.cts +167 -165
  77. package/dist/api/unit/unit.d.cts.map +1 -0
  78. package/{unit → dist/api/unit}/unit.d.ts +167 -165
  79. package/dist/api/unit/unit.d.ts.map +1 -0
  80. package/dist/api/unit/unit.js +523 -0
  81. package/dist/api/unit/unit.js.map +1 -0
  82. package/dist/api/user/user.cjs +380 -0
  83. package/dist/api/user/user.cjs.map +1 -0
  84. package/{user → dist/api/user}/user.d.cts +129 -127
  85. package/dist/api/user/user.d.cts.map +1 -0
  86. package/{user → dist/api/user}/user.d.ts +129 -127
  87. package/dist/api/user/user.d.ts.map +1 -0
  88. package/dist/api/user/user.js +350 -0
  89. package/dist/api/user/user.js.map +1 -0
  90. package/dist/custom-instance.cjs +49 -0
  91. package/dist/custom-instance.cjs.map +1 -0
  92. package/dist/custom-instance.d.cts +22 -0
  93. package/dist/custom-instance.d.cts.map +1 -0
  94. package/dist/custom-instance.d.ts +22 -0
  95. package/dist/custom-instance.d.ts.map +1 -0
  96. package/dist/custom-instance.js +44 -0
  97. package/dist/custom-instance.js.map +1 -0
  98. package/dist/index.cjs +31 -0
  99. package/dist/index.d.cts +3 -0
  100. package/dist/index.d.ts +3 -0
  101. package/dist/index.js +4 -0
  102. package/dist/options-mutator.cjs +24 -0
  103. package/dist/options-mutator.cjs.map +1 -0
  104. package/dist/options-mutator.js +23 -0
  105. package/dist/options-mutator.js.map +1 -0
  106. package/orval.config.ts +24 -0
  107. package/package.json +163 -16
  108. package/pnpm-workspace.yaml +3 -0
  109. package/src/api/actions/actions.ts +249 -0
  110. package/src/{account-server-api.schemas.ts → api/api.schemas.ts} +82 -2
  111. package/src/{asset → api/asset}/asset.ts +8 -8
  112. package/src/{charges → api/charges}/charges.ts +9 -9
  113. package/src/{event-stream → api/event-stream}/event-stream.ts +7 -7
  114. package/src/{merchant → api/merchant}/merchant.ts +7 -7
  115. package/src/{organisation → api/organisation}/organisation.ts +8 -8
  116. package/src/{product → api/product}/product.ts +10 -10
  117. package/src/{state → api/state}/state.ts +6 -6
  118. package/src/{unit → api/unit}/unit.ts +9 -9
  119. package/src/{user → api/user}/user.ts +9 -9
  120. package/src/index.ts +2 -2
  121. package/src/options-mutator.ts +2 -2
  122. package/tsconfig.json +29 -0
  123. package/tsdown.config.ts +52 -0
  124. package/asset/asset.cjs +0 -281
  125. package/asset/asset.cjs.map +0 -1
  126. package/asset/asset.js +0 -281
  127. package/asset/asset.js.map +0 -1
  128. package/asset/package.json +0 -7
  129. package/charges/charges.cjs +0 -176
  130. package/charges/charges.cjs.map +0 -1
  131. package/charges/charges.js +0 -176
  132. package/charges/charges.js.map +0 -1
  133. package/charges/package.json +0 -7
  134. package/chunk-3WKSNKHE.js +0 -25
  135. package/chunk-3WKSNKHE.js.map +0 -1
  136. package/chunk-NY2VJJG7.cjs +0 -25
  137. package/chunk-NY2VJJG7.cjs.map +0 -1
  138. package/chunk-RB2KVIEK.cjs +0 -27
  139. package/chunk-RB2KVIEK.cjs.map +0 -1
  140. package/chunk-XYDLYMQ2.js +0 -27
  141. package/chunk-XYDLYMQ2.js.map +0 -1
  142. package/event-stream/event-stream.cjs +0 -144
  143. package/event-stream/event-stream.cjs.map +0 -1
  144. package/event-stream/event-stream.js +0 -144
  145. package/event-stream/event-stream.js.map +0 -1
  146. package/event-stream/package.json +0 -7
  147. package/index.cjs +0 -142
  148. package/index.cjs.map +0 -1
  149. package/index.d.cts +0 -979
  150. package/index.d.ts +0 -979
  151. package/index.js +0 -142
  152. package/index.js.map +0 -1
  153. package/merchant/merchant.cjs +0 -91
  154. package/merchant/merchant.cjs.map +0 -1
  155. package/merchant/merchant.js +0 -91
  156. package/merchant/merchant.js.map +0 -1
  157. package/merchant/package.json +0 -7
  158. package/organisation/organisation.cjs +0 -213
  159. package/organisation/organisation.cjs.map +0 -1
  160. package/organisation/organisation.js +0 -213
  161. package/organisation/organisation.js.map +0 -1
  162. package/organisation/package.json +0 -7
  163. package/product/package.json +0 -7
  164. package/product/product.cjs +0 -341
  165. package/product/product.cjs.map +0 -1
  166. package/product/product.js +0 -341
  167. package/product/product.js.map +0 -1
  168. package/state/package.json +0 -7
  169. package/state/state.cjs +0 -53
  170. package/state/state.cjs.map +0 -1
  171. package/state/state.d.cts +0 -64
  172. package/state/state.d.ts +0 -64
  173. package/state/state.js +0 -53
  174. package/state/state.js.map +0 -1
  175. package/unit/package.json +0 -7
  176. package/unit/unit.cjs +0 -339
  177. package/unit/unit.cjs.map +0 -1
  178. package/unit/unit.js +0 -339
  179. package/unit/unit.js.map +0 -1
  180. package/user/package.json +0 -7
  181. package/user/user.cjs +0 -226
  182. package/user/user.cjs.map +0 -1
  183. package/user/user.js +0 -226
  184. package/user/user.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ import { ActionDetail, ActionGetResponse, AsError, AssetDetail, AssetDetailScope, AssetGetByIdResponse, AssetGetResponse, AssetPatchBodyBody, AssetPostBodyBody, AssetPostBodyBodyScope, AssetPostResponse, AttachAssetParams, ChargeAdditionalData, ChargeSummary, ChargeSummaryType, ChargesGetResponse, DetachAssetParams, EventStreamGetPostResponse, EventStreamPostBodyBody, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponse, EventStreamVersionGetResponseProtocol, GetActionsParams, GetAssetParams, GetChargesParams, GetOrganisationChargesParams, GetOrganisationsParams, GetProductChargesParams, GetUnitChargesParams, GetUnitsParams, MerchantDetail, MerchantDetailKind, MerchantGetResponse, MerchantSummary, MerchantSummaryKind, MerchantsGetResponse, OrganisationAllDetail, OrganisationAllDetailDefaultProductPrivacy, OrganisationChargeSummary, OrganisationChargesGetResponse, OrganisationDetail, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponse, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationGetResponse, OrganisationPatchBodyBody, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBody, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationPostResponse, OrganisationUnitChargeSummary, OrganisationUnitPostBodyBody, OrganisationUnitPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostResponse, OrganisationUnitsGetResponse, OrganisationsGetResponse, PersonalUnitPutBodyBody, PersonalUnitPutResponse, ProcessingChargeItem, ProcessingCharges, ProcessingChargesMerchantKind, ProductChargesGetResponse, ProductChargesGetResponseProductType, ProductClaimDetail, ProductCoinsDetail, ProductDetail, ProductDetailFlavour, ProductDetailType, ProductDmProjectTier, ProductDmStorage, ProductDmStorageDetail, ProductDmStorageDetailCoins, ProductDmStorageDetailSize, ProductInstanceDetail, ProductInstanceDetailCoins, ProductPatchBodyBody, ProductType, ProductTypeServiceKind, ProductUnitGetResponse, ProductUnitGetResponseProduct, ProductsGetDefaultStorageCost, ProductsGetDefaultStorageCostDefaultStorageCost, ProductsGetResponse, ProductsGetResponseProductsItem, ProductsGetTypesResponse, QFormatParameter, QFromParameter, QMIdParameter, QNameParameter, QOrgIdParameter, QPbpParameter, QProductIdParameter, QUnitIdParameter, QUntilParameter, QUserIdParameter, StateGetVersionResponse, StorageChargeItem, StorageCharges, UnitAllDetail, UnitAllDetailDefaultProductPrivacy, UnitChargeSummary, UnitChargesGetResponse, UnitDetail, UnitDetailDefaultProductPrivacy, UnitGetResponse, UnitPatchBodyBody, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductChargeSummary, UnitProductPostBodyBody, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, UnitProductPostResponse, UnitsGetResponse, UserAccountDetail, UserAccountGetResponse, UserDetail, UsersGetResponse } from "./api/api.schemas.cjs";
2
+ import { AXIOS_INSTANCE, ErrorType, customInstance, setAuthToken, setBaseUrl } from "./custom-instance.cjs";
3
+ export { AXIOS_INSTANCE, ActionDetail, ActionGetResponse, AsError, AssetDetail, AssetDetailScope, AssetGetByIdResponse, AssetGetResponse, AssetPatchBodyBody, AssetPostBodyBody, AssetPostBodyBodyScope, AssetPostResponse, AttachAssetParams, ChargeAdditionalData, ChargeSummary, ChargeSummaryType, ChargesGetResponse, DetachAssetParams, ErrorType, EventStreamGetPostResponse, EventStreamPostBodyBody, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponse, EventStreamVersionGetResponseProtocol, GetActionsParams, GetAssetParams, GetChargesParams, GetOrganisationChargesParams, GetOrganisationsParams, GetProductChargesParams, GetUnitChargesParams, GetUnitsParams, MerchantDetail, MerchantDetailKind, MerchantGetResponse, MerchantSummary, MerchantSummaryKind, MerchantsGetResponse, OrganisationAllDetail, OrganisationAllDetailDefaultProductPrivacy, OrganisationChargeSummary, OrganisationChargesGetResponse, OrganisationDetail, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponse, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationGetResponse, OrganisationPatchBodyBody, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBody, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationPostResponse, OrganisationUnitChargeSummary, OrganisationUnitPostBodyBody, OrganisationUnitPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostResponse, OrganisationUnitsGetResponse, OrganisationsGetResponse, PersonalUnitPutBodyBody, PersonalUnitPutResponse, ProcessingChargeItem, ProcessingCharges, ProcessingChargesMerchantKind, ProductChargesGetResponse, ProductChargesGetResponseProductType, ProductClaimDetail, ProductCoinsDetail, ProductDetail, ProductDetailFlavour, ProductDetailType, ProductDmProjectTier, ProductDmStorage, ProductDmStorageDetail, ProductDmStorageDetailCoins, ProductDmStorageDetailSize, ProductInstanceDetail, ProductInstanceDetailCoins, ProductPatchBodyBody, ProductType, ProductTypeServiceKind, ProductUnitGetResponse, ProductUnitGetResponseProduct, ProductsGetDefaultStorageCost, ProductsGetDefaultStorageCostDefaultStorageCost, ProductsGetResponse, ProductsGetResponseProductsItem, ProductsGetTypesResponse, QFormatParameter, QFromParameter, QMIdParameter, QNameParameter, QOrgIdParameter, QPbpParameter, QProductIdParameter, QUnitIdParameter, QUntilParameter, QUserIdParameter, StateGetVersionResponse, StorageChargeItem, StorageCharges, UnitAllDetail, UnitAllDetailDefaultProductPrivacy, UnitChargeSummary, UnitChargesGetResponse, UnitDetail, UnitDetailDefaultProductPrivacy, UnitGetResponse, UnitPatchBodyBody, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductChargeSummary, UnitProductPostBodyBody, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, UnitProductPostResponse, UnitsGetResponse, UserAccountDetail, UserAccountGetResponse, UserDetail, UsersGetResponse, customInstance, setAuthToken, setBaseUrl };
@@ -0,0 +1,3 @@
1
+ import { ActionDetail, ActionGetResponse, AsError, AssetDetail, AssetDetailScope, AssetGetByIdResponse, AssetGetResponse, AssetPatchBodyBody, AssetPostBodyBody, AssetPostBodyBodyScope, AssetPostResponse, AttachAssetParams, ChargeAdditionalData, ChargeSummary, ChargeSummaryType, ChargesGetResponse, DetachAssetParams, EventStreamGetPostResponse, EventStreamPostBodyBody, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponse, EventStreamVersionGetResponseProtocol, GetActionsParams, GetAssetParams, GetChargesParams, GetOrganisationChargesParams, GetOrganisationsParams, GetProductChargesParams, GetUnitChargesParams, GetUnitsParams, MerchantDetail, MerchantDetailKind, MerchantGetResponse, MerchantSummary, MerchantSummaryKind, MerchantsGetResponse, OrganisationAllDetail, OrganisationAllDetailDefaultProductPrivacy, OrganisationChargeSummary, OrganisationChargesGetResponse, OrganisationDetail, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponse, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationGetResponse, OrganisationPatchBodyBody, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBody, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationPostResponse, OrganisationUnitChargeSummary, OrganisationUnitPostBodyBody, OrganisationUnitPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostResponse, OrganisationUnitsGetResponse, OrganisationsGetResponse, PersonalUnitPutBodyBody, PersonalUnitPutResponse, ProcessingChargeItem, ProcessingCharges, ProcessingChargesMerchantKind, ProductChargesGetResponse, ProductChargesGetResponseProductType, ProductClaimDetail, ProductCoinsDetail, ProductDetail, ProductDetailFlavour, ProductDetailType, ProductDmProjectTier, ProductDmStorage, ProductDmStorageDetail, ProductDmStorageDetailCoins, ProductDmStorageDetailSize, ProductInstanceDetail, ProductInstanceDetailCoins, ProductPatchBodyBody, ProductType, ProductTypeServiceKind, ProductUnitGetResponse, ProductUnitGetResponseProduct, ProductsGetDefaultStorageCost, ProductsGetDefaultStorageCostDefaultStorageCost, ProductsGetResponse, ProductsGetResponseProductsItem, ProductsGetTypesResponse, QFormatParameter, QFromParameter, QMIdParameter, QNameParameter, QOrgIdParameter, QPbpParameter, QProductIdParameter, QUnitIdParameter, QUntilParameter, QUserIdParameter, StateGetVersionResponse, StorageChargeItem, StorageCharges, UnitAllDetail, UnitAllDetailDefaultProductPrivacy, UnitChargeSummary, UnitChargesGetResponse, UnitDetail, UnitDetailDefaultProductPrivacy, UnitGetResponse, UnitPatchBodyBody, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductChargeSummary, UnitProductPostBodyBody, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, UnitProductPostResponse, UnitsGetResponse, UserAccountDetail, UserAccountGetResponse, UserDetail, UsersGetResponse } from "./api/api.schemas.js";
2
+ import { AXIOS_INSTANCE, ErrorType, customInstance, setAuthToken, setBaseUrl } from "./custom-instance.js";
3
+ export { AXIOS_INSTANCE, ActionDetail, ActionGetResponse, AsError, AssetDetail, AssetDetailScope, AssetGetByIdResponse, AssetGetResponse, AssetPatchBodyBody, AssetPostBodyBody, AssetPostBodyBodyScope, AssetPostResponse, AttachAssetParams, ChargeAdditionalData, ChargeSummary, ChargeSummaryType, ChargesGetResponse, DetachAssetParams, ErrorType, EventStreamGetPostResponse, EventStreamPostBodyBody, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponse, EventStreamVersionGetResponseProtocol, GetActionsParams, GetAssetParams, GetChargesParams, GetOrganisationChargesParams, GetOrganisationsParams, GetProductChargesParams, GetUnitChargesParams, GetUnitsParams, MerchantDetail, MerchantDetailKind, MerchantGetResponse, MerchantSummary, MerchantSummaryKind, MerchantsGetResponse, OrganisationAllDetail, OrganisationAllDetailDefaultProductPrivacy, OrganisationChargeSummary, OrganisationChargesGetResponse, OrganisationDetail, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponse, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationGetResponse, OrganisationPatchBodyBody, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBody, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationPostResponse, OrganisationUnitChargeSummary, OrganisationUnitPostBodyBody, OrganisationUnitPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostResponse, OrganisationUnitsGetResponse, OrganisationsGetResponse, PersonalUnitPutBodyBody, PersonalUnitPutResponse, ProcessingChargeItem, ProcessingCharges, ProcessingChargesMerchantKind, ProductChargesGetResponse, ProductChargesGetResponseProductType, ProductClaimDetail, ProductCoinsDetail, ProductDetail, ProductDetailFlavour, ProductDetailType, ProductDmProjectTier, ProductDmStorage, ProductDmStorageDetail, ProductDmStorageDetailCoins, ProductDmStorageDetailSize, ProductInstanceDetail, ProductInstanceDetailCoins, ProductPatchBodyBody, ProductType, ProductTypeServiceKind, ProductUnitGetResponse, ProductUnitGetResponseProduct, ProductsGetDefaultStorageCost, ProductsGetDefaultStorageCostDefaultStorageCost, ProductsGetResponse, ProductsGetResponseProductsItem, ProductsGetTypesResponse, QFormatParameter, QFromParameter, QMIdParameter, QNameParameter, QOrgIdParameter, QPbpParameter, QProductIdParameter, QUnitIdParameter, QUntilParameter, QUserIdParameter, StateGetVersionResponse, StorageChargeItem, StorageCharges, UnitAllDetail, UnitAllDetailDefaultProductPrivacy, UnitChargeSummary, UnitChargesGetResponse, UnitDetail, UnitDetailDefaultProductPrivacy, UnitGetResponse, UnitPatchBodyBody, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductChargeSummary, UnitProductPostBodyBody, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, UnitProductPostResponse, UnitsGetResponse, UserAccountDetail, UserAccountGetResponse, UserDetail, UsersGetResponse, customInstance, setAuthToken, setBaseUrl };
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import { AssetDetailScope, AssetPostBodyBodyScope, ChargeSummaryType, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponseProtocol, MerchantDetailKind, MerchantSummaryKind, OrganisationAllDetailDefaultProductPrivacy, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostBodyBodyDefaultProductPrivacy, ProcessingChargesMerchantKind, ProductChargesGetResponseProductType, ProductDetailFlavour, ProductDetailType, ProductTypeServiceKind, QFormatParameter, UnitAllDetailDefaultProductPrivacy, UnitDetailDefaultProductPrivacy, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType } from "./api/api.schemas.js";
2
+ import { AXIOS_INSTANCE, customInstance, setAuthToken, setBaseUrl } from "./custom-instance.js";
3
+
4
+ export { AXIOS_INSTANCE, AssetDetailScope, AssetPostBodyBodyScope, ChargeSummaryType, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponseProtocol, MerchantDetailKind, MerchantSummaryKind, OrganisationAllDetailDefaultProductPrivacy, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostBodyBodyDefaultProductPrivacy, ProcessingChargesMerchantKind, ProductChargesGetResponseProductType, ProductDetailFlavour, ProductDetailType, ProductTypeServiceKind, QFormatParameter, UnitAllDetailDefaultProductPrivacy, UnitDetailDefaultProductPrivacy, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, customInstance, setAuthToken, setBaseUrl };
@@ -0,0 +1,24 @@
1
+ let __tanstack_react_query = require("@tanstack/react-query");
2
+
3
+ //#region src/options-mutator.ts
4
+ const queryMutator = ({ queryKey, ...queryOptions }) => {
5
+ return {
6
+ queryKey: ["API_TARGET_NAME", ...queryKey],
7
+ ...queryOptions
8
+ };
9
+ };
10
+ const mutationMutator = ({ mutationKey, ...mutationOptions }) => {
11
+ if (Array.isArray(mutationKey)) return {
12
+ mutationKey: ["API_TARGET_NAME", ...mutationKey],
13
+ ...mutationOptions
14
+ };
15
+ return {
16
+ mutationKey: void 0,
17
+ ...mutationOptions
18
+ };
19
+ };
20
+
21
+ //#endregion
22
+ exports.mutationMutator = mutationMutator;
23
+ exports.queryMutator = queryMutator;
24
+ //# sourceMappingURL=options-mutator.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options-mutator.cjs","names":[],"sources":["../src/options-mutator.ts"],"sourcesContent":["import { type UseMutationOptions, type UseQueryOptions } from \"@tanstack/react-query\";\n\nexport const queryMutator = <TQueryFnData, TError, TData>({\n queryKey,\n ...queryOptions\n}: UseQueryOptions<TQueryFnData, TError, TData>): UseQueryOptions<TQueryFnData, TError, TData> => {\n const newQueryKey = [\"API_TARGET_NAME\", ...queryKey];\n return { queryKey: newQueryKey, ...queryOptions };\n};\n\nexport const mutationMutator = <TData, TError, TVariables, TContext>({\n mutationKey,\n ...mutationOptions\n}: UseMutationOptions<TData, TError, TVariables, TContext>): UseMutationOptions<\n TData,\n TError,\n TVariables,\n TContext\n> => {\n if (Array.isArray(mutationKey)) {\n const newMutationKey = [\"API_TARGET_NAME\", ...mutationKey];\n return { mutationKey: newMutationKey, ...mutationOptions };\n }\n return { mutationKey: undefined, ...mutationOptions };\n};\n\nexport default queryMutator;\n"],"mappings":";;;AAEA,MAAa,gBAA6C,EACxD,UACA,GAAG,mBAC6F;AAEhG,QAAO;EAAE,UADW,CAAC,mBAAmB,GAAG,SAAS;EACpB,GAAG;EAAc;;AAGnD,MAAa,mBAAwD,EACnE,aACA,GAAG,sBAMA;AACH,KAAI,MAAM,QAAQ,YAAY,CAE5B,QAAO;EAAE,aADc,CAAC,mBAAmB,GAAG,YAAY;EACpB,GAAG;EAAiB;AAE5D,QAAO;EAAE,aAAa;EAAW,GAAG;EAAiB"}
@@ -0,0 +1,23 @@
1
+ import "@tanstack/react-query";
2
+
3
+ //#region src/options-mutator.ts
4
+ const queryMutator = ({ queryKey, ...queryOptions }) => {
5
+ return {
6
+ queryKey: ["API_TARGET_NAME", ...queryKey],
7
+ ...queryOptions
8
+ };
9
+ };
10
+ const mutationMutator = ({ mutationKey, ...mutationOptions }) => {
11
+ if (Array.isArray(mutationKey)) return {
12
+ mutationKey: ["API_TARGET_NAME", ...mutationKey],
13
+ ...mutationOptions
14
+ };
15
+ return {
16
+ mutationKey: void 0,
17
+ ...mutationOptions
18
+ };
19
+ };
20
+
21
+ //#endregion
22
+ export { mutationMutator, queryMutator };
23
+ //# sourceMappingURL=options-mutator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options-mutator.js","names":[],"sources":["../src/options-mutator.ts"],"sourcesContent":["import { type UseMutationOptions, type UseQueryOptions } from \"@tanstack/react-query\";\n\nexport const queryMutator = <TQueryFnData, TError, TData>({\n queryKey,\n ...queryOptions\n}: UseQueryOptions<TQueryFnData, TError, TData>): UseQueryOptions<TQueryFnData, TError, TData> => {\n const newQueryKey = [\"API_TARGET_NAME\", ...queryKey];\n return { queryKey: newQueryKey, ...queryOptions };\n};\n\nexport const mutationMutator = <TData, TError, TVariables, TContext>({\n mutationKey,\n ...mutationOptions\n}: UseMutationOptions<TData, TError, TVariables, TContext>): UseMutationOptions<\n TData,\n TError,\n TVariables,\n TContext\n> => {\n if (Array.isArray(mutationKey)) {\n const newMutationKey = [\"API_TARGET_NAME\", ...mutationKey];\n return { mutationKey: newMutationKey, ...mutationOptions };\n }\n return { mutationKey: undefined, ...mutationOptions };\n};\n\nexport default queryMutator;\n"],"mappings":";;;AAEA,MAAa,gBAA6C,EACxD,UACA,GAAG,mBAC6F;AAEhG,QAAO;EAAE,UADW,CAAC,mBAAmB,GAAG,SAAS;EACpB,GAAG;EAAc;;AAGnD,MAAa,mBAAwD,EACnE,aACA,GAAG,sBAMA;AACH,KAAI,MAAM,QAAQ,YAAY,CAE5B,QAAO;EAAE,aADc,CAAC,mBAAmB,GAAG,YAAY;EACpB,GAAG;EAAiB;AAE5D,QAAO;EAAE,aAAa;EAAW,GAAG;EAAiB"}
@@ -0,0 +1,24 @@
1
+ import { defineConfig } from "orval";
2
+
3
+ export default defineConfig({
4
+ api: {
5
+ input: { target: "./openapi.yaml", validation: false },
6
+ output: {
7
+ mode: "tags-split",
8
+ target: "./src/api/api.ts",
9
+ client: "react-query",
10
+ baseUrl: "",
11
+ override: {
12
+ operationName: (operation) => operation["x-semantic-name"],
13
+ mutator: { path: "./src/custom-instance.ts", name: "customInstance" },
14
+ query: {
15
+ useQuery: true,
16
+ useSuspenseQuery: true,
17
+ queryOptions: { path: "./src/options-mutator.ts", name: "queryMutator" },
18
+ mutationOptions: { path: "./src/options-mutator.ts", name: "mutationMutator" },
19
+ },
20
+ },
21
+ },
22
+ hooks: { afterAllFilesWrite: [{ command: "prettier --ignore-path .prettierignore --write" }] },
23
+ },
24
+ });
package/package.json CHANGED
@@ -1,39 +1,186 @@
1
1
  {
2
- "version": "4.3.1",
3
- "author": "Oliver Dudgeon",
2
+ "version": "4.4.0-4-4.2174798239",
3
+ "author": "Informatics Matters",
4
4
  "name": "@squonk/account-server-client",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/InformaticsMatters/squonk2-account-server-js-client"
8
+ "url": "https://gitlab.com/informaticsmatters/squonk2-account-server"
9
9
  },
10
- "description": "TypeScript client for the Squonk Account Server API. Generated from the Open API spec with orval. Provides React Hooks to fetch data with react-query using Axios under-the-hood.",
10
+ "description": "TypeScript client for the Squonk Account Server API. Generated from the OpenAPI spec with orval.",
11
11
  "license": "MIT",
12
12
  "type": "module",
13
13
  "devDependencies": {
14
- "@tanstack/react-query": "5.83.0",
15
- "@typescript-eslint/eslint-plugin": "8.38.0",
16
- "axios": "1.10.0",
17
- "js-yaml": "4.1.0",
18
- "orval": "7.10.0",
14
+ "@tanstack/react-query": "5.90.10",
15
+ "@typescript-eslint/eslint-plugin": "8.47.0",
16
+ "axios": "1.13.2",
17
+ "js-yaml": "4.1.1",
18
+ "orval": "7.16.1",
19
19
  "prettier": "3.6.2",
20
20
  "tslib": "2.8.1",
21
- "tsup": "8.5.0",
22
- "typescript": "5.8.3"
21
+ "tsdown": "^0.16.6",
22
+ "typescript": "5.9.3"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@tanstack/react-query": ">=4",
26
26
  "axios": ">=0.23"
27
27
  },
28
- "module": "./index.js",
29
- "main": "./index.cjs",
30
- "types": "./index.d.ts",
31
- "sideEffects": false,
32
28
  "publishConfig": {
29
+ "sideEffects": false,
33
30
  "access": "public"
34
31
  },
32
+ "main": "./dist/index.cjs",
33
+ "module": "./dist/index.js",
34
+ "types": "./dist/index.d.cts",
35
+ "exports": {
36
+ ".": {
37
+ "import": "./dist/index.js",
38
+ "require": "./dist/index.cjs"
39
+ },
40
+ "./api/actions/actions": {
41
+ "import": "./dist/api/actions/actions.js",
42
+ "require": "./dist/api/actions/actions.cjs"
43
+ },
44
+ "./api/asset/asset": {
45
+ "import": "./dist/api/asset/asset.js",
46
+ "require": "./dist/api/asset/asset.cjs"
47
+ },
48
+ "./api/charges/charges": {
49
+ "import": "./dist/api/charges/charges.js",
50
+ "require": "./dist/api/charges/charges.cjs"
51
+ },
52
+ "./api/event-stream/event-stream": {
53
+ "import": "./dist/api/event-stream/event-stream.js",
54
+ "require": "./dist/api/event-stream/event-stream.cjs"
55
+ },
56
+ "./api/merchant/merchant": {
57
+ "import": "./dist/api/merchant/merchant.js",
58
+ "require": "./dist/api/merchant/merchant.cjs"
59
+ },
60
+ "./api/organisation/organisation": {
61
+ "import": "./dist/api/organisation/organisation.js",
62
+ "require": "./dist/api/organisation/organisation.cjs"
63
+ },
64
+ "./api/product/product": {
65
+ "import": "./dist/api/product/product.js",
66
+ "require": "./dist/api/product/product.cjs"
67
+ },
68
+ "./api/state/state": {
69
+ "import": "./dist/api/state/state.js",
70
+ "require": "./dist/api/state/state.cjs"
71
+ },
72
+ "./api/unit/unit": {
73
+ "import": "./dist/api/unit/unit.js",
74
+ "require": "./dist/api/unit/unit.cjs"
75
+ },
76
+ "./api/user/user": {
77
+ "import": "./dist/api/user/user.js",
78
+ "require": "./dist/api/user/user.cjs"
79
+ },
80
+ "./package.json": "./package.json",
81
+ "./actions": {
82
+ "import": {
83
+ "types": "./dist/api/actions/actions.d.ts",
84
+ "default": "./dist/api/actions/actions.js"
85
+ },
86
+ "require": {
87
+ "types": "./dist/api/actions/actions.d.cts",
88
+ "default": "./dist/api/actions/actions.cjs"
89
+ }
90
+ },
91
+ "./asset": {
92
+ "import": {
93
+ "types": "./dist/api/asset/asset.d.ts",
94
+ "default": "./dist/api/asset/asset.js"
95
+ },
96
+ "require": {
97
+ "types": "./dist/api/asset/asset.d.cts",
98
+ "default": "./dist/api/asset/asset.cjs"
99
+ }
100
+ },
101
+ "./charges": {
102
+ "import": {
103
+ "types": "./dist/api/charges/charges.d.ts",
104
+ "default": "./dist/api/charges/charges.js"
105
+ },
106
+ "require": {
107
+ "types": "./dist/api/charges/charges.d.cts",
108
+ "default": "./dist/api/charges/charges.cjs"
109
+ }
110
+ },
111
+ "./event-stream": {
112
+ "import": {
113
+ "types": "./dist/api/event-stream/event-stream.d.ts",
114
+ "default": "./dist/api/event-stream/event-stream.js"
115
+ },
116
+ "require": {
117
+ "types": "./dist/api/event-stream/event-stream.d.cts",
118
+ "default": "./dist/api/event-stream/event-stream.cjs"
119
+ }
120
+ },
121
+ "./merchant": {
122
+ "import": {
123
+ "types": "./dist/api/merchant/merchant.d.ts",
124
+ "default": "./dist/api/merchant/merchant.js"
125
+ },
126
+ "require": {
127
+ "types": "./dist/api/merchant/merchant.d.cts",
128
+ "default": "./dist/api/merchant/merchant.cjs"
129
+ }
130
+ },
131
+ "./organisation": {
132
+ "import": {
133
+ "types": "./dist/api/organisation/organisation.d.ts",
134
+ "default": "./dist/api/organisation/organisation.js"
135
+ },
136
+ "require": {
137
+ "types": "./dist/api/organisation/organisation.d.cts",
138
+ "default": "./dist/api/organisation/organisation.cjs"
139
+ }
140
+ },
141
+ "./product": {
142
+ "import": {
143
+ "types": "./dist/api/product/product.d.ts",
144
+ "default": "./dist/api/product/product.js"
145
+ },
146
+ "require": {
147
+ "types": "./dist/api/product/product.d.cts",
148
+ "default": "./dist/api/product/product.cjs"
149
+ }
150
+ },
151
+ "./state": {
152
+ "import": {
153
+ "types": "./dist/api/state/state.d.ts",
154
+ "default": "./dist/api/state/state.js"
155
+ },
156
+ "require": {
157
+ "types": "./dist/api/state/state.d.cts",
158
+ "default": "./dist/api/state/state.cjs"
159
+ }
160
+ },
161
+ "./unit": {
162
+ "import": {
163
+ "types": "./dist/api/unit/unit.d.ts",
164
+ "default": "./dist/api/unit/unit.js"
165
+ },
166
+ "require": {
167
+ "types": "./dist/api/unit/unit.d.cts",
168
+ "default": "./dist/api/unit/unit.cjs"
169
+ }
170
+ },
171
+ "./user": {
172
+ "import": {
173
+ "types": "./dist/api/user/user.d.ts",
174
+ "default": "./dist/api/user/user.js"
175
+ },
176
+ "require": {
177
+ "types": "./dist/api/user/user.d.cts",
178
+ "default": "./dist/api/user/user.cjs"
179
+ }
180
+ }
181
+ },
35
182
  "scripts": {
36
183
  "orval": "orval",
37
- "build": "tsup"
184
+ "build": "tsdown"
38
185
  }
39
186
  }
@@ -0,0 +1,3 @@
1
+ onlyBuiltDependencies:
2
+ - esbuild
3
+ - msw
@@ -0,0 +1,249 @@
1
+ /**
2
+ * Generated by orval v7.16.1 🍺
3
+ * Do not edit manually.
4
+ * Account Server API
5
+ * The Informatics Matters Account Server API.
6
+
7
+ A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
8
+
9
+ * OpenAPI spec version: 4.4
10
+ */
11
+ import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
12
+ import type {
13
+ DataTag,
14
+ DefinedInitialDataOptions,
15
+ DefinedUseQueryResult,
16
+ QueryClient,
17
+ QueryFunction,
18
+ QueryKey,
19
+ UndefinedInitialDataOptions,
20
+ UseQueryOptions,
21
+ UseQueryResult,
22
+ UseSuspenseQueryOptions,
23
+ UseSuspenseQueryResult,
24
+ } from "@tanstack/react-query";
25
+
26
+ import type { ActionGetResponse, GetActionsParams } from "../api.schemas";
27
+
28
+ import { customInstance } from "../../custom-instance";
29
+ import type { ErrorType } from "../../custom-instance";
30
+ import { queryMutator } from "../../options-mutator";
31
+
32
+ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
33
+
34
+ /**
35
+ * This endpoint delivers Action records (protocol buffers) that can be selected based on a date and time range and limited to merchants, organisations, Units, or Products. You can receive Action content as a `PROTOCOL_STRING` (the default), or `JSON_STRING`. If you do not provide a `format` `PROTOCOL_STRING` will be assumed.
36
+
37
+ You can provide a `m_id`, `org_id`, `unit_id`, `product_id`, but only one.
38
+
39
+ You can also provide `from` and `until` dates to limit the response to Actions that occur on the days you select. Actions are returned that are not before the `from` data but are before the `until` date. If neither `from` or `until` is provided `from` is assumed to be from _today_ until _tomorrow_.
40
+
41
+ You need admin privilege to use this endpoint.
42
+
43
+ * @summary Gets Actions held on the Account Server
44
+ */
45
+ export const getActions = (
46
+ params?: GetActionsParams,
47
+ options?: SecondParameter<typeof customInstance>,
48
+ signal?: AbortSignal,
49
+ ) => {
50
+ return customInstance<ActionGetResponse>(
51
+ { url: `/action`, method: "GET", params, signal },
52
+ options,
53
+ );
54
+ };
55
+
56
+ export const getGetActionsQueryKey = (params?: GetActionsParams) => {
57
+ return [`/action`, ...(params ? [params] : [])] as const;
58
+ };
59
+
60
+ export const useGetActionsQueryOptions = <
61
+ TData = Awaited<ReturnType<typeof getActions>>,
62
+ TError = ErrorType<void>,
63
+ >(
64
+ params?: GetActionsParams,
65
+ options?: {
66
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
67
+ request?: SecondParameter<typeof customInstance>;
68
+ },
69
+ ) => {
70
+ const { query: queryOptions, request: requestOptions } = options ?? {};
71
+
72
+ const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);
73
+
74
+ const queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>> = ({ signal }) =>
75
+ getActions(params, requestOptions, signal);
76
+
77
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
78
+
79
+ return customOptions as UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData> & {
80
+ queryKey: DataTag<QueryKey, TData, TError>;
81
+ };
82
+ };
83
+
84
+ export type GetActionsQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;
85
+ export type GetActionsQueryError = ErrorType<void>;
86
+
87
+ export function useGetActions<
88
+ TData = Awaited<ReturnType<typeof getActions>>,
89
+ TError = ErrorType<void>,
90
+ >(
91
+ params: undefined | GetActionsParams,
92
+ options: {
93
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> &
94
+ Pick<
95
+ DefinedInitialDataOptions<
96
+ Awaited<ReturnType<typeof getActions>>,
97
+ TError,
98
+ Awaited<ReturnType<typeof getActions>>
99
+ >,
100
+ "initialData"
101
+ >;
102
+ request?: SecondParameter<typeof customInstance>;
103
+ },
104
+ queryClient?: QueryClient,
105
+ ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
106
+ export function useGetActions<
107
+ TData = Awaited<ReturnType<typeof getActions>>,
108
+ TError = ErrorType<void>,
109
+ >(
110
+ params?: GetActionsParams,
111
+ options?: {
112
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> &
113
+ Pick<
114
+ UndefinedInitialDataOptions<
115
+ Awaited<ReturnType<typeof getActions>>,
116
+ TError,
117
+ Awaited<ReturnType<typeof getActions>>
118
+ >,
119
+ "initialData"
120
+ >;
121
+ request?: SecondParameter<typeof customInstance>;
122
+ },
123
+ queryClient?: QueryClient,
124
+ ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
125
+ export function useGetActions<
126
+ TData = Awaited<ReturnType<typeof getActions>>,
127
+ TError = ErrorType<void>,
128
+ >(
129
+ params?: GetActionsParams,
130
+ options?: {
131
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
132
+ request?: SecondParameter<typeof customInstance>;
133
+ },
134
+ queryClient?: QueryClient,
135
+ ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
136
+ /**
137
+ * @summary Gets Actions held on the Account Server
138
+ */
139
+
140
+ export function useGetActions<
141
+ TData = Awaited<ReturnType<typeof getActions>>,
142
+ TError = ErrorType<void>,
143
+ >(
144
+ params?: GetActionsParams,
145
+ options?: {
146
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
147
+ request?: SecondParameter<typeof customInstance>;
148
+ },
149
+ queryClient?: QueryClient,
150
+ ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
151
+ const queryOptions = useGetActionsQueryOptions(params, options);
152
+
153
+ const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
154
+ queryKey: DataTag<QueryKey, TData, TError>;
155
+ };
156
+
157
+ query.queryKey = queryOptions.queryKey;
158
+
159
+ return query;
160
+ }
161
+
162
+ export const useGetActionsSuspenseQueryOptions = <
163
+ TData = Awaited<ReturnType<typeof getActions>>,
164
+ TError = ErrorType<void>,
165
+ >(
166
+ params?: GetActionsParams,
167
+ options?: {
168
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
169
+ request?: SecondParameter<typeof customInstance>;
170
+ },
171
+ ) => {
172
+ const { query: queryOptions, request: requestOptions } = options ?? {};
173
+
174
+ const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);
175
+
176
+ const queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>> = ({ signal }) =>
177
+ getActions(params, requestOptions, signal);
178
+
179
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
180
+
181
+ return customOptions as UseSuspenseQueryOptions<
182
+ Awaited<ReturnType<typeof getActions>>,
183
+ TError,
184
+ TData
185
+ > & { queryKey: DataTag<QueryKey, TData, TError> };
186
+ };
187
+
188
+ export type GetActionsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;
189
+ export type GetActionsSuspenseQueryError = ErrorType<void>;
190
+
191
+ export function useGetActionsSuspense<
192
+ TData = Awaited<ReturnType<typeof getActions>>,
193
+ TError = ErrorType<void>,
194
+ >(
195
+ params: undefined | GetActionsParams,
196
+ options: {
197
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
198
+ request?: SecondParameter<typeof customInstance>;
199
+ },
200
+ queryClient?: QueryClient,
201
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
202
+ export function useGetActionsSuspense<
203
+ TData = Awaited<ReturnType<typeof getActions>>,
204
+ TError = ErrorType<void>,
205
+ >(
206
+ params?: GetActionsParams,
207
+ options?: {
208
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
209
+ request?: SecondParameter<typeof customInstance>;
210
+ },
211
+ queryClient?: QueryClient,
212
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
213
+ export function useGetActionsSuspense<
214
+ TData = Awaited<ReturnType<typeof getActions>>,
215
+ TError = ErrorType<void>,
216
+ >(
217
+ params?: GetActionsParams,
218
+ options?: {
219
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
220
+ request?: SecondParameter<typeof customInstance>;
221
+ },
222
+ queryClient?: QueryClient,
223
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
224
+ /**
225
+ * @summary Gets Actions held on the Account Server
226
+ */
227
+
228
+ export function useGetActionsSuspense<
229
+ TData = Awaited<ReturnType<typeof getActions>>,
230
+ TError = ErrorType<void>,
231
+ >(
232
+ params?: GetActionsParams,
233
+ options?: {
234
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
235
+ request?: SecondParameter<typeof customInstance>;
236
+ },
237
+ queryClient?: QueryClient,
238
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
239
+ const queryOptions = useGetActionsSuspenseQueryOptions(params, options);
240
+
241
+ const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
242
+ TData,
243
+ TError
244
+ > & { queryKey: DataTag<QueryKey, TData, TError> };
245
+
246
+ query.queryKey = queryOptions.queryKey;
247
+
248
+ return query;
249
+ }