@squonk/account-server-client 4.4.0-4-4.2195235454 → 4.4.0-4-4.2197069952
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.
- package/dist/api/actions/actions.cjs +29 -18
- package/dist/api/actions/actions.cjs.map +1 -1
- package/dist/api/actions/actions.d.cts +12 -7
- package/dist/api/actions/actions.d.cts.map +1 -1
- package/dist/api/actions/actions.d.ts +12 -7
- package/dist/api/actions/actions.d.ts.map +1 -1
- package/dist/api/actions/actions.fetch.cjs +98 -0
- package/dist/api/actions/actions.fetch.cjs.map +1 -0
- package/dist/api/actions/actions.fetch.d.cts +77 -0
- package/dist/api/actions/actions.fetch.d.cts.map +1 -0
- package/dist/api/actions/actions.fetch.d.ts +77 -0
- package/dist/api/actions/actions.fetch.d.ts.map +1 -0
- package/dist/api/actions/actions.fetch.js +90 -0
- package/dist/api/actions/actions.fetch.js.map +1 -0
- package/dist/api/actions/actions.js +26 -16
- package/dist/api/actions/actions.js.map +1 -1
- package/dist/api/api-schemas/actionDetail.d.cts +17 -0
- package/dist/api/api-schemas/actionDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/actionDetail.d.ts +17 -0
- package/dist/api/api-schemas/actionDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/actionGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/actionGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/actionGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/actionGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/asError.d.cts +18 -0
- package/dist/api/api-schemas/asError.d.cts.map +1 -0
- package/dist/api/api-schemas/asError.d.ts +18 -0
- package/dist/api/api-schemas/asError.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetail.d.cts +22 -0
- package/dist/api/api-schemas/assetDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/assetDetail.d.ts +22 -0
- package/dist/api/api-schemas/assetDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.cjs +13 -0
- package/dist/api/api-schemas/assetDetailScope.cjs.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.d.cts +22 -0
- package/dist/api/api-schemas/assetDetailScope.d.cts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.d.ts +22 -0
- package/dist/api/api-schemas/assetDetailScope.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.js +12 -0
- package/dist/api/api-schemas/assetDetailScope.js.map +1 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts +8 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts +8 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/assetGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/assetGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/assetGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.cts +27 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.ts +27 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs +13 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts +25 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts +25 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.js +12 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.js.map +1 -0
- package/dist/api/api-schemas/assetPostResponse.d.cts +19 -0
- package/dist/api/api-schemas/assetPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostResponse.d.ts +19 -0
- package/dist/api/api-schemas/assetPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/attachAssetParams.d.cts +14 -0
- package/dist/api/api-schemas/attachAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/attachAssetParams.d.ts +14 -0
- package/dist/api/api-schemas/attachAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.cts +17 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.ts +17 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummary.d.cts +13 -0
- package/dist/api/api-schemas/chargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeSummary.d.ts +13 -0
- package/dist/api/api-schemas/chargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.cjs +10 -0
- package/dist/api/api-schemas/chargeSummaryType.cjs.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.d.cts +22 -0
- package/dist/api/api-schemas/chargeSummaryType.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.d.ts +22 -0
- package/dist/api/api-schemas/chargeSummaryType.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.js +9 -0
- package/dist/api/api-schemas/chargeSummaryType.js.map +1 -0
- package/dist/api/api-schemas/chargesGetResponse.d.cts +14 -0
- package/dist/api/api-schemas/chargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/chargesGetResponse.d.ts +14 -0
- package/dist/api/api-schemas/chargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/detachAssetParams.d.cts +14 -0
- package/dist/api/api-schemas/detachAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/detachAssetParams.d.ts +14 -0
- package/dist/api/api-schemas/detachAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts +24 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts +24 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts +19 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts +19 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js +9 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs +11 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts +23 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts +23 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js +10 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js.map +1 -0
- package/dist/api/api-schemas/getActionsParams.d.cts +47 -0
- package/dist/api/api-schemas/getActionsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getActionsParams.d.ts +47 -0
- package/dist/api/api-schemas/getActionsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getAssetParams.d.cts +34 -0
- package/dist/api/api-schemas/getAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getAssetParams.d.ts +34 -0
- package/dist/api/api-schemas/getAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.cts +13 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.ts +13 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getProductChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getProductChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getProductChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getProductChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getUnitsParams.d.cts +13 -0
- package/dist/api/api-schemas/getUnitsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getUnitsParams.d.ts +13 -0
- package/dist/api/api-schemas/getUnitsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetail.d.cts +18 -0
- package/dist/api/api-schemas/merchantDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantDetail.d.ts +18 -0
- package/dist/api/api-schemas/merchantDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.cjs +7 -0
- package/dist/api/api-schemas/merchantDetailKind.cjs.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.d.cts +21 -0
- package/dist/api/api-schemas/merchantDetailKind.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.d.ts +21 -0
- package/dist/api/api-schemas/merchantDetailKind.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.js +6 -0
- package/dist/api/api-schemas/merchantDetailKind.js.map +1 -0
- package/dist/api/api-schemas/merchantGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/merchantGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/merchantGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummary.d.cts +15 -0
- package/dist/api/api-schemas/merchantSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantSummary.d.ts +15 -0
- package/dist/api/api-schemas/merchantSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.cjs +7 -0
- package/dist/api/api-schemas/merchantSummaryKind.cjs.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.cts +21 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.ts +21 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.js +6 -0
- package/dist/api/api-schemas/merchantSummaryKind.js.map +1 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.cts +13 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.ts +13 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetail.d.cts +25 -0
- package/dist/api/api-schemas/organisationAllDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetail.d.ts +25 -0
- package/dist/api/api-schemas/organisationAllDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.cts +12 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.ts +12 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetail.d.cts +22 -0
- package/dist/api/api-schemas/organisationDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationDetail.d.ts +22 -0
- package/dist/api/api-schemas/organisationDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts +23 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts +23 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/organisationGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/organisationGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts +14 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts +14 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts +26 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts +26 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts +18 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts +18 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/organisationPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/organisationPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts +21 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts +21 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts +20 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts +20 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargeItem.d.cts +20 -0
- package/dist/api/api-schemas/processingChargeItem.d.cts.map +1 -0
- package/dist/api/api-schemas/processingChargeItem.d.ts +20 -0
- package/dist/api/api-schemas/processingChargeItem.d.ts.map +1 -0
- package/dist/api/api-schemas/processingCharges.d.cts +20 -0
- package/dist/api/api-schemas/processingCharges.d.cts.map +1 -0
- package/dist/api/api-schemas/processingCharges.d.ts +20 -0
- package/dist/api/api-schemas/processingCharges.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs +7 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts +18 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts +18 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.js +6 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.js.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.cts +31 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.ts +31 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs +10 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts +19 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts +19 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.js +9 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.js.map +1 -0
- package/dist/api/api-schemas/productClaimDetail.d.cts +22 -0
- package/dist/api/api-schemas/productClaimDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productClaimDetail.d.ts +22 -0
- package/dist/api/api-schemas/productClaimDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productCoinsDetail.d.cts +38 -0
- package/dist/api/api-schemas/productCoinsDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productCoinsDetail.d.ts +38 -0
- package/dist/api/api-schemas/productCoinsDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetail.d.cts +23 -0
- package/dist/api/api-schemas/productDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetail.d.ts +23 -0
- package/dist/api/api-schemas/productDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.cjs +12 -0
- package/dist/api/api-schemas/productDetailFlavour.cjs.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.d.cts +25 -0
- package/dist/api/api-schemas/productDetailFlavour.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.d.ts +25 -0
- package/dist/api/api-schemas/productDetailFlavour.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.js +11 -0
- package/dist/api/api-schemas/productDetailFlavour.js.map +1 -0
- package/dist/api/api-schemas/productDetailType.cjs +10 -0
- package/dist/api/api-schemas/productDetailType.cjs.map +1 -0
- package/dist/api/api-schemas/productDetailType.d.cts +23 -0
- package/dist/api/api-schemas/productDetailType.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetailType.d.ts +23 -0
- package/dist/api/api-schemas/productDetailType.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailType.js +9 -0
- package/dist/api/api-schemas/productDetailType.js.map +1 -0
- package/dist/api/api-schemas/productDmProjectTier.d.cts +24 -0
- package/dist/api/api-schemas/productDmProjectTier.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmProjectTier.d.ts +24 -0
- package/dist/api/api-schemas/productDmProjectTier.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorage.d.cts +20 -0
- package/dist/api/api-schemas/productDmStorage.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorage.d.ts +20 -0
- package/dist/api/api-schemas/productDmStorage.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.cts +12 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.ts +12 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts +20 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts +20 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts +24 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts +24 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetail.d.cts +10 -0
- package/dist/api/api-schemas/productInstanceDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetail.d.ts +10 -0
- package/dist/api/api-schemas/productInstanceDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts +19 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts +19 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts.map +1 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.cts +31 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.ts +31 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/productType.d.cts +15 -0
- package/dist/api/api-schemas/productType.d.cts.map +1 -0
- package/dist/api/api-schemas/productType.d.ts +15 -0
- package/dist/api/api-schemas/productType.d.ts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.cjs +7 -0
- package/dist/api/api-schemas/productTypeServiceKind.cjs.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.cts +21 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.cts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.ts +21 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.ts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.js +6 -0
- package/dist/api/api-schemas/productTypeServiceKind.js.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.cts +11 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.ts +11 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts +12 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts +12 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts +10 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts +10 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts +19 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts +19 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/productsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/productsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts +9 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts +9 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts +13 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts +13 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.cjs +10 -0
- package/dist/api/api-schemas/qFormatParameter.cjs.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.d.cts +19 -0
- package/dist/api/api-schemas/qFormatParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.d.ts +19 -0
- package/dist/api/api-schemas/qFormatParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.js +9 -0
- package/dist/api/api-schemas/qFormatParameter.js.map +1 -0
- package/dist/api/api-schemas/qFromParameter.d.cts +18 -0
- package/dist/api/api-schemas/qFromParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qFromParameter.d.ts +18 -0
- package/dist/api/api-schemas/qFromParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qMIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qMIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qMIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qMIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qNameParameter.d.cts +18 -0
- package/dist/api/api-schemas/qNameParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qNameParameter.d.ts +18 -0
- package/dist/api/api-schemas/qNameParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qPbpParameter.d.cts +18 -0
- package/dist/api/api-schemas/qPbpParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qPbpParameter.d.ts +18 -0
- package/dist/api/api-schemas/qPbpParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qProductIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qProductIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qProductIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qProductIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUntilParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUntilParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUntilParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUntilParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUserIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUserIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUserIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUserIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts +19 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts +19 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/storageChargeItem.d.cts +19 -0
- package/dist/api/api-schemas/storageChargeItem.d.cts.map +1 -0
- package/dist/api/api-schemas/storageChargeItem.d.ts +19 -0
- package/dist/api/api-schemas/storageChargeItem.d.ts.map +1 -0
- package/dist/api/api-schemas/storageCharges.d.cts +11 -0
- package/dist/api/api-schemas/storageCharges.d.cts.map +1 -0
- package/dist/api/api-schemas/storageCharges.d.ts +11 -0
- package/dist/api/api-schemas/storageCharges.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetail.d.cts +27 -0
- package/dist/api/api-schemas/unitAllDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/unitAllDetail.d.ts +27 -0
- package/dist/api/api-schemas/unitAllDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitChargeSummary.d.cts +10 -0
- package/dist/api/api-schemas/unitChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/unitChargeSummary.d.ts +10 -0
- package/dist/api/api-schemas/unitChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts +32 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts +32 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetail.d.cts +24 -0
- package/dist/api/api-schemas/unitDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/unitDetail.d.ts +24 -0
- package/dist/api/api-schemas/unitDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/unitGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/unitGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts +14 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts +14 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts +26 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts +26 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts +12 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts +12 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts +30 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts +30 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs +12 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js +11 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs +10 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js +9 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js.map +1 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/unitsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/unitsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/userAccountDetail.d.cts +14 -0
- package/dist/api/api-schemas/userAccountDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/userAccountDetail.d.ts +14 -0
- package/dist/api/api-schemas/userAccountDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/userDetail.d.cts +18 -0
- package/dist/api/api-schemas/userDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/userDetail.d.ts +18 -0
- package/dist/api/api-schemas/userDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/usersGetResponse.d.cts +17 -0
- package/dist/api/api-schemas/usersGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/usersGetResponse.d.ts +17 -0
- package/dist/api/api-schemas/usersGetResponse.d.ts.map +1 -0
- package/dist/api/asset/asset.cjs +114 -90
- package/dist/api/asset/asset.cjs.map +1 -1
- package/dist/api/asset/asset.d.cts +33 -17
- package/dist/api/asset/asset.d.cts.map +1 -1
- package/dist/api/asset/asset.d.ts +33 -17
- package/dist/api/asset/asset.d.ts.map +1 -1
- package/dist/api/asset/asset.fetch.cjs +478 -0
- package/dist/api/asset/asset.fetch.cjs.map +1 -0
- package/dist/api/asset/asset.fetch.d.cts +546 -0
- package/dist/api/asset/asset.fetch.d.cts.map +1 -0
- package/dist/api/asset/asset.fetch.d.ts +546 -0
- package/dist/api/asset/asset.fetch.d.ts.map +1 -0
- package/dist/api/asset/asset.fetch.js +434 -0
- package/dist/api/asset/asset.fetch.js.map +1 -0
- package/dist/api/asset/asset.js +93 -71
- package/dist/api/asset/asset.js.map +1 -1
- package/dist/api/charges/charges.cjs +122 -66
- package/dist/api/charges/charges.cjs.map +1 -1
- package/dist/api/charges/charges.d.cts +40 -16
- package/dist/api/charges/charges.d.cts.map +1 -1
- package/dist/api/charges/charges.d.ts +40 -16
- package/dist/api/charges/charges.d.ts.map +1 -1
- package/dist/api/charges/charges.fetch.cjs +347 -0
- package/dist/api/charges/charges.fetch.cjs.map +1 -0
- package/dist/api/charges/charges.fetch.d.cts +306 -0
- package/dist/api/charges/charges.fetch.d.cts.map +1 -0
- package/dist/api/charges/charges.fetch.d.ts +306 -0
- package/dist/api/charges/charges.fetch.d.ts.map +1 -0
- package/dist/api/charges/charges.fetch.js +315 -0
- package/dist/api/charges/charges.fetch.js.map +1 -0
- package/dist/api/charges/charges.js +107 -55
- package/dist/api/charges/charges.js.map +1 -1
- package/dist/api/event-stream/event-stream.cjs +69 -50
- package/dist/api/event-stream/event-stream.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.d.cts +23 -12
- package/dist/api/event-stream/event-stream.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.d.ts +23 -12
- package/dist/api/event-stream/event-stream.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.cjs +249 -0
- package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.d.cts +257 -0
- package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.d.ts +257 -0
- package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.js +225 -0
- package/dist/api/event-stream/event-stream.fetch.js.map +1 -0
- package/dist/api/event-stream/event-stream.js +58 -41
- package/dist/api/event-stream/event-stream.js.map +1 -1
- package/dist/api/merchant/merchant.cjs +54 -34
- package/dist/api/merchant/merchant.cjs.map +1 -1
- package/dist/api/merchant/merchant.d.cts +20 -10
- package/dist/api/merchant/merchant.d.cts.map +1 -1
- package/dist/api/merchant/merchant.d.ts +20 -10
- package/dist/api/merchant/merchant.d.ts.map +1 -1
- package/dist/api/merchant/merchant.fetch.cjs +165 -0
- package/dist/api/merchant/merchant.fetch.cjs.map +1 -0
- package/dist/api/merchant/merchant.fetch.d.cts +151 -0
- package/dist/api/merchant/merchant.fetch.d.cts.map +1 -0
- package/dist/api/merchant/merchant.fetch.d.ts +151 -0
- package/dist/api/merchant/merchant.fetch.d.ts.map +1 -0
- package/dist/api/merchant/merchant.fetch.js +149 -0
- package/dist/api/merchant/merchant.fetch.js.map +1 -0
- package/dist/api/merchant/merchant.js +47 -29
- package/dist/api/merchant/merchant.js.map +1 -1
- package/dist/api/organisation/organisation.cjs +110 -74
- package/dist/api/organisation/organisation.cjs.map +1 -1
- package/dist/api/organisation/organisation.d.cts +35 -16
- package/dist/api/organisation/organisation.d.cts.map +1 -1
- package/dist/api/organisation/organisation.d.ts +35 -16
- package/dist/api/organisation/organisation.d.ts.map +1 -1
- package/dist/api/organisation/organisation.fetch.cjs +379 -0
- package/dist/api/organisation/organisation.fetch.cjs.map +1 -0
- package/dist/api/organisation/organisation.fetch.d.cts +398 -0
- package/dist/api/organisation/organisation.fetch.d.cts.map +1 -0
- package/dist/api/organisation/organisation.fetch.d.ts +398 -0
- package/dist/api/organisation/organisation.fetch.d.ts.map +1 -0
- package/dist/api/organisation/organisation.fetch.js +343 -0
- package/dist/api/organisation/organisation.fetch.js.map +1 -0
- package/dist/api/organisation/organisation.js +93 -60
- package/dist/api/organisation/organisation.js.map +1 -1
- package/dist/api/product/product.cjs +188 -124
- package/dist/api/product/product.cjs.map +1 -1
- package/dist/api/product/product.d.cts +56 -25
- package/dist/api/product/product.d.cts.map +1 -1
- package/dist/api/product/product.d.ts +56 -25
- package/dist/api/product/product.d.ts.map +1 -1
- package/dist/api/product/product.fetch.cjs +591 -0
- package/dist/api/product/product.fetch.cjs.map +1 -0
- package/dist/api/product/product.fetch.d.cts +605 -0
- package/dist/api/product/product.fetch.d.cts.map +1 -0
- package/dist/api/product/product.fetch.d.ts +605 -0
- package/dist/api/product/product.fetch.d.ts.map +1 -0
- package/dist/api/product/product.fetch.js +531 -0
- package/dist/api/product/product.fetch.js.map +1 -0
- package/dist/api/product/product.js +159 -101
- package/dist/api/product/product.js.map +1 -1
- package/dist/api/state/state.cjs +25 -18
- package/dist/api/state/state.cjs.map +1 -1
- package/dist/api/state/state.d.cts +12 -7
- package/dist/api/state/state.d.cts.map +1 -1
- package/dist/api/state/state.d.ts +12 -7
- package/dist/api/state/state.d.ts.map +1 -1
- package/dist/api/state/state.fetch.cjs +89 -0
- package/dist/api/state/state.fetch.cjs.map +1 -0
- package/dist/api/state/state.fetch.d.cts +77 -0
- package/dist/api/state/state.fetch.d.cts.map +1 -0
- package/dist/api/state/state.fetch.d.ts +77 -0
- package/dist/api/state/state.fetch.d.ts.map +1 -0
- package/dist/api/state/state.fetch.js +81 -0
- package/dist/api/state/state.fetch.js.map +1 -0
- package/dist/api/state/state.js +22 -16
- package/dist/api/state/state.js.map +1 -1
- package/dist/api/unit/unit.cjs +169 -123
- package/dist/api/unit/unit.cjs.map +1 -1
- package/dist/api/unit/unit.d.cts +48 -23
- package/dist/api/unit/unit.d.cts.map +1 -1
- package/dist/api/unit/unit.d.ts +48 -23
- package/dist/api/unit/unit.d.ts.map +1 -1
- package/dist/api/unit/unit.fetch.cjs +620 -0
- package/dist/api/unit/unit.fetch.cjs.map +1 -0
- package/dist/api/unit/unit.fetch.d.cts +665 -0
- package/dist/api/unit/unit.fetch.d.cts.map +1 -0
- package/dist/api/unit/unit.fetch.d.ts +665 -0
- package/dist/api/unit/unit.fetch.d.ts.map +1 -0
- package/dist/api/unit/unit.fetch.js +560 -0
- package/dist/api/unit/unit.fetch.js.map +1 -0
- package/dist/api/unit/unit.js +140 -98
- package/dist/api/unit/unit.js.map +1 -1
- package/dist/api/user/user.cjs +121 -82
- package/dist/api/user/user.cjs.map +1 -1
- package/dist/api/user/user.d.cts +31 -17
- package/dist/api/user/user.d.cts.map +1 -1
- package/dist/api/user/user.d.ts +31 -17
- package/dist/api/user/user.d.ts.map +1 -1
- package/dist/api/user/user.fetch.cjs +407 -0
- package/dist/api/user/user.fetch.cjs.map +1 -0
- package/dist/api/user/user.fetch.d.cts +454 -0
- package/dist/api/user/user.fetch.d.cts.map +1 -0
- package/dist/api/user/user.fetch.d.ts +454 -0
- package/dist/api/user/user.fetch.d.ts.map +1 -0
- package/dist/api/user/user.fetch.js +367 -0
- package/dist/api/user/user.fetch.js.map +1 -0
- package/dist/api/user/user.js +102 -66
- package/dist/api/user/user.js.map +1 -1
- package/dist/{custom-instance.cjs → custom-axios.cjs} +6 -14
- package/dist/custom-axios.cjs.map +1 -0
- package/dist/{custom-instance.d.ts → custom-axios.d.cts} +2 -2
- package/dist/custom-axios.d.cts.map +1 -0
- package/dist/{custom-instance.d.cts → custom-axios.d.ts} +2 -2
- package/dist/custom-axios.d.ts.map +1 -0
- package/dist/{custom-instance.js → custom-axios.js} +6 -14
- package/dist/custom-axios.js.map +1 -0
- package/dist/custom-fetch.cjs +32 -0
- package/dist/custom-fetch.cjs.map +1 -0
- package/dist/custom-fetch.d.cts +13 -0
- package/dist/custom-fetch.d.cts.map +1 -0
- package/dist/custom-fetch.d.ts +13 -0
- package/dist/custom-fetch.d.ts.map +1 -0
- package/dist/custom-fetch.js +31 -0
- package/dist/custom-fetch.js.map +1 -0
- package/dist/index.cjs +53 -30
- package/dist/index.d.cts +118 -2
- package/dist/index.d.ts +118 -2
- package/dist/index.js +25 -2
- package/morph-query-keys.ts +57 -0
- package/orval.config.ts +46 -7
- package/package.json +256 -3
- package/src/api/actions/actions.fetch.ts +188 -0
- package/src/api/actions/actions.ts +29 -17
- package/src/api/api-schemas/actionDetail.ts +22 -0
- package/src/api/api-schemas/actionGetResponse.ts +20 -0
- package/src/api/api-schemas/asError.ts +15 -0
- package/src/api/api-schemas/assetDetail.ts +27 -0
- package/src/api/api-schemas/assetDetailScope.ts +21 -0
- package/src/api/api-schemas/assetGetByIdResponse.ts +13 -0
- package/src/api/api-schemas/assetGetResponse.ts +20 -0
- package/src/api/api-schemas/assetPatchBodyBody.ts +19 -0
- package/src/api/api-schemas/assetPostBodyBody.ts +32 -0
- package/src/api/api-schemas/assetPostBodyBodyScope.ts +25 -0
- package/src/api/api-schemas/assetPostResponse.ts +16 -0
- package/src/api/api-schemas/attachAssetParams.ts +19 -0
- package/src/api/api-schemas/chargeAdditionalData.ts +14 -0
- package/src/api/api-schemas/chargeSummary.ts +18 -0
- package/src/api/api-schemas/chargeSummaryType.ts +18 -0
- package/src/api/api-schemas/chargesGetResponse.ts +19 -0
- package/src/api/api-schemas/detachAssetParams.ts +19 -0
- package/src/api/api-schemas/eventStreamGetPostResponse.ts +21 -0
- package/src/api/api-schemas/eventStreamPostBodyBody.ts +13 -0
- package/src/api/api-schemas/eventStreamPostBodyBodyFormat.ts +19 -0
- package/src/api/api-schemas/eventStreamVersionGetResponse.ts +20 -0
- package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.ts +23 -0
- package/src/api/api-schemas/getActionsParams.ts +52 -0
- package/src/api/api-schemas/getAssetParams.ts +39 -0
- package/src/api/api-schemas/getChargesParams.ts +30 -0
- package/src/api/api-schemas/getOrganisationChargesParams.ts +30 -0
- package/src/api/api-schemas/getOrganisationsParams.ts +18 -0
- package/src/api/api-schemas/getProductChargesParams.ts +30 -0
- package/src/api/api-schemas/getUnitChargesParams.ts +30 -0
- package/src/api/api-schemas/getUnitsParams.ts +18 -0
- package/src/api/api-schemas/index.ts +128 -0
- package/src/api/api-schemas/merchantDetail.ts +23 -0
- package/src/api/api-schemas/merchantDetailKind.ts +18 -0
- package/src/api/api-schemas/merchantGetResponse.ts +13 -0
- package/src/api/api-schemas/merchantSummary.ts +20 -0
- package/src/api/api-schemas/merchantSummaryKind.ts +18 -0
- package/src/api/api-schemas/merchantsGetResponse.ts +18 -0
- package/src/api/api-schemas/organisationAllDetail.ts +30 -0
- package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationChargeSummary.ts +17 -0
- package/src/api/api-schemas/organisationChargesGetResponse.ts +20 -0
- package/src/api/api-schemas/organisationDetail.ts +27 -0
- package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationGetDefaultResponse.ts +28 -0
- package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationGetResponse.ts +13 -0
- package/src/api/api-schemas/organisationPatchBodyBody.ts +20 -0
- package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.ts +26 -0
- package/src/api/api-schemas/organisationPostBodyBody.ts +23 -0
- package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationPostResponse.ts +15 -0
- package/src/api/api-schemas/organisationUnitChargeSummary.ts +26 -0
- package/src/api/api-schemas/organisationUnitPostBodyBody.ts +27 -0
- package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationUnitPostResponse.ts +15 -0
- package/src/api/api-schemas/organisationUnitsGetResponse.ts +20 -0
- package/src/api/api-schemas/organisationsGetResponse.ts +17 -0
- package/src/api/api-schemas/personalUnitPutBodyBody.ts +19 -0
- package/src/api/api-schemas/personalUnitPutResponse.ts +17 -0
- package/src/api/api-schemas/processingChargeItem.ts +25 -0
- package/src/api/api-schemas/processingCharges.ts +25 -0
- package/src/api/api-schemas/processingChargesMerchantKind.ts +16 -0
- package/src/api/api-schemas/productChargesGetResponse.ts +36 -0
- package/src/api/api-schemas/productChargesGetResponseProductType.ts +19 -0
- package/src/api/api-schemas/productClaimDetail.ts +19 -0
- package/src/api/api-schemas/productCoinsDetail.ts +35 -0
- package/src/api/api-schemas/productDetail.ts +28 -0
- package/src/api/api-schemas/productDetailFlavour.ts +24 -0
- package/src/api/api-schemas/productDetailType.ts +22 -0
- package/src/api/api-schemas/productDmProjectTier.ts +29 -0
- package/src/api/api-schemas/productDmStorage.ts +25 -0
- package/src/api/api-schemas/productDmStorageDetail.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetailCoins.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetailSize.ts +21 -0
- package/src/api/api-schemas/productInstanceDetail.ts +15 -0
- package/src/api/api-schemas/productInstanceDetailCoins.ts +16 -0
- package/src/api/api-schemas/productPatchBodyBody.ts +28 -0
- package/src/api/api-schemas/productType.ts +20 -0
- package/src/api/api-schemas/productTypeServiceKind.ts +19 -0
- package/src/api/api-schemas/productUnitGetResponse.ts +16 -0
- package/src/api/api-schemas/productUnitGetResponseProduct.ts +17 -0
- package/src/api/api-schemas/productsGetDefaultStorageCost.ts +15 -0
- package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.ts +16 -0
- package/src/api/api-schemas/productsGetResponse.ts +17 -0
- package/src/api/api-schemas/productsGetResponseProductsItem.ts +14 -0
- package/src/api/api-schemas/productsGetTypesResponse.ts +18 -0
- package/src/api/api-schemas/qFormatParameter.ts +18 -0
- package/src/api/api-schemas/qFromParameter.ts +15 -0
- package/src/api/api-schemas/qMIdParameter.ts +15 -0
- package/src/api/api-schemas/qNameParameter.ts +15 -0
- package/src/api/api-schemas/qOrgIdParameter.ts +15 -0
- package/src/api/api-schemas/qPbpParameter.ts +15 -0
- package/src/api/api-schemas/qProductIdParameter.ts +15 -0
- package/src/api/api-schemas/qUnitIdParameter.ts +15 -0
- package/src/api/api-schemas/qUntilParameter.ts +15 -0
- package/src/api/api-schemas/qUserIdParameter.ts +15 -0
- package/src/api/api-schemas/stateGetVersionResponse.ts +16 -0
- package/src/api/api-schemas/storageChargeItem.ts +24 -0
- package/src/api/api-schemas/storageCharges.ts +16 -0
- package/src/api/api-schemas/unitAllDetail.ts +32 -0
- package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/unitChargeSummary.ts +15 -0
- package/src/api/api-schemas/unitChargesGetResponse.ts +37 -0
- package/src/api/api-schemas/unitDetail.ts +29 -0
- package/src/api/api-schemas/unitDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/unitGetResponse.ts +13 -0
- package/src/api/api-schemas/unitPatchBodyBody.ts +20 -0
- package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.ts +26 -0
- package/src/api/api-schemas/unitProductChargeSummary.ts +17 -0
- package/src/api/api-schemas/unitProductPostBodyBody.ts +36 -0
- package/src/api/api-schemas/unitProductPostBodyBodyFlavour.ts +24 -0
- package/src/api/api-schemas/unitProductPostBodyBodyType.ts +24 -0
- package/src/api/api-schemas/unitProductPostResponse.ts +15 -0
- package/src/api/api-schemas/unitsGetResponse.ts +17 -0
- package/src/api/api-schemas/userAccountDetail.ts +19 -0
- package/src/api/api-schemas/userAccountGetResponse.ts +13 -0
- package/src/api/api-schemas/userDetail.ts +15 -0
- package/src/api/api-schemas/usersGetResponse.ts +22 -0
- package/src/api/asset/asset.fetch.ts +1119 -0
- package/src/api/asset/asset.ts +70 -64
- package/src/api/charges/charges.fetch.ts +777 -0
- package/src/api/charges/charges.ts +101 -50
- package/src/api/event-stream/event-stream.fetch.ts +539 -0
- package/src/api/event-stream/event-stream.ts +49 -37
- package/src/api/merchant/merchant.fetch.ts +318 -0
- package/src/api/merchant/merchant.ts +48 -28
- package/src/api/organisation/organisation.fetch.ts +863 -0
- package/src/api/organisation/organisation.ts +73 -53
- package/src/api/product/product.fetch.ts +1292 -0
- package/src/api/product/product.ts +141 -88
- package/src/api/state/state.fetch.ts +162 -0
- package/src/api/state/state.ts +28 -17
- package/src/api/unit/unit.fetch.ts +1394 -0
- package/src/api/unit/unit.ts +116 -88
- package/src/api/user/user.fetch.ts +965 -0
- package/src/api/user/user.ts +82 -58
- package/src/{custom-instance.ts → custom-axios.ts} +1 -14
- package/src/custom-fetch.ts +59 -0
- package/src/index.ts +2 -2
- package/tsdown.config.ts +35 -4
- package/dist/api/api.schemas.cjs +0 -142
- package/dist/api/api.schemas.cjs.map +0 -1
- package/dist/api/api.schemas.d.cts +0 -1032
- package/dist/api/api.schemas.d.cts.map +0 -1
- package/dist/api/api.schemas.d.ts +0 -1032
- package/dist/api/api.schemas.d.ts.map +0 -1
- package/dist/api/api.schemas.js +0 -118
- package/dist/api/api.schemas.js.map +0 -1
- package/dist/custom-instance.cjs.map +0 -1
- package/dist/custom-instance.d.cts.map +0 -1
- package/dist/custom-instance.d.ts.map +0 -1
- package/dist/custom-instance.js.map +0 -1
- package/dist/options-mutator.cjs +0 -24
- package/dist/options-mutator.cjs.map +0 -1
- package/dist/options-mutator.js +0 -23
- package/dist/options-mutator.js.map +0 -1
- package/src/api/api.schemas.ts +0 -1199
- package/src/options-mutator.ts +0 -27
|
@@ -0,0 +1,965 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.17.0 🍺
|
|
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 { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
|
+
import type {
|
|
13
|
+
InvalidateOptions,
|
|
14
|
+
MutationFunction,
|
|
15
|
+
QueryClient,
|
|
16
|
+
QueryFunction,
|
|
17
|
+
QueryKey,
|
|
18
|
+
UseMutationOptions,
|
|
19
|
+
UseMutationResult,
|
|
20
|
+
UseQueryOptions,
|
|
21
|
+
UseQueryResult,
|
|
22
|
+
UseSuspenseQueryOptions,
|
|
23
|
+
UseSuspenseQueryResult,
|
|
24
|
+
} from "@tanstack/react-query";
|
|
25
|
+
|
|
26
|
+
import type { AsError, UserAccountDetail, UsersGetResponse } from ".././api-schemas";
|
|
27
|
+
|
|
28
|
+
import { customFetch } from "../../custom-fetch";
|
|
29
|
+
import type { ErrorType } from "../../custom-fetch";
|
|
30
|
+
|
|
31
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Returns a summary of your account
|
|
35
|
+
|
|
36
|
+
* @summary Get information about your account
|
|
37
|
+
*/
|
|
38
|
+
export type getUserAccountResponse200 = { data: UserAccountDetail; status: 200 };
|
|
39
|
+
|
|
40
|
+
export type getUserAccountResponse401 = { data: void; status: 401 };
|
|
41
|
+
|
|
42
|
+
export type getUserAccountResponse403 = { data: AsError; status: 403 };
|
|
43
|
+
|
|
44
|
+
export type getUserAccountResponseSuccess = getUserAccountResponse200 & { headers: Headers };
|
|
45
|
+
export type getUserAccountResponseError = (
|
|
46
|
+
| getUserAccountResponse401
|
|
47
|
+
| getUserAccountResponse403
|
|
48
|
+
) & { headers: Headers };
|
|
49
|
+
|
|
50
|
+
export type getUserAccountResponse = getUserAccountResponseSuccess | getUserAccountResponseError;
|
|
51
|
+
|
|
52
|
+
export const getGetUserAccountUrl = () => {
|
|
53
|
+
return `/user/account`;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const getUserAccount = async (options?: RequestInit): Promise<getUserAccountResponse> => {
|
|
57
|
+
return customFetch<getUserAccountResponse>(getGetUserAccountUrl(), { ...options, method: "GET" });
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const getGetUserAccountQueryKey = () => {
|
|
61
|
+
return ["account-server", "user", "account"] as const;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const getGetUserAccountQueryOptions = <
|
|
65
|
+
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
66
|
+
TError = ErrorType<void | AsError>,
|
|
67
|
+
>(options?: {
|
|
68
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
69
|
+
request?: SecondParameter<typeof customFetch>;
|
|
70
|
+
}) => {
|
|
71
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
72
|
+
|
|
73
|
+
const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey();
|
|
74
|
+
|
|
75
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) =>
|
|
76
|
+
getUserAccount({ signal, ...requestOptions });
|
|
77
|
+
|
|
78
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
79
|
+
Awaited<ReturnType<typeof getUserAccount>>,
|
|
80
|
+
TError,
|
|
81
|
+
TData
|
|
82
|
+
> & { queryKey: QueryKey };
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;
|
|
86
|
+
export type GetUserAccountQueryError = ErrorType<void | AsError>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @summary Get information about your account
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
export function useGetUserAccount<
|
|
93
|
+
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
94
|
+
TError = ErrorType<void | AsError>,
|
|
95
|
+
>(options?: {
|
|
96
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
97
|
+
request?: SecondParameter<typeof customFetch>;
|
|
98
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
99
|
+
const queryOptions = getGetUserAccountQueryOptions(options);
|
|
100
|
+
|
|
101
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
102
|
+
|
|
103
|
+
query.queryKey = queryOptions.queryKey;
|
|
104
|
+
|
|
105
|
+
return query;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @summary Get information about your account
|
|
110
|
+
*/
|
|
111
|
+
export const invalidateGetUserAccount = async (
|
|
112
|
+
queryClient: QueryClient,
|
|
113
|
+
options?: InvalidateOptions,
|
|
114
|
+
): Promise<QueryClient> => {
|
|
115
|
+
await queryClient.invalidateQueries({ queryKey: getGetUserAccountQueryKey() }, options);
|
|
116
|
+
|
|
117
|
+
return queryClient;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export const getGetUserAccountSuspenseQueryOptions = <
|
|
121
|
+
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
122
|
+
TError = ErrorType<void | AsError>,
|
|
123
|
+
>(options?: {
|
|
124
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
125
|
+
request?: SecondParameter<typeof customFetch>;
|
|
126
|
+
}) => {
|
|
127
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
128
|
+
|
|
129
|
+
const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey();
|
|
130
|
+
|
|
131
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) =>
|
|
132
|
+
getUserAccount({ signal, ...requestOptions });
|
|
133
|
+
|
|
134
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
135
|
+
Awaited<ReturnType<typeof getUserAccount>>,
|
|
136
|
+
TError,
|
|
137
|
+
TData
|
|
138
|
+
> & { queryKey: QueryKey };
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export type GetUserAccountSuspenseQueryResult = NonNullable<
|
|
142
|
+
Awaited<ReturnType<typeof getUserAccount>>
|
|
143
|
+
>;
|
|
144
|
+
export type GetUserAccountSuspenseQueryError = ErrorType<void | AsError>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @summary Get information about your account
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
export function useGetUserAccountSuspense<
|
|
151
|
+
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
152
|
+
TError = ErrorType<void | AsError>,
|
|
153
|
+
>(options?: {
|
|
154
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
155
|
+
request?: SecondParameter<typeof customFetch>;
|
|
156
|
+
}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
157
|
+
const queryOptions = getGetUserAccountSuspenseQueryOptions(options);
|
|
158
|
+
|
|
159
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
160
|
+
queryKey: QueryKey;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
query.queryKey = queryOptions.queryKey;
|
|
164
|
+
|
|
165
|
+
return query;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Gets Users in an Organisation.
|
|
170
|
+
|
|
171
|
+
You have to be a member of the Organisation or an admin user to use this endpoint
|
|
172
|
+
|
|
173
|
+
**WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /organisation/{org_id}` endpoint instead.
|
|
174
|
+
|
|
175
|
+
* @summary Gets users in an Organisation
|
|
176
|
+
*/
|
|
177
|
+
export type getOrganisationUsersResponse200 = { data: UsersGetResponse; status: 200 };
|
|
178
|
+
|
|
179
|
+
export type getOrganisationUsersResponse400 = { data: AsError; status: 400 };
|
|
180
|
+
|
|
181
|
+
export type getOrganisationUsersResponse401 = { data: void; status: 401 };
|
|
182
|
+
|
|
183
|
+
export type getOrganisationUsersResponse403 = { data: AsError; status: 403 };
|
|
184
|
+
|
|
185
|
+
export type getOrganisationUsersResponseSuccess = getOrganisationUsersResponse200 & {
|
|
186
|
+
headers: Headers;
|
|
187
|
+
};
|
|
188
|
+
export type getOrganisationUsersResponseError = (
|
|
189
|
+
| getOrganisationUsersResponse400
|
|
190
|
+
| getOrganisationUsersResponse401
|
|
191
|
+
| getOrganisationUsersResponse403
|
|
192
|
+
) & { headers: Headers };
|
|
193
|
+
|
|
194
|
+
export type getOrganisationUsersResponse =
|
|
195
|
+
| getOrganisationUsersResponseSuccess
|
|
196
|
+
| getOrganisationUsersResponseError;
|
|
197
|
+
|
|
198
|
+
export const getGetOrganisationUsersUrl = (orgId: string) => {
|
|
199
|
+
return `/organisation/${orgId}/user`;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export const getOrganisationUsers = async (
|
|
203
|
+
orgId: string,
|
|
204
|
+
options?: RequestInit,
|
|
205
|
+
): Promise<getOrganisationUsersResponse> => {
|
|
206
|
+
return customFetch<getOrganisationUsersResponse>(getGetOrganisationUsersUrl(orgId), {
|
|
207
|
+
...options,
|
|
208
|
+
method: "GET",
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export const getGetOrganisationUsersQueryKey = (orgId?: string) => {
|
|
213
|
+
return ["account-server", "organisation", orgId, "user"] as const;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export const getGetOrganisationUsersQueryOptions = <
|
|
217
|
+
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
218
|
+
TError = ErrorType<AsError | void>,
|
|
219
|
+
>(
|
|
220
|
+
orgId: string,
|
|
221
|
+
options?: {
|
|
222
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>;
|
|
223
|
+
request?: SecondParameter<typeof customFetch>;
|
|
224
|
+
},
|
|
225
|
+
) => {
|
|
226
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
227
|
+
|
|
228
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationUsersQueryKey(orgId);
|
|
229
|
+
|
|
230
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUsers>>> = ({ signal }) =>
|
|
231
|
+
getOrganisationUsers(orgId, { signal, ...requestOptions });
|
|
232
|
+
|
|
233
|
+
return { queryKey, queryFn, enabled: !!orgId, ...queryOptions } as UseQueryOptions<
|
|
234
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
235
|
+
TError,
|
|
236
|
+
TData
|
|
237
|
+
> & { queryKey: QueryKey };
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export type GetOrganisationUsersQueryResult = NonNullable<
|
|
241
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>
|
|
242
|
+
>;
|
|
243
|
+
export type GetOrganisationUsersQueryError = ErrorType<AsError | void>;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @summary Gets users in an Organisation
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
export function useGetOrganisationUsers<
|
|
250
|
+
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
251
|
+
TError = ErrorType<AsError | void>,
|
|
252
|
+
>(
|
|
253
|
+
orgId: string,
|
|
254
|
+
options?: {
|
|
255
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>;
|
|
256
|
+
request?: SecondParameter<typeof customFetch>;
|
|
257
|
+
},
|
|
258
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
259
|
+
const queryOptions = getGetOrganisationUsersQueryOptions(orgId, options);
|
|
260
|
+
|
|
261
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
262
|
+
|
|
263
|
+
query.queryKey = queryOptions.queryKey;
|
|
264
|
+
|
|
265
|
+
return query;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @summary Gets users in an Organisation
|
|
270
|
+
*/
|
|
271
|
+
export const invalidateGetOrganisationUsers = async (
|
|
272
|
+
queryClient: QueryClient,
|
|
273
|
+
orgId: string,
|
|
274
|
+
options?: InvalidateOptions,
|
|
275
|
+
): Promise<QueryClient> => {
|
|
276
|
+
await queryClient.invalidateQueries(
|
|
277
|
+
{ queryKey: getGetOrganisationUsersQueryKey(orgId) },
|
|
278
|
+
options,
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
return queryClient;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export const getGetOrganisationUsersSuspenseQueryOptions = <
|
|
285
|
+
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
286
|
+
TError = ErrorType<AsError | void>,
|
|
287
|
+
>(
|
|
288
|
+
orgId: string,
|
|
289
|
+
options?: {
|
|
290
|
+
query?: UseSuspenseQueryOptions<
|
|
291
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
292
|
+
TError,
|
|
293
|
+
TData
|
|
294
|
+
>;
|
|
295
|
+
request?: SecondParameter<typeof customFetch>;
|
|
296
|
+
},
|
|
297
|
+
) => {
|
|
298
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
299
|
+
|
|
300
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationUsersQueryKey(orgId);
|
|
301
|
+
|
|
302
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUsers>>> = ({ signal }) =>
|
|
303
|
+
getOrganisationUsers(orgId, { signal, ...requestOptions });
|
|
304
|
+
|
|
305
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
306
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
307
|
+
TError,
|
|
308
|
+
TData
|
|
309
|
+
> & { queryKey: QueryKey };
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
export type GetOrganisationUsersSuspenseQueryResult = NonNullable<
|
|
313
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>
|
|
314
|
+
>;
|
|
315
|
+
export type GetOrganisationUsersSuspenseQueryError = ErrorType<AsError | void>;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @summary Gets users in an Organisation
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
export function useGetOrganisationUsersSuspense<
|
|
322
|
+
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
323
|
+
TError = ErrorType<AsError | void>,
|
|
324
|
+
>(
|
|
325
|
+
orgId: string,
|
|
326
|
+
options?: {
|
|
327
|
+
query?: UseSuspenseQueryOptions<
|
|
328
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
329
|
+
TError,
|
|
330
|
+
TData
|
|
331
|
+
>;
|
|
332
|
+
request?: SecondParameter<typeof customFetch>;
|
|
333
|
+
},
|
|
334
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
335
|
+
const queryOptions = getGetOrganisationUsersSuspenseQueryOptions(orgId, options);
|
|
336
|
+
|
|
337
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
338
|
+
queryKey: QueryKey;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
query.queryKey = queryOptions.queryKey;
|
|
342
|
+
|
|
343
|
+
return query;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Adds a User to an **Organisation**.
|
|
348
|
+
|
|
349
|
+
You have to be in the Organisation or an admin user to use this endpoint
|
|
350
|
+
|
|
351
|
+
* @summary Adds a User to an Organisation
|
|
352
|
+
*/
|
|
353
|
+
export type addOrganisationUserResponse201 = { data: void; status: 201 };
|
|
354
|
+
|
|
355
|
+
export type addOrganisationUserResponse400 = { data: AsError; status: 400 };
|
|
356
|
+
|
|
357
|
+
export type addOrganisationUserResponse401 = { data: void; status: 401 };
|
|
358
|
+
|
|
359
|
+
export type addOrganisationUserResponse403 = { data: AsError; status: 403 };
|
|
360
|
+
|
|
361
|
+
export type addOrganisationUserResponseSuccess = addOrganisationUserResponse201 & {
|
|
362
|
+
headers: Headers;
|
|
363
|
+
};
|
|
364
|
+
export type addOrganisationUserResponseError = (
|
|
365
|
+
| addOrganisationUserResponse400
|
|
366
|
+
| addOrganisationUserResponse401
|
|
367
|
+
| addOrganisationUserResponse403
|
|
368
|
+
) & { headers: Headers };
|
|
369
|
+
|
|
370
|
+
export type addOrganisationUserResponse =
|
|
371
|
+
| addOrganisationUserResponseSuccess
|
|
372
|
+
| addOrganisationUserResponseError;
|
|
373
|
+
|
|
374
|
+
export const getAddOrganisationUserUrl = (orgId: string, userId: string) => {
|
|
375
|
+
return `/organisation/${orgId}/user/${userId}`;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
export const addOrganisationUser = async (
|
|
379
|
+
orgId: string,
|
|
380
|
+
userId: string,
|
|
381
|
+
options?: RequestInit,
|
|
382
|
+
): Promise<addOrganisationUserResponse> => {
|
|
383
|
+
return customFetch<addOrganisationUserResponse>(getAddOrganisationUserUrl(orgId, userId), {
|
|
384
|
+
...options,
|
|
385
|
+
method: "PUT",
|
|
386
|
+
});
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
export const getAddOrganisationUserMutationOptions = <
|
|
390
|
+
TError = ErrorType<AsError | void>,
|
|
391
|
+
TContext = unknown,
|
|
392
|
+
>(options?: {
|
|
393
|
+
mutation?: UseMutationOptions<
|
|
394
|
+
Awaited<ReturnType<typeof addOrganisationUser>>,
|
|
395
|
+
TError,
|
|
396
|
+
{ orgId: string; userId: string },
|
|
397
|
+
TContext
|
|
398
|
+
>;
|
|
399
|
+
request?: SecondParameter<typeof customFetch>;
|
|
400
|
+
}): UseMutationOptions<
|
|
401
|
+
Awaited<ReturnType<typeof addOrganisationUser>>,
|
|
402
|
+
TError,
|
|
403
|
+
{ orgId: string; userId: string },
|
|
404
|
+
TContext
|
|
405
|
+
> => {
|
|
406
|
+
const mutationKey = ["addOrganisationUser"];
|
|
407
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
408
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
409
|
+
? options
|
|
410
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
411
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
412
|
+
|
|
413
|
+
const mutationFn: MutationFunction<
|
|
414
|
+
Awaited<ReturnType<typeof addOrganisationUser>>,
|
|
415
|
+
{ orgId: string; userId: string }
|
|
416
|
+
> = (props) => {
|
|
417
|
+
const { orgId, userId } = props ?? {};
|
|
418
|
+
|
|
419
|
+
return addOrganisationUser(orgId, userId, requestOptions);
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
return { mutationFn, ...mutationOptions };
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
export type AddOrganisationUserMutationResult = NonNullable<
|
|
426
|
+
Awaited<ReturnType<typeof addOrganisationUser>>
|
|
427
|
+
>;
|
|
428
|
+
|
|
429
|
+
export type AddOrganisationUserMutationError = ErrorType<AsError | void>;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @summary Adds a User to an Organisation
|
|
433
|
+
*/
|
|
434
|
+
export const useAddOrganisationUser = <
|
|
435
|
+
TError = ErrorType<AsError | void>,
|
|
436
|
+
TContext = unknown,
|
|
437
|
+
>(options?: {
|
|
438
|
+
mutation?: UseMutationOptions<
|
|
439
|
+
Awaited<ReturnType<typeof addOrganisationUser>>,
|
|
440
|
+
TError,
|
|
441
|
+
{ orgId: string; userId: string },
|
|
442
|
+
TContext
|
|
443
|
+
>;
|
|
444
|
+
request?: SecondParameter<typeof customFetch>;
|
|
445
|
+
}): UseMutationResult<
|
|
446
|
+
Awaited<ReturnType<typeof addOrganisationUser>>,
|
|
447
|
+
TError,
|
|
448
|
+
{ orgId: string; userId: string },
|
|
449
|
+
TContext
|
|
450
|
+
> => {
|
|
451
|
+
const mutationOptions = getAddOrganisationUserMutationOptions(options);
|
|
452
|
+
|
|
453
|
+
return useMutation(mutationOptions);
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* Removes a User from an **Organisation**.
|
|
457
|
+
|
|
458
|
+
You have to be in the Organisation or an admin user to use this endpoint
|
|
459
|
+
|
|
460
|
+
* @summary Deletes a User from an Organisation
|
|
461
|
+
*/
|
|
462
|
+
export type deleteOrganisationUserResponse204 = { data: void; status: 204 };
|
|
463
|
+
|
|
464
|
+
export type deleteOrganisationUserResponse400 = { data: AsError; status: 400 };
|
|
465
|
+
|
|
466
|
+
export type deleteOrganisationUserResponse401 = { data: void; status: 401 };
|
|
467
|
+
|
|
468
|
+
export type deleteOrganisationUserResponse403 = { data: AsError; status: 403 };
|
|
469
|
+
|
|
470
|
+
export type deleteOrganisationUserResponseSuccess = deleteOrganisationUserResponse204 & {
|
|
471
|
+
headers: Headers;
|
|
472
|
+
};
|
|
473
|
+
export type deleteOrganisationUserResponseError = (
|
|
474
|
+
| deleteOrganisationUserResponse400
|
|
475
|
+
| deleteOrganisationUserResponse401
|
|
476
|
+
| deleteOrganisationUserResponse403
|
|
477
|
+
) & { headers: Headers };
|
|
478
|
+
|
|
479
|
+
export type deleteOrganisationUserResponse =
|
|
480
|
+
| deleteOrganisationUserResponseSuccess
|
|
481
|
+
| deleteOrganisationUserResponseError;
|
|
482
|
+
|
|
483
|
+
export const getDeleteOrganisationUserUrl = (orgId: string, userId: string) => {
|
|
484
|
+
return `/organisation/${orgId}/user/${userId}`;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
export const deleteOrganisationUser = async (
|
|
488
|
+
orgId: string,
|
|
489
|
+
userId: string,
|
|
490
|
+
options?: RequestInit,
|
|
491
|
+
): Promise<deleteOrganisationUserResponse> => {
|
|
492
|
+
return customFetch<deleteOrganisationUserResponse>(getDeleteOrganisationUserUrl(orgId, userId), {
|
|
493
|
+
...options,
|
|
494
|
+
method: "DELETE",
|
|
495
|
+
});
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
export const getDeleteOrganisationUserMutationOptions = <
|
|
499
|
+
TError = ErrorType<AsError | void>,
|
|
500
|
+
TContext = unknown,
|
|
501
|
+
>(options?: {
|
|
502
|
+
mutation?: UseMutationOptions<
|
|
503
|
+
Awaited<ReturnType<typeof deleteOrganisationUser>>,
|
|
504
|
+
TError,
|
|
505
|
+
{ orgId: string; userId: string },
|
|
506
|
+
TContext
|
|
507
|
+
>;
|
|
508
|
+
request?: SecondParameter<typeof customFetch>;
|
|
509
|
+
}): UseMutationOptions<
|
|
510
|
+
Awaited<ReturnType<typeof deleteOrganisationUser>>,
|
|
511
|
+
TError,
|
|
512
|
+
{ orgId: string; userId: string },
|
|
513
|
+
TContext
|
|
514
|
+
> => {
|
|
515
|
+
const mutationKey = ["deleteOrganisationUser"];
|
|
516
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
517
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
518
|
+
? options
|
|
519
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
520
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
521
|
+
|
|
522
|
+
const mutationFn: MutationFunction<
|
|
523
|
+
Awaited<ReturnType<typeof deleteOrganisationUser>>,
|
|
524
|
+
{ orgId: string; userId: string }
|
|
525
|
+
> = (props) => {
|
|
526
|
+
const { orgId, userId } = props ?? {};
|
|
527
|
+
|
|
528
|
+
return deleteOrganisationUser(orgId, userId, requestOptions);
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
return { mutationFn, ...mutationOptions };
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
export type DeleteOrganisationUserMutationResult = NonNullable<
|
|
535
|
+
Awaited<ReturnType<typeof deleteOrganisationUser>>
|
|
536
|
+
>;
|
|
537
|
+
|
|
538
|
+
export type DeleteOrganisationUserMutationError = ErrorType<AsError | void>;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* @summary Deletes a User from an Organisation
|
|
542
|
+
*/
|
|
543
|
+
export const useDeleteOrganisationUser = <
|
|
544
|
+
TError = ErrorType<AsError | void>,
|
|
545
|
+
TContext = unknown,
|
|
546
|
+
>(options?: {
|
|
547
|
+
mutation?: UseMutationOptions<
|
|
548
|
+
Awaited<ReturnType<typeof deleteOrganisationUser>>,
|
|
549
|
+
TError,
|
|
550
|
+
{ orgId: string; userId: string },
|
|
551
|
+
TContext
|
|
552
|
+
>;
|
|
553
|
+
request?: SecondParameter<typeof customFetch>;
|
|
554
|
+
}): UseMutationResult<
|
|
555
|
+
Awaited<ReturnType<typeof deleteOrganisationUser>>,
|
|
556
|
+
TError,
|
|
557
|
+
{ orgId: string; userId: string },
|
|
558
|
+
TContext
|
|
559
|
+
> => {
|
|
560
|
+
const mutationOptions = getDeleteOrganisationUserMutationOptions(options);
|
|
561
|
+
|
|
562
|
+
return useMutation(mutationOptions);
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* Gets users in an Organisational Unit.
|
|
566
|
+
|
|
567
|
+
You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
568
|
+
|
|
569
|
+
**WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /unit/{unit_id}` endpoint instead.
|
|
570
|
+
|
|
571
|
+
* @summary Gets users in an Organisational Unit
|
|
572
|
+
*/
|
|
573
|
+
export type getOrganisationUnitUsersResponse200 = { data: UsersGetResponse; status: 200 };
|
|
574
|
+
|
|
575
|
+
export type getOrganisationUnitUsersResponse400 = { data: AsError; status: 400 };
|
|
576
|
+
|
|
577
|
+
export type getOrganisationUnitUsersResponse401 = { data: void; status: 401 };
|
|
578
|
+
|
|
579
|
+
export type getOrganisationUnitUsersResponse403 = { data: AsError; status: 403 };
|
|
580
|
+
|
|
581
|
+
export type getOrganisationUnitUsersResponseSuccess = getOrganisationUnitUsersResponse200 & {
|
|
582
|
+
headers: Headers;
|
|
583
|
+
};
|
|
584
|
+
export type getOrganisationUnitUsersResponseError = (
|
|
585
|
+
| getOrganisationUnitUsersResponse400
|
|
586
|
+
| getOrganisationUnitUsersResponse401
|
|
587
|
+
| getOrganisationUnitUsersResponse403
|
|
588
|
+
) & { headers: Headers };
|
|
589
|
+
|
|
590
|
+
export type getOrganisationUnitUsersResponse =
|
|
591
|
+
| getOrganisationUnitUsersResponseSuccess
|
|
592
|
+
| getOrganisationUnitUsersResponseError;
|
|
593
|
+
|
|
594
|
+
export const getGetOrganisationUnitUsersUrl = (unitId: string) => {
|
|
595
|
+
return `/unit/${unitId}/user`;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
export const getOrganisationUnitUsers = async (
|
|
599
|
+
unitId: string,
|
|
600
|
+
options?: RequestInit,
|
|
601
|
+
): Promise<getOrganisationUnitUsersResponse> => {
|
|
602
|
+
return customFetch<getOrganisationUnitUsersResponse>(getGetOrganisationUnitUsersUrl(unitId), {
|
|
603
|
+
...options,
|
|
604
|
+
method: "GET",
|
|
605
|
+
});
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
export const getGetOrganisationUnitUsersQueryKey = (unitId?: string) => {
|
|
609
|
+
return ["account-server", "unit", unitId, "user"] as const;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
export const getGetOrganisationUnitUsersQueryOptions = <
|
|
613
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
614
|
+
TError = ErrorType<AsError | void>,
|
|
615
|
+
>(
|
|
616
|
+
unitId: string,
|
|
617
|
+
options?: {
|
|
618
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>;
|
|
619
|
+
request?: SecondParameter<typeof customFetch>;
|
|
620
|
+
},
|
|
621
|
+
) => {
|
|
622
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
623
|
+
|
|
624
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitUsersQueryKey(unitId);
|
|
625
|
+
|
|
626
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnitUsers>>> = ({
|
|
627
|
+
signal,
|
|
628
|
+
}) => getOrganisationUnitUsers(unitId, { signal, ...requestOptions });
|
|
629
|
+
|
|
630
|
+
return { queryKey, queryFn, enabled: !!unitId, ...queryOptions } as UseQueryOptions<
|
|
631
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
632
|
+
TError,
|
|
633
|
+
TData
|
|
634
|
+
> & { queryKey: QueryKey };
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export type GetOrganisationUnitUsersQueryResult = NonNullable<
|
|
638
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>
|
|
639
|
+
>;
|
|
640
|
+
export type GetOrganisationUnitUsersQueryError = ErrorType<AsError | void>;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* @summary Gets users in an Organisational Unit
|
|
644
|
+
*/
|
|
645
|
+
|
|
646
|
+
export function useGetOrganisationUnitUsers<
|
|
647
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
648
|
+
TError = ErrorType<AsError | void>,
|
|
649
|
+
>(
|
|
650
|
+
unitId: string,
|
|
651
|
+
options?: {
|
|
652
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>;
|
|
653
|
+
request?: SecondParameter<typeof customFetch>;
|
|
654
|
+
},
|
|
655
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
656
|
+
const queryOptions = getGetOrganisationUnitUsersQueryOptions(unitId, options);
|
|
657
|
+
|
|
658
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
659
|
+
|
|
660
|
+
query.queryKey = queryOptions.queryKey;
|
|
661
|
+
|
|
662
|
+
return query;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* @summary Gets users in an Organisational Unit
|
|
667
|
+
*/
|
|
668
|
+
export const invalidateGetOrganisationUnitUsers = async (
|
|
669
|
+
queryClient: QueryClient,
|
|
670
|
+
unitId: string,
|
|
671
|
+
options?: InvalidateOptions,
|
|
672
|
+
): Promise<QueryClient> => {
|
|
673
|
+
await queryClient.invalidateQueries(
|
|
674
|
+
{ queryKey: getGetOrganisationUnitUsersQueryKey(unitId) },
|
|
675
|
+
options,
|
|
676
|
+
);
|
|
677
|
+
|
|
678
|
+
return queryClient;
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
export const getGetOrganisationUnitUsersSuspenseQueryOptions = <
|
|
682
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
683
|
+
TError = ErrorType<AsError | void>,
|
|
684
|
+
>(
|
|
685
|
+
unitId: string,
|
|
686
|
+
options?: {
|
|
687
|
+
query?: UseSuspenseQueryOptions<
|
|
688
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
689
|
+
TError,
|
|
690
|
+
TData
|
|
691
|
+
>;
|
|
692
|
+
request?: SecondParameter<typeof customFetch>;
|
|
693
|
+
},
|
|
694
|
+
) => {
|
|
695
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
696
|
+
|
|
697
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitUsersQueryKey(unitId);
|
|
698
|
+
|
|
699
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnitUsers>>> = ({
|
|
700
|
+
signal,
|
|
701
|
+
}) => getOrganisationUnitUsers(unitId, { signal, ...requestOptions });
|
|
702
|
+
|
|
703
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
704
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
705
|
+
TError,
|
|
706
|
+
TData
|
|
707
|
+
> & { queryKey: QueryKey };
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
export type GetOrganisationUnitUsersSuspenseQueryResult = NonNullable<
|
|
711
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>
|
|
712
|
+
>;
|
|
713
|
+
export type GetOrganisationUnitUsersSuspenseQueryError = ErrorType<AsError | void>;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @summary Gets users in an Organisational Unit
|
|
717
|
+
*/
|
|
718
|
+
|
|
719
|
+
export function useGetOrganisationUnitUsersSuspense<
|
|
720
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
721
|
+
TError = ErrorType<AsError | void>,
|
|
722
|
+
>(
|
|
723
|
+
unitId: string,
|
|
724
|
+
options?: {
|
|
725
|
+
query?: UseSuspenseQueryOptions<
|
|
726
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
727
|
+
TError,
|
|
728
|
+
TData
|
|
729
|
+
>;
|
|
730
|
+
request?: SecondParameter<typeof customFetch>;
|
|
731
|
+
},
|
|
732
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
733
|
+
const queryOptions = getGetOrganisationUnitUsersSuspenseQueryOptions(unitId, options);
|
|
734
|
+
|
|
735
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
736
|
+
queryKey: QueryKey;
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
query.queryKey = queryOptions.queryKey;
|
|
740
|
+
|
|
741
|
+
return query;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Adds a user to an Organisational Unit.
|
|
746
|
+
|
|
747
|
+
Users cannot be added to **Personal Units** (Units that are part of the ***Default** Organisation).
|
|
748
|
+
|
|
749
|
+
You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
750
|
+
|
|
751
|
+
* @summary Adds a user to an Organisational Unit
|
|
752
|
+
*/
|
|
753
|
+
export type addOrganisationUnitUserResponse201 = { data: void; status: 201 };
|
|
754
|
+
|
|
755
|
+
export type addOrganisationUnitUserResponse400 = { data: AsError; status: 400 };
|
|
756
|
+
|
|
757
|
+
export type addOrganisationUnitUserResponse401 = { data: void; status: 401 };
|
|
758
|
+
|
|
759
|
+
export type addOrganisationUnitUserResponse403 = { data: AsError; status: 403 };
|
|
760
|
+
|
|
761
|
+
export type addOrganisationUnitUserResponseSuccess = addOrganisationUnitUserResponse201 & {
|
|
762
|
+
headers: Headers;
|
|
763
|
+
};
|
|
764
|
+
export type addOrganisationUnitUserResponseError = (
|
|
765
|
+
| addOrganisationUnitUserResponse400
|
|
766
|
+
| addOrganisationUnitUserResponse401
|
|
767
|
+
| addOrganisationUnitUserResponse403
|
|
768
|
+
) & { headers: Headers };
|
|
769
|
+
|
|
770
|
+
export type addOrganisationUnitUserResponse =
|
|
771
|
+
| addOrganisationUnitUserResponseSuccess
|
|
772
|
+
| addOrganisationUnitUserResponseError;
|
|
773
|
+
|
|
774
|
+
export const getAddOrganisationUnitUserUrl = (unitId: string, userId: string) => {
|
|
775
|
+
return `/unit/${unitId}/user/${userId}`;
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
export const addOrganisationUnitUser = async (
|
|
779
|
+
unitId: string,
|
|
780
|
+
userId: string,
|
|
781
|
+
options?: RequestInit,
|
|
782
|
+
): Promise<addOrganisationUnitUserResponse> => {
|
|
783
|
+
return customFetch<addOrganisationUnitUserResponse>(
|
|
784
|
+
getAddOrganisationUnitUserUrl(unitId, userId),
|
|
785
|
+
{ ...options, method: "PUT" },
|
|
786
|
+
);
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
export const getAddOrganisationUnitUserMutationOptions = <
|
|
790
|
+
TError = ErrorType<AsError | void>,
|
|
791
|
+
TContext = unknown,
|
|
792
|
+
>(options?: {
|
|
793
|
+
mutation?: UseMutationOptions<
|
|
794
|
+
Awaited<ReturnType<typeof addOrganisationUnitUser>>,
|
|
795
|
+
TError,
|
|
796
|
+
{ unitId: string; userId: string },
|
|
797
|
+
TContext
|
|
798
|
+
>;
|
|
799
|
+
request?: SecondParameter<typeof customFetch>;
|
|
800
|
+
}): UseMutationOptions<
|
|
801
|
+
Awaited<ReturnType<typeof addOrganisationUnitUser>>,
|
|
802
|
+
TError,
|
|
803
|
+
{ unitId: string; userId: string },
|
|
804
|
+
TContext
|
|
805
|
+
> => {
|
|
806
|
+
const mutationKey = ["addOrganisationUnitUser"];
|
|
807
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
808
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
809
|
+
? options
|
|
810
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
811
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
812
|
+
|
|
813
|
+
const mutationFn: MutationFunction<
|
|
814
|
+
Awaited<ReturnType<typeof addOrganisationUnitUser>>,
|
|
815
|
+
{ unitId: string; userId: string }
|
|
816
|
+
> = (props) => {
|
|
817
|
+
const { unitId, userId } = props ?? {};
|
|
818
|
+
|
|
819
|
+
return addOrganisationUnitUser(unitId, userId, requestOptions);
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
return { mutationFn, ...mutationOptions };
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
export type AddOrganisationUnitUserMutationResult = NonNullable<
|
|
826
|
+
Awaited<ReturnType<typeof addOrganisationUnitUser>>
|
|
827
|
+
>;
|
|
828
|
+
|
|
829
|
+
export type AddOrganisationUnitUserMutationError = ErrorType<AsError | void>;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* @summary Adds a user to an Organisational Unit
|
|
833
|
+
*/
|
|
834
|
+
export const useAddOrganisationUnitUser = <
|
|
835
|
+
TError = ErrorType<AsError | void>,
|
|
836
|
+
TContext = unknown,
|
|
837
|
+
>(options?: {
|
|
838
|
+
mutation?: UseMutationOptions<
|
|
839
|
+
Awaited<ReturnType<typeof addOrganisationUnitUser>>,
|
|
840
|
+
TError,
|
|
841
|
+
{ unitId: string; userId: string },
|
|
842
|
+
TContext
|
|
843
|
+
>;
|
|
844
|
+
request?: SecondParameter<typeof customFetch>;
|
|
845
|
+
}): UseMutationResult<
|
|
846
|
+
Awaited<ReturnType<typeof addOrganisationUnitUser>>,
|
|
847
|
+
TError,
|
|
848
|
+
{ unitId: string; userId: string },
|
|
849
|
+
TContext
|
|
850
|
+
> => {
|
|
851
|
+
const mutationOptions = getAddOrganisationUnitUserMutationOptions(options);
|
|
852
|
+
|
|
853
|
+
return useMutation(mutationOptions);
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* Removes a User from an Organisational Unit.
|
|
857
|
+
|
|
858
|
+
Users cannot be removed from **Personal Units** (Units that are part of the ***Default** Organisation).
|
|
859
|
+
|
|
860
|
+
You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
861
|
+
|
|
862
|
+
* @summary Deletes a User from an Organisational Unit
|
|
863
|
+
*/
|
|
864
|
+
export type deleteOrganisationUnitUserResponse204 = { data: void; status: 204 };
|
|
865
|
+
|
|
866
|
+
export type deleteOrganisationUnitUserResponse400 = { data: AsError; status: 400 };
|
|
867
|
+
|
|
868
|
+
export type deleteOrganisationUnitUserResponse401 = { data: void; status: 401 };
|
|
869
|
+
|
|
870
|
+
export type deleteOrganisationUnitUserResponse403 = { data: AsError; status: 403 };
|
|
871
|
+
|
|
872
|
+
export type deleteOrganisationUnitUserResponseSuccess = deleteOrganisationUnitUserResponse204 & {
|
|
873
|
+
headers: Headers;
|
|
874
|
+
};
|
|
875
|
+
export type deleteOrganisationUnitUserResponseError = (
|
|
876
|
+
| deleteOrganisationUnitUserResponse400
|
|
877
|
+
| deleteOrganisationUnitUserResponse401
|
|
878
|
+
| deleteOrganisationUnitUserResponse403
|
|
879
|
+
) & { headers: Headers };
|
|
880
|
+
|
|
881
|
+
export type deleteOrganisationUnitUserResponse =
|
|
882
|
+
| deleteOrganisationUnitUserResponseSuccess
|
|
883
|
+
| deleteOrganisationUnitUserResponseError;
|
|
884
|
+
|
|
885
|
+
export const getDeleteOrganisationUnitUserUrl = (unitId: string, userId: string) => {
|
|
886
|
+
return `/unit/${unitId}/user/${userId}`;
|
|
887
|
+
};
|
|
888
|
+
|
|
889
|
+
export const deleteOrganisationUnitUser = async (
|
|
890
|
+
unitId: string,
|
|
891
|
+
userId: string,
|
|
892
|
+
options?: RequestInit,
|
|
893
|
+
): Promise<deleteOrganisationUnitUserResponse> => {
|
|
894
|
+
return customFetch<deleteOrganisationUnitUserResponse>(
|
|
895
|
+
getDeleteOrganisationUnitUserUrl(unitId, userId),
|
|
896
|
+
{ ...options, method: "DELETE" },
|
|
897
|
+
);
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
export const getDeleteOrganisationUnitUserMutationOptions = <
|
|
901
|
+
TError = ErrorType<AsError | void>,
|
|
902
|
+
TContext = unknown,
|
|
903
|
+
>(options?: {
|
|
904
|
+
mutation?: UseMutationOptions<
|
|
905
|
+
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,
|
|
906
|
+
TError,
|
|
907
|
+
{ unitId: string; userId: string },
|
|
908
|
+
TContext
|
|
909
|
+
>;
|
|
910
|
+
request?: SecondParameter<typeof customFetch>;
|
|
911
|
+
}): UseMutationOptions<
|
|
912
|
+
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,
|
|
913
|
+
TError,
|
|
914
|
+
{ unitId: string; userId: string },
|
|
915
|
+
TContext
|
|
916
|
+
> => {
|
|
917
|
+
const mutationKey = ["deleteOrganisationUnitUser"];
|
|
918
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
919
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
920
|
+
? options
|
|
921
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
922
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
923
|
+
|
|
924
|
+
const mutationFn: MutationFunction<
|
|
925
|
+
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,
|
|
926
|
+
{ unitId: string; userId: string }
|
|
927
|
+
> = (props) => {
|
|
928
|
+
const { unitId, userId } = props ?? {};
|
|
929
|
+
|
|
930
|
+
return deleteOrganisationUnitUser(unitId, userId, requestOptions);
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
return { mutationFn, ...mutationOptions };
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
export type DeleteOrganisationUnitUserMutationResult = NonNullable<
|
|
937
|
+
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>
|
|
938
|
+
>;
|
|
939
|
+
|
|
940
|
+
export type DeleteOrganisationUnitUserMutationError = ErrorType<AsError | void>;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* @summary Deletes a User from an Organisational Unit
|
|
944
|
+
*/
|
|
945
|
+
export const useDeleteOrganisationUnitUser = <
|
|
946
|
+
TError = ErrorType<AsError | void>,
|
|
947
|
+
TContext = unknown,
|
|
948
|
+
>(options?: {
|
|
949
|
+
mutation?: UseMutationOptions<
|
|
950
|
+
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,
|
|
951
|
+
TError,
|
|
952
|
+
{ unitId: string; userId: string },
|
|
953
|
+
TContext
|
|
954
|
+
>;
|
|
955
|
+
request?: SecondParameter<typeof customFetch>;
|
|
956
|
+
}): UseMutationResult<
|
|
957
|
+
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,
|
|
958
|
+
TError,
|
|
959
|
+
{ unitId: string; userId: string },
|
|
960
|
+
TContext
|
|
961
|
+
> => {
|
|
962
|
+
const mutationOptions = getDeleteOrganisationUnitUserMutationOptions(options);
|
|
963
|
+
|
|
964
|
+
return useMutation(mutationOptions);
|
|
965
|
+
};
|