@squonk/account-server-client 4.7.0-trunk.2383504127 → 4.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +40 -0
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +8 -14
- package/dist/api/actions/actions.cjs +28 -22
- package/dist/api/actions/actions.cjs.map +1 -1
- package/dist/api/actions/actions.d.cts +14 -15
- package/dist/api/actions/actions.d.cts.map +1 -1
- package/dist/api/actions/actions.d.ts +14 -15
- package/dist/api/actions/actions.d.ts.map +1 -1
- package/dist/api/actions/actions.fetch.cjs +33 -16
- package/dist/api/actions/actions.fetch.cjs.map +1 -1
- package/dist/api/actions/actions.fetch.d.cts +18 -19
- package/dist/api/actions/actions.fetch.d.cts.map +1 -1
- package/dist/api/actions/actions.fetch.d.ts +18 -19
- package/dist/api/actions/actions.fetch.d.ts.map +1 -1
- package/dist/api/actions/actions.fetch.js +30 -13
- package/dist/api/actions/actions.fetch.js.map +1 -1
- package/dist/api/actions/actions.js +25 -19
- package/dist/api/actions/actions.js.map +1 -1
- package/dist/api/api-schemas/actionDetail.d.cts +0 -1
- package/dist/api/api-schemas/actionDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/actionDetail.d.ts +0 -1
- package/dist/api/api-schemas/actionDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/actionGetResponse.d.cts +2 -5
- package/dist/api/api-schemas/actionGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/actionGetResponse.d.ts +2 -5
- package/dist/api/api-schemas/actionGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/asError.d.cts +4 -4
- package/dist/api/api-schemas/asError.d.cts.map +1 -1
- package/dist/api/api-schemas/asError.d.ts +4 -4
- package/dist/api/api-schemas/asError.d.ts.map +1 -1
- package/dist/api/api-schemas/assetDetail.d.cts +0 -1
- package/dist/api/api-schemas/assetDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/assetDetail.d.ts +0 -1
- package/dist/api/api-schemas/assetDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/assetDetailScope.cjs +1 -2
- package/dist/api/api-schemas/assetDetailScope.cjs.map +1 -1
- package/dist/api/api-schemas/assetDetailScope.d.cts +4 -4
- package/dist/api/api-schemas/assetDetailScope.d.cts.map +1 -1
- package/dist/api/api-schemas/assetDetailScope.d.ts +4 -4
- package/dist/api/api-schemas/assetDetailScope.d.ts.map +1 -1
- package/dist/api/api-schemas/assetDetailScope.js +1 -1
- package/dist/api/api-schemas/assetDetailScope.js.map +1 -1
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts +0 -1
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts +0 -1
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/assetGetResponse.d.cts +2 -5
- package/dist/api/api-schemas/assetGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/assetGetResponse.d.ts +2 -5
- package/dist/api/api-schemas/assetGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts +6 -9
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts +6 -9
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/assetPostBodyBody.d.cts +6 -13
- package/dist/api/api-schemas/assetPostBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/assetPostBodyBody.d.ts +6 -13
- package/dist/api/api-schemas/assetPostBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs +1 -2
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs.map +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts +4 -4
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts.map +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts +4 -4
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts.map +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.js +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.js.map +1 -1
- package/dist/api/api-schemas/assetPostResponse.d.cts +5 -6
- package/dist/api/api-schemas/assetPostResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/assetPostResponse.d.ts +5 -6
- package/dist/api/api-schemas/assetPostResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/attachAssetParams.d.cts +0 -1
- package/dist/api/api-schemas/attachAssetParams.d.cts.map +1 -1
- package/dist/api/api-schemas/attachAssetParams.d.ts +0 -1
- package/dist/api/api-schemas/attachAssetParams.d.ts.map +1 -1
- package/dist/api/api-schemas/chargeAdditionalData.d.cts +4 -4
- package/dist/api/api-schemas/chargeAdditionalData.d.cts.map +1 -1
- package/dist/api/api-schemas/chargeAdditionalData.d.ts +4 -4
- package/dist/api/api-schemas/chargeAdditionalData.d.ts.map +1 -1
- package/dist/api/api-schemas/chargeSummary.d.cts +0 -1
- package/dist/api/api-schemas/chargeSummary.d.cts.map +1 -1
- package/dist/api/api-schemas/chargeSummary.d.ts +0 -1
- package/dist/api/api-schemas/chargeSummary.d.ts.map +1 -1
- package/dist/api/api-schemas/chargeSummaryType.cjs +1 -2
- package/dist/api/api-schemas/chargeSummaryType.cjs.map +1 -1
- package/dist/api/api-schemas/chargeSummaryType.d.cts +4 -4
- package/dist/api/api-schemas/chargeSummaryType.d.cts.map +1 -1
- package/dist/api/api-schemas/chargeSummaryType.d.ts +4 -4
- package/dist/api/api-schemas/chargeSummaryType.d.ts.map +1 -1
- package/dist/api/api-schemas/chargeSummaryType.js +1 -1
- package/dist/api/api-schemas/chargeSummaryType.js.map +1 -1
- package/dist/api/api-schemas/chargesGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/chargesGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/chargesGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/chargesGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/detachAssetParams.d.cts +0 -1
- package/dist/api/api-schemas/detachAssetParams.d.cts.map +1 -1
- package/dist/api/api-schemas/detachAssetParams.d.ts +0 -1
- package/dist/api/api-schemas/detachAssetParams.d.ts.map +1 -1
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts +4 -4
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts +4 -4
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts +0 -1
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts +0 -1
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs +1 -2
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs.map +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts +4 -4
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts.map +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts +4 -4
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts.map +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs +1 -2
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts +4 -4
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts +4 -4
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js.map +1 -1
- package/dist/api/api-schemas/getActionsParams.d.cts +1 -2
- package/dist/api/api-schemas/getActionsParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getActionsParams.d.ts +1 -2
- package/dist/api/api-schemas/getActionsParams.d.ts.map +1 -1
- package/dist/api/api-schemas/getAssetParams.d.cts +0 -1
- package/dist/api/api-schemas/getAssetParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getAssetParams.d.ts +0 -1
- package/dist/api/api-schemas/getAssetParams.d.ts.map +1 -1
- package/dist/api/api-schemas/getChargesParams.d.cts +0 -1
- package/dist/api/api-schemas/getChargesParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getChargesParams.d.ts +0 -1
- package/dist/api/api-schemas/getChargesParams.d.ts.map +1 -1
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts +0 -1
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts +0 -1
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts.map +1 -1
- package/dist/api/api-schemas/getOrganisationsParams.d.cts +0 -1
- package/dist/api/api-schemas/getOrganisationsParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getOrganisationsParams.d.ts +0 -1
- package/dist/api/api-schemas/getOrganisationsParams.d.ts.map +1 -1
- package/dist/api/api-schemas/getProductChargesParams.d.cts +0 -1
- package/dist/api/api-schemas/getProductChargesParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getProductChargesParams.d.ts +0 -1
- package/dist/api/api-schemas/getProductChargesParams.d.ts.map +1 -1
- package/dist/api/api-schemas/getUnitChargesParams.d.cts +0 -1
- package/dist/api/api-schemas/getUnitChargesParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getUnitChargesParams.d.ts +0 -1
- package/dist/api/api-schemas/getUnitChargesParams.d.ts.map +1 -1
- package/dist/api/api-schemas/getUnitsParams.d.cts +0 -1
- package/dist/api/api-schemas/getUnitsParams.d.cts.map +1 -1
- package/dist/api/api-schemas/getUnitsParams.d.ts +0 -1
- package/dist/api/api-schemas/getUnitsParams.d.ts.map +1 -1
- package/dist/api/api-schemas/merchantDetail.d.cts +0 -1
- package/dist/api/api-schemas/merchantDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/merchantDetail.d.ts +0 -1
- package/dist/api/api-schemas/merchantDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/merchantDetailKind.cjs +1 -2
- package/dist/api/api-schemas/merchantDetailKind.cjs.map +1 -1
- package/dist/api/api-schemas/merchantDetailKind.d.cts +4 -4
- package/dist/api/api-schemas/merchantDetailKind.d.cts.map +1 -1
- package/dist/api/api-schemas/merchantDetailKind.d.ts +4 -4
- package/dist/api/api-schemas/merchantDetailKind.d.ts.map +1 -1
- package/dist/api/api-schemas/merchantDetailKind.js +1 -1
- package/dist/api/api-schemas/merchantDetailKind.js.map +1 -1
- package/dist/api/api-schemas/merchantGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/merchantGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/merchantGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/merchantGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/merchantSummary.d.cts +0 -1
- package/dist/api/api-schemas/merchantSummary.d.cts.map +1 -1
- package/dist/api/api-schemas/merchantSummary.d.ts +0 -1
- package/dist/api/api-schemas/merchantSummary.d.ts.map +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.cjs +1 -2
- package/dist/api/api-schemas/merchantSummaryKind.cjs.map +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.d.cts +4 -4
- package/dist/api/api-schemas/merchantSummaryKind.d.cts.map +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.d.ts +4 -4
- package/dist/api/api-schemas/merchantSummaryKind.d.ts.map +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.js +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.js.map +1 -1
- package/dist/api/api-schemas/merchantsGetResponse.d.cts +1 -3
- package/dist/api/api-schemas/merchantsGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/merchantsGetResponse.d.ts +1 -3
- package/dist/api/api-schemas/merchantsGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationAllDetail.d.cts +0 -1
- package/dist/api/api-schemas/organisationAllDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationAllDetail.d.ts +0 -1
- package/dist/api/api-schemas/organisationAllDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts +4 -4
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts +4 -4
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationChargeSummary.d.cts +0 -1
- package/dist/api/api-schemas/organisationChargeSummary.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationChargeSummary.d.ts +0 -1
- package/dist/api/api-schemas/organisationChargeSummary.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationDetail.d.cts +0 -1
- package/dist/api/api-schemas/organisationDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationDetail.d.ts +0 -1
- package/dist/api/api-schemas/organisationDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts +4 -4
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts +4 -4
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts +3 -7
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts +3 -7
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts +4 -4
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts +4 -4
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/organisationGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/organisationGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts +6 -5
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts +6 -5
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts +6 -6
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts +6 -6
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts +2 -5
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts +2 -5
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts +4 -4
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts +4 -4
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationPostResponse.d.cts +4 -4
- package/dist/api/api-schemas/organisationPostResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationPostResponse.d.ts +4 -4
- package/dist/api/api-schemas/organisationPostResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts +0 -1
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts +0 -1
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts +1 -3
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts +1 -3
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts +4 -4
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts +4 -4
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts +4 -4
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts +4 -4
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts +1 -3
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts +1 -3
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/organisationsGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/organisationsGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/organisationsGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/organisationsGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts +4 -4
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts +4 -4
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts +4 -4
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts +4 -4
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/processingChargeItem.d.cts +0 -1
- package/dist/api/api-schemas/processingChargeItem.d.cts.map +1 -1
- package/dist/api/api-schemas/processingChargeItem.d.ts +0 -1
- package/dist/api/api-schemas/processingChargeItem.d.ts.map +1 -1
- package/dist/api/api-schemas/processingCharges.d.cts +0 -1
- package/dist/api/api-schemas/processingCharges.d.cts.map +1 -1
- package/dist/api/api-schemas/processingCharges.d.ts +0 -1
- package/dist/api/api-schemas/processingCharges.d.ts.map +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs +1 -2
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs.map +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts +4 -4
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts.map +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts +4 -4
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts.map +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.js +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.js.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/productChargesGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/productChargesGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs +1 -2
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts +4 -4
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts +4 -4
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.js +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.js.map +1 -1
- package/dist/api/api-schemas/productClaimDetail.d.cts +6 -8
- package/dist/api/api-schemas/productClaimDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/productClaimDetail.d.ts +6 -8
- package/dist/api/api-schemas/productClaimDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/productCoinsDetail.d.cts +4 -4
- package/dist/api/api-schemas/productCoinsDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/productCoinsDetail.d.ts +4 -4
- package/dist/api/api-schemas/productCoinsDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/productDetail.d.cts +5 -10
- package/dist/api/api-schemas/productDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/productDetail.d.ts +5 -10
- package/dist/api/api-schemas/productDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/productDetailFlavour.cjs +1 -2
- package/dist/api/api-schemas/productDetailFlavour.cjs.map +1 -1
- package/dist/api/api-schemas/productDetailFlavour.d.cts +4 -5
- package/dist/api/api-schemas/productDetailFlavour.d.cts.map +1 -1
- package/dist/api/api-schemas/productDetailFlavour.d.ts +4 -5
- package/dist/api/api-schemas/productDetailFlavour.d.ts.map +1 -1
- package/dist/api/api-schemas/productDetailFlavour.js +1 -1
- package/dist/api/api-schemas/productDetailFlavour.js.map +1 -1
- package/dist/api/api-schemas/productDetailType.cjs +1 -2
- package/dist/api/api-schemas/productDetailType.cjs.map +1 -1
- package/dist/api/api-schemas/productDetailType.d.cts +4 -5
- package/dist/api/api-schemas/productDetailType.d.cts.map +1 -1
- package/dist/api/api-schemas/productDetailType.d.ts +4 -5
- package/dist/api/api-schemas/productDetailType.d.ts.map +1 -1
- package/dist/api/api-schemas/productDetailType.js +1 -1
- package/dist/api/api-schemas/productDetailType.js.map +1 -1
- package/dist/api/api-schemas/productDmProjectTier.d.cts +0 -1
- package/dist/api/api-schemas/productDmProjectTier.d.cts.map +1 -1
- package/dist/api/api-schemas/productDmProjectTier.d.ts +0 -1
- package/dist/api/api-schemas/productDmProjectTier.d.ts.map +1 -1
- package/dist/api/api-schemas/productDmStorage.d.cts +0 -1
- package/dist/api/api-schemas/productDmStorage.d.cts.map +1 -1
- package/dist/api/api-schemas/productDmStorage.d.ts +0 -1
- package/dist/api/api-schemas/productDmStorage.d.ts.map +1 -1
- package/dist/api/api-schemas/productDmStorageDetail.d.cts +1 -2
- package/dist/api/api-schemas/productDmStorageDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/productDmStorageDetail.d.ts +1 -2
- package/dist/api/api-schemas/productDmStorageDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts +5 -7
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts.map +1 -1
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts +5 -7
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts.map +1 -1
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts +7 -11
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts.map +1 -1
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts +7 -11
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts.map +1 -1
- package/dist/api/api-schemas/productInstanceDetail.d.cts +0 -1
- package/dist/api/api-schemas/productInstanceDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/productInstanceDetail.d.ts +0 -1
- package/dist/api/api-schemas/productInstanceDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts +5 -7
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts.map +1 -1
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts +5 -7
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts.map +1 -1
- package/dist/api/api-schemas/productPatchBodyBody.d.cts +4 -4
- package/dist/api/api-schemas/productPatchBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/productPatchBodyBody.d.ts +4 -4
- package/dist/api/api-schemas/productPatchBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/productType.d.cts +0 -1
- package/dist/api/api-schemas/productType.d.cts.map +1 -1
- package/dist/api/api-schemas/productType.d.ts +0 -1
- package/dist/api/api-schemas/productType.d.ts.map +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.cjs +1 -2
- package/dist/api/api-schemas/productTypeServiceKind.cjs.map +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.d.cts +4 -4
- package/dist/api/api-schemas/productTypeServiceKind.d.cts.map +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.d.ts +4 -4
- package/dist/api/api-schemas/productTypeServiceKind.d.ts.map +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.js +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.js.map +1 -1
- package/dist/api/api-schemas/productUnitGetResponse.d.cts +3 -3
- package/dist/api/api-schemas/productUnitGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/productUnitGetResponse.d.ts +3 -3
- package/dist/api/api-schemas/productUnitGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts +0 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts.map +1 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts +0 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts.map +1 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts +4 -4
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts.map +1 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts +4 -4
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts.map +1 -1
- package/dist/api/api-schemas/productsGetResponse.d.cts +3 -3
- package/dist/api/api-schemas/productsGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/productsGetResponse.d.ts +3 -3
- package/dist/api/api-schemas/productsGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts +0 -1
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts +0 -1
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/qFormatParameter.cjs +1 -2
- package/dist/api/api-schemas/qFormatParameter.cjs.map +1 -1
- package/dist/api/api-schemas/qFormatParameter.d.cts +4 -4
- package/dist/api/api-schemas/qFormatParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qFormatParameter.d.ts +4 -4
- package/dist/api/api-schemas/qFormatParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qFormatParameter.js +1 -1
- package/dist/api/api-schemas/qFormatParameter.js.map +1 -1
- package/dist/api/api-schemas/qFromParameter.d.cts +4 -4
- package/dist/api/api-schemas/qFromParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qFromParameter.d.ts +4 -4
- package/dist/api/api-schemas/qFromParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qMIdParameter.d.cts +4 -4
- package/dist/api/api-schemas/qMIdParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qMIdParameter.d.ts +4 -4
- package/dist/api/api-schemas/qMIdParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qNameParameter.d.cts +4 -4
- package/dist/api/api-schemas/qNameParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qNameParameter.d.ts +4 -4
- package/dist/api/api-schemas/qNameParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qOrgIdParameter.d.cts +4 -4
- package/dist/api/api-schemas/qOrgIdParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qOrgIdParameter.d.ts +4 -4
- package/dist/api/api-schemas/qOrgIdParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qPbpParameter.d.cts +4 -4
- package/dist/api/api-schemas/qPbpParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qPbpParameter.d.ts +4 -4
- package/dist/api/api-schemas/qPbpParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qProductIdParameter.d.cts +4 -4
- package/dist/api/api-schemas/qProductIdParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qProductIdParameter.d.ts +4 -4
- package/dist/api/api-schemas/qProductIdParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qUnitIdParameter.d.cts +4 -4
- package/dist/api/api-schemas/qUnitIdParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qUnitIdParameter.d.ts +4 -4
- package/dist/api/api-schemas/qUnitIdParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qUntilParameter.d.cts +4 -4
- package/dist/api/api-schemas/qUntilParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qUntilParameter.d.ts +4 -4
- package/dist/api/api-schemas/qUntilParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/qUserIdParameter.d.cts +4 -4
- package/dist/api/api-schemas/qUserIdParameter.d.cts.map +1 -1
- package/dist/api/api-schemas/qUserIdParameter.d.ts +4 -4
- package/dist/api/api-schemas/qUserIdParameter.d.ts.map +1 -1
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts +5 -6
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts +5 -6
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/storageChargeItem.d.cts +0 -1
- package/dist/api/api-schemas/storageChargeItem.d.cts.map +1 -1
- package/dist/api/api-schemas/storageChargeItem.d.ts +0 -1
- package/dist/api/api-schemas/storageChargeItem.d.ts.map +1 -1
- package/dist/api/api-schemas/storageCharges.d.cts +0 -1
- package/dist/api/api-schemas/storageCharges.d.cts.map +1 -1
- package/dist/api/api-schemas/storageCharges.d.ts +0 -1
- package/dist/api/api-schemas/storageCharges.d.ts.map +1 -1
- package/dist/api/api-schemas/unitAllDetail.d.cts +0 -1
- package/dist/api/api-schemas/unitAllDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/unitAllDetail.d.ts +0 -1
- package/dist/api/api-schemas/unitAllDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts +4 -4
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts +4 -4
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/unitChargeSummary.d.cts +0 -1
- package/dist/api/api-schemas/unitChargeSummary.d.cts.map +1 -1
- package/dist/api/api-schemas/unitChargeSummary.d.ts +0 -1
- package/dist/api/api-schemas/unitChargeSummary.d.ts.map +1 -1
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/unitDetail.d.cts +0 -1
- package/dist/api/api-schemas/unitDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/unitDetail.d.ts +0 -1
- package/dist/api/api-schemas/unitDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts +4 -4
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts +4 -4
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/unitGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/unitGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/unitGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/unitGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts +6 -5
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts +6 -5
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs +1 -2
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts +6 -6
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts +6 -6
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts +0 -1
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts.map +1 -1
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts +0 -1
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts +7 -6
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts +7 -6
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs +1 -2
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts +4 -4
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts +4 -4
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs +1 -2
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts +6 -6
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts +6 -6
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js.map +1 -1
- package/dist/api/api-schemas/unitProductPostResponse.d.cts +4 -4
- package/dist/api/api-schemas/unitProductPostResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/unitProductPostResponse.d.ts +4 -4
- package/dist/api/api-schemas/unitProductPostResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/unitsGetResponse.d.cts +1 -3
- package/dist/api/api-schemas/unitsGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/unitsGetResponse.d.ts +1 -3
- package/dist/api/api-schemas/unitsGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/userAccountDetail.d.cts +0 -1
- package/dist/api/api-schemas/userAccountDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/userAccountDetail.d.ts +0 -1
- package/dist/api/api-schemas/userAccountDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/userAccountGetResponse.d.cts +0 -1
- package/dist/api/api-schemas/userAccountGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/userAccountGetResponse.d.ts +0 -1
- package/dist/api/api-schemas/userAccountGetResponse.d.ts.map +1 -1
- package/dist/api/api-schemas/userDetail.d.cts +4 -4
- package/dist/api/api-schemas/userDetail.d.cts.map +1 -1
- package/dist/api/api-schemas/userDetail.d.ts +4 -4
- package/dist/api/api-schemas/userDetail.d.ts.map +1 -1
- package/dist/api/api-schemas/usersGetResponse.d.cts +1 -3
- package/dist/api/api-schemas/usersGetResponse.d.cts.map +1 -1
- package/dist/api/api-schemas/usersGetResponse.d.ts +1 -3
- package/dist/api/api-schemas/usersGetResponse.d.ts.map +1 -1
- package/dist/api/asset/asset.cjs +70 -70
- package/dist/api/asset/asset.cjs.map +1 -1
- package/dist/api/asset/asset.d.cts +43 -52
- package/dist/api/asset/asset.d.cts.map +1 -1
- package/dist/api/asset/asset.d.ts +43 -52
- package/dist/api/asset/asset.d.ts.map +1 -1
- package/dist/api/asset/asset.fetch.cjs +91 -32
- package/dist/api/asset/asset.fetch.cjs.map +1 -1
- package/dist/api/asset/asset.fetch.d.cts +73 -82
- package/dist/api/asset/asset.fetch.d.cts.map +1 -1
- package/dist/api/asset/asset.fetch.d.ts +73 -82
- package/dist/api/asset/asset.fetch.d.ts.map +1 -1
- package/dist/api/asset/asset.fetch.js +81 -22
- package/dist/api/asset/asset.fetch.js.map +1 -1
- package/dist/api/asset/asset.js +60 -60
- package/dist/api/asset/asset.js.map +1 -1
- package/dist/api/charges/charges.cjs +46 -53
- package/dist/api/charges/charges.cjs.map +1 -1
- package/dist/api/charges/charges.d.cts +50 -52
- package/dist/api/charges/charges.d.cts.map +1 -1
- package/dist/api/charges/charges.d.ts +50 -52
- package/dist/api/charges/charges.d.ts.map +1 -1
- package/dist/api/charges/charges.fetch.cjs +66 -40
- package/dist/api/charges/charges.fetch.cjs.map +1 -1
- package/dist/api/charges/charges.fetch.d.cts +66 -68
- package/dist/api/charges/charges.fetch.d.cts.map +1 -1
- package/dist/api/charges/charges.fetch.d.ts +66 -68
- package/dist/api/charges/charges.fetch.d.ts.map +1 -1
- package/dist/api/charges/charges.fetch.js +63 -37
- package/dist/api/charges/charges.fetch.js.map +1 -1
- package/dist/api/charges/charges.js +43 -50
- package/dist/api/charges/charges.js.map +1 -1
- package/dist/api/event-stream/event-stream.cjs +37 -37
- package/dist/api/event-stream/event-stream.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.d.cts +25 -29
- package/dist/api/event-stream/event-stream.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.d.ts +25 -29
- package/dist/api/event-stream/event-stream.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.cjs +50 -23
- package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.d.cts +40 -44
- package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.d.ts +40 -44
- package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.js +45 -18
- package/dist/api/event-stream/event-stream.fetch.js.map +1 -1
- package/dist/api/event-stream/event-stream.js +32 -32
- package/dist/api/event-stream/event-stream.js.map +1 -1
- package/dist/api/merchant/merchant.cjs +27 -26
- package/dist/api/merchant/merchant.cjs.map +1 -1
- package/dist/api/merchant/merchant.d.cts +19 -21
- package/dist/api/merchant/merchant.d.cts.map +1 -1
- package/dist/api/merchant/merchant.d.ts +19 -21
- package/dist/api/merchant/merchant.d.ts.map +1 -1
- package/dist/api/merchant/merchant.fetch.cjs +35 -22
- package/dist/api/merchant/merchant.fetch.cjs.map +1 -1
- package/dist/api/merchant/merchant.fetch.d.cts +27 -29
- package/dist/api/merchant/merchant.fetch.d.cts.map +1 -1
- package/dist/api/merchant/merchant.fetch.d.ts +27 -29
- package/dist/api/merchant/merchant.fetch.d.ts.map +1 -1
- package/dist/api/merchant/merchant.fetch.js +32 -19
- package/dist/api/merchant/merchant.fetch.js.map +1 -1
- package/dist/api/merchant/merchant.js +24 -23
- package/dist/api/merchant/merchant.js.map +1 -1
- package/dist/api/organisation/organisation.cjs +52 -57
- package/dist/api/organisation/organisation.cjs.map +1 -1
- package/dist/api/organisation/organisation.d.cts +43 -49
- package/dist/api/organisation/organisation.d.cts.map +1 -1
- package/dist/api/organisation/organisation.d.ts +43 -49
- package/dist/api/organisation/organisation.d.ts.map +1 -1
- package/dist/api/organisation/organisation.fetch.cjs +71 -32
- package/dist/api/organisation/organisation.fetch.cjs.map +1 -1
- package/dist/api/organisation/organisation.fetch.d.cts +65 -71
- package/dist/api/organisation/organisation.fetch.d.cts.map +1 -1
- package/dist/api/organisation/organisation.fetch.d.ts +65 -71
- package/dist/api/organisation/organisation.fetch.d.ts.map +1 -1
- package/dist/api/organisation/organisation.fetch.js +65 -26
- package/dist/api/organisation/organisation.fetch.js.map +1 -1
- package/dist/api/organisation/organisation.js +46 -51
- package/dist/api/organisation/organisation.js.map +1 -1
- package/dist/api/product/product.cjs +56 -76
- package/dist/api/product/product.cjs.map +1 -1
- package/dist/api/product/product.d.cts +66 -75
- package/dist/api/product/product.d.cts.map +1 -1
- package/dist/api/product/product.d.ts +66 -75
- package/dist/api/product/product.d.ts.map +1 -1
- package/dist/api/product/product.fetch.cjs +86 -51
- package/dist/api/product/product.fetch.cjs.map +1 -1
- package/dist/api/product/product.fetch.d.cts +100 -109
- package/dist/api/product/product.fetch.d.cts.map +1 -1
- package/dist/api/product/product.fetch.d.ts +100 -109
- package/dist/api/product/product.fetch.d.ts.map +1 -1
- package/dist/api/product/product.fetch.js +80 -45
- package/dist/api/product/product.fetch.js.map +1 -1
- package/dist/api/product/product.js +50 -70
- package/dist/api/product/product.js.map +1 -1
- package/dist/api/state/state.cjs +22 -15
- package/dist/api/state/state.cjs.map +1 -1
- package/dist/api/state/state.d.cts +8 -8
- package/dist/api/state/state.d.cts.map +1 -1
- package/dist/api/state/state.d.ts +8 -8
- package/dist/api/state/state.d.ts.map +1 -1
- package/dist/api/state/state.fetch.cjs +25 -15
- package/dist/api/state/state.fetch.cjs.map +1 -1
- package/dist/api/state/state.fetch.d.cts +11 -11
- package/dist/api/state/state.fetch.d.cts.map +1 -1
- package/dist/api/state/state.fetch.d.ts +11 -11
- package/dist/api/state/state.fetch.d.ts.map +1 -1
- package/dist/api/state/state.fetch.js +22 -12
- package/dist/api/state/state.fetch.js.map +1 -1
- package/dist/api/state/state.js +19 -12
- package/dist/api/state/state.js.map +1 -1
- package/dist/api/unit/unit.cjs +75 -84
- package/dist/api/unit/unit.cjs.map +1 -1
- package/dist/api/unit/unit.d.cts +60 -70
- package/dist/api/unit/unit.d.cts.map +1 -1
- package/dist/api/unit/unit.d.ts +60 -70
- package/dist/api/unit/unit.d.ts.map +1 -1
- package/dist/api/unit/unit.fetch.cjs +101 -43
- package/dist/api/unit/unit.fetch.cjs.map +1 -1
- package/dist/api/unit/unit.fetch.d.cts +97 -107
- package/dist/api/unit/unit.fetch.d.cts.map +1 -1
- package/dist/api/unit/unit.fetch.d.ts +97 -107
- package/dist/api/unit/unit.fetch.d.ts.map +1 -1
- package/dist/api/unit/unit.fetch.js +91 -33
- package/dist/api/unit/unit.fetch.js.map +1 -1
- package/dist/api/unit/unit.js +65 -74
- package/dist/api/unit/unit.js.map +1 -1
- package/dist/api/user/user.cjs +64 -68
- package/dist/api/user/user.cjs.map +1 -1
- package/dist/api/user/user.d.cts +50 -57
- package/dist/api/user/user.d.cts.map +1 -1
- package/dist/api/user/user.d.ts +50 -57
- package/dist/api/user/user.d.ts.map +1 -1
- package/dist/api/user/user.fetch.cjs +80 -33
- package/dist/api/user/user.fetch.cjs.map +1 -1
- package/dist/api/user/user.fetch.d.cts +74 -81
- package/dist/api/user/user.fetch.d.cts.map +1 -1
- package/dist/api/user/user.fetch.d.ts +74 -81
- package/dist/api/user/user.fetch.d.ts.map +1 -1
- package/dist/api/user/user.fetch.js +73 -26
- package/dist/api/user/user.fetch.js.map +1 -1
- package/dist/api/user/user.js +57 -61
- package/dist/api/user/user.js.map +1 -1
- package/dist/custom-axios.cjs +3 -4
- package/dist/custom-axios.cjs.map +1 -1
- package/dist/custom-axios.d.cts +1 -3
- package/dist/custom-axios.d.cts.map +1 -1
- package/dist/custom-axios.d.ts +1 -3
- package/dist/custom-axios.d.ts.map +1 -1
- package/dist/custom-axios.js +2 -3
- package/dist/custom-axios.js.map +1 -1
- package/dist/custom-fetch.cjs +1 -2
- package/dist/custom-fetch.cjs.map +1 -1
- package/dist/custom-fetch.d.cts +0 -1
- package/dist/custom-fetch.d.cts.map +1 -1
- package/dist/custom-fetch.d.ts +0 -1
- package/dist/custom-fetch.d.ts.map +1 -1
- package/dist/custom-fetch.js +1 -1
- package/dist/custom-fetch.js.map +1 -1
- package/dist/index.cjs +27 -27
- package/dist/index.d.cts +9 -11
- package/dist/index.d.ts +9 -11
- package/dist/index.js +1 -2
- package/morph-query-keys.ts +2 -1
- package/orval.config.ts +9 -15
- package/package.json +13 -11
- package/pnpm-workspace.yaml +5 -1
- package/src/api/actions/actions.fetch.ts +44 -34
- package/src/api/actions/actions.ts +40 -30
- package/src/api/api-schemas/actionDetail.fetch.ts +22 -0
- package/src/api/api-schemas/actionDetail.ts +4 -4
- package/src/api/api-schemas/actionGetResponse.fetch.ts +18 -0
- package/src/api/api-schemas/actionGetResponse.ts +6 -8
- package/src/api/api-schemas/asError.fetch.ts +15 -0
- package/src/api/api-schemas/asError.ts +4 -4
- package/src/api/api-schemas/assetDetail.fetch.ts +27 -0
- package/src/api/api-schemas/assetDetail.ts +4 -4
- package/src/api/api-schemas/assetDetailScope.fetch.ts +20 -0
- package/src/api/api-schemas/assetDetailScope.ts +4 -5
- package/src/api/api-schemas/assetGetByIdResponse.fetch.ts +13 -0
- package/src/api/api-schemas/assetGetByIdResponse.ts +4 -4
- package/src/api/api-schemas/assetGetResponse.fetch.ts +18 -0
- package/src/api/api-schemas/assetGetResponse.ts +6 -8
- package/src/api/api-schemas/assetPatchBodyBody.fetch.ts +19 -0
- package/src/api/api-schemas/assetPatchBodyBody.ts +4 -4
- package/src/api/api-schemas/assetPostBodyBody.fetch.ts +32 -0
- package/src/api/api-schemas/assetPostBodyBody.ts +4 -4
- package/src/api/api-schemas/assetPostBodyBodyScope.fetch.ts +24 -0
- package/src/api/api-schemas/assetPostBodyBodyScope.ts +4 -5
- package/src/api/api-schemas/assetPostResponse.fetch.ts +15 -0
- package/src/api/api-schemas/assetPostResponse.ts +5 -6
- package/src/api/api-schemas/attachAssetParams.fetch.ts +19 -0
- package/src/api/api-schemas/attachAssetParams.ts +4 -4
- package/src/api/api-schemas/chargeAdditionalData.fetch.ts +14 -0
- package/src/api/api-schemas/chargeAdditionalData.ts +4 -4
- package/src/api/api-schemas/chargeSummary.fetch.ts +18 -0
- package/src/api/api-schemas/chargeSummary.ts +4 -4
- package/src/api/api-schemas/chargeSummaryType.fetch.ts +17 -0
- package/src/api/api-schemas/chargeSummaryType.ts +4 -5
- package/src/api/api-schemas/chargesGetResponse.fetch.ts +19 -0
- package/src/api/api-schemas/chargesGetResponse.ts +4 -4
- package/src/api/api-schemas/detachAssetParams.fetch.ts +19 -0
- package/src/api/api-schemas/detachAssetParams.ts +4 -4
- package/src/api/api-schemas/eventStreamGetPostResponse.fetch.ts +21 -0
- package/src/api/api-schemas/eventStreamGetPostResponse.ts +4 -4
- package/src/api/api-schemas/eventStreamPostBodyBody.fetch.ts +13 -0
- package/src/api/api-schemas/eventStreamPostBodyBody.ts +4 -4
- package/src/api/api-schemas/eventStreamPostBodyBodyFormat.fetch.ts +18 -0
- package/src/api/api-schemas/eventStreamPostBodyBodyFormat.ts +4 -5
- package/src/api/api-schemas/eventStreamVersionGetResponse.fetch.ts +20 -0
- package/src/api/api-schemas/eventStreamVersionGetResponse.ts +4 -4
- package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.fetch.ts +22 -0
- package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.ts +4 -5
- package/src/api/api-schemas/getActionsParams.fetch.ts +52 -0
- package/src/api/api-schemas/getActionsParams.ts +5 -5
- package/src/api/api-schemas/getAssetParams.fetch.ts +39 -0
- package/src/api/api-schemas/getAssetParams.ts +6 -6
- package/src/api/api-schemas/getChargesParams.fetch.ts +30 -0
- package/src/api/api-schemas/getChargesParams.ts +5 -5
- package/src/api/api-schemas/getOrganisationChargesParams.fetch.ts +30 -0
- package/src/api/api-schemas/getOrganisationChargesParams.ts +5 -5
- package/src/api/api-schemas/getOrganisationsParams.fetch.ts +18 -0
- package/src/api/api-schemas/getOrganisationsParams.ts +4 -4
- package/src/api/api-schemas/getProductChargesParams.fetch.ts +30 -0
- package/src/api/api-schemas/getProductChargesParams.ts +5 -5
- package/src/api/api-schemas/getUnitChargesParams.fetch.ts +30 -0
- package/src/api/api-schemas/getUnitChargesParams.ts +5 -5
- package/src/api/api-schemas/getUnitsParams.fetch.ts +18 -0
- package/src/api/api-schemas/getUnitsParams.ts +4 -4
- package/src/api/api-schemas/index.ts +12 -14
- package/src/api/api-schemas/merchantDetail.fetch.ts +23 -0
- package/src/api/api-schemas/merchantDetail.ts +4 -4
- package/src/api/api-schemas/merchantDetailKind.fetch.ts +17 -0
- package/src/api/api-schemas/merchantDetailKind.ts +4 -5
- package/src/api/api-schemas/merchantGetResponse.fetch.ts +13 -0
- package/src/api/api-schemas/merchantGetResponse.ts +4 -4
- package/src/api/api-schemas/merchantSummary.fetch.ts +20 -0
- package/src/api/api-schemas/merchantSummary.ts +4 -4
- package/src/api/api-schemas/merchantSummaryKind.fetch.ts +17 -0
- package/src/api/api-schemas/merchantSummaryKind.ts +4 -5
- package/src/api/api-schemas/merchantsGetResponse.fetch.ts +17 -0
- package/src/api/api-schemas/merchantsGetResponse.ts +5 -6
- package/src/api/api-schemas/organisationAllDetail.fetch.ts +30 -0
- package/src/api/api-schemas/organisationAllDetail.ts +4 -4
- package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.fetch.ts +23 -0
- package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.ts +4 -5
- package/src/api/api-schemas/organisationChargeSummary.fetch.ts +17 -0
- package/src/api/api-schemas/organisationChargeSummary.ts +4 -4
- package/src/api/api-schemas/organisationChargesGetResponse.fetch.ts +20 -0
- package/src/api/api-schemas/organisationChargesGetResponse.ts +4 -4
- package/src/api/api-schemas/organisationDetail.fetch.ts +27 -0
- package/src/api/api-schemas/organisationDetail.ts +4 -4
- package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.fetch.ts +23 -0
- package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.ts +4 -5
- package/src/api/api-schemas/organisationGetDefaultResponse.fetch.ts +25 -0
- package/src/api/api-schemas/organisationGetDefaultResponse.ts +7 -10
- package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.fetch.ts +23 -0
- package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.ts +4 -5
- package/src/api/api-schemas/organisationGetResponse.fetch.ts +13 -0
- package/src/api/api-schemas/organisationGetResponse.ts +4 -4
- package/src/api/api-schemas/organisationPatchBodyBody.fetch.ts +22 -0
- package/src/api/api-schemas/organisationPatchBodyBody.ts +9 -7
- package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.fetch.ts +25 -0
- package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.ts +6 -7
- package/src/api/api-schemas/organisationPostBodyBody.fetch.ts +23 -0
- package/src/api/api-schemas/organisationPostBodyBody.ts +4 -4
- package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.fetch.ts +23 -0
- package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.ts +4 -5
- package/src/api/api-schemas/organisationPostResponse.fetch.ts +15 -0
- package/src/api/api-schemas/organisationPostResponse.ts +4 -4
- package/src/api/api-schemas/organisationUnitChargeSummary.fetch.ts +26 -0
- package/src/api/api-schemas/organisationUnitChargeSummary.ts +4 -4
- package/src/api/api-schemas/organisationUnitPostBodyBody.fetch.ts +27 -0
- package/src/api/api-schemas/organisationUnitPostBodyBody.ts +4 -4
- package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.fetch.ts +23 -0
- package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.ts +4 -5
- package/src/api/api-schemas/organisationUnitPostResponse.fetch.ts +15 -0
- package/src/api/api-schemas/organisationUnitPostResponse.ts +4 -4
- package/src/api/api-schemas/organisationUnitsGetResponse.fetch.ts +19 -0
- package/src/api/api-schemas/organisationUnitsGetResponse.ts +5 -6
- package/src/api/api-schemas/organisationsGetResponse.fetch.ts +17 -0
- package/src/api/api-schemas/organisationsGetResponse.ts +4 -4
- package/src/api/api-schemas/personalUnitPutBodyBody.fetch.ts +19 -0
- package/src/api/api-schemas/personalUnitPutBodyBody.ts +4 -4
- package/src/api/api-schemas/personalUnitPutResponse.fetch.ts +17 -0
- package/src/api/api-schemas/personalUnitPutResponse.ts +4 -4
- package/src/api/api-schemas/processingChargeItem.fetch.ts +25 -0
- package/src/api/api-schemas/processingChargeItem.ts +4 -4
- package/src/api/api-schemas/processingCharges.fetch.ts +25 -0
- package/src/api/api-schemas/processingCharges.ts +5 -5
- package/src/api/api-schemas/processingChargesMerchantKind.fetch.ts +15 -0
- package/src/api/api-schemas/processingChargesMerchantKind.ts +4 -5
- package/src/api/api-schemas/productChargesGetResponse.fetch.ts +36 -0
- package/src/api/api-schemas/productChargesGetResponse.ts +5 -5
- package/src/api/api-schemas/productChargesGetResponseProductType.fetch.ts +18 -0
- package/src/api/api-schemas/productChargesGetResponseProductType.ts +4 -5
- package/src/api/api-schemas/productClaimDetail.fetch.ts +17 -0
- package/src/api/api-schemas/productClaimDetail.ts +6 -8
- package/src/api/api-schemas/productCoinsDetail.fetch.ts +35 -0
- package/src/api/api-schemas/productCoinsDetail.ts +4 -4
- package/src/api/api-schemas/productDetail.fetch.ts +24 -0
- package/src/api/api-schemas/productDetail.ts +9 -13
- package/src/api/api-schemas/productDetailFlavour.fetch.ts +22 -0
- package/src/api/api-schemas/productDetailFlavour.ts +4 -6
- package/src/api/api-schemas/productDetailType.fetch.ts +20 -0
- package/src/api/api-schemas/productDetailType.ts +4 -6
- package/src/api/api-schemas/productDmProjectTier.fetch.ts +29 -0
- package/src/api/api-schemas/productDmProjectTier.ts +8 -8
- package/src/api/api-schemas/productDmStorage.fetch.ts +25 -0
- package/src/api/api-schemas/productDmStorage.ts +7 -7
- package/src/api/api-schemas/productDmStorageDetail.fetch.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetail.ts +5 -5
- package/src/api/api-schemas/productDmStorageDetailCoins.fetch.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetailCoins.ts +4 -4
- package/src/api/api-schemas/productDmStorageDetailSize.fetch.ts +21 -0
- package/src/api/api-schemas/productDmStorageDetailSize.ts +4 -4
- package/src/api/api-schemas/productInstanceDetail.fetch.ts +15 -0
- package/src/api/api-schemas/productInstanceDetail.ts +4 -4
- package/src/api/api-schemas/productInstanceDetailCoins.fetch.ts +15 -0
- package/src/api/api-schemas/productInstanceDetailCoins.ts +5 -6
- package/src/api/api-schemas/productPatchBodyBody.fetch.ts +28 -0
- package/src/api/api-schemas/productPatchBodyBody.ts +4 -4
- package/src/api/api-schemas/productType.fetch.ts +20 -0
- package/src/api/api-schemas/productType.ts +4 -4
- package/src/api/api-schemas/productTypeServiceKind.fetch.ts +18 -0
- package/src/api/api-schemas/productTypeServiceKind.ts +4 -5
- package/src/api/api-schemas/productUnitGetResponse.fetch.ts +17 -0
- package/src/api/api-schemas/productUnitGetResponse.ts +7 -6
- package/src/api/api-schemas/productsGetDefaultStorageCost.fetch.ts +15 -0
- package/src/api/api-schemas/productsGetDefaultStorageCost.ts +4 -4
- package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.fetch.ts +16 -0
- package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.ts +4 -4
- package/src/api/api-schemas/productsGetResponse.fetch.ts +18 -0
- package/src/api/api-schemas/productsGetResponse.ts +7 -6
- package/src/api/api-schemas/productsGetTypesResponse.fetch.ts +18 -0
- package/src/api/api-schemas/productsGetTypesResponse.ts +4 -4
- package/src/api/api-schemas/qFormatParameter.fetch.ts +17 -0
- package/src/api/api-schemas/qFormatParameter.ts +4 -5
- package/src/api/api-schemas/qFromParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qFromParameter.ts +4 -4
- package/src/api/api-schemas/qMIdParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qMIdParameter.ts +4 -4
- package/src/api/api-schemas/qNameParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qNameParameter.ts +4 -4
- package/src/api/api-schemas/qOrgIdParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qOrgIdParameter.ts +4 -4
- package/src/api/api-schemas/qPbpParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qPbpParameter.ts +4 -4
- package/src/api/api-schemas/qProductIdParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qProductIdParameter.ts +4 -4
- package/src/api/api-schemas/qUnitIdParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qUnitIdParameter.ts +4 -4
- package/src/api/api-schemas/qUntilParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qUntilParameter.ts +4 -4
- package/src/api/api-schemas/qUserIdParameter.fetch.ts +15 -0
- package/src/api/api-schemas/qUserIdParameter.ts +4 -4
- package/src/api/api-schemas/stateGetVersionResponse.fetch.ts +15 -0
- package/src/api/api-schemas/stateGetVersionResponse.ts +5 -6
- package/src/api/api-schemas/storageChargeItem.fetch.ts +24 -0
- package/src/api/api-schemas/storageChargeItem.ts +4 -4
- package/src/api/api-schemas/storageCharges.fetch.ts +16 -0
- package/src/api/api-schemas/storageCharges.ts +4 -4
- package/src/api/api-schemas/unitAllDetail.fetch.ts +32 -0
- package/src/api/api-schemas/unitAllDetail.ts +4 -4
- package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.fetch.ts +23 -0
- package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.ts +4 -5
- package/src/api/api-schemas/unitChargeSummary.fetch.ts +15 -0
- package/src/api/api-schemas/unitChargeSummary.ts +4 -4
- package/src/api/api-schemas/unitChargesGetResponse.fetch.ts +37 -0
- package/src/api/api-schemas/unitChargesGetResponse.ts +4 -4
- package/src/api/api-schemas/unitDetail.fetch.ts +29 -0
- package/src/api/api-schemas/unitDetail.ts +4 -4
- package/src/api/api-schemas/unitDetailDefaultProductPrivacy.fetch.ts +23 -0
- package/src/api/api-schemas/unitDetailDefaultProductPrivacy.ts +4 -5
- package/src/api/api-schemas/unitGetResponse.fetch.ts +13 -0
- package/src/api/api-schemas/unitGetResponse.ts +4 -4
- package/src/api/api-schemas/unitPatchBodyBody.fetch.ts +22 -0
- package/src/api/api-schemas/unitPatchBodyBody.ts +9 -7
- package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.fetch.ts +25 -0
- package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.ts +6 -7
- package/src/api/api-schemas/unitProductChargeSummary.fetch.ts +17 -0
- package/src/api/api-schemas/unitProductChargeSummary.ts +4 -4
- package/src/api/api-schemas/unitProductPostBodyBody.fetch.ts +38 -0
- package/src/api/api-schemas/unitProductPostBodyBody.ts +10 -8
- package/src/api/api-schemas/unitProductPostBodyBodyFlavour.fetch.ts +23 -0
- package/src/api/api-schemas/unitProductPostBodyBodyFlavour.ts +4 -5
- package/src/api/api-schemas/unitProductPostBodyBodyType.fetch.ts +23 -0
- package/src/api/api-schemas/unitProductPostBodyBodyType.ts +6 -7
- package/src/api/api-schemas/unitProductPostResponse.fetch.ts +15 -0
- package/src/api/api-schemas/unitProductPostResponse.ts +4 -4
- package/src/api/api-schemas/unitsGetResponse.fetch.ts +16 -0
- package/src/api/api-schemas/unitsGetResponse.ts +5 -6
- package/src/api/api-schemas/userAccountDetail.fetch.ts +19 -0
- package/src/api/api-schemas/userAccountDetail.ts +4 -4
- package/src/api/api-schemas/userAccountGetResponse.fetch.ts +13 -0
- package/src/api/api-schemas/userAccountGetResponse.ts +4 -4
- package/src/api/api-schemas/userDetail.fetch.ts +15 -0
- package/src/api/api-schemas/userDetail.ts +4 -4
- package/src/api/api-schemas/usersGetResponse.fetch.ts +21 -0
- package/src/api/api-schemas/usersGetResponse.ts +5 -6
- package/src/api/asset/asset.fetch.ts +121 -134
- package/src/api/asset/asset.ts +113 -104
- package/src/api/charges/charges.fetch.ts +134 -128
- package/src/api/charges/charges.ts +115 -109
- package/src/api/event-stream/event-stream.fetch.ts +73 -74
- package/src/api/event-stream/event-stream.ts +63 -60
- package/src/api/merchant/merchant.fetch.ts +65 -57
- package/src/api/merchant/merchant.ts +58 -50
- package/src/api/organisation/organisation.fetch.ts +113 -119
- package/src/api/organisation/organisation.ts +93 -96
- package/src/api/product/product.fetch.ts +178 -193
- package/src/api/product/product.ts +147 -159
- package/src/api/state/state.fetch.ts +37 -26
- package/src/api/state/state.ts +34 -23
- package/src/api/unit/unit.fetch.ts +162 -181
- package/src/api/unit/unit.ts +137 -143
- package/src/api/user/user.fetch.ts +129 -135
- package/src/api/user/user.ts +116 -112
- package/tsdown.config.ts +1 -1
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts +0 -12
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts.map +0 -1
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts +0 -12
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts.map +0 -1
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts +0 -9
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts.map +0 -1
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts +0 -9
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts.map +0 -1
- package/src/api/api-schemas/productUnitGetResponseProduct.ts +0 -17
- package/src/api/api-schemas/productsGetResponseProductsItem.ts +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.fetch.cjs","names":["customFetch","queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUsers>>>","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n { orgId: string; userId: string }\n >","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n { orgId: string; userId: string }\n >","queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnitUsers>>>","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n { unitId: string; userId: string }\n >","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n { unitId: string; userId: string }\n >"],"sources":["../../../src/api/user/user.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n\n * OpenAPI spec version: 4.7\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, UserAccountDetail, UsersGetResponse } from \".././api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Returns a summary of your account\n\n * @summary Get information about your account\n */\nexport type getUserAccountResponse200 = { data: UserAccountDetail; status: 200 };\n\nexport type getUserAccountResponse401 = { data: void; status: 401 };\n\nexport type getUserAccountResponse403 = { data: AsError; status: 403 };\n\nexport type getUserAccountResponseSuccess = getUserAccountResponse200 & { headers: Headers };\nexport type getUserAccountResponseError = (\n | getUserAccountResponse401\n | getUserAccountResponse403\n) & { headers: Headers };\n\nexport type getUserAccountResponse = getUserAccountResponseSuccess | getUserAccountResponseError;\n\nexport const getGetUserAccountUrl = () => {\n return `/user/account`;\n};\n\nexport const getUserAccount = async (options?: RequestInit): Promise<getUserAccountResponse> => {\n return customFetch<getUserAccountResponse>(getGetUserAccountUrl(), { ...options, method: \"GET\" });\n};\n\nexport const getGetUserAccountQueryKey = () => {\n return [\"account-server\", \"user\", \"account\"] as const;\n};\n\nexport const getGetUserAccountQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) =>\n getUserAccount({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;\nexport type GetUserAccountQueryError = ErrorType<void | AsError>;\n\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n Awaited<ReturnType<typeof getUserAccount>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n Awaited<ReturnType<typeof getUserAccount>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Get information about your account\n */\n\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetUserAccountQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Get information about your account\n */\nexport const invalidateGetUserAccount = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserAccountQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetUserAccountSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) =>\n getUserAccount({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetUserAccountSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserAccount>>\n>;\nexport type GetUserAccountSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Get information about your account\n */\n\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetUserAccountSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets Users in an Organisation.\n\nYou have to be a member of the Organisation or an admin user to use this endpoint\n\n**WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /organisation/{org_id}` endpoint instead.\n\n * @summary Gets users in an Organisation\n */\nexport type getOrganisationUsersResponse200 = { data: UsersGetResponse; status: 200 };\n\nexport type getOrganisationUsersResponse400 = { data: AsError; status: 400 };\n\nexport type getOrganisationUsersResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationUsersResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationUsersResponseSuccess = getOrganisationUsersResponse200 & {\n headers: Headers;\n};\nexport type getOrganisationUsersResponseError = (\n | getOrganisationUsersResponse400\n | getOrganisationUsersResponse401\n | getOrganisationUsersResponse403\n) & { headers: Headers };\n\nexport type getOrganisationUsersResponse =\n | getOrganisationUsersResponseSuccess\n | getOrganisationUsersResponseError;\n\nexport const getGetOrganisationUsersUrl = (orgId: string) => {\n return `/organisation/${orgId}/user`;\n};\n\nexport const getOrganisationUsers = async (\n orgId: string,\n options?: RequestInit,\n): Promise<getOrganisationUsersResponse> => {\n return customFetch<getOrganisationUsersResponse>(getGetOrganisationUsersUrl(orgId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationUsersQueryKey = (orgId?: string) => {\n return [\"account-server\", \"organisation\", orgId, \"user\"] as const;\n};\n\nexport const getGetOrganisationUsersQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUsersQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUsers>>> = ({ signal }) =>\n getOrganisationUsers(orgId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, enabled: !!orgId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationUsersQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUsers>>\n>;\nexport type GetOrganisationUsersQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets users in an Organisation\n */\n\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationUsersQueryOptions(orgId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets users in an Organisation\n */\nexport const invalidateGetOrganisationUsers = async (\n queryClient: QueryClient,\n orgId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries(\n { queryKey: getGetOrganisationUsersQueryKey(orgId) },\n options,\n );\n\n return queryClient;\n};\n\nexport const getGetOrganisationUsersSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUsersQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUsers>>> = ({ signal }) =>\n getOrganisationUsers(orgId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationUsersSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUsers>>\n>;\nexport type GetOrganisationUsersSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets users in an Organisation\n */\n\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationUsersSuspenseQueryOptions(orgId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Adds a User to an **Organisation**.\n\nYou have to be in the Organisation or an admin user to use this endpoint\n\n * @summary Adds a User to an Organisation\n */\nexport type addOrganisationUserResponse201 = { data: void; status: 201 };\n\nexport type addOrganisationUserResponse400 = { data: AsError; status: 400 };\n\nexport type addOrganisationUserResponse401 = { data: void; status: 401 };\n\nexport type addOrganisationUserResponse403 = { data: AsError; status: 403 };\n\nexport type addOrganisationUserResponseSuccess = addOrganisationUserResponse201 & {\n headers: Headers;\n};\nexport type addOrganisationUserResponseError = (\n | addOrganisationUserResponse400\n | addOrganisationUserResponse401\n | addOrganisationUserResponse403\n) & { headers: Headers };\n\nexport type addOrganisationUserResponse =\n | addOrganisationUserResponseSuccess\n | addOrganisationUserResponseError;\n\nexport const getAddOrganisationUserUrl = (orgId: string, userId: string) => {\n return `/organisation/${orgId}/user/${userId}`;\n};\n\nexport const addOrganisationUser = async (\n orgId: string,\n userId: string,\n options?: RequestInit,\n): Promise<addOrganisationUserResponse> => {\n return customFetch<addOrganisationUserResponse>(getAddOrganisationUserUrl(orgId, userId), {\n ...options,\n method: \"PUT\",\n });\n};\n\nexport const getAddOrganisationUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"addOrganisationUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props ?? {};\n\n return addOrganisationUser(orgId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AddOrganisationUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof addOrganisationUser>>\n>;\n\nexport type AddOrganisationUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Adds a User to an Organisation\n */\nexport const useAddOrganisationUser = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n const mutationOptions = getAddOrganisationUserMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Removes a User from an **Organisation**.\n\nYou have to be in the Organisation or an admin user to use this endpoint\n\n * @summary Deletes a User from an Organisation\n */\nexport type deleteOrganisationUserResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationUserResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationUserResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationUserResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationUserResponseSuccess = deleteOrganisationUserResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationUserResponseError = (\n | deleteOrganisationUserResponse400\n | deleteOrganisationUserResponse401\n | deleteOrganisationUserResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationUserResponse =\n | deleteOrganisationUserResponseSuccess\n | deleteOrganisationUserResponseError;\n\nexport const getDeleteOrganisationUserUrl = (orgId: string, userId: string) => {\n return `/organisation/${orgId}/user/${userId}`;\n};\n\nexport const deleteOrganisationUser = async (\n orgId: string,\n userId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationUserResponse> => {\n return customFetch<deleteOrganisationUserResponse>(getDeleteOrganisationUserUrl(orgId, userId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteOrganisationUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisationUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props ?? {};\n\n return deleteOrganisationUser(orgId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisationUser>>\n>;\n\nexport type DeleteOrganisationUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes a User from an Organisation\n */\nexport const useDeleteOrganisationUser = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n const mutationOptions = getDeleteOrganisationUserMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Gets users in an Organisational Unit.\n\nYou have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n**WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /unit/{unit_id}` endpoint instead.\n\n * @summary Gets users in an Organisational Unit\n */\nexport type getOrganisationUnitUsersResponse200 = { data: UsersGetResponse; status: 200 };\n\nexport type getOrganisationUnitUsersResponse400 = { data: AsError; status: 400 };\n\nexport type getOrganisationUnitUsersResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationUnitUsersResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationUnitUsersResponseSuccess = getOrganisationUnitUsersResponse200 & {\n headers: Headers;\n};\nexport type getOrganisationUnitUsersResponseError = (\n | getOrganisationUnitUsersResponse400\n | getOrganisationUnitUsersResponse401\n | getOrganisationUnitUsersResponse403\n) & { headers: Headers };\n\nexport type getOrganisationUnitUsersResponse =\n | getOrganisationUnitUsersResponseSuccess\n | getOrganisationUnitUsersResponseError;\n\nexport const getGetOrganisationUnitUsersUrl = (unitId: string) => {\n return `/unit/${unitId}/user`;\n};\n\nexport const getOrganisationUnitUsers = async (\n unitId: string,\n options?: RequestInit,\n): Promise<getOrganisationUnitUsersResponse> => {\n return customFetch<getOrganisationUnitUsersResponse>(getGetOrganisationUnitUsersUrl(unitId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationUnitUsersQueryKey = (unitId?: string) => {\n return [\"account-server\", \"unit\", unitId, \"user\"] as const;\n};\n\nexport const getGetOrganisationUnitUsersQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitUsersQueryKey(unitId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnitUsers>>> = ({\n signal,\n }) => getOrganisationUnitUsers(unitId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, enabled: !!unitId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationUnitUsersQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n>;\nexport type GetOrganisationUnitUsersQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets users in an Organisational Unit\n */\n\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationUnitUsersQueryOptions(unitId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets users in an Organisational Unit\n */\nexport const invalidateGetOrganisationUnitUsers = async (\n queryClient: QueryClient,\n unitId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries(\n { queryKey: getGetOrganisationUnitUsersQueryKey(unitId) },\n options,\n );\n\n return queryClient;\n};\n\nexport const getGetOrganisationUnitUsersSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitUsersQueryKey(unitId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnitUsers>>> = ({\n signal,\n }) => getOrganisationUnitUsers(unitId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationUnitUsersSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n>;\nexport type GetOrganisationUnitUsersSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets users in an Organisational Unit\n */\n\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationUnitUsersSuspenseQueryOptions(unitId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Adds a user to an Organisational Unit.\n\nUsers cannot be added to **Personal Units** (Units that are part of the ***Default** Organisation).\n\nYou have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Adds a user to an Organisational Unit\n */\nexport type addOrganisationUnitUserResponse201 = { data: void; status: 201 };\n\nexport type addOrganisationUnitUserResponse400 = { data: AsError; status: 400 };\n\nexport type addOrganisationUnitUserResponse401 = { data: void; status: 401 };\n\nexport type addOrganisationUnitUserResponse403 = { data: AsError; status: 403 };\n\nexport type addOrganisationUnitUserResponseSuccess = addOrganisationUnitUserResponse201 & {\n headers: Headers;\n};\nexport type addOrganisationUnitUserResponseError = (\n | addOrganisationUnitUserResponse400\n | addOrganisationUnitUserResponse401\n | addOrganisationUnitUserResponse403\n) & { headers: Headers };\n\nexport type addOrganisationUnitUserResponse =\n | addOrganisationUnitUserResponseSuccess\n | addOrganisationUnitUserResponseError;\n\nexport const getAddOrganisationUnitUserUrl = (unitId: string, userId: string) => {\n return `/unit/${unitId}/user/${userId}`;\n};\n\nexport const addOrganisationUnitUser = async (\n unitId: string,\n userId: string,\n options?: RequestInit,\n): Promise<addOrganisationUnitUserResponse> => {\n return customFetch<addOrganisationUnitUserResponse>(\n getAddOrganisationUnitUserUrl(unitId, userId),\n { ...options, method: \"PUT\" },\n );\n};\n\nexport const getAddOrganisationUnitUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"addOrganisationUnitUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props ?? {};\n\n return addOrganisationUnitUser(unitId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AddOrganisationUnitUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>\n>;\n\nexport type AddOrganisationUnitUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Adds a user to an Organisational Unit\n */\nexport const useAddOrganisationUnitUser = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n const mutationOptions = getAddOrganisationUnitUserMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Removes a User from an Organisational Unit.\n\nUsers cannot be removed from **Personal Units** (Units that are part of the ***Default** Organisation).\n\nYou have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Deletes a User from an Organisational Unit\n */\nexport type deleteOrganisationUnitUserResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationUnitUserResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationUnitUserResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationUnitUserResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationUnitUserResponseSuccess = deleteOrganisationUnitUserResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationUnitUserResponseError = (\n | deleteOrganisationUnitUserResponse400\n | deleteOrganisationUnitUserResponse401\n | deleteOrganisationUnitUserResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationUnitUserResponse =\n | deleteOrganisationUnitUserResponseSuccess\n | deleteOrganisationUnitUserResponseError;\n\nexport const getDeleteOrganisationUnitUserUrl = (unitId: string, userId: string) => {\n return `/unit/${unitId}/user/${userId}`;\n};\n\nexport const deleteOrganisationUnitUser = async (\n unitId: string,\n userId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationUnitUserResponse> => {\n return customFetch<deleteOrganisationUnitUserResponse>(\n getDeleteOrganisationUnitUserUrl(unitId, userId),\n { ...options, method: \"DELETE\" },\n );\n};\n\nexport const getDeleteOrganisationUnitUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisationUnitUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props ?? {};\n\n return deleteOrganisationUnitUser(unitId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationUnitUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>\n>;\n\nexport type DeleteOrganisationUnitUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes a User from an Organisational Unit\n */\nexport const useDeleteOrganisationUnitUser = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n const mutationOptions = getDeleteOrganisationUnitUserMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};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;EAAE,SAAS;EAAW;CAErD,MAAMO,cAGD,UAAU;EACb,MAAM,EAAE,QAAQ,WAAW,SAAS,EAAE;AAEtC,SAAO,2BAA2B,QAAQ,QAAQ,eAAe;;AAGnE,QAAO;EAAE;EAAY,GAAG;EAAiB;;;;;AAY3C,MAAa,iCAIX,SASA,gBAMG;AAGH,gDAFwB,6CAA6C,QAAQ,EAEzC,YAAY"}
|
|
1
|
+
{"version":3,"file":"user.fetch.cjs","names":["customFetch"],"sources":["../../../src/api/user/user.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.7\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, UserAccountDetail, UsersGetResponse } from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getUserAccountResponse200 = { data: UserAccountDetail; status: 200 };\n\nexport type getUserAccountResponse401 = { data: void; status: 401 };\n\nexport type getUserAccountResponse403 = { data: AsError; status: 403 };\n\nexport type getUserAccountResponseSuccess = getUserAccountResponse200 & { headers: Headers };\nexport type getUserAccountResponseError = (\n | getUserAccountResponse401\n | getUserAccountResponse403\n) & { headers: Headers };\n\nexport type getUserAccountResponse = getUserAccountResponseSuccess | getUserAccountResponseError;\n\nexport const getGetUserAccountUrl = () => {\n return `/user/account`;\n};\n\n/**\n * Returns a summary of your account\n * @summary Get information about your account\n */\nexport const getUserAccount = async (options?: RequestInit): Promise<getUserAccountResponse> => {\n return customFetch<getUserAccountResponse>(getGetUserAccountUrl(), { ...options, method: \"GET\" });\n};\n\nexport const getGetUserAccountQueryKey = () => {\n return [\"account-server\", \"user\", \"account\"] as const;\n};\n\nexport const getGetUserAccountQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) =>\n getUserAccount({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;\nexport type GetUserAccountQueryError = ErrorType<void | AsError>;\n\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n Awaited<ReturnType<typeof getUserAccount>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n Awaited<ReturnType<typeof getUserAccount>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get information about your account\n */\n\nexport function useGetUserAccount<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserAccountQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Get information about your account\n */\nexport const invalidateGetUserAccount = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserAccountQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetUserAccountSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) =>\n getUserAccount({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserAccountSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserAccount>>\n>;\nexport type GetUserAccountSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get information about your account\n */\n\nexport function useGetUserAccountSuspense<\n TData = Awaited<ReturnType<typeof getUserAccount>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserAccountSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getOrganisationUsersResponse200 = { data: UsersGetResponse; status: 200 };\n\nexport type getOrganisationUsersResponse400 = { data: AsError; status: 400 };\n\nexport type getOrganisationUsersResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationUsersResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationUsersResponseSuccess = getOrganisationUsersResponse200 & {\n headers: Headers;\n};\nexport type getOrganisationUsersResponseError = (\n | getOrganisationUsersResponse400\n | getOrganisationUsersResponse401\n | getOrganisationUsersResponse403\n) & { headers: Headers };\n\nexport type getOrganisationUsersResponse =\n | getOrganisationUsersResponseSuccess\n | getOrganisationUsersResponseError;\n\nexport const getGetOrganisationUsersUrl = (orgId: string) => {\n return `/organisation/${orgId}/user`;\n};\n\n/**\n * Gets Users in an Organisation.\n *\n * You have to be a member of the Organisation or an admin user to use this endpoint\n *\n * **WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /organisation/{org_id}` endpoint instead.\n * @summary Gets users in an Organisation\n */\nexport const getOrganisationUsers = async (\n orgId: string,\n options?: RequestInit,\n): Promise<getOrganisationUsersResponse> => {\n return customFetch<getOrganisationUsersResponse>(getGetOrganisationUsersUrl(orgId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationUsersQueryKey = (orgId: string) => {\n return [\"account-server\", \"organisation\", orgId, \"user\"] as const;\n};\n\nexport const getGetOrganisationUsersQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUsersQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUsers>>> = ({ signal }) =>\n getOrganisationUsers(orgId, { signal, ...requestOptions });\n\n return {\n queryKey,\n queryFn,\n enabled: orgId !== null && orgId !== undefined,\n ...queryOptions,\n } as UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n};\n\nexport type GetOrganisationUsersQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUsers>>\n>;\nexport type GetOrganisationUsersQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets users in an Organisation\n */\n\nexport function useGetOrganisationUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationUsersQueryOptions(orgId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets users in an Organisation\n */\nexport const invalidateGetOrganisationUsers = async (\n queryClient: QueryClient,\n orgId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries(\n { queryKey: getGetOrganisationUsersQueryKey(orgId) },\n options,\n );\n\n return queryClient;\n};\n\nexport const getGetOrganisationUsersSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUsersQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUsers>>> = ({ signal }) =>\n getOrganisationUsers(orgId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationUsersSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUsers>>\n>;\nexport type GetOrganisationUsersSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets users in an Organisation\n */\n\nexport function useGetOrganisationUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationUsersSuspenseQueryOptions(orgId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type addOrganisationUserResponse201 = { data: void; status: 201 };\n\nexport type addOrganisationUserResponse400 = { data: AsError; status: 400 };\n\nexport type addOrganisationUserResponse401 = { data: void; status: 401 };\n\nexport type addOrganisationUserResponse403 = { data: AsError; status: 403 };\n\nexport type addOrganisationUserResponseSuccess = addOrganisationUserResponse201 & {\n headers: Headers;\n};\nexport type addOrganisationUserResponseError = (\n | addOrganisationUserResponse400\n | addOrganisationUserResponse401\n | addOrganisationUserResponse403\n) & { headers: Headers };\n\nexport type addOrganisationUserResponse =\n | addOrganisationUserResponseSuccess\n | addOrganisationUserResponseError;\n\nexport const getAddOrganisationUserUrl = (orgId: string, userId: string) => {\n return `/organisation/${orgId}/user/${userId}`;\n};\n\n/**\n * Adds a User to an **Organisation**.\n *\n * You have to be in the Organisation or an admin user to use this endpoint\n * @summary Adds a User to an Organisation\n */\nexport const addOrganisationUser = async (\n orgId: string,\n userId: string,\n options?: RequestInit,\n): Promise<addOrganisationUserResponse> => {\n return customFetch<addOrganisationUserResponse>(getAddOrganisationUserUrl(orgId, userId), {\n ...options,\n method: \"PUT\",\n });\n};\n\nexport const getAddOrganisationUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"addOrganisationUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props ?? {};\n\n return addOrganisationUser(orgId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AddOrganisationUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof addOrganisationUser>>\n>;\n\nexport type AddOrganisationUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Adds a User to an Organisation\n */\nexport const useAddOrganisationUser = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof addOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n return useMutation(getAddOrganisationUserMutationOptions(options), queryClient);\n};\nexport type deleteOrganisationUserResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationUserResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationUserResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationUserResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationUserResponseSuccess = deleteOrganisationUserResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationUserResponseError = (\n | deleteOrganisationUserResponse400\n | deleteOrganisationUserResponse401\n | deleteOrganisationUserResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationUserResponse =\n | deleteOrganisationUserResponseSuccess\n | deleteOrganisationUserResponseError;\n\nexport const getDeleteOrganisationUserUrl = (orgId: string, userId: string) => {\n return `/organisation/${orgId}/user/${userId}`;\n};\n\n/**\n * Removes a User from an **Organisation**.\n *\n * You have to be in the Organisation or an admin user to use this endpoint\n * @summary Deletes a User from an Organisation\n */\nexport const deleteOrganisationUser = async (\n orgId: string,\n userId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationUserResponse> => {\n return customFetch<deleteOrganisationUserResponse>(getDeleteOrganisationUserUrl(orgId, userId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteOrganisationUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisationUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props ?? {};\n\n return deleteOrganisationUser(orgId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisationUser>>\n>;\n\nexport type DeleteOrganisationUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes a User from an Organisation\n */\nexport const useDeleteOrganisationUser = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisationUser>>,\n TError,\n { orgId: string; userId: string },\n TContext\n> => {\n return useMutation(getDeleteOrganisationUserMutationOptions(options), queryClient);\n};\nexport type getOrganisationUnitUsersResponse200 = { data: UsersGetResponse; status: 200 };\n\nexport type getOrganisationUnitUsersResponse400 = { data: AsError; status: 400 };\n\nexport type getOrganisationUnitUsersResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationUnitUsersResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationUnitUsersResponseSuccess = getOrganisationUnitUsersResponse200 & {\n headers: Headers;\n};\nexport type getOrganisationUnitUsersResponseError = (\n | getOrganisationUnitUsersResponse400\n | getOrganisationUnitUsersResponse401\n | getOrganisationUnitUsersResponse403\n) & { headers: Headers };\n\nexport type getOrganisationUnitUsersResponse =\n | getOrganisationUnitUsersResponseSuccess\n | getOrganisationUnitUsersResponseError;\n\nexport const getGetOrganisationUnitUsersUrl = (unitId: string) => {\n return `/unit/${unitId}/user`;\n};\n\n/**\n * Gets users in an Organisational Unit.\n *\n * You have to be in the Organisation or Unit or an Admin user to use this endpoint\n *\n * **WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /unit/{unit_id}` endpoint instead.\n * @summary Gets users in an Organisational Unit\n */\nexport const getOrganisationUnitUsers = async (\n unitId: string,\n options?: RequestInit,\n): Promise<getOrganisationUnitUsersResponse> => {\n return customFetch<getOrganisationUnitUsersResponse>(getGetOrganisationUnitUsersUrl(unitId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationUnitUsersQueryKey = (unitId: string) => {\n return [\"account-server\", \"unit\", unitId, \"user\"] as const;\n};\n\nexport const getGetOrganisationUnitUsersQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitUsersQueryKey(unitId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnitUsers>>> = ({\n signal,\n }) => getOrganisationUnitUsers(unitId, { signal, ...requestOptions });\n\n return {\n queryKey,\n queryFn,\n enabled: unitId !== null && unitId !== undefined,\n ...queryOptions,\n } as UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n};\n\nexport type GetOrganisationUnitUsersQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n>;\nexport type GetOrganisationUnitUsersQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError,\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets users in an Organisational Unit\n */\n\nexport function useGetOrganisationUnitUsers<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationUnitUsersQueryOptions(unitId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets users in an Organisational Unit\n */\nexport const invalidateGetOrganisationUnitUsers = async (\n queryClient: QueryClient,\n unitId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries(\n { queryKey: getGetOrganisationUnitUsersQueryKey(unitId) },\n options,\n );\n\n return queryClient;\n};\n\nexport const getGetOrganisationUnitUsersSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitUsersQueryKey(unitId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnitUsers>>> = ({\n signal,\n }) => getOrganisationUnitUsers(unitId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationUnitUsersSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisationUnitUsers>>\n>;\nexport type GetOrganisationUnitUsersSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets users in an Organisational Unit\n */\n\nexport function useGetOrganisationUnitUsersSuspense<\n TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,\n TError = ErrorType<AsError | void>,\n>(\n unitId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationUnitUsersSuspenseQueryOptions(unitId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type addOrganisationUnitUserResponse201 = { data: void; status: 201 };\n\nexport type addOrganisationUnitUserResponse400 = { data: AsError; status: 400 };\n\nexport type addOrganisationUnitUserResponse401 = { data: void; status: 401 };\n\nexport type addOrganisationUnitUserResponse403 = { data: AsError; status: 403 };\n\nexport type addOrganisationUnitUserResponseSuccess = addOrganisationUnitUserResponse201 & {\n headers: Headers;\n};\nexport type addOrganisationUnitUserResponseError = (\n | addOrganisationUnitUserResponse400\n | addOrganisationUnitUserResponse401\n | addOrganisationUnitUserResponse403\n) & { headers: Headers };\n\nexport type addOrganisationUnitUserResponse =\n | addOrganisationUnitUserResponseSuccess\n | addOrganisationUnitUserResponseError;\n\nexport const getAddOrganisationUnitUserUrl = (unitId: string, userId: string) => {\n return `/unit/${unitId}/user/${userId}`;\n};\n\n/**\n * Adds a user to an Organisational Unit.\n *\n * Users cannot be added to **Personal Units** (Units that are part of the ***Default** Organisation).\n *\n * You have to be in the Organisation or Unit or an Admin user to use this endpoint\n * @summary Adds a user to an Organisational Unit\n */\nexport const addOrganisationUnitUser = async (\n unitId: string,\n userId: string,\n options?: RequestInit,\n): Promise<addOrganisationUnitUserResponse> => {\n return customFetch<addOrganisationUnitUserResponse>(\n getAddOrganisationUnitUserUrl(unitId, userId),\n { ...options, method: \"PUT\" },\n );\n};\n\nexport const getAddOrganisationUnitUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"addOrganisationUnitUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props ?? {};\n\n return addOrganisationUnitUser(unitId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AddOrganisationUnitUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>\n>;\n\nexport type AddOrganisationUnitUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Adds a user to an Organisational Unit\n */\nexport const useAddOrganisationUnitUser = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof addOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n return useMutation(getAddOrganisationUnitUserMutationOptions(options), queryClient);\n};\nexport type deleteOrganisationUnitUserResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationUnitUserResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationUnitUserResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationUnitUserResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationUnitUserResponseSuccess = deleteOrganisationUnitUserResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationUnitUserResponseError = (\n | deleteOrganisationUnitUserResponse400\n | deleteOrganisationUnitUserResponse401\n | deleteOrganisationUnitUserResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationUnitUserResponse =\n | deleteOrganisationUnitUserResponseSuccess\n | deleteOrganisationUnitUserResponseError;\n\nexport const getDeleteOrganisationUnitUserUrl = (unitId: string, userId: string) => {\n return `/unit/${unitId}/user/${userId}`;\n};\n\n/**\n * Removes a User from an Organisational Unit.\n *\n * Users cannot be removed from **Personal Units** (Units that are part of the ***Default** Organisation).\n *\n * You have to be in the Organisation or Unit or an Admin user to use this endpoint\n * @summary Deletes a User from an Organisational Unit\n */\nexport const deleteOrganisationUnitUser = async (\n unitId: string,\n userId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationUnitUserResponse> => {\n return customFetch<deleteOrganisationUnitUserResponse>(\n getDeleteOrganisationUnitUserUrl(unitId, userId),\n { ...options, method: \"DELETE\" },\n );\n};\n\nexport const getDeleteOrganisationUnitUserMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisationUnitUser\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props ?? {};\n\n return deleteOrganisationUnitUser(unitId, userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationUnitUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>\n>;\n\nexport type DeleteOrganisationUnitUserMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes a User from an Organisational Unit\n */\nexport const useDeleteOrganisationUnitUser = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,\n TError,\n { unitId: string; userId: string },\n TContext\n> => {\n return useMutation(getDeleteOrganisationUnitUserMutationOptions(options), queryClient);\n};\n"],"mappings":";;;;;;;;;;;;;;AAoCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;AAgBA,MAAa,6BAA6B;CACxC,OAAO;AACT;;;;;AAMA,MAAa,iBAAiB,OAAO,YAA2D;CAC9F,OAAOA,qBAAAA,YAAoC,qBAAqB,GAAG;EAAE,GAAG;EAAS,QAAQ;CAAM,CAAC;AAClG;AAEA,MAAa,kCAAkC;CAC7C,OAAO;EAAC;EAAkB;EAAQ;CAAS;AAC7C;AAEA,MAAa,iCAGX,YAGI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,0BAA0B;CAErE,MAAM,WAAsE,EAAE,aAC5E,eAAe;EAAE;EAAQ,GAAG;CAAe,CAAC;CAE9C,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAuDA,SAAgB,kBAId,SAIA,aACgF;CAChF,MAAM,eAAe,8BAA8B,OAAO;CAM1D,OAAO,cA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iCAIX,SASA,gBAMG;CACH,QAAA,GAAA,sBAAA,YAAA,CAAmB,6CAA6C,OAAO,GAAG,WAAW;AACvF"}
|
|
@@ -6,11 +6,6 @@ import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, InvalidateOp
|
|
|
6
6
|
|
|
7
7
|
//#region src/api/user/user.fetch.d.ts
|
|
8
8
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
9
|
-
/**
|
|
10
|
-
* Returns a summary of your account
|
|
11
|
-
|
|
12
|
-
* @summary Get information about your account
|
|
13
|
-
*/
|
|
14
9
|
type getUserAccountResponse200 = {
|
|
15
10
|
data: UserAccountDetail;
|
|
16
11
|
status: 200;
|
|
@@ -31,13 +26,17 @@ type getUserAccountResponseError = (getUserAccountResponse401 | getUserAccountRe
|
|
|
31
26
|
};
|
|
32
27
|
type getUserAccountResponse = getUserAccountResponseSuccess | getUserAccountResponseError;
|
|
33
28
|
declare const getGetUserAccountUrl: () => string;
|
|
29
|
+
/**
|
|
30
|
+
* Returns a summary of your account
|
|
31
|
+
* @summary Get information about your account
|
|
32
|
+
*/
|
|
34
33
|
declare const getUserAccount: (options?: RequestInit) => Promise<getUserAccountResponse>;
|
|
35
34
|
declare const getGetUserAccountQueryKey: () => readonly ["account-server", "user", "account"];
|
|
36
35
|
declare const getGetUserAccountQueryOptions: <TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | AsError>>(options?: {
|
|
37
36
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
38
37
|
request?: SecondParameter<typeof customFetch>;
|
|
39
38
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & {
|
|
40
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
39
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
41
40
|
};
|
|
42
41
|
type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;
|
|
43
42
|
type GetUserAccountQueryError = ErrorType<void | AsError>;
|
|
@@ -45,19 +44,19 @@ declare function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAcco
|
|
|
45
44
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, Awaited<ReturnType<typeof getUserAccount>>>, "initialData">;
|
|
46
45
|
request?: SecondParameter<typeof customFetch>;
|
|
47
46
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
48
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
47
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
49
48
|
};
|
|
50
49
|
declare function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | AsError>>(options?: {
|
|
51
50
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, Awaited<ReturnType<typeof getUserAccount>>>, "initialData">;
|
|
52
51
|
request?: SecondParameter<typeof customFetch>;
|
|
53
52
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
54
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
53
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
55
54
|
};
|
|
56
55
|
declare function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | AsError>>(options?: {
|
|
57
56
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
58
57
|
request?: SecondParameter<typeof customFetch>;
|
|
59
58
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
60
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
59
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
61
60
|
};
|
|
62
61
|
/**
|
|
63
62
|
* @summary Get information about your account
|
|
@@ -67,7 +66,7 @@ declare const getGetUserAccountSuspenseQueryOptions: <TData = Awaited<ReturnType
|
|
|
67
66
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
68
67
|
request?: SecondParameter<typeof customFetch>;
|
|
69
68
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & {
|
|
70
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
69
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
71
70
|
};
|
|
72
71
|
type GetUserAccountSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;
|
|
73
72
|
type GetUserAccountSuspenseQueryError = ErrorType<void | AsError>;
|
|
@@ -75,29 +74,20 @@ declare function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof get
|
|
|
75
74
|
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
76
75
|
request?: SecondParameter<typeof customFetch>;
|
|
77
76
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
78
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
77
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
79
78
|
};
|
|
80
79
|
declare function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | AsError>>(options?: {
|
|
81
80
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
82
81
|
request?: SecondParameter<typeof customFetch>;
|
|
83
82
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
84
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
83
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
85
84
|
};
|
|
86
85
|
declare function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | AsError>>(options?: {
|
|
87
86
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
88
87
|
request?: SecondParameter<typeof customFetch>;
|
|
89
88
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
90
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
89
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
91
90
|
};
|
|
92
|
-
/**
|
|
93
|
-
* Gets Users in an Organisation.
|
|
94
|
-
|
|
95
|
-
You have to be a member of the Organisation or an admin user to use this endpoint
|
|
96
|
-
|
|
97
|
-
**WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /organisation/{org_id}` endpoint instead.
|
|
98
|
-
|
|
99
|
-
* @summary Gets users in an Organisation
|
|
100
|
-
*/
|
|
101
91
|
type getOrganisationUsersResponse200 = {
|
|
102
92
|
data: UsersGetResponse;
|
|
103
93
|
status: 200;
|
|
@@ -122,13 +112,21 @@ type getOrganisationUsersResponseError = (getOrganisationUsersResponse400 | getO
|
|
|
122
112
|
};
|
|
123
113
|
type getOrganisationUsersResponse = getOrganisationUsersResponseSuccess | getOrganisationUsersResponseError;
|
|
124
114
|
declare const getGetOrganisationUsersUrl: (orgId: string) => string;
|
|
115
|
+
/**
|
|
116
|
+
* Gets Users in an Organisation.
|
|
117
|
+
*
|
|
118
|
+
* You have to be a member of the Organisation or an admin user to use this endpoint
|
|
119
|
+
*
|
|
120
|
+
* **WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /organisation/{org_id}` endpoint instead.
|
|
121
|
+
* @summary Gets users in an Organisation
|
|
122
|
+
*/
|
|
125
123
|
declare const getOrganisationUsers: (orgId: string, options?: RequestInit) => Promise<getOrganisationUsersResponse>;
|
|
126
|
-
declare const getGetOrganisationUsersQueryKey: (orgId
|
|
124
|
+
declare const getGetOrganisationUsersQueryKey: (orgId: string) => readonly ["account-server", "organisation", string, "user"];
|
|
127
125
|
declare const getGetOrganisationUsersQueryOptions: <TData = Awaited<ReturnType<typeof getOrganisationUsers>>, TError = ErrorType<AsError | void>>(orgId: string, options?: {
|
|
128
126
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>>;
|
|
129
127
|
request?: SecondParameter<typeof customFetch>;
|
|
130
128
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData> & {
|
|
131
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
129
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
132
130
|
};
|
|
133
131
|
type GetOrganisationUsersQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisationUsers>>>;
|
|
134
132
|
type GetOrganisationUsersQueryError = ErrorType<AsError | void>;
|
|
@@ -136,19 +134,19 @@ declare function useGetOrganisationUsers<TData = Awaited<ReturnType<typeof getOr
|
|
|
136
134
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, Awaited<ReturnType<typeof getOrganisationUsers>>>, "initialData">;
|
|
137
135
|
request?: SecondParameter<typeof customFetch>;
|
|
138
136
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
139
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
137
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
140
138
|
};
|
|
141
139
|
declare function useGetOrganisationUsers<TData = Awaited<ReturnType<typeof getOrganisationUsers>>, TError = ErrorType<AsError | void>>(orgId: string, options?: {
|
|
142
140
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, Awaited<ReturnType<typeof getOrganisationUsers>>>, "initialData">;
|
|
143
141
|
request?: SecondParameter<typeof customFetch>;
|
|
144
142
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
145
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
143
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
146
144
|
};
|
|
147
145
|
declare function useGetOrganisationUsers<TData = Awaited<ReturnType<typeof getOrganisationUsers>>, TError = ErrorType<AsError | void>>(orgId: string, options?: {
|
|
148
146
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>>;
|
|
149
147
|
request?: SecondParameter<typeof customFetch>;
|
|
150
148
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
151
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
149
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
152
150
|
};
|
|
153
151
|
/**
|
|
154
152
|
* @summary Gets users in an Organisation
|
|
@@ -158,7 +156,7 @@ declare const getGetOrganisationUsersSuspenseQueryOptions: <TData = Awaited<Retu
|
|
|
158
156
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>>;
|
|
159
157
|
request?: SecondParameter<typeof customFetch>;
|
|
160
158
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData> & {
|
|
161
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
159
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
162
160
|
};
|
|
163
161
|
type GetOrganisationUsersSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisationUsers>>>;
|
|
164
162
|
type GetOrganisationUsersSuspenseQueryError = ErrorType<AsError | void>;
|
|
@@ -166,27 +164,20 @@ declare function useGetOrganisationUsersSuspense<TData = Awaited<ReturnType<type
|
|
|
166
164
|
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>>;
|
|
167
165
|
request?: SecondParameter<typeof customFetch>;
|
|
168
166
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
169
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
167
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
170
168
|
};
|
|
171
169
|
declare function useGetOrganisationUsersSuspense<TData = Awaited<ReturnType<typeof getOrganisationUsers>>, TError = ErrorType<AsError | void>>(orgId: string, options?: {
|
|
172
170
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>>;
|
|
173
171
|
request?: SecondParameter<typeof customFetch>;
|
|
174
172
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
175
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
173
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
176
174
|
};
|
|
177
175
|
declare function useGetOrganisationUsersSuspense<TData = Awaited<ReturnType<typeof getOrganisationUsers>>, TError = ErrorType<AsError | void>>(orgId: string, options?: {
|
|
178
176
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>>;
|
|
179
177
|
request?: SecondParameter<typeof customFetch>;
|
|
180
178
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
181
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
179
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
182
180
|
};
|
|
183
|
-
/**
|
|
184
|
-
* Adds a User to an **Organisation**.
|
|
185
|
-
|
|
186
|
-
You have to be in the Organisation or an admin user to use this endpoint
|
|
187
|
-
|
|
188
|
-
* @summary Adds a User to an Organisation
|
|
189
|
-
*/
|
|
190
181
|
type addOrganisationUserResponse201 = {
|
|
191
182
|
data: void;
|
|
192
183
|
status: 201;
|
|
@@ -211,6 +202,12 @@ type addOrganisationUserResponseError = (addOrganisationUserResponse400 | addOrg
|
|
|
211
202
|
};
|
|
212
203
|
type addOrganisationUserResponse = addOrganisationUserResponseSuccess | addOrganisationUserResponseError;
|
|
213
204
|
declare const getAddOrganisationUserUrl: (orgId: string, userId: string) => string;
|
|
205
|
+
/**
|
|
206
|
+
* Adds a User to an **Organisation**.
|
|
207
|
+
*
|
|
208
|
+
* You have to be in the Organisation or an admin user to use this endpoint
|
|
209
|
+
* @summary Adds a User to an Organisation
|
|
210
|
+
*/
|
|
214
211
|
declare const addOrganisationUser: (orgId: string, userId: string, options?: RequestInit) => Promise<addOrganisationUserResponse>;
|
|
215
212
|
declare const getAddOrganisationUserMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
216
213
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof addOrganisationUser>>, TError, {
|
|
@@ -237,13 +234,6 @@ declare const useAddOrganisationUser: <TError = ErrorType<AsError | void>, TCont
|
|
|
237
234
|
orgId: string;
|
|
238
235
|
userId: string;
|
|
239
236
|
}, TContext>;
|
|
240
|
-
/**
|
|
241
|
-
* Removes a User from an **Organisation**.
|
|
242
|
-
|
|
243
|
-
You have to be in the Organisation or an admin user to use this endpoint
|
|
244
|
-
|
|
245
|
-
* @summary Deletes a User from an Organisation
|
|
246
|
-
*/
|
|
247
237
|
type deleteOrganisationUserResponse204 = {
|
|
248
238
|
data: void;
|
|
249
239
|
status: 204;
|
|
@@ -268,6 +258,12 @@ type deleteOrganisationUserResponseError = (deleteOrganisationUserResponse400 |
|
|
|
268
258
|
};
|
|
269
259
|
type deleteOrganisationUserResponse = deleteOrganisationUserResponseSuccess | deleteOrganisationUserResponseError;
|
|
270
260
|
declare const getDeleteOrganisationUserUrl: (orgId: string, userId: string) => string;
|
|
261
|
+
/**
|
|
262
|
+
* Removes a User from an **Organisation**.
|
|
263
|
+
*
|
|
264
|
+
* You have to be in the Organisation or an admin user to use this endpoint
|
|
265
|
+
* @summary Deletes a User from an Organisation
|
|
266
|
+
*/
|
|
271
267
|
declare const deleteOrganisationUser: (orgId: string, userId: string, options?: RequestInit) => Promise<deleteOrganisationUserResponse>;
|
|
272
268
|
declare const getDeleteOrganisationUserMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
273
269
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganisationUser>>, TError, {
|
|
@@ -294,15 +290,6 @@ declare const useDeleteOrganisationUser: <TError = ErrorType<AsError | void>, TC
|
|
|
294
290
|
orgId: string;
|
|
295
291
|
userId: string;
|
|
296
292
|
}, TContext>;
|
|
297
|
-
/**
|
|
298
|
-
* Gets users in an Organisational Unit.
|
|
299
|
-
|
|
300
|
-
You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
301
|
-
|
|
302
|
-
**WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /unit/{unit_id}` endpoint instead.
|
|
303
|
-
|
|
304
|
-
* @summary Gets users in an Organisational Unit
|
|
305
|
-
*/
|
|
306
293
|
type getOrganisationUnitUsersResponse200 = {
|
|
307
294
|
data: UsersGetResponse;
|
|
308
295
|
status: 200;
|
|
@@ -327,13 +314,21 @@ type getOrganisationUnitUsersResponseError = (getOrganisationUnitUsersResponse40
|
|
|
327
314
|
};
|
|
328
315
|
type getOrganisationUnitUsersResponse = getOrganisationUnitUsersResponseSuccess | getOrganisationUnitUsersResponseError;
|
|
329
316
|
declare const getGetOrganisationUnitUsersUrl: (unitId: string) => string;
|
|
317
|
+
/**
|
|
318
|
+
* Gets users in an Organisational Unit.
|
|
319
|
+
*
|
|
320
|
+
* You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
321
|
+
*
|
|
322
|
+
* **WARNING**: This endpoint is **DEPRECATED** and will be removed in a future release. Please use the `GET /unit/{unit_id}` endpoint instead.
|
|
323
|
+
* @summary Gets users in an Organisational Unit
|
|
324
|
+
*/
|
|
330
325
|
declare const getOrganisationUnitUsers: (unitId: string, options?: RequestInit) => Promise<getOrganisationUnitUsersResponse>;
|
|
331
|
-
declare const getGetOrganisationUnitUsersQueryKey: (unitId
|
|
326
|
+
declare const getGetOrganisationUnitUsersQueryKey: (unitId: string) => readonly ["account-server", "unit", string, "user"];
|
|
332
327
|
declare const getGetOrganisationUnitUsersQueryOptions: <TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError = ErrorType<AsError | void>>(unitId: string, options?: {
|
|
333
328
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>>;
|
|
334
329
|
request?: SecondParameter<typeof customFetch>;
|
|
335
330
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData> & {
|
|
336
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
331
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
337
332
|
};
|
|
338
333
|
type GetOrganisationUnitUsersQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisationUnitUsers>>>;
|
|
339
334
|
type GetOrganisationUnitUsersQueryError = ErrorType<AsError | void>;
|
|
@@ -341,19 +336,19 @@ declare function useGetOrganisationUnitUsers<TData = Awaited<ReturnType<typeof g
|
|
|
341
336
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, Awaited<ReturnType<typeof getOrganisationUnitUsers>>>, "initialData">;
|
|
342
337
|
request?: SecondParameter<typeof customFetch>;
|
|
343
338
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
344
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
339
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
345
340
|
};
|
|
346
341
|
declare function useGetOrganisationUnitUsers<TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError = ErrorType<AsError | void>>(unitId: string, options?: {
|
|
347
342
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, Awaited<ReturnType<typeof getOrganisationUnitUsers>>>, "initialData">;
|
|
348
343
|
request?: SecondParameter<typeof customFetch>;
|
|
349
344
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
350
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
345
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
351
346
|
};
|
|
352
347
|
declare function useGetOrganisationUnitUsers<TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError = ErrorType<AsError | void>>(unitId: string, options?: {
|
|
353
348
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>>;
|
|
354
349
|
request?: SecondParameter<typeof customFetch>;
|
|
355
350
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
356
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
351
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
357
352
|
};
|
|
358
353
|
/**
|
|
359
354
|
* @summary Gets users in an Organisational Unit
|
|
@@ -363,7 +358,7 @@ declare const getGetOrganisationUnitUsersSuspenseQueryOptions: <TData = Awaited<
|
|
|
363
358
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>>;
|
|
364
359
|
request?: SecondParameter<typeof customFetch>;
|
|
365
360
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData> & {
|
|
366
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
361
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
367
362
|
};
|
|
368
363
|
type GetOrganisationUnitUsersSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisationUnitUsers>>>;
|
|
369
364
|
type GetOrganisationUnitUsersSuspenseQueryError = ErrorType<AsError | void>;
|
|
@@ -371,29 +366,20 @@ declare function useGetOrganisationUnitUsersSuspense<TData = Awaited<ReturnType<
|
|
|
371
366
|
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>>;
|
|
372
367
|
request?: SecondParameter<typeof customFetch>;
|
|
373
368
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
374
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
369
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
375
370
|
};
|
|
376
371
|
declare function useGetOrganisationUnitUsersSuspense<TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError = ErrorType<AsError | void>>(unitId: string, options?: {
|
|
377
372
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>>;
|
|
378
373
|
request?: SecondParameter<typeof customFetch>;
|
|
379
374
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
380
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
375
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
381
376
|
};
|
|
382
377
|
declare function useGetOrganisationUnitUsersSuspense<TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError = ErrorType<AsError | void>>(unitId: string, options?: {
|
|
383
378
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>>;
|
|
384
379
|
request?: SecondParameter<typeof customFetch>;
|
|
385
380
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
386
|
-
queryKey: DataTag<QueryKey, TData>;
|
|
381
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
387
382
|
};
|
|
388
|
-
/**
|
|
389
|
-
* Adds a user to an Organisational Unit.
|
|
390
|
-
|
|
391
|
-
Users cannot be added to **Personal Units** (Units that are part of the ***Default** Organisation).
|
|
392
|
-
|
|
393
|
-
You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
394
|
-
|
|
395
|
-
* @summary Adds a user to an Organisational Unit
|
|
396
|
-
*/
|
|
397
383
|
type addOrganisationUnitUserResponse201 = {
|
|
398
384
|
data: void;
|
|
399
385
|
status: 201;
|
|
@@ -418,6 +404,14 @@ type addOrganisationUnitUserResponseError = (addOrganisationUnitUserResponse400
|
|
|
418
404
|
};
|
|
419
405
|
type addOrganisationUnitUserResponse = addOrganisationUnitUserResponseSuccess | addOrganisationUnitUserResponseError;
|
|
420
406
|
declare const getAddOrganisationUnitUserUrl: (unitId: string, userId: string) => string;
|
|
407
|
+
/**
|
|
408
|
+
* Adds a user to an Organisational Unit.
|
|
409
|
+
*
|
|
410
|
+
* Users cannot be added to **Personal Units** (Units that are part of the ***Default** Organisation).
|
|
411
|
+
*
|
|
412
|
+
* You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
413
|
+
* @summary Adds a user to an Organisational Unit
|
|
414
|
+
*/
|
|
421
415
|
declare const addOrganisationUnitUser: (unitId: string, userId: string, options?: RequestInit) => Promise<addOrganisationUnitUserResponse>;
|
|
422
416
|
declare const getAddOrganisationUnitUserMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
423
417
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof addOrganisationUnitUser>>, TError, {
|
|
@@ -444,15 +438,6 @@ declare const useAddOrganisationUnitUser: <TError = ErrorType<AsError | void>, T
|
|
|
444
438
|
unitId: string;
|
|
445
439
|
userId: string;
|
|
446
440
|
}, TContext>;
|
|
447
|
-
/**
|
|
448
|
-
* Removes a User from an Organisational Unit.
|
|
449
|
-
|
|
450
|
-
Users cannot be removed from **Personal Units** (Units that are part of the ***Default** Organisation).
|
|
451
|
-
|
|
452
|
-
You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
453
|
-
|
|
454
|
-
* @summary Deletes a User from an Organisational Unit
|
|
455
|
-
*/
|
|
456
441
|
type deleteOrganisationUnitUserResponse204 = {
|
|
457
442
|
data: void;
|
|
458
443
|
status: 204;
|
|
@@ -477,6 +462,14 @@ type deleteOrganisationUnitUserResponseError = (deleteOrganisationUnitUserRespon
|
|
|
477
462
|
};
|
|
478
463
|
type deleteOrganisationUnitUserResponse = deleteOrganisationUnitUserResponseSuccess | deleteOrganisationUnitUserResponseError;
|
|
479
464
|
declare const getDeleteOrganisationUnitUserUrl: (unitId: string, userId: string) => string;
|
|
465
|
+
/**
|
|
466
|
+
* Removes a User from an Organisational Unit.
|
|
467
|
+
*
|
|
468
|
+
* Users cannot be removed from **Personal Units** (Units that are part of the ***Default** Organisation).
|
|
469
|
+
*
|
|
470
|
+
* You have to be in the Organisation or Unit or an Admin user to use this endpoint
|
|
471
|
+
* @summary Deletes a User from an Organisational Unit
|
|
472
|
+
*/
|
|
480
473
|
declare const deleteOrganisationUnitUser: (unitId: string, userId: string, options?: RequestInit) => Promise<deleteOrganisationUnitUserResponse>;
|
|
481
474
|
declare const getDeleteOrganisationUnitUserMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
482
475
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganisationUnitUser>>, TError, {
|