@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,25 +1,42 @@
|
|
|
1
1
|
import { customFetch } from "../../custom-fetch.js";
|
|
2
2
|
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
|
-
|
|
4
3
|
//#region src/api/organisation/organisation.fetch.ts
|
|
5
4
|
/**
|
|
6
|
-
* Generated by orval
|
|
5
|
+
* Generated by orval v8.22.0 🍺
|
|
7
6
|
* Do not edit manually.
|
|
8
7
|
* Account Server API
|
|
9
8
|
* The Informatics Matters Account Server API.
|
|
10
|
-
|
|
11
|
-
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
12
|
-
|
|
9
|
+
*
|
|
10
|
+
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
11
|
+
*
|
|
13
12
|
* OpenAPI spec version: 4.7
|
|
14
13
|
*/
|
|
14
|
+
const withQueryKey = (query, queryKey) => {
|
|
15
|
+
const result = { queryKey };
|
|
16
|
+
for (const key of Object.keys(query)) {
|
|
17
|
+
if (key === "queryKey") continue;
|
|
18
|
+
Object.defineProperty(result, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
get: () => query[key]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
15
26
|
const getGetOrganisationsUrl = (params) => {
|
|
16
27
|
const normalizedParams = new URLSearchParams();
|
|
17
28
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
18
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
29
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
19
30
|
});
|
|
20
31
|
const stringifiedParams = normalizedParams.toString();
|
|
21
32
|
return stringifiedParams.length > 0 ? `/organisation?${stringifiedParams}` : `/organisation`;
|
|
22
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Gets all the Organisations that you are a member of, or a specific Organisation by name.
|
|
36
|
+
*
|
|
37
|
+
* You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.
|
|
38
|
+
* @summary Gets Organisations
|
|
39
|
+
*/
|
|
23
40
|
const getOrganisations = async (params, options) => {
|
|
24
41
|
return customFetch(getGetOrganisationsUrl(params), {
|
|
25
42
|
...options,
|
|
@@ -51,9 +68,7 @@ const getGetOrganisationsQueryOptions = (params, options) => {
|
|
|
51
68
|
*/
|
|
52
69
|
function useGetOrganisations(params, options, queryClient) {
|
|
53
70
|
const queryOptions = getGetOrganisationsQueryOptions(params, options);
|
|
54
|
-
|
|
55
|
-
query.queryKey = queryOptions.queryKey;
|
|
56
|
-
return query;
|
|
71
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
57
72
|
}
|
|
58
73
|
/**
|
|
59
74
|
* @summary Gets Organisations
|
|
@@ -80,13 +95,19 @@ const getGetOrganisationsSuspenseQueryOptions = (params, options) => {
|
|
|
80
95
|
*/
|
|
81
96
|
function useGetOrganisationsSuspense(params, options, queryClient) {
|
|
82
97
|
const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);
|
|
83
|
-
|
|
84
|
-
query.queryKey = queryOptions.queryKey;
|
|
85
|
-
return query;
|
|
98
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
86
99
|
}
|
|
87
100
|
const getCreateOrganisationUrl = () => {
|
|
88
101
|
return `/organisation`;
|
|
89
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Creates a new Organisation.
|
|
105
|
+
*
|
|
106
|
+
* The **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.
|
|
107
|
+
*
|
|
108
|
+
* You need admin rights to use this method
|
|
109
|
+
* @summary Create a new organisation
|
|
110
|
+
*/
|
|
90
111
|
const createOrganisation = async (organisationPostBodyBody, options) => {
|
|
91
112
|
return customFetch(getCreateOrganisationUrl(), {
|
|
92
113
|
...options,
|
|
@@ -128,6 +149,12 @@ const useCreateOrganisation = (options, queryClient) => {
|
|
|
128
149
|
const getGetOrganisationUrl = (orgId) => {
|
|
129
150
|
return `/organisation/${orgId}`;
|
|
130
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.
|
|
154
|
+
*
|
|
155
|
+
* Members of an Organisation's **Unit** do not have access to the Organisation.
|
|
156
|
+
* @summary Gets an Organisation
|
|
157
|
+
*/
|
|
131
158
|
const getOrganisation = async (orgId, options) => {
|
|
132
159
|
return customFetch(getGetOrganisationUrl(orgId), {
|
|
133
160
|
...options,
|
|
@@ -151,7 +178,7 @@ const getGetOrganisationQueryOptions = (orgId, options) => {
|
|
|
151
178
|
return {
|
|
152
179
|
queryKey,
|
|
153
180
|
queryFn,
|
|
154
|
-
enabled:
|
|
181
|
+
enabled: orgId !== null && orgId !== void 0,
|
|
155
182
|
...queryOptions
|
|
156
183
|
};
|
|
157
184
|
};
|
|
@@ -160,9 +187,7 @@ const getGetOrganisationQueryOptions = (orgId, options) => {
|
|
|
160
187
|
*/
|
|
161
188
|
function useGetOrganisation(orgId, options, queryClient) {
|
|
162
189
|
const queryOptions = getGetOrganisationQueryOptions(orgId, options);
|
|
163
|
-
|
|
164
|
-
query.queryKey = queryOptions.queryKey;
|
|
165
|
-
return query;
|
|
190
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
166
191
|
}
|
|
167
192
|
/**
|
|
168
193
|
* @summary Gets an Organisation
|
|
@@ -189,13 +214,19 @@ const getGetOrganisationSuspenseQueryOptions = (orgId, options) => {
|
|
|
189
214
|
*/
|
|
190
215
|
function useGetOrganisationSuspense(orgId, options, queryClient) {
|
|
191
216
|
const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);
|
|
192
|
-
|
|
193
|
-
query.queryKey = queryOptions.queryKey;
|
|
194
|
-
return query;
|
|
217
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
195
218
|
}
|
|
196
219
|
const getPatchOrganisationUrl = (orgId) => {
|
|
197
220
|
return `/organisation/${orgId}`;
|
|
198
221
|
};
|
|
222
|
+
/**
|
|
223
|
+
* Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.
|
|
224
|
+
*
|
|
225
|
+
* Changes to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.
|
|
226
|
+
*
|
|
227
|
+
* You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.
|
|
228
|
+
* @summary Adjust an existing Organisation
|
|
229
|
+
*/
|
|
199
230
|
const patchOrganisation = async (orgId, organisationPatchBodyBody, options) => {
|
|
200
231
|
return customFetch(getPatchOrganisationUrl(orgId), {
|
|
201
232
|
...options,
|
|
@@ -237,6 +268,12 @@ const usePatchOrganisation = (options, queryClient) => {
|
|
|
237
268
|
const getDeleteOrganisationUrl = (orgId) => {
|
|
238
269
|
return `/organisation/${orgId}`;
|
|
239
270
|
};
|
|
271
|
+
/**
|
|
272
|
+
* Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
|
|
273
|
+
*
|
|
274
|
+
* You need admin rights to use this method
|
|
275
|
+
* @summary Deletes an Organisation
|
|
276
|
+
*/
|
|
240
277
|
const deleteOrganisation = async (orgId, options) => {
|
|
241
278
|
return customFetch(getDeleteOrganisationUrl(orgId), {
|
|
242
279
|
...options,
|
|
@@ -273,6 +310,12 @@ const useDeleteOrganisation = (options, queryClient) => {
|
|
|
273
310
|
const getGetDefaultOrganisationUrl = () => {
|
|
274
311
|
return `/default/organisation`;
|
|
275
312
|
};
|
|
313
|
+
/**
|
|
314
|
+
* Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.
|
|
315
|
+
*
|
|
316
|
+
* Any authorised user can see the Default Organisation.
|
|
317
|
+
* @summary Gets the Default Organisation
|
|
318
|
+
*/
|
|
276
319
|
const getDefaultOrganisation = async (options) => {
|
|
277
320
|
return customFetch(getGetDefaultOrganisationUrl(), {
|
|
278
321
|
...options,
|
|
@@ -304,9 +347,7 @@ const getGetDefaultOrganisationQueryOptions = (options) => {
|
|
|
304
347
|
*/
|
|
305
348
|
function useGetDefaultOrganisation(options, queryClient) {
|
|
306
349
|
const queryOptions = getGetDefaultOrganisationQueryOptions(options);
|
|
307
|
-
|
|
308
|
-
query.queryKey = queryOptions.queryKey;
|
|
309
|
-
return query;
|
|
350
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
310
351
|
}
|
|
311
352
|
/**
|
|
312
353
|
* @summary Gets the Default Organisation
|
|
@@ -333,11 +374,9 @@ const getGetDefaultOrganisationSuspenseQueryOptions = (options) => {
|
|
|
333
374
|
*/
|
|
334
375
|
function useGetDefaultOrganisationSuspense(options, queryClient) {
|
|
335
376
|
const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);
|
|
336
|
-
|
|
337
|
-
query.queryKey = queryOptions.queryKey;
|
|
338
|
-
return query;
|
|
377
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
339
378
|
}
|
|
340
|
-
|
|
341
379
|
//#endregion
|
|
342
380
|
export { createOrganisation, deleteOrganisation, getCreateOrganisationMutationOptions, getCreateOrganisationUrl, getDefaultOrganisation, getDeleteOrganisationMutationOptions, getDeleteOrganisationUrl, getGetDefaultOrganisationQueryKey, getGetDefaultOrganisationQueryOptions, getGetDefaultOrganisationSuspenseQueryOptions, getGetDefaultOrganisationUrl, getGetOrganisationQueryKey, getGetOrganisationQueryOptions, getGetOrganisationSuspenseQueryOptions, getGetOrganisationUrl, getGetOrganisationsQueryKey, getGetOrganisationsQueryOptions, getGetOrganisationsSuspenseQueryOptions, getGetOrganisationsUrl, getOrganisation, getOrganisations, getPatchOrganisationMutationOptions, getPatchOrganisationUrl, invalidateGetDefaultOrganisation, invalidateGetOrganisation, invalidateGetOrganisations, patchOrganisation, useCreateOrganisation, useDeleteOrganisation, useGetDefaultOrganisation, useGetDefaultOrganisationSuspense, useGetOrganisation, useGetOrganisationSuspense, useGetOrganisations, useGetOrganisationsSuspense, usePatchOrganisation };
|
|
381
|
+
|
|
343
382
|
//# sourceMappingURL=organisation.fetch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organisation.fetch.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>>","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createOrganisation>>,\n { data: OrganisationPostBodyBody }\n >","queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>>","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n >","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n { orgId: string }\n >","queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>>"],"sources":["../../../src/api/organisation/organisation.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n\n * OpenAPI spec version: 4.7\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetOrganisationsParams,\n OrganisationAllDetail,\n OrganisationGetDefaultResponse,\n OrganisationPatchBodyBody,\n OrganisationPostBodyBody,\n OrganisationPostResponse,\n OrganisationsGetResponse,\n} from \".././api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets all the Organisations that you are a member of, or a specific Organisation by name.\n\nYou can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.\n\n * @summary Gets Organisations\n */\nexport type getOrganisationsResponse200 = { data: OrganisationsGetResponse; status: 200 };\n\nexport type getOrganisationsResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationsResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationsResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationsResponseSuccess = getOrganisationsResponse200 & { headers: Headers };\nexport type getOrganisationsResponseError = (\n | getOrganisationsResponse401\n | getOrganisationsResponse403\n | getOrganisationsResponse404\n) & { headers: Headers };\n\nexport type getOrganisationsResponse =\n | getOrganisationsResponseSuccess\n | getOrganisationsResponseError;\n\nexport const getGetOrganisationsUrl = (params?: GetOrganisationsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/organisation?${stringifiedParams}` : `/organisation`;\n};\n\nexport const getOrganisations = async (\n params?: GetOrganisationsParams,\n options?: RequestInit,\n): Promise<getOrganisationsResponse> => {\n return customFetch<getOrganisationsResponse>(getGetOrganisationsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationsQueryKey = (params?: GetOrganisationsParams) => {\n return [\"account-server\", \"organisation\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetOrganisationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationsQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisations>>>;\nexport type GetOrganisationsQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets Organisations\n */\nexport const invalidateGetOrganisations = async (\n queryClient: QueryClient,\n params?: GetOrganisationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisations>>\n>;\nexport type GetOrganisationsSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Creates a new Organisation.\n\nThe **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.\n\nYou need admin rights to use this method\n\n * @summary Create a new organisation\n */\nexport type createOrganisationResponse201 = { data: OrganisationPostResponse; status: 201 };\n\nexport type createOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type createOrganisationResponse401 = { data: void; status: 401 };\n\nexport type createOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type createOrganisationResponseSuccess = createOrganisationResponse201 & {\n headers: Headers;\n};\nexport type createOrganisationResponseError = (\n | createOrganisationResponse400\n | createOrganisationResponse401\n | createOrganisationResponse403\n) & { headers: Headers };\n\nexport type createOrganisationResponse =\n | createOrganisationResponseSuccess\n | createOrganisationResponseError;\n\nexport const getCreateOrganisationUrl = () => {\n return `/organisation`;\n};\n\nexport const createOrganisation = async (\n organisationPostBodyBody: OrganisationPostBodyBody,\n options?: RequestInit,\n): Promise<createOrganisationResponse> => {\n return customFetch<createOrganisationResponse>(getCreateOrganisationUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPostBodyBody),\n });\n};\n\nexport const getCreateOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationKey = [\"createOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createOrganisation>>,\n { data: OrganisationPostBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return createOrganisation(data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type CreateOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof createOrganisation>>\n>;\nexport type CreateOrganisationMutationBody = OrganisationPostBodyBody;\nexport type CreateOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Create a new organisation\n */\nexport const useCreateOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationOptions = getCreateOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.\n\nMembers of an Organisation's **Unit** do not have access to the Organisation.\n\n * @summary Gets an Organisation\n */\nexport type getOrganisationResponse200 = { data: OrganisationAllDetail; status: 200 };\n\nexport type getOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationResponseSuccess = getOrganisationResponse200 & { headers: Headers };\nexport type getOrganisationResponseError = (\n | getOrganisationResponse401\n | getOrganisationResponse403\n | getOrganisationResponse404\n) & { headers: Headers };\n\nexport type getOrganisationResponse = getOrganisationResponseSuccess | getOrganisationResponseError;\n\nexport const getGetOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\nexport const getOrganisation = async (\n orgId: string,\n options?: RequestInit,\n): Promise<getOrganisationResponse> => {\n return customFetch<getOrganisationResponse>(getGetOrganisationUrl(orgId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationQueryKey = (orgId?: string) => {\n return [\"account-server\", \"organisation\", orgId] as const;\n};\n\nexport const getGetOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, enabled: !!orgId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisation>>>;\nexport type GetOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationQueryOptions(orgId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets an Organisation\n */\nexport const invalidateGetOrganisation = async (\n queryClient: QueryClient,\n orgId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationQueryKey(orgId) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisation>>\n>;\nexport type GetOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.\n\nChanges to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.\n\nYou have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.\n\n * @summary Adjust an existing Organisation\n */\nexport type patchOrganisationResponse200 = { data: void; status: 200 };\n\nexport type patchOrganisationResponse401 = { data: void; status: 401 };\n\nexport type patchOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type patchOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type patchOrganisationResponseSuccess = patchOrganisationResponse200 & { headers: Headers };\nexport type patchOrganisationResponseError = (\n | patchOrganisationResponse401\n | patchOrganisationResponse403\n | patchOrganisationResponse404\n) & { headers: Headers };\n\nexport type patchOrganisationResponse =\n | patchOrganisationResponseSuccess\n | patchOrganisationResponseError;\n\nexport const getPatchOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\nexport const patchOrganisation = async (\n orgId: string,\n organisationPatchBodyBody: OrganisationPatchBodyBody,\n options?: RequestInit,\n): Promise<patchOrganisationResponse> => {\n return customFetch<patchOrganisationResponse>(getPatchOrganisationUrl(orgId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPatchBodyBody),\n });\n};\n\nexport const getPatchOrganisationMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationKey = [\"patchOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n > = (props) => {\n const { orgId, data } = props ?? {};\n\n return patchOrganisation(orgId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type PatchOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof patchOrganisation>>\n>;\nexport type PatchOrganisationMutationBody = OrganisationPatchBodyBody;\nexport type PatchOrganisationMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Adjust an existing Organisation\n */\nexport const usePatchOrganisation = <TError = ErrorType<void | AsError>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationOptions = getPatchOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.\n\nYou need admin rights to use this method\n\n * @summary Deletes an Organisation\n */\nexport type deleteOrganisationResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationResponseSuccess = deleteOrganisationResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationResponseError = (\n | deleteOrganisationResponse400\n | deleteOrganisationResponse401\n | deleteOrganisationResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationResponse =\n | deleteOrganisationResponseSuccess\n | deleteOrganisationResponseError;\n\nexport const getDeleteOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\nexport const deleteOrganisation = async (\n orgId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationResponse> => {\n return customFetch<deleteOrganisationResponse>(getDeleteOrganisationUrl(orgId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n { orgId: string }\n > = (props) => {\n const { orgId } = props ?? {};\n\n return deleteOrganisation(orgId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisation>>\n>;\n\nexport type DeleteOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes an Organisation\n */\nexport const useDeleteOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n const mutationOptions = getDeleteOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.\n\nAny authorised user can see the Default Organisation.\n\n * @summary Gets the Default Organisation\n */\nexport type getDefaultOrganisationResponse200 = {\n data: OrganisationGetDefaultResponse;\n status: 200;\n};\n\nexport type getDefaultOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getDefaultOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getDefaultOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getDefaultOrganisationResponseSuccess = getDefaultOrganisationResponse200 & {\n headers: Headers;\n};\nexport type getDefaultOrganisationResponseError = (\n | getDefaultOrganisationResponse401\n | getDefaultOrganisationResponse403\n | getDefaultOrganisationResponse404\n) & { headers: Headers };\n\nexport type getDefaultOrganisationResponse =\n | getDefaultOrganisationResponseSuccess\n | getDefaultOrganisationResponseError;\n\nexport const getGetDefaultOrganisationUrl = () => {\n return `/default/organisation`;\n};\n\nexport const getDefaultOrganisation = async (\n options?: RequestInit,\n): Promise<getDefaultOrganisationResponse> => {\n return customFetch<getDefaultOrganisationResponse>(getGetDefaultOrganisationUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetDefaultOrganisationQueryKey = () => {\n return [\"account-server\", \"default\", \"organisation\"] as const;\n};\n\nexport const getGetDefaultOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetDefaultOrganisationQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetDefaultOrganisationQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets the Default Organisation\n */\nexport const invalidateGetDefaultOrganisation = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetDefaultOrganisationQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetDefaultOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetDefaultOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n"],"mappings":";;;;;;;;;;;;;;AAuEA,MAAa,0BAA0B,WAAoC;CACzE,MAAM,mBAAmB,IAAI,iBAAiB;AAE9C,QAAO,QAAQ,UAAU,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;AACrD,MAAI,UAAU,OACZ,kBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,MAAM,UAAU,CAAC;GAE1E;CAEF,MAAM,oBAAoB,iBAAiB,UAAU;AAErD,QAAO,kBAAkB,SAAS,IAAI,iBAAiB,sBAAsB;;AAG/E,MAAa,mBAAmB,OAC9B,QACA,YACsC;AACtC,QAAO,YAAsC,uBAAuB,OAAO,EAAE;EAC3E,GAAG;EACH,QAAQ;EACT,CAAC;;AAGJ,MAAa,+BAA+B,WAAoC;AAC9E,QAAO;EAAC;EAAkB;EAAgB,GAAI,SAAS,CAAC,OAAO,GAAG,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Ac,YAAY;AAIjD,OAAM,WAAW,aAAa;AAE9B,QAAO;;;;;AAMT,MAAa,mCAAmC,OAC9C,aACA,YACyB;AACzB,OAAM,YAAY,kBAAkB,EAAE,UAAU,mCAAmC,EAAE,EAAE,QAAQ;AAE/F,QAAO;;AAGT,MAAa,iDAGX,YAKI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,mCAAmC;CAE9E,MAAMA,WAA8E,EAAE,aACpF,uBAAuB;EAAE;EAAQ,GAAG;EAAgB,CAAC;AAEvD,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AAoD/C,SAAgB,kCAId,SAMA,aACgF;CAChF,MAAM,eAAe,8CAA8C,QAAQ;CAE3E,MAAM,QAAQ,iBAAiB,cAAc,YAAY;AAKzD,OAAM,WAAW,aAAa;AAE9B,QAAO"}
|
|
1
|
+
{"version":3,"file":"organisation.fetch.js","names":[],"sources":["../../../src/api/organisation/organisation.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.7\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetOrganisationsParams,\n OrganisationAllDetail,\n OrganisationGetDefaultResponse,\n OrganisationPatchBodyBody,\n OrganisationPostBodyBody,\n OrganisationPostResponse,\n OrganisationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getOrganisationsResponse200 = { data: OrganisationsGetResponse; status: 200 };\n\nexport type getOrganisationsResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationsResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationsResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationsResponseSuccess = getOrganisationsResponse200 & { headers: Headers };\nexport type getOrganisationsResponseError = (\n | getOrganisationsResponse401\n | getOrganisationsResponse403\n | getOrganisationsResponse404\n) & { headers: Headers };\n\nexport type getOrganisationsResponse =\n | getOrganisationsResponseSuccess\n | getOrganisationsResponseError;\n\nexport const getGetOrganisationsUrl = (params?: GetOrganisationsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/organisation?${stringifiedParams}` : `/organisation`;\n};\n\n/**\n * Gets all the Organisations that you are a member of, or a specific Organisation by name.\n *\n * You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.\n * @summary Gets Organisations\n */\nexport const getOrganisations = async (\n params?: GetOrganisationsParams,\n options?: RequestInit,\n): Promise<getOrganisationsResponse> => {\n return customFetch<getOrganisationsResponse>(getGetOrganisationsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationsQueryKey = (params?: GetOrganisationsParams) => {\n return [\"account-server\", \"organisation\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetOrganisationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisations>>>;\nexport type GetOrganisationsQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Organisations\n */\nexport const invalidateGetOrganisations = async (\n queryClient: QueryClient,\n params?: GetOrganisationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisations>>\n>;\nexport type GetOrganisationsSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type createOrganisationResponse201 = { data: OrganisationPostResponse; status: 201 };\n\nexport type createOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type createOrganisationResponse401 = { data: void; status: 401 };\n\nexport type createOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type createOrganisationResponseSuccess = createOrganisationResponse201 & {\n headers: Headers;\n};\nexport type createOrganisationResponseError = (\n | createOrganisationResponse400\n | createOrganisationResponse401\n | createOrganisationResponse403\n) & { headers: Headers };\n\nexport type createOrganisationResponse =\n | createOrganisationResponseSuccess\n | createOrganisationResponseError;\n\nexport const getCreateOrganisationUrl = () => {\n return `/organisation`;\n};\n\n/**\n * Creates a new Organisation.\n *\n * The **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.\n *\n * You need admin rights to use this method\n * @summary Create a new organisation\n */\nexport const createOrganisation = async (\n organisationPostBodyBody: OrganisationPostBodyBody,\n options?: RequestInit,\n): Promise<createOrganisationResponse> => {\n return customFetch<createOrganisationResponse>(getCreateOrganisationUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPostBodyBody),\n });\n};\n\nexport const getCreateOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationKey = [\"createOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createOrganisation>>,\n { data: OrganisationPostBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return createOrganisation(data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type CreateOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof createOrganisation>>\n>;\nexport type CreateOrganisationMutationBody = OrganisationPostBodyBody;\nexport type CreateOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Create a new organisation\n */\nexport const useCreateOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n return useMutation(getCreateOrganisationMutationOptions(options), queryClient);\n};\nexport type getOrganisationResponse200 = { data: OrganisationAllDetail; status: 200 };\n\nexport type getOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getOrganisationResponseSuccess = getOrganisationResponse200 & { headers: Headers };\nexport type getOrganisationResponseError = (\n | getOrganisationResponse401\n | getOrganisationResponse403\n | getOrganisationResponse404\n) & { headers: Headers };\n\nexport type getOrganisationResponse = getOrganisationResponseSuccess | getOrganisationResponseError;\n\nexport const getGetOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\n/**\n * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.\n *\n * Members of an Organisation's **Unit** do not have access to the Organisation.\n * @summary Gets an Organisation\n */\nexport const getOrganisation = async (\n orgId: string,\n options?: RequestInit,\n): Promise<getOrganisationResponse> => {\n return customFetch<getOrganisationResponse>(getGetOrganisationUrl(orgId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOrganisationQueryKey = (orgId: string) => {\n return [\"account-server\", \"organisation\", orgId] as const;\n};\n\nexport const getGetOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, { signal, ...requestOptions });\n\n return {\n queryKey,\n queryFn,\n enabled: orgId !== null && orgId !== undefined,\n ...queryOptions,\n } as UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n};\n\nexport type GetOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisation>>>;\nexport type GetOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationQueryOptions(orgId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets an Organisation\n */\nexport const invalidateGetOrganisation = async (\n queryClient: QueryClient,\n orgId: string,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetOrganisationQueryKey(orgId) }, options);\n\n return queryClient;\n};\n\nexport const getGetOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisation>>\n>;\nexport type GetOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type patchOrganisationResponse200 = { data: void; status: 200 };\n\nexport type patchOrganisationResponse401 = { data: void; status: 401 };\n\nexport type patchOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type patchOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type patchOrganisationResponseSuccess = patchOrganisationResponse200 & { headers: Headers };\nexport type patchOrganisationResponseError = (\n | patchOrganisationResponse401\n | patchOrganisationResponse403\n | patchOrganisationResponse404\n) & { headers: Headers };\n\nexport type patchOrganisationResponse =\n | patchOrganisationResponseSuccess\n | patchOrganisationResponseError;\n\nexport const getPatchOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\n/**\n * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.\n *\n * Changes to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.\n *\n * You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.\n * @summary Adjust an existing Organisation\n */\nexport const patchOrganisation = async (\n orgId: string,\n organisationPatchBodyBody: OrganisationPatchBodyBody,\n options?: RequestInit,\n): Promise<patchOrganisationResponse> => {\n return customFetch<patchOrganisationResponse>(getPatchOrganisationUrl(orgId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(organisationPatchBodyBody),\n });\n};\n\nexport const getPatchOrganisationMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationKey = [\"patchOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n > = (props) => {\n const { orgId, data } = props ?? {};\n\n return patchOrganisation(orgId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type PatchOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof patchOrganisation>>\n>;\nexport type PatchOrganisationMutationBody = OrganisationPatchBodyBody;\nexport type PatchOrganisationMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Adjust an existing Organisation\n */\nexport const usePatchOrganisation = <TError = ErrorType<void | AsError>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n return useMutation(getPatchOrganisationMutationOptions(options), queryClient);\n};\nexport type deleteOrganisationResponse204 = { data: void; status: 204 };\n\nexport type deleteOrganisationResponse400 = { data: AsError; status: 400 };\n\nexport type deleteOrganisationResponse401 = { data: void; status: 401 };\n\nexport type deleteOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type deleteOrganisationResponseSuccess = deleteOrganisationResponse204 & {\n headers: Headers;\n};\nexport type deleteOrganisationResponseError = (\n | deleteOrganisationResponse400\n | deleteOrganisationResponse401\n | deleteOrganisationResponse403\n) & { headers: Headers };\n\nexport type deleteOrganisationResponse =\n | deleteOrganisationResponseSuccess\n | deleteOrganisationResponseError;\n\nexport const getDeleteOrganisationUrl = (orgId: string) => {\n return `/organisation/${orgId}`;\n};\n\n/**\n * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.\n *\n * You need admin rights to use this method\n * @summary Deletes an Organisation\n */\nexport const deleteOrganisation = async (\n orgId: string,\n options?: RequestInit,\n): Promise<deleteOrganisationResponse> => {\n return customFetch<deleteOrganisationResponse>(getDeleteOrganisationUrl(orgId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisation\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n { orgId: string }\n > = (props) => {\n const { orgId } = props ?? {};\n\n return deleteOrganisation(orgId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DeleteOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisation>>\n>;\n\nexport type DeleteOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes an Organisation\n */\nexport const useDeleteOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n return useMutation(getDeleteOrganisationMutationOptions(options), queryClient);\n};\nexport type getDefaultOrganisationResponse200 = {\n data: OrganisationGetDefaultResponse;\n status: 200;\n};\n\nexport type getDefaultOrganisationResponse401 = { data: void; status: 401 };\n\nexport type getDefaultOrganisationResponse403 = { data: AsError; status: 403 };\n\nexport type getDefaultOrganisationResponse404 = { data: AsError; status: 404 };\n\nexport type getDefaultOrganisationResponseSuccess = getDefaultOrganisationResponse200 & {\n headers: Headers;\n};\nexport type getDefaultOrganisationResponseError = (\n | getDefaultOrganisationResponse401\n | getDefaultOrganisationResponse403\n | getDefaultOrganisationResponse404\n) & { headers: Headers };\n\nexport type getDefaultOrganisationResponse =\n | getDefaultOrganisationResponseSuccess\n | getDefaultOrganisationResponseError;\n\nexport const getGetDefaultOrganisationUrl = () => {\n return `/default/organisation`;\n};\n\n/**\n * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.\n *\n * Any authorised user can see the Default Organisation.\n * @summary Gets the Default Organisation\n */\nexport const getDefaultOrganisation = async (\n options?: RequestInit,\n): Promise<getDefaultOrganisationResponse> => {\n return customFetch<getDefaultOrganisationResponse>(getGetDefaultOrganisationUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetDefaultOrganisationQueryKey = () => {\n return [\"account-server\", \"default\", \"organisation\"] as const;\n};\n\nexport const getGetDefaultOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetDefaultOrganisationQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets the Default Organisation\n */\nexport const invalidateGetDefaultOrganisation = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetDefaultOrganisationQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetDefaultOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Default Organisation\n */\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;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CAEtD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA+CA,SAAgB,kCAId,SAMA,aACwF;CACxF,MAAM,eAAe,8CAA8C,OAAO;CAO1E,OAAO,aALO,iBAAiB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import { customInstance } from "../../custom-axios.js";
|
|
2
2
|
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
|
-
|
|
4
3
|
//#region src/api/organisation/organisation.ts
|
|
5
4
|
/**
|
|
6
|
-
* Generated by orval
|
|
5
|
+
* Generated by orval v8.22.0 🍺
|
|
7
6
|
* Do not edit manually.
|
|
8
7
|
* Account Server API
|
|
9
8
|
* The Informatics Matters Account Server API.
|
|
10
|
-
|
|
11
|
-
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
12
|
-
|
|
9
|
+
*
|
|
10
|
+
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
11
|
+
*
|
|
13
12
|
* OpenAPI spec version: 4.7
|
|
14
13
|
*/
|
|
14
|
+
const withQueryKey = (query, queryKey) => {
|
|
15
|
+
const result = { queryKey };
|
|
16
|
+
for (const key of Object.keys(query)) {
|
|
17
|
+
if (key === "queryKey") continue;
|
|
18
|
+
Object.defineProperty(result, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
get: () => query[key]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
15
26
|
/**
|
|
16
27
|
* Gets all the Organisations that you are a member of, or a specific Organisation by name.
|
|
17
|
-
|
|
18
|
-
You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.
|
|
19
|
-
|
|
28
|
+
*
|
|
29
|
+
* You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.
|
|
20
30
|
* @summary Gets Organisations
|
|
21
31
|
*/
|
|
22
32
|
const getOrganisations = (params, options, signal) => {
|
|
@@ -49,9 +59,7 @@ const getGetOrganisationsQueryOptions = (params, options) => {
|
|
|
49
59
|
*/
|
|
50
60
|
function useGetOrganisations(params, options, queryClient) {
|
|
51
61
|
const queryOptions = getGetOrganisationsQueryOptions(params, options);
|
|
52
|
-
|
|
53
|
-
query.queryKey = queryOptions.queryKey;
|
|
54
|
-
return query;
|
|
62
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
55
63
|
}
|
|
56
64
|
/**
|
|
57
65
|
* @summary Gets Organisations
|
|
@@ -75,17 +83,14 @@ const getGetOrganisationsSuspenseQueryOptions = (params, options) => {
|
|
|
75
83
|
*/
|
|
76
84
|
function useGetOrganisationsSuspense(params, options, queryClient) {
|
|
77
85
|
const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);
|
|
78
|
-
|
|
79
|
-
query.queryKey = queryOptions.queryKey;
|
|
80
|
-
return query;
|
|
86
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
81
87
|
}
|
|
82
88
|
/**
|
|
83
89
|
* Creates a new Organisation.
|
|
84
|
-
|
|
85
|
-
The **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.
|
|
86
|
-
|
|
87
|
-
You need admin rights to use this method
|
|
88
|
-
|
|
90
|
+
*
|
|
91
|
+
* The **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.
|
|
92
|
+
*
|
|
93
|
+
* You need admin rights to use this method
|
|
89
94
|
* @summary Create a new organisation
|
|
90
95
|
*/
|
|
91
96
|
const createOrganisation = (organisationPostBodyBody, options, signal) => {
|
|
@@ -126,9 +131,8 @@ const useCreateOrganisation = (options, queryClient) => {
|
|
|
126
131
|
};
|
|
127
132
|
/**
|
|
128
133
|
* Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.
|
|
129
|
-
|
|
130
|
-
Members of an Organisation's **Unit** do not have access to the Organisation.
|
|
131
|
-
|
|
134
|
+
*
|
|
135
|
+
* Members of an Organisation's **Unit** do not have access to the Organisation.
|
|
132
136
|
* @summary Gets an Organisation
|
|
133
137
|
*/
|
|
134
138
|
const getOrganisation = (orgId, options, signal) => {
|
|
@@ -152,7 +156,7 @@ const getGetOrganisationQueryOptions = (orgId, options) => {
|
|
|
152
156
|
return {
|
|
153
157
|
queryKey,
|
|
154
158
|
queryFn,
|
|
155
|
-
enabled:
|
|
159
|
+
enabled: orgId !== null && orgId !== void 0,
|
|
156
160
|
...queryOptions
|
|
157
161
|
};
|
|
158
162
|
};
|
|
@@ -161,9 +165,7 @@ const getGetOrganisationQueryOptions = (orgId, options) => {
|
|
|
161
165
|
*/
|
|
162
166
|
function useGetOrganisation(orgId, options, queryClient) {
|
|
163
167
|
const queryOptions = getGetOrganisationQueryOptions(orgId, options);
|
|
164
|
-
|
|
165
|
-
query.queryKey = queryOptions.queryKey;
|
|
166
|
-
return query;
|
|
168
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
167
169
|
}
|
|
168
170
|
/**
|
|
169
171
|
* @summary Gets an Organisation
|
|
@@ -187,25 +189,23 @@ const getGetOrganisationSuspenseQueryOptions = (orgId, options) => {
|
|
|
187
189
|
*/
|
|
188
190
|
function useGetOrganisationSuspense(orgId, options, queryClient) {
|
|
189
191
|
const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);
|
|
190
|
-
|
|
191
|
-
query.queryKey = queryOptions.queryKey;
|
|
192
|
-
return query;
|
|
192
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
195
|
* Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.
|
|
196
|
-
|
|
197
|
-
Changes to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.
|
|
198
|
-
|
|
199
|
-
You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.
|
|
200
|
-
|
|
196
|
+
*
|
|
197
|
+
* Changes to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.
|
|
198
|
+
*
|
|
199
|
+
* You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.
|
|
201
200
|
* @summary Adjust an existing Organisation
|
|
202
201
|
*/
|
|
203
|
-
const patchOrganisation = (orgId, organisationPatchBodyBody, options) => {
|
|
202
|
+
const patchOrganisation = (orgId, organisationPatchBodyBody, options, signal) => {
|
|
204
203
|
return customInstance({
|
|
205
204
|
url: `/organisation/${orgId}`,
|
|
206
205
|
method: "PATCH",
|
|
207
206
|
headers: { "Content-Type": "application/json" },
|
|
208
|
-
data: organisationPatchBodyBody
|
|
207
|
+
data: organisationPatchBodyBody,
|
|
208
|
+
signal
|
|
209
209
|
}, options);
|
|
210
210
|
};
|
|
211
211
|
const getPatchOrganisationMutationOptions = (options) => {
|
|
@@ -237,15 +237,15 @@ const usePatchOrganisation = (options, queryClient) => {
|
|
|
237
237
|
};
|
|
238
238
|
/**
|
|
239
239
|
* Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
|
|
240
|
-
|
|
241
|
-
You need admin rights to use this method
|
|
242
|
-
|
|
240
|
+
*
|
|
241
|
+
* You need admin rights to use this method
|
|
243
242
|
* @summary Deletes an Organisation
|
|
244
243
|
*/
|
|
245
|
-
const deleteOrganisation = (orgId, options) => {
|
|
244
|
+
const deleteOrganisation = (orgId, options, signal) => {
|
|
246
245
|
return customInstance({
|
|
247
246
|
url: `/organisation/${orgId}`,
|
|
248
|
-
method: "DELETE"
|
|
247
|
+
method: "DELETE",
|
|
248
|
+
signal
|
|
249
249
|
}, options);
|
|
250
250
|
};
|
|
251
251
|
const getDeleteOrganisationMutationOptions = (options) => {
|
|
@@ -277,9 +277,8 @@ const useDeleteOrganisation = (options, queryClient) => {
|
|
|
277
277
|
};
|
|
278
278
|
/**
|
|
279
279
|
* Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.
|
|
280
|
-
|
|
281
|
-
Any authorised user can see the Default Organisation.
|
|
282
|
-
|
|
280
|
+
*
|
|
281
|
+
* Any authorised user can see the Default Organisation.
|
|
283
282
|
* @summary Gets the Default Organisation
|
|
284
283
|
*/
|
|
285
284
|
const getDefaultOrganisation = (options, signal) => {
|
|
@@ -311,9 +310,7 @@ const getGetDefaultOrganisationQueryOptions = (options) => {
|
|
|
311
310
|
*/
|
|
312
311
|
function useGetDefaultOrganisation(options, queryClient) {
|
|
313
312
|
const queryOptions = getGetDefaultOrganisationQueryOptions(options);
|
|
314
|
-
|
|
315
|
-
query.queryKey = queryOptions.queryKey;
|
|
316
|
-
return query;
|
|
313
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
317
314
|
}
|
|
318
315
|
/**
|
|
319
316
|
* @summary Gets the Default Organisation
|
|
@@ -337,11 +334,9 @@ const getGetDefaultOrganisationSuspenseQueryOptions = (options) => {
|
|
|
337
334
|
*/
|
|
338
335
|
function useGetDefaultOrganisationSuspense(options, queryClient) {
|
|
339
336
|
const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);
|
|
340
|
-
|
|
341
|
-
query.queryKey = queryOptions.queryKey;
|
|
342
|
-
return query;
|
|
337
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
343
338
|
}
|
|
344
|
-
|
|
345
339
|
//#endregion
|
|
346
340
|
export { createOrganisation, deleteOrganisation, getCreateOrganisationMutationOptions, getDefaultOrganisation, getDeleteOrganisationMutationOptions, getGetDefaultOrganisationQueryKey, getGetDefaultOrganisationQueryOptions, getGetDefaultOrganisationSuspenseQueryOptions, getGetOrganisationQueryKey, getGetOrganisationQueryOptions, getGetOrganisationSuspenseQueryOptions, getGetOrganisationsQueryKey, getGetOrganisationsQueryOptions, getGetOrganisationsSuspenseQueryOptions, getOrganisation, getOrganisations, getPatchOrganisationMutationOptions, invalidateGetDefaultOrganisation, invalidateGetOrganisation, invalidateGetOrganisations, patchOrganisation, useCreateOrganisation, useDeleteOrganisation, useGetDefaultOrganisation, useGetDefaultOrganisationSuspense, useGetOrganisation, useGetOrganisationSuspense, useGetOrganisations, useGetOrganisationsSuspense, usePatchOrganisation };
|
|
341
|
+
|
|
347
342
|
//# sourceMappingURL=organisation.js.map
|