@squonk/account-server-client 4.4.0-4-4.2194860267 → 4.4.0-4-4.2197069952
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/actions/actions.cjs +29 -18
- package/dist/api/actions/actions.cjs.map +1 -1
- package/dist/api/actions/actions.d.cts +12 -7
- package/dist/api/actions/actions.d.cts.map +1 -1
- package/dist/api/actions/actions.d.ts +12 -7
- package/dist/api/actions/actions.d.ts.map +1 -1
- package/dist/api/actions/actions.fetch.cjs +98 -0
- package/dist/api/actions/actions.fetch.cjs.map +1 -0
- package/dist/api/actions/actions.fetch.d.cts +77 -0
- package/dist/api/actions/actions.fetch.d.cts.map +1 -0
- package/dist/api/actions/actions.fetch.d.ts +77 -0
- package/dist/api/actions/actions.fetch.d.ts.map +1 -0
- package/dist/api/actions/actions.fetch.js +90 -0
- package/dist/api/actions/actions.fetch.js.map +1 -0
- package/dist/api/actions/actions.js +26 -16
- package/dist/api/actions/actions.js.map +1 -1
- package/dist/api/api-schemas/actionDetail.d.cts +17 -0
- package/dist/api/api-schemas/actionDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/actionDetail.d.ts +17 -0
- package/dist/api/api-schemas/actionDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/actionGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/actionGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/actionGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/actionGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/asError.d.cts +18 -0
- package/dist/api/api-schemas/asError.d.cts.map +1 -0
- package/dist/api/api-schemas/asError.d.ts +18 -0
- package/dist/api/api-schemas/asError.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetail.d.cts +22 -0
- package/dist/api/api-schemas/assetDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/assetDetail.d.ts +22 -0
- package/dist/api/api-schemas/assetDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.cjs +13 -0
- package/dist/api/api-schemas/assetDetailScope.cjs.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.d.cts +22 -0
- package/dist/api/api-schemas/assetDetailScope.d.cts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.d.ts +22 -0
- package/dist/api/api-schemas/assetDetailScope.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.js +12 -0
- package/dist/api/api-schemas/assetDetailScope.js.map +1 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts +8 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts +8 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/assetGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/assetGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/assetGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.cts +27 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.ts +27 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs +13 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts +25 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts +25 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.js +12 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.js.map +1 -0
- package/dist/api/api-schemas/assetPostResponse.d.cts +19 -0
- package/dist/api/api-schemas/assetPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostResponse.d.ts +19 -0
- package/dist/api/api-schemas/assetPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/attachAssetParams.d.cts +14 -0
- package/dist/api/api-schemas/attachAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/attachAssetParams.d.ts +14 -0
- package/dist/api/api-schemas/attachAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.cts +17 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.ts +17 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummary.d.cts +13 -0
- package/dist/api/api-schemas/chargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeSummary.d.ts +13 -0
- package/dist/api/api-schemas/chargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.cjs +10 -0
- package/dist/api/api-schemas/chargeSummaryType.cjs.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.d.cts +22 -0
- package/dist/api/api-schemas/chargeSummaryType.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.d.ts +22 -0
- package/dist/api/api-schemas/chargeSummaryType.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.js +9 -0
- package/dist/api/api-schemas/chargeSummaryType.js.map +1 -0
- package/dist/api/api-schemas/chargesGetResponse.d.cts +14 -0
- package/dist/api/api-schemas/chargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/chargesGetResponse.d.ts +14 -0
- package/dist/api/api-schemas/chargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/detachAssetParams.d.cts +14 -0
- package/dist/api/api-schemas/detachAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/detachAssetParams.d.ts +14 -0
- package/dist/api/api-schemas/detachAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts +24 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts +24 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts +19 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts +19 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js +9 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs +11 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts +23 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts +23 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js +10 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js.map +1 -0
- package/dist/api/api-schemas/getActionsParams.d.cts +47 -0
- package/dist/api/api-schemas/getActionsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getActionsParams.d.ts +47 -0
- package/dist/api/api-schemas/getActionsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getAssetParams.d.cts +34 -0
- package/dist/api/api-schemas/getAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getAssetParams.d.ts +34 -0
- package/dist/api/api-schemas/getAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.cts +13 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.ts +13 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getProductChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getProductChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getProductChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getProductChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getUnitsParams.d.cts +13 -0
- package/dist/api/api-schemas/getUnitsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getUnitsParams.d.ts +13 -0
- package/dist/api/api-schemas/getUnitsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetail.d.cts +18 -0
- package/dist/api/api-schemas/merchantDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantDetail.d.ts +18 -0
- package/dist/api/api-schemas/merchantDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.cjs +7 -0
- package/dist/api/api-schemas/merchantDetailKind.cjs.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.d.cts +21 -0
- package/dist/api/api-schemas/merchantDetailKind.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.d.ts +21 -0
- package/dist/api/api-schemas/merchantDetailKind.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.js +6 -0
- package/dist/api/api-schemas/merchantDetailKind.js.map +1 -0
- package/dist/api/api-schemas/merchantGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/merchantGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/merchantGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummary.d.cts +15 -0
- package/dist/api/api-schemas/merchantSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantSummary.d.ts +15 -0
- package/dist/api/api-schemas/merchantSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.cjs +7 -0
- package/dist/api/api-schemas/merchantSummaryKind.cjs.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.cts +21 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.ts +21 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.js +6 -0
- package/dist/api/api-schemas/merchantSummaryKind.js.map +1 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.cts +13 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.ts +13 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetail.d.cts +25 -0
- package/dist/api/api-schemas/organisationAllDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetail.d.ts +25 -0
- package/dist/api/api-schemas/organisationAllDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.cts +12 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.ts +12 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetail.d.cts +22 -0
- package/dist/api/api-schemas/organisationDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationDetail.d.ts +22 -0
- package/dist/api/api-schemas/organisationDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts +23 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts +23 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/organisationGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/organisationGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts +14 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts +14 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts +26 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts +26 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts +18 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts +18 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/organisationPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/organisationPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts +21 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts +21 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts +20 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts +20 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargeItem.d.cts +20 -0
- package/dist/api/api-schemas/processingChargeItem.d.cts.map +1 -0
- package/dist/api/api-schemas/processingChargeItem.d.ts +20 -0
- package/dist/api/api-schemas/processingChargeItem.d.ts.map +1 -0
- package/dist/api/api-schemas/processingCharges.d.cts +20 -0
- package/dist/api/api-schemas/processingCharges.d.cts.map +1 -0
- package/dist/api/api-schemas/processingCharges.d.ts +20 -0
- package/dist/api/api-schemas/processingCharges.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs +7 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts +18 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts +18 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.js +6 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.js.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.cts +31 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.ts +31 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs +10 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts +19 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts +19 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.js +9 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.js.map +1 -0
- package/dist/api/api-schemas/productClaimDetail.d.cts +22 -0
- package/dist/api/api-schemas/productClaimDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productClaimDetail.d.ts +22 -0
- package/dist/api/api-schemas/productClaimDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productCoinsDetail.d.cts +38 -0
- package/dist/api/api-schemas/productCoinsDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productCoinsDetail.d.ts +38 -0
- package/dist/api/api-schemas/productCoinsDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetail.d.cts +23 -0
- package/dist/api/api-schemas/productDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetail.d.ts +23 -0
- package/dist/api/api-schemas/productDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.cjs +12 -0
- package/dist/api/api-schemas/productDetailFlavour.cjs.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.d.cts +25 -0
- package/dist/api/api-schemas/productDetailFlavour.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.d.ts +25 -0
- package/dist/api/api-schemas/productDetailFlavour.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.js +11 -0
- package/dist/api/api-schemas/productDetailFlavour.js.map +1 -0
- package/dist/api/api-schemas/productDetailType.cjs +10 -0
- package/dist/api/api-schemas/productDetailType.cjs.map +1 -0
- package/dist/api/api-schemas/productDetailType.d.cts +23 -0
- package/dist/api/api-schemas/productDetailType.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetailType.d.ts +23 -0
- package/dist/api/api-schemas/productDetailType.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailType.js +9 -0
- package/dist/api/api-schemas/productDetailType.js.map +1 -0
- package/dist/api/api-schemas/productDmProjectTier.d.cts +24 -0
- package/dist/api/api-schemas/productDmProjectTier.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmProjectTier.d.ts +24 -0
- package/dist/api/api-schemas/productDmProjectTier.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorage.d.cts +20 -0
- package/dist/api/api-schemas/productDmStorage.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorage.d.ts +20 -0
- package/dist/api/api-schemas/productDmStorage.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.cts +12 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.ts +12 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts +20 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts +20 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts +24 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts +24 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetail.d.cts +10 -0
- package/dist/api/api-schemas/productInstanceDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetail.d.ts +10 -0
- package/dist/api/api-schemas/productInstanceDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts +19 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts +19 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts.map +1 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.cts +31 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.ts +31 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/productType.d.cts +15 -0
- package/dist/api/api-schemas/productType.d.cts.map +1 -0
- package/dist/api/api-schemas/productType.d.ts +15 -0
- package/dist/api/api-schemas/productType.d.ts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.cjs +7 -0
- package/dist/api/api-schemas/productTypeServiceKind.cjs.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.cts +21 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.cts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.ts +21 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.ts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.js +6 -0
- package/dist/api/api-schemas/productTypeServiceKind.js.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.cts +11 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.ts +11 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts +12 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts +12 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts +10 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts +10 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts +19 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts +19 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/productsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/productsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts +9 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts +9 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts +13 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts +13 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.cjs +10 -0
- package/dist/api/api-schemas/qFormatParameter.cjs.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.d.cts +19 -0
- package/dist/api/api-schemas/qFormatParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.d.ts +19 -0
- package/dist/api/api-schemas/qFormatParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.js +9 -0
- package/dist/api/api-schemas/qFormatParameter.js.map +1 -0
- package/dist/api/api-schemas/qFromParameter.d.cts +18 -0
- package/dist/api/api-schemas/qFromParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qFromParameter.d.ts +18 -0
- package/dist/api/api-schemas/qFromParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qMIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qMIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qMIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qMIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qNameParameter.d.cts +18 -0
- package/dist/api/api-schemas/qNameParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qNameParameter.d.ts +18 -0
- package/dist/api/api-schemas/qNameParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qPbpParameter.d.cts +18 -0
- package/dist/api/api-schemas/qPbpParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qPbpParameter.d.ts +18 -0
- package/dist/api/api-schemas/qPbpParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qProductIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qProductIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qProductIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qProductIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUntilParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUntilParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUntilParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUntilParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUserIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUserIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUserIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUserIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts +19 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts +19 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/storageChargeItem.d.cts +19 -0
- package/dist/api/api-schemas/storageChargeItem.d.cts.map +1 -0
- package/dist/api/api-schemas/storageChargeItem.d.ts +19 -0
- package/dist/api/api-schemas/storageChargeItem.d.ts.map +1 -0
- package/dist/api/api-schemas/storageCharges.d.cts +11 -0
- package/dist/api/api-schemas/storageCharges.d.cts.map +1 -0
- package/dist/api/api-schemas/storageCharges.d.ts +11 -0
- package/dist/api/api-schemas/storageCharges.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetail.d.cts +27 -0
- package/dist/api/api-schemas/unitAllDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/unitAllDetail.d.ts +27 -0
- package/dist/api/api-schemas/unitAllDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitChargeSummary.d.cts +10 -0
- package/dist/api/api-schemas/unitChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/unitChargeSummary.d.ts +10 -0
- package/dist/api/api-schemas/unitChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts +32 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts +32 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetail.d.cts +24 -0
- package/dist/api/api-schemas/unitDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/unitDetail.d.ts +24 -0
- package/dist/api/api-schemas/unitDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/unitGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/unitGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts +14 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts +14 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts +26 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts +26 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts +12 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts +12 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts +30 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts +30 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs +12 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js +11 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs +10 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js +9 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js.map +1 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/unitsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/unitsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/userAccountDetail.d.cts +14 -0
- package/dist/api/api-schemas/userAccountDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/userAccountDetail.d.ts +14 -0
- package/dist/api/api-schemas/userAccountDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/userDetail.d.cts +18 -0
- package/dist/api/api-schemas/userDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/userDetail.d.ts +18 -0
- package/dist/api/api-schemas/userDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/usersGetResponse.d.cts +17 -0
- package/dist/api/api-schemas/usersGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/usersGetResponse.d.ts +17 -0
- package/dist/api/api-schemas/usersGetResponse.d.ts.map +1 -0
- package/dist/api/asset/asset.cjs +114 -90
- package/dist/api/asset/asset.cjs.map +1 -1
- package/dist/api/asset/asset.d.cts +33 -17
- package/dist/api/asset/asset.d.cts.map +1 -1
- package/dist/api/asset/asset.d.ts +33 -17
- package/dist/api/asset/asset.d.ts.map +1 -1
- package/dist/api/asset/asset.fetch.cjs +478 -0
- package/dist/api/asset/asset.fetch.cjs.map +1 -0
- package/dist/api/asset/asset.fetch.d.cts +546 -0
- package/dist/api/asset/asset.fetch.d.cts.map +1 -0
- package/dist/api/asset/asset.fetch.d.ts +546 -0
- package/dist/api/asset/asset.fetch.d.ts.map +1 -0
- package/dist/api/asset/asset.fetch.js +434 -0
- package/dist/api/asset/asset.fetch.js.map +1 -0
- package/dist/api/asset/asset.js +93 -71
- package/dist/api/asset/asset.js.map +1 -1
- package/dist/api/charges/charges.cjs +122 -66
- package/dist/api/charges/charges.cjs.map +1 -1
- package/dist/api/charges/charges.d.cts +40 -16
- package/dist/api/charges/charges.d.cts.map +1 -1
- package/dist/api/charges/charges.d.ts +40 -16
- package/dist/api/charges/charges.d.ts.map +1 -1
- package/dist/api/charges/charges.fetch.cjs +347 -0
- package/dist/api/charges/charges.fetch.cjs.map +1 -0
- package/dist/api/charges/charges.fetch.d.cts +306 -0
- package/dist/api/charges/charges.fetch.d.cts.map +1 -0
- package/dist/api/charges/charges.fetch.d.ts +306 -0
- package/dist/api/charges/charges.fetch.d.ts.map +1 -0
- package/dist/api/charges/charges.fetch.js +315 -0
- package/dist/api/charges/charges.fetch.js.map +1 -0
- package/dist/api/charges/charges.js +107 -55
- package/dist/api/charges/charges.js.map +1 -1
- package/dist/api/event-stream/event-stream.cjs +69 -50
- package/dist/api/event-stream/event-stream.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.d.cts +23 -12
- package/dist/api/event-stream/event-stream.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.d.ts +23 -12
- package/dist/api/event-stream/event-stream.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.cjs +249 -0
- package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.d.cts +257 -0
- package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.d.ts +257 -0
- package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.js +225 -0
- package/dist/api/event-stream/event-stream.fetch.js.map +1 -0
- package/dist/api/event-stream/event-stream.js +58 -41
- package/dist/api/event-stream/event-stream.js.map +1 -1
- package/dist/api/merchant/merchant.cjs +54 -34
- package/dist/api/merchant/merchant.cjs.map +1 -1
- package/dist/api/merchant/merchant.d.cts +20 -10
- package/dist/api/merchant/merchant.d.cts.map +1 -1
- package/dist/api/merchant/merchant.d.ts +20 -10
- package/dist/api/merchant/merchant.d.ts.map +1 -1
- package/dist/api/merchant/merchant.fetch.cjs +165 -0
- package/dist/api/merchant/merchant.fetch.cjs.map +1 -0
- package/dist/api/merchant/merchant.fetch.d.cts +151 -0
- package/dist/api/merchant/merchant.fetch.d.cts.map +1 -0
- package/dist/api/merchant/merchant.fetch.d.ts +151 -0
- package/dist/api/merchant/merchant.fetch.d.ts.map +1 -0
- package/dist/api/merchant/merchant.fetch.js +149 -0
- package/dist/api/merchant/merchant.fetch.js.map +1 -0
- package/dist/api/merchant/merchant.js +47 -29
- package/dist/api/merchant/merchant.js.map +1 -1
- package/dist/api/organisation/organisation.cjs +110 -74
- package/dist/api/organisation/organisation.cjs.map +1 -1
- package/dist/api/organisation/organisation.d.cts +35 -16
- package/dist/api/organisation/organisation.d.cts.map +1 -1
- package/dist/api/organisation/organisation.d.ts +35 -16
- package/dist/api/organisation/organisation.d.ts.map +1 -1
- package/dist/api/organisation/organisation.fetch.cjs +379 -0
- package/dist/api/organisation/organisation.fetch.cjs.map +1 -0
- package/dist/api/organisation/organisation.fetch.d.cts +398 -0
- package/dist/api/organisation/organisation.fetch.d.cts.map +1 -0
- package/dist/api/organisation/organisation.fetch.d.ts +398 -0
- package/dist/api/organisation/organisation.fetch.d.ts.map +1 -0
- package/dist/api/organisation/organisation.fetch.js +343 -0
- package/dist/api/organisation/organisation.fetch.js.map +1 -0
- package/dist/api/organisation/organisation.js +93 -60
- package/dist/api/organisation/organisation.js.map +1 -1
- package/dist/api/product/product.cjs +188 -124
- package/dist/api/product/product.cjs.map +1 -1
- package/dist/api/product/product.d.cts +56 -25
- package/dist/api/product/product.d.cts.map +1 -1
- package/dist/api/product/product.d.ts +56 -25
- package/dist/api/product/product.d.ts.map +1 -1
- package/dist/api/product/product.fetch.cjs +591 -0
- package/dist/api/product/product.fetch.cjs.map +1 -0
- package/dist/api/product/product.fetch.d.cts +605 -0
- package/dist/api/product/product.fetch.d.cts.map +1 -0
- package/dist/api/product/product.fetch.d.ts +605 -0
- package/dist/api/product/product.fetch.d.ts.map +1 -0
- package/dist/api/product/product.fetch.js +531 -0
- package/dist/api/product/product.fetch.js.map +1 -0
- package/dist/api/product/product.js +159 -101
- package/dist/api/product/product.js.map +1 -1
- package/dist/api/state/state.cjs +25 -18
- package/dist/api/state/state.cjs.map +1 -1
- package/dist/api/state/state.d.cts +12 -7
- package/dist/api/state/state.d.cts.map +1 -1
- package/dist/api/state/state.d.ts +12 -7
- package/dist/api/state/state.d.ts.map +1 -1
- package/dist/api/state/state.fetch.cjs +89 -0
- package/dist/api/state/state.fetch.cjs.map +1 -0
- package/dist/api/state/state.fetch.d.cts +77 -0
- package/dist/api/state/state.fetch.d.cts.map +1 -0
- package/dist/api/state/state.fetch.d.ts +77 -0
- package/dist/api/state/state.fetch.d.ts.map +1 -0
- package/dist/api/state/state.fetch.js +81 -0
- package/dist/api/state/state.fetch.js.map +1 -0
- package/dist/api/state/state.js +22 -16
- package/dist/api/state/state.js.map +1 -1
- package/dist/api/unit/unit.cjs +169 -123
- package/dist/api/unit/unit.cjs.map +1 -1
- package/dist/api/unit/unit.d.cts +48 -23
- package/dist/api/unit/unit.d.cts.map +1 -1
- package/dist/api/unit/unit.d.ts +48 -23
- package/dist/api/unit/unit.d.ts.map +1 -1
- package/dist/api/unit/unit.fetch.cjs +620 -0
- package/dist/api/unit/unit.fetch.cjs.map +1 -0
- package/dist/api/unit/unit.fetch.d.cts +665 -0
- package/dist/api/unit/unit.fetch.d.cts.map +1 -0
- package/dist/api/unit/unit.fetch.d.ts +665 -0
- package/dist/api/unit/unit.fetch.d.ts.map +1 -0
- package/dist/api/unit/unit.fetch.js +560 -0
- package/dist/api/unit/unit.fetch.js.map +1 -0
- package/dist/api/unit/unit.js +140 -98
- package/dist/api/unit/unit.js.map +1 -1
- package/dist/api/user/user.cjs +121 -82
- package/dist/api/user/user.cjs.map +1 -1
- package/dist/api/user/user.d.cts +31 -17
- package/dist/api/user/user.d.cts.map +1 -1
- package/dist/api/user/user.d.ts +31 -17
- package/dist/api/user/user.d.ts.map +1 -1
- package/dist/api/user/user.fetch.cjs +407 -0
- package/dist/api/user/user.fetch.cjs.map +1 -0
- package/dist/api/user/user.fetch.d.cts +454 -0
- package/dist/api/user/user.fetch.d.cts.map +1 -0
- package/dist/api/user/user.fetch.d.ts +454 -0
- package/dist/api/user/user.fetch.d.ts.map +1 -0
- package/dist/api/user/user.fetch.js +367 -0
- package/dist/api/user/user.fetch.js.map +1 -0
- package/dist/api/user/user.js +102 -66
- package/dist/api/user/user.js.map +1 -1
- package/dist/{custom-instance.cjs → custom-axios.cjs} +6 -14
- package/dist/custom-axios.cjs.map +1 -0
- package/dist/{custom-instance.d.ts → custom-axios.d.cts} +2 -2
- package/dist/custom-axios.d.cts.map +1 -0
- package/dist/{custom-instance.d.cts → custom-axios.d.ts} +2 -2
- package/dist/custom-axios.d.ts.map +1 -0
- package/dist/{custom-instance.js → custom-axios.js} +6 -14
- package/dist/custom-axios.js.map +1 -0
- package/dist/custom-fetch.cjs +32 -0
- package/dist/custom-fetch.cjs.map +1 -0
- package/dist/custom-fetch.d.cts +13 -0
- package/dist/custom-fetch.d.cts.map +1 -0
- package/dist/custom-fetch.d.ts +13 -0
- package/dist/custom-fetch.d.ts.map +1 -0
- package/dist/custom-fetch.js +31 -0
- package/dist/custom-fetch.js.map +1 -0
- package/dist/index.cjs +53 -30
- package/dist/index.d.cts +118 -2
- package/dist/index.d.ts +118 -2
- package/dist/index.js +25 -2
- package/morph-query-keys.ts +57 -0
- package/orval.config.ts +46 -7
- package/package.json +256 -3
- package/src/api/actions/actions.fetch.ts +188 -0
- package/src/api/actions/actions.ts +29 -17
- package/src/api/api-schemas/actionDetail.ts +22 -0
- package/src/api/api-schemas/actionGetResponse.ts +20 -0
- package/src/api/api-schemas/asError.ts +15 -0
- package/src/api/api-schemas/assetDetail.ts +27 -0
- package/src/api/api-schemas/assetDetailScope.ts +21 -0
- package/src/api/api-schemas/assetGetByIdResponse.ts +13 -0
- package/src/api/api-schemas/assetGetResponse.ts +20 -0
- package/src/api/api-schemas/assetPatchBodyBody.ts +19 -0
- package/src/api/api-schemas/assetPostBodyBody.ts +32 -0
- package/src/api/api-schemas/assetPostBodyBodyScope.ts +25 -0
- package/src/api/api-schemas/assetPostResponse.ts +16 -0
- package/src/api/api-schemas/attachAssetParams.ts +19 -0
- package/src/api/api-schemas/chargeAdditionalData.ts +14 -0
- package/src/api/api-schemas/chargeSummary.ts +18 -0
- package/src/api/api-schemas/chargeSummaryType.ts +18 -0
- package/src/api/api-schemas/chargesGetResponse.ts +19 -0
- package/src/api/api-schemas/detachAssetParams.ts +19 -0
- package/src/api/api-schemas/eventStreamGetPostResponse.ts +21 -0
- package/src/api/api-schemas/eventStreamPostBodyBody.ts +13 -0
- package/src/api/api-schemas/eventStreamPostBodyBodyFormat.ts +19 -0
- package/src/api/api-schemas/eventStreamVersionGetResponse.ts +20 -0
- package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.ts +23 -0
- package/src/api/api-schemas/getActionsParams.ts +52 -0
- package/src/api/api-schemas/getAssetParams.ts +39 -0
- package/src/api/api-schemas/getChargesParams.ts +30 -0
- package/src/api/api-schemas/getOrganisationChargesParams.ts +30 -0
- package/src/api/api-schemas/getOrganisationsParams.ts +18 -0
- package/src/api/api-schemas/getProductChargesParams.ts +30 -0
- package/src/api/api-schemas/getUnitChargesParams.ts +30 -0
- package/src/api/api-schemas/getUnitsParams.ts +18 -0
- package/src/api/api-schemas/index.ts +128 -0
- package/src/api/api-schemas/merchantDetail.ts +23 -0
- package/src/api/api-schemas/merchantDetailKind.ts +18 -0
- package/src/api/api-schemas/merchantGetResponse.ts +13 -0
- package/src/api/api-schemas/merchantSummary.ts +20 -0
- package/src/api/api-schemas/merchantSummaryKind.ts +18 -0
- package/src/api/api-schemas/merchantsGetResponse.ts +18 -0
- package/src/api/api-schemas/organisationAllDetail.ts +30 -0
- package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationChargeSummary.ts +17 -0
- package/src/api/api-schemas/organisationChargesGetResponse.ts +20 -0
- package/src/api/api-schemas/organisationDetail.ts +27 -0
- package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationGetDefaultResponse.ts +28 -0
- package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationGetResponse.ts +13 -0
- package/src/api/api-schemas/organisationPatchBodyBody.ts +20 -0
- package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.ts +26 -0
- package/src/api/api-schemas/organisationPostBodyBody.ts +23 -0
- package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationPostResponse.ts +15 -0
- package/src/api/api-schemas/organisationUnitChargeSummary.ts +26 -0
- package/src/api/api-schemas/organisationUnitPostBodyBody.ts +27 -0
- package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationUnitPostResponse.ts +15 -0
- package/src/api/api-schemas/organisationUnitsGetResponse.ts +20 -0
- package/src/api/api-schemas/organisationsGetResponse.ts +17 -0
- package/src/api/api-schemas/personalUnitPutBodyBody.ts +19 -0
- package/src/api/api-schemas/personalUnitPutResponse.ts +17 -0
- package/src/api/api-schemas/processingChargeItem.ts +25 -0
- package/src/api/api-schemas/processingCharges.ts +25 -0
- package/src/api/api-schemas/processingChargesMerchantKind.ts +16 -0
- package/src/api/api-schemas/productChargesGetResponse.ts +36 -0
- package/src/api/api-schemas/productChargesGetResponseProductType.ts +19 -0
- package/src/api/api-schemas/productClaimDetail.ts +19 -0
- package/src/api/api-schemas/productCoinsDetail.ts +35 -0
- package/src/api/api-schemas/productDetail.ts +28 -0
- package/src/api/api-schemas/productDetailFlavour.ts +24 -0
- package/src/api/api-schemas/productDetailType.ts +22 -0
- package/src/api/api-schemas/productDmProjectTier.ts +29 -0
- package/src/api/api-schemas/productDmStorage.ts +25 -0
- package/src/api/api-schemas/productDmStorageDetail.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetailCoins.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetailSize.ts +21 -0
- package/src/api/api-schemas/productInstanceDetail.ts +15 -0
- package/src/api/api-schemas/productInstanceDetailCoins.ts +16 -0
- package/src/api/api-schemas/productPatchBodyBody.ts +28 -0
- package/src/api/api-schemas/productType.ts +20 -0
- package/src/api/api-schemas/productTypeServiceKind.ts +19 -0
- package/src/api/api-schemas/productUnitGetResponse.ts +16 -0
- package/src/api/api-schemas/productUnitGetResponseProduct.ts +17 -0
- package/src/api/api-schemas/productsGetDefaultStorageCost.ts +15 -0
- package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.ts +16 -0
- package/src/api/api-schemas/productsGetResponse.ts +17 -0
- package/src/api/api-schemas/productsGetResponseProductsItem.ts +14 -0
- package/src/api/api-schemas/productsGetTypesResponse.ts +18 -0
- package/src/api/api-schemas/qFormatParameter.ts +18 -0
- package/src/api/api-schemas/qFromParameter.ts +15 -0
- package/src/api/api-schemas/qMIdParameter.ts +15 -0
- package/src/api/api-schemas/qNameParameter.ts +15 -0
- package/src/api/api-schemas/qOrgIdParameter.ts +15 -0
- package/src/api/api-schemas/qPbpParameter.ts +15 -0
- package/src/api/api-schemas/qProductIdParameter.ts +15 -0
- package/src/api/api-schemas/qUnitIdParameter.ts +15 -0
- package/src/api/api-schemas/qUntilParameter.ts +15 -0
- package/src/api/api-schemas/qUserIdParameter.ts +15 -0
- package/src/api/api-schemas/stateGetVersionResponse.ts +16 -0
- package/src/api/api-schemas/storageChargeItem.ts +24 -0
- package/src/api/api-schemas/storageCharges.ts +16 -0
- package/src/api/api-schemas/unitAllDetail.ts +32 -0
- package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/unitChargeSummary.ts +15 -0
- package/src/api/api-schemas/unitChargesGetResponse.ts +37 -0
- package/src/api/api-schemas/unitDetail.ts +29 -0
- package/src/api/api-schemas/unitDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/unitGetResponse.ts +13 -0
- package/src/api/api-schemas/unitPatchBodyBody.ts +20 -0
- package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.ts +26 -0
- package/src/api/api-schemas/unitProductChargeSummary.ts +17 -0
- package/src/api/api-schemas/unitProductPostBodyBody.ts +36 -0
- package/src/api/api-schemas/unitProductPostBodyBodyFlavour.ts +24 -0
- package/src/api/api-schemas/unitProductPostBodyBodyType.ts +24 -0
- package/src/api/api-schemas/unitProductPostResponse.ts +15 -0
- package/src/api/api-schemas/unitsGetResponse.ts +17 -0
- package/src/api/api-schemas/userAccountDetail.ts +19 -0
- package/src/api/api-schemas/userAccountGetResponse.ts +13 -0
- package/src/api/api-schemas/userDetail.ts +15 -0
- package/src/api/api-schemas/usersGetResponse.ts +22 -0
- package/src/api/asset/asset.fetch.ts +1119 -0
- package/src/api/asset/asset.ts +70 -64
- package/src/api/charges/charges.fetch.ts +777 -0
- package/src/api/charges/charges.ts +101 -50
- package/src/api/event-stream/event-stream.fetch.ts +539 -0
- package/src/api/event-stream/event-stream.ts +49 -37
- package/src/api/merchant/merchant.fetch.ts +318 -0
- package/src/api/merchant/merchant.ts +48 -28
- package/src/api/organisation/organisation.fetch.ts +863 -0
- package/src/api/organisation/organisation.ts +73 -53
- package/src/api/product/product.fetch.ts +1292 -0
- package/src/api/product/product.ts +141 -88
- package/src/api/state/state.fetch.ts +162 -0
- package/src/api/state/state.ts +28 -17
- package/src/api/unit/unit.fetch.ts +1394 -0
- package/src/api/unit/unit.ts +116 -88
- package/src/api/user/user.fetch.ts +965 -0
- package/src/api/user/user.ts +82 -58
- package/src/{custom-instance.ts → custom-axios.ts} +1 -14
- package/src/custom-fetch.ts +59 -0
- package/src/index.ts +2 -2
- package/tsdown.config.ts +35 -4
- package/dist/api/api.schemas.cjs +0 -142
- package/dist/api/api.schemas.cjs.map +0 -1
- package/dist/api/api.schemas.d.cts +0 -1032
- package/dist/api/api.schemas.d.cts.map +0 -1
- package/dist/api/api.schemas.d.ts +0 -1032
- package/dist/api/api.schemas.d.ts.map +0 -1
- package/dist/api/api.schemas.js +0 -118
- package/dist/api/api.schemas.js.map +0 -1
- package/dist/custom-instance.cjs.map +0 -1
- package/dist/custom-instance.d.cts.map +0 -1
- package/dist/custom-instance.d.ts.map +0 -1
- package/dist/custom-instance.js.map +0 -1
- package/dist/options-mutator.cjs +0 -24
- package/dist/options-mutator.cjs.map +0 -1
- package/dist/options-mutator.js +0 -23
- package/dist/options-mutator.js.map +0 -1
- package/src/api/api.schemas.ts +0 -1199
- package/src/options-mutator.ts +0 -27
|
@@ -0,0 +1,1394 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.17.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Account Server API
|
|
5
|
+
* The Informatics Matters Account Server API.
|
|
6
|
+
|
|
7
|
+
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
|
+
|
|
9
|
+
* OpenAPI spec version: 4.4
|
|
10
|
+
*/
|
|
11
|
+
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
|
+
import type {
|
|
13
|
+
InvalidateOptions,
|
|
14
|
+
MutationFunction,
|
|
15
|
+
QueryClient,
|
|
16
|
+
QueryFunction,
|
|
17
|
+
QueryKey,
|
|
18
|
+
UseMutationOptions,
|
|
19
|
+
UseMutationResult,
|
|
20
|
+
UseQueryOptions,
|
|
21
|
+
UseQueryResult,
|
|
22
|
+
UseSuspenseQueryOptions,
|
|
23
|
+
UseSuspenseQueryResult,
|
|
24
|
+
} from "@tanstack/react-query";
|
|
25
|
+
|
|
26
|
+
import type {
|
|
27
|
+
AsError,
|
|
28
|
+
GetUnitsParams,
|
|
29
|
+
OrganisationUnitPostBodyBody,
|
|
30
|
+
OrganisationUnitPostResponse,
|
|
31
|
+
OrganisationUnitsGetResponse,
|
|
32
|
+
PersonalUnitPutBodyBody,
|
|
33
|
+
PersonalUnitPutResponse,
|
|
34
|
+
UnitAllDetail,
|
|
35
|
+
UnitPatchBodyBody,
|
|
36
|
+
UnitsGetResponse,
|
|
37
|
+
} from ".././api-schemas";
|
|
38
|
+
|
|
39
|
+
import { customFetch } from "../../custom-fetch";
|
|
40
|
+
import type { ErrorType } from "../../custom-fetch";
|
|
41
|
+
|
|
42
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Gets Organisational Units you have access to or that are public
|
|
46
|
+
|
|
47
|
+
* @summary Gets Organisational Units
|
|
48
|
+
*/
|
|
49
|
+
export type getOrganisationUnitsResponse200 = { data: OrganisationUnitsGetResponse; status: 200 };
|
|
50
|
+
|
|
51
|
+
export type getOrganisationUnitsResponse401 = { data: void; status: 401 };
|
|
52
|
+
|
|
53
|
+
export type getOrganisationUnitsResponse403 = { data: AsError; status: 403 };
|
|
54
|
+
|
|
55
|
+
export type getOrganisationUnitsResponse404 = { data: AsError; status: 404 };
|
|
56
|
+
|
|
57
|
+
export type getOrganisationUnitsResponseSuccess = getOrganisationUnitsResponse200 & {
|
|
58
|
+
headers: Headers;
|
|
59
|
+
};
|
|
60
|
+
export type getOrganisationUnitsResponseError = (
|
|
61
|
+
| getOrganisationUnitsResponse401
|
|
62
|
+
| getOrganisationUnitsResponse403
|
|
63
|
+
| getOrganisationUnitsResponse404
|
|
64
|
+
) & { headers: Headers };
|
|
65
|
+
|
|
66
|
+
export type getOrganisationUnitsResponse =
|
|
67
|
+
| getOrganisationUnitsResponseSuccess
|
|
68
|
+
| getOrganisationUnitsResponseError;
|
|
69
|
+
|
|
70
|
+
export const getGetOrganisationUnitsUrl = (orgId: string) => {
|
|
71
|
+
return `/organisation/${orgId}/unit`;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const getOrganisationUnits = async (
|
|
75
|
+
orgId: string,
|
|
76
|
+
options?: RequestInit,
|
|
77
|
+
): Promise<getOrganisationUnitsResponse> => {
|
|
78
|
+
return customFetch<getOrganisationUnitsResponse>(getGetOrganisationUnitsUrl(orgId), {
|
|
79
|
+
...options,
|
|
80
|
+
method: "GET",
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const getGetOrganisationUnitsQueryKey = (orgId?: string) => {
|
|
85
|
+
return ["account-server", "organisation", orgId, "unit"] as const;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const getGetOrganisationUnitsQueryOptions = <
|
|
89
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
90
|
+
TError = ErrorType<void | AsError>,
|
|
91
|
+
>(
|
|
92
|
+
orgId: string,
|
|
93
|
+
options?: {
|
|
94
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnits>>, TError, TData>;
|
|
95
|
+
request?: SecondParameter<typeof customFetch>;
|
|
96
|
+
},
|
|
97
|
+
) => {
|
|
98
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
99
|
+
|
|
100
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitsQueryKey(orgId);
|
|
101
|
+
|
|
102
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnits>>> = ({ signal }) =>
|
|
103
|
+
getOrganisationUnits(orgId, { signal, ...requestOptions });
|
|
104
|
+
|
|
105
|
+
return { queryKey, queryFn, enabled: !!orgId, ...queryOptions } as UseQueryOptions<
|
|
106
|
+
Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
107
|
+
TError,
|
|
108
|
+
TData
|
|
109
|
+
> & { queryKey: QueryKey };
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export type GetOrganisationUnitsQueryResult = NonNullable<
|
|
113
|
+
Awaited<ReturnType<typeof getOrganisationUnits>>
|
|
114
|
+
>;
|
|
115
|
+
export type GetOrganisationUnitsQueryError = ErrorType<void | AsError>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @summary Gets Organisational Units
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
export function useGetOrganisationUnits<
|
|
122
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
123
|
+
TError = ErrorType<void | AsError>,
|
|
124
|
+
>(
|
|
125
|
+
orgId: string,
|
|
126
|
+
options?: {
|
|
127
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnits>>, TError, TData>;
|
|
128
|
+
request?: SecondParameter<typeof customFetch>;
|
|
129
|
+
},
|
|
130
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
131
|
+
const queryOptions = getGetOrganisationUnitsQueryOptions(orgId, options);
|
|
132
|
+
|
|
133
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
134
|
+
|
|
135
|
+
query.queryKey = queryOptions.queryKey;
|
|
136
|
+
|
|
137
|
+
return query;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @summary Gets Organisational Units
|
|
142
|
+
*/
|
|
143
|
+
export const invalidateGetOrganisationUnits = async (
|
|
144
|
+
queryClient: QueryClient,
|
|
145
|
+
orgId: string,
|
|
146
|
+
options?: InvalidateOptions,
|
|
147
|
+
): Promise<QueryClient> => {
|
|
148
|
+
await queryClient.invalidateQueries(
|
|
149
|
+
{ queryKey: getGetOrganisationUnitsQueryKey(orgId) },
|
|
150
|
+
options,
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
return queryClient;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export const getGetOrganisationUnitsSuspenseQueryOptions = <
|
|
157
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
158
|
+
TError = ErrorType<void | AsError>,
|
|
159
|
+
>(
|
|
160
|
+
orgId: string,
|
|
161
|
+
options?: {
|
|
162
|
+
query?: UseSuspenseQueryOptions<
|
|
163
|
+
Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
164
|
+
TError,
|
|
165
|
+
TData
|
|
166
|
+
>;
|
|
167
|
+
request?: SecondParameter<typeof customFetch>;
|
|
168
|
+
},
|
|
169
|
+
) => {
|
|
170
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
171
|
+
|
|
172
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationUnitsQueryKey(orgId);
|
|
173
|
+
|
|
174
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisationUnits>>> = ({ signal }) =>
|
|
175
|
+
getOrganisationUnits(orgId, { signal, ...requestOptions });
|
|
176
|
+
|
|
177
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
178
|
+
Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
179
|
+
TError,
|
|
180
|
+
TData
|
|
181
|
+
> & { queryKey: QueryKey };
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export type GetOrganisationUnitsSuspenseQueryResult = NonNullable<
|
|
185
|
+
Awaited<ReturnType<typeof getOrganisationUnits>>
|
|
186
|
+
>;
|
|
187
|
+
export type GetOrganisationUnitsSuspenseQueryError = ErrorType<void | AsError>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @summary Gets Organisational Units
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
export function useGetOrganisationUnitsSuspense<
|
|
194
|
+
TData = Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
195
|
+
TError = ErrorType<void | AsError>,
|
|
196
|
+
>(
|
|
197
|
+
orgId: string,
|
|
198
|
+
options?: {
|
|
199
|
+
query?: UseSuspenseQueryOptions<
|
|
200
|
+
Awaited<ReturnType<typeof getOrganisationUnits>>,
|
|
201
|
+
TError,
|
|
202
|
+
TData
|
|
203
|
+
>;
|
|
204
|
+
request?: SecondParameter<typeof customFetch>;
|
|
205
|
+
},
|
|
206
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
207
|
+
const queryOptions = getGetOrganisationUnitsSuspenseQueryOptions(orgId, options);
|
|
208
|
+
|
|
209
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
210
|
+
queryKey: QueryKey;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
query.queryKey = queryOptions.queryKey;
|
|
214
|
+
|
|
215
|
+
return query;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Creates a new Organisation Unit.
|
|
220
|
+
|
|
221
|
+
The **User** who creates the Unit becomes the **Owner** of the Unit. They are considered a *Member* (**User**) of the Unit but are not present in the list of users, which a separate list of users explicitly added to the Unit by a member of the Organisation or another member of the Unit.
|
|
222
|
+
|
|
223
|
+
You need to be a member of the **Organisation** or have administration rights to use this endpoint
|
|
224
|
+
|
|
225
|
+
* @summary Create a new Organisational Unit
|
|
226
|
+
*/
|
|
227
|
+
export type createOrganisationUnitResponse201 = { data: OrganisationUnitPostResponse; status: 201 };
|
|
228
|
+
|
|
229
|
+
export type createOrganisationUnitResponse400 = { data: AsError; status: 400 };
|
|
230
|
+
|
|
231
|
+
export type createOrganisationUnitResponse401 = { data: void; status: 401 };
|
|
232
|
+
|
|
233
|
+
export type createOrganisationUnitResponse403 = { data: AsError; status: 403 };
|
|
234
|
+
|
|
235
|
+
export type createOrganisationUnitResponseSuccess = createOrganisationUnitResponse201 & {
|
|
236
|
+
headers: Headers;
|
|
237
|
+
};
|
|
238
|
+
export type createOrganisationUnitResponseError = (
|
|
239
|
+
| createOrganisationUnitResponse400
|
|
240
|
+
| createOrganisationUnitResponse401
|
|
241
|
+
| createOrganisationUnitResponse403
|
|
242
|
+
) & { headers: Headers };
|
|
243
|
+
|
|
244
|
+
export type createOrganisationUnitResponse =
|
|
245
|
+
| createOrganisationUnitResponseSuccess
|
|
246
|
+
| createOrganisationUnitResponseError;
|
|
247
|
+
|
|
248
|
+
export const getCreateOrganisationUnitUrl = (orgId: string) => {
|
|
249
|
+
return `/organisation/${orgId}/unit`;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export const createOrganisationUnit = async (
|
|
253
|
+
orgId: string,
|
|
254
|
+
organisationUnitPostBodyBody: OrganisationUnitPostBodyBody,
|
|
255
|
+
options?: RequestInit,
|
|
256
|
+
): Promise<createOrganisationUnitResponse> => {
|
|
257
|
+
return customFetch<createOrganisationUnitResponse>(getCreateOrganisationUnitUrl(orgId), {
|
|
258
|
+
...options,
|
|
259
|
+
method: "POST",
|
|
260
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
261
|
+
body: JSON.stringify(organisationUnitPostBodyBody),
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
export const getCreateOrganisationUnitMutationOptions = <
|
|
266
|
+
TError = ErrorType<AsError | void>,
|
|
267
|
+
TContext = unknown,
|
|
268
|
+
>(options?: {
|
|
269
|
+
mutation?: UseMutationOptions<
|
|
270
|
+
Awaited<ReturnType<typeof createOrganisationUnit>>,
|
|
271
|
+
TError,
|
|
272
|
+
{ orgId: string; data: OrganisationUnitPostBodyBody },
|
|
273
|
+
TContext
|
|
274
|
+
>;
|
|
275
|
+
request?: SecondParameter<typeof customFetch>;
|
|
276
|
+
}): UseMutationOptions<
|
|
277
|
+
Awaited<ReturnType<typeof createOrganisationUnit>>,
|
|
278
|
+
TError,
|
|
279
|
+
{ orgId: string; data: OrganisationUnitPostBodyBody },
|
|
280
|
+
TContext
|
|
281
|
+
> => {
|
|
282
|
+
const mutationKey = ["createOrganisationUnit"];
|
|
283
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
284
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
285
|
+
? options
|
|
286
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
287
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
288
|
+
|
|
289
|
+
const mutationFn: MutationFunction<
|
|
290
|
+
Awaited<ReturnType<typeof createOrganisationUnit>>,
|
|
291
|
+
{ orgId: string; data: OrganisationUnitPostBodyBody }
|
|
292
|
+
> = (props) => {
|
|
293
|
+
const { orgId, data } = props ?? {};
|
|
294
|
+
|
|
295
|
+
return createOrganisationUnit(orgId, data, requestOptions);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
return { mutationFn, ...mutationOptions };
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export type CreateOrganisationUnitMutationResult = NonNullable<
|
|
302
|
+
Awaited<ReturnType<typeof createOrganisationUnit>>
|
|
303
|
+
>;
|
|
304
|
+
export type CreateOrganisationUnitMutationBody = OrganisationUnitPostBodyBody;
|
|
305
|
+
export type CreateOrganisationUnitMutationError = ErrorType<AsError | void>;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @summary Create a new Organisational Unit
|
|
309
|
+
*/
|
|
310
|
+
export const useCreateOrganisationUnit = <
|
|
311
|
+
TError = ErrorType<AsError | void>,
|
|
312
|
+
TContext = unknown,
|
|
313
|
+
>(options?: {
|
|
314
|
+
mutation?: UseMutationOptions<
|
|
315
|
+
Awaited<ReturnType<typeof createOrganisationUnit>>,
|
|
316
|
+
TError,
|
|
317
|
+
{ orgId: string; data: OrganisationUnitPostBodyBody },
|
|
318
|
+
TContext
|
|
319
|
+
>;
|
|
320
|
+
request?: SecondParameter<typeof customFetch>;
|
|
321
|
+
}): UseMutationResult<
|
|
322
|
+
Awaited<ReturnType<typeof createOrganisationUnit>>,
|
|
323
|
+
TError,
|
|
324
|
+
{ orgId: string; data: OrganisationUnitPostBodyBody },
|
|
325
|
+
TContext
|
|
326
|
+
> => {
|
|
327
|
+
const mutationOptions = getCreateOrganisationUnitMutationOptions(options);
|
|
328
|
+
|
|
329
|
+
return useMutation(mutationOptions);
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Gets a Unit. You can get a Unit if you are a member of it or are its creator. You can also get a Unit if you are a member of its **Organisation**, or its creator or an admin user.
|
|
333
|
+
|
|
334
|
+
* @summary Gets an Organisational Unit
|
|
335
|
+
*/
|
|
336
|
+
export type getUnitResponse200 = { data: UnitAllDetail; status: 200 };
|
|
337
|
+
|
|
338
|
+
export type getUnitResponse401 = { data: void; status: 401 };
|
|
339
|
+
|
|
340
|
+
export type getUnitResponse403 = { data: AsError; status: 403 };
|
|
341
|
+
|
|
342
|
+
export type getUnitResponse404 = { data: AsError; status: 404 };
|
|
343
|
+
|
|
344
|
+
export type getUnitResponseSuccess = getUnitResponse200 & { headers: Headers };
|
|
345
|
+
export type getUnitResponseError = (
|
|
346
|
+
| getUnitResponse401
|
|
347
|
+
| getUnitResponse403
|
|
348
|
+
| getUnitResponse404
|
|
349
|
+
) & { headers: Headers };
|
|
350
|
+
|
|
351
|
+
export type getUnitResponse = getUnitResponseSuccess | getUnitResponseError;
|
|
352
|
+
|
|
353
|
+
export const getGetUnitUrl = (unitId: string) => {
|
|
354
|
+
return `/unit/${unitId}`;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
export const getUnit = async (unitId: string, options?: RequestInit): Promise<getUnitResponse> => {
|
|
358
|
+
return customFetch<getUnitResponse>(getGetUnitUrl(unitId), { ...options, method: "GET" });
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export const getGetUnitQueryKey = (unitId?: string) => {
|
|
362
|
+
return ["account-server", "unit", unitId] as const;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
export const getGetUnitQueryOptions = <
|
|
366
|
+
TData = Awaited<ReturnType<typeof getUnit>>,
|
|
367
|
+
TError = ErrorType<void | AsError>,
|
|
368
|
+
>(
|
|
369
|
+
unitId: string,
|
|
370
|
+
options?: {
|
|
371
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUnit>>, TError, TData>;
|
|
372
|
+
request?: SecondParameter<typeof customFetch>;
|
|
373
|
+
},
|
|
374
|
+
) => {
|
|
375
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
376
|
+
|
|
377
|
+
const queryKey = queryOptions?.queryKey ?? getGetUnitQueryKey(unitId);
|
|
378
|
+
|
|
379
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUnit>>> = ({ signal }) =>
|
|
380
|
+
getUnit(unitId, { signal, ...requestOptions });
|
|
381
|
+
|
|
382
|
+
return { queryKey, queryFn, enabled: !!unitId, ...queryOptions } as UseQueryOptions<
|
|
383
|
+
Awaited<ReturnType<typeof getUnit>>,
|
|
384
|
+
TError,
|
|
385
|
+
TData
|
|
386
|
+
> & { queryKey: QueryKey };
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
export type GetUnitQueryResult = NonNullable<Awaited<ReturnType<typeof getUnit>>>;
|
|
390
|
+
export type GetUnitQueryError = ErrorType<void | AsError>;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @summary Gets an Organisational Unit
|
|
394
|
+
*/
|
|
395
|
+
|
|
396
|
+
export function useGetUnit<
|
|
397
|
+
TData = Awaited<ReturnType<typeof getUnit>>,
|
|
398
|
+
TError = ErrorType<void | AsError>,
|
|
399
|
+
>(
|
|
400
|
+
unitId: string,
|
|
401
|
+
options?: {
|
|
402
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUnit>>, TError, TData>;
|
|
403
|
+
request?: SecondParameter<typeof customFetch>;
|
|
404
|
+
},
|
|
405
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
406
|
+
const queryOptions = getGetUnitQueryOptions(unitId, options);
|
|
407
|
+
|
|
408
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
409
|
+
|
|
410
|
+
query.queryKey = queryOptions.queryKey;
|
|
411
|
+
|
|
412
|
+
return query;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @summary Gets an Organisational Unit
|
|
417
|
+
*/
|
|
418
|
+
export const invalidateGetUnit = async (
|
|
419
|
+
queryClient: QueryClient,
|
|
420
|
+
unitId: string,
|
|
421
|
+
options?: InvalidateOptions,
|
|
422
|
+
): Promise<QueryClient> => {
|
|
423
|
+
await queryClient.invalidateQueries({ queryKey: getGetUnitQueryKey(unitId) }, options);
|
|
424
|
+
|
|
425
|
+
return queryClient;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
export const getGetUnitSuspenseQueryOptions = <
|
|
429
|
+
TData = Awaited<ReturnType<typeof getUnit>>,
|
|
430
|
+
TError = ErrorType<void | AsError>,
|
|
431
|
+
>(
|
|
432
|
+
unitId: string,
|
|
433
|
+
options?: {
|
|
434
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnit>>, TError, TData>;
|
|
435
|
+
request?: SecondParameter<typeof customFetch>;
|
|
436
|
+
},
|
|
437
|
+
) => {
|
|
438
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
439
|
+
|
|
440
|
+
const queryKey = queryOptions?.queryKey ?? getGetUnitQueryKey(unitId);
|
|
441
|
+
|
|
442
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUnit>>> = ({ signal }) =>
|
|
443
|
+
getUnit(unitId, { signal, ...requestOptions });
|
|
444
|
+
|
|
445
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
446
|
+
Awaited<ReturnType<typeof getUnit>>,
|
|
447
|
+
TError,
|
|
448
|
+
TData
|
|
449
|
+
> & { queryKey: QueryKey };
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
export type GetUnitSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUnit>>>;
|
|
453
|
+
export type GetUnitSuspenseQueryError = ErrorType<void | AsError>;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* @summary Gets an Organisational Unit
|
|
457
|
+
*/
|
|
458
|
+
|
|
459
|
+
export function useGetUnitSuspense<
|
|
460
|
+
TData = Awaited<ReturnType<typeof getUnit>>,
|
|
461
|
+
TError = ErrorType<void | AsError>,
|
|
462
|
+
>(
|
|
463
|
+
unitId: string,
|
|
464
|
+
options?: {
|
|
465
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnit>>, TError, TData>;
|
|
466
|
+
request?: SecondParameter<typeof customFetch>;
|
|
467
|
+
},
|
|
468
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
469
|
+
const queryOptions = getGetUnitSuspenseQueryOptions(unitId, options);
|
|
470
|
+
|
|
471
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
472
|
+
queryKey: QueryKey;
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
query.queryKey = queryOptions.queryKey;
|
|
476
|
+
|
|
477
|
+
return query;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Used to update existing Unit. You can change a Unit's **name** or its **default_product_privacy** (as long as the new privacy does not conflict with the Organisation's value).
|
|
482
|
+
|
|
483
|
+
You have to be a member of the **Unit**, a member of its **Organisation**, or an administrator to patch a Unit.
|
|
484
|
+
|
|
485
|
+
* @summary Adjust an existing Unit
|
|
486
|
+
*/
|
|
487
|
+
export type patchUnitResponse200 = { data: void; status: 200 };
|
|
488
|
+
|
|
489
|
+
export type patchUnitResponse401 = { data: void; status: 401 };
|
|
490
|
+
|
|
491
|
+
export type patchUnitResponse403 = { data: AsError; status: 403 };
|
|
492
|
+
|
|
493
|
+
export type patchUnitResponse404 = { data: AsError; status: 404 };
|
|
494
|
+
|
|
495
|
+
export type patchUnitResponseSuccess = patchUnitResponse200 & { headers: Headers };
|
|
496
|
+
export type patchUnitResponseError = (
|
|
497
|
+
| patchUnitResponse401
|
|
498
|
+
| patchUnitResponse403
|
|
499
|
+
| patchUnitResponse404
|
|
500
|
+
) & { headers: Headers };
|
|
501
|
+
|
|
502
|
+
export type patchUnitResponse = patchUnitResponseSuccess | patchUnitResponseError;
|
|
503
|
+
|
|
504
|
+
export const getPatchUnitUrl = (unitId: string) => {
|
|
505
|
+
return `/unit/${unitId}`;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
export const patchUnit = async (
|
|
509
|
+
unitId: string,
|
|
510
|
+
unitPatchBodyBody: UnitPatchBodyBody,
|
|
511
|
+
options?: RequestInit,
|
|
512
|
+
): Promise<patchUnitResponse> => {
|
|
513
|
+
return customFetch<patchUnitResponse>(getPatchUnitUrl(unitId), {
|
|
514
|
+
...options,
|
|
515
|
+
method: "PATCH",
|
|
516
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
517
|
+
body: JSON.stringify(unitPatchBodyBody),
|
|
518
|
+
});
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
export const getPatchUnitMutationOptions = <
|
|
522
|
+
TError = ErrorType<void | AsError>,
|
|
523
|
+
TContext = unknown,
|
|
524
|
+
>(options?: {
|
|
525
|
+
mutation?: UseMutationOptions<
|
|
526
|
+
Awaited<ReturnType<typeof patchUnit>>,
|
|
527
|
+
TError,
|
|
528
|
+
{ unitId: string; data: UnitPatchBodyBody },
|
|
529
|
+
TContext
|
|
530
|
+
>;
|
|
531
|
+
request?: SecondParameter<typeof customFetch>;
|
|
532
|
+
}): UseMutationOptions<
|
|
533
|
+
Awaited<ReturnType<typeof patchUnit>>,
|
|
534
|
+
TError,
|
|
535
|
+
{ unitId: string; data: UnitPatchBodyBody },
|
|
536
|
+
TContext
|
|
537
|
+
> => {
|
|
538
|
+
const mutationKey = ["patchUnit"];
|
|
539
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
540
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
541
|
+
? options
|
|
542
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
543
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
544
|
+
|
|
545
|
+
const mutationFn: MutationFunction<
|
|
546
|
+
Awaited<ReturnType<typeof patchUnit>>,
|
|
547
|
+
{ unitId: string; data: UnitPatchBodyBody }
|
|
548
|
+
> = (props) => {
|
|
549
|
+
const { unitId, data } = props ?? {};
|
|
550
|
+
|
|
551
|
+
return patchUnit(unitId, data, requestOptions);
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
return { mutationFn, ...mutationOptions };
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
export type PatchUnitMutationResult = NonNullable<Awaited<ReturnType<typeof patchUnit>>>;
|
|
558
|
+
export type PatchUnitMutationBody = UnitPatchBodyBody;
|
|
559
|
+
export type PatchUnitMutationError = ErrorType<void | AsError>;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* @summary Adjust an existing Unit
|
|
563
|
+
*/
|
|
564
|
+
export const usePatchUnit = <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
565
|
+
mutation?: UseMutationOptions<
|
|
566
|
+
Awaited<ReturnType<typeof patchUnit>>,
|
|
567
|
+
TError,
|
|
568
|
+
{ unitId: string; data: UnitPatchBodyBody },
|
|
569
|
+
TContext
|
|
570
|
+
>;
|
|
571
|
+
request?: SecondParameter<typeof customFetch>;
|
|
572
|
+
}): UseMutationResult<
|
|
573
|
+
Awaited<ReturnType<typeof patchUnit>>,
|
|
574
|
+
TError,
|
|
575
|
+
{ unitId: string; data: UnitPatchBodyBody },
|
|
576
|
+
TContext
|
|
577
|
+
> => {
|
|
578
|
+
const mutationOptions = getPatchUnitMutationOptions(options);
|
|
579
|
+
|
|
580
|
+
return useMutation(mutationOptions);
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* Deletes an Organisational Unit you have access to. Units can only be deleted by members of the Unit, its Organisation users or admin users.
|
|
584
|
+
|
|
585
|
+
You cannot delete Units in the **Default Organisation**. These Units are **Personal Units** and need to be deleted using the `DELETE /unit` endpoint.
|
|
586
|
+
|
|
587
|
+
You cannot delete a Unit that contains undeleted **Products**
|
|
588
|
+
|
|
589
|
+
* @summary Deletes an Organisational Unit
|
|
590
|
+
*/
|
|
591
|
+
export type deleteOrganisationUnitResponse204 = { data: void; status: 204 };
|
|
592
|
+
|
|
593
|
+
export type deleteOrganisationUnitResponse401 = { data: void; status: 401 };
|
|
594
|
+
|
|
595
|
+
export type deleteOrganisationUnitResponse403 = { data: AsError; status: 403 };
|
|
596
|
+
|
|
597
|
+
export type deleteOrganisationUnitResponse404 = { data: AsError; status: 404 };
|
|
598
|
+
|
|
599
|
+
export type deleteOrganisationUnitResponseSuccess = deleteOrganisationUnitResponse204 & {
|
|
600
|
+
headers: Headers;
|
|
601
|
+
};
|
|
602
|
+
export type deleteOrganisationUnitResponseError = (
|
|
603
|
+
| deleteOrganisationUnitResponse401
|
|
604
|
+
| deleteOrganisationUnitResponse403
|
|
605
|
+
| deleteOrganisationUnitResponse404
|
|
606
|
+
) & { headers: Headers };
|
|
607
|
+
|
|
608
|
+
export type deleteOrganisationUnitResponse =
|
|
609
|
+
| deleteOrganisationUnitResponseSuccess
|
|
610
|
+
| deleteOrganisationUnitResponseError;
|
|
611
|
+
|
|
612
|
+
export const getDeleteOrganisationUnitUrl = (unitId: string) => {
|
|
613
|
+
return `/unit/${unitId}`;
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
export const deleteOrganisationUnit = async (
|
|
617
|
+
unitId: string,
|
|
618
|
+
options?: RequestInit,
|
|
619
|
+
): Promise<deleteOrganisationUnitResponse> => {
|
|
620
|
+
return customFetch<deleteOrganisationUnitResponse>(getDeleteOrganisationUnitUrl(unitId), {
|
|
621
|
+
...options,
|
|
622
|
+
method: "DELETE",
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
export const getDeleteOrganisationUnitMutationOptions = <
|
|
627
|
+
TError = ErrorType<void | AsError>,
|
|
628
|
+
TContext = unknown,
|
|
629
|
+
>(options?: {
|
|
630
|
+
mutation?: UseMutationOptions<
|
|
631
|
+
Awaited<ReturnType<typeof deleteOrganisationUnit>>,
|
|
632
|
+
TError,
|
|
633
|
+
{ unitId: string },
|
|
634
|
+
TContext
|
|
635
|
+
>;
|
|
636
|
+
request?: SecondParameter<typeof customFetch>;
|
|
637
|
+
}): UseMutationOptions<
|
|
638
|
+
Awaited<ReturnType<typeof deleteOrganisationUnit>>,
|
|
639
|
+
TError,
|
|
640
|
+
{ unitId: string },
|
|
641
|
+
TContext
|
|
642
|
+
> => {
|
|
643
|
+
const mutationKey = ["deleteOrganisationUnit"];
|
|
644
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
645
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
646
|
+
? options
|
|
647
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
648
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
649
|
+
|
|
650
|
+
const mutationFn: MutationFunction<
|
|
651
|
+
Awaited<ReturnType<typeof deleteOrganisationUnit>>,
|
|
652
|
+
{ unitId: string }
|
|
653
|
+
> = (props) => {
|
|
654
|
+
const { unitId } = props ?? {};
|
|
655
|
+
|
|
656
|
+
return deleteOrganisationUnit(unitId, requestOptions);
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
return { mutationFn, ...mutationOptions };
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
export type DeleteOrganisationUnitMutationResult = NonNullable<
|
|
663
|
+
Awaited<ReturnType<typeof deleteOrganisationUnit>>
|
|
664
|
+
>;
|
|
665
|
+
|
|
666
|
+
export type DeleteOrganisationUnitMutationError = ErrorType<void | AsError>;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @summary Deletes an Organisational Unit
|
|
670
|
+
*/
|
|
671
|
+
export const useDeleteOrganisationUnit = <
|
|
672
|
+
TError = ErrorType<void | AsError>,
|
|
673
|
+
TContext = unknown,
|
|
674
|
+
>(options?: {
|
|
675
|
+
mutation?: UseMutationOptions<
|
|
676
|
+
Awaited<ReturnType<typeof deleteOrganisationUnit>>,
|
|
677
|
+
TError,
|
|
678
|
+
{ unitId: string },
|
|
679
|
+
TContext
|
|
680
|
+
>;
|
|
681
|
+
request?: SecondParameter<typeof customFetch>;
|
|
682
|
+
}): UseMutationResult<
|
|
683
|
+
Awaited<ReturnType<typeof deleteOrganisationUnit>>,
|
|
684
|
+
TError,
|
|
685
|
+
{ unitId: string },
|
|
686
|
+
TContext
|
|
687
|
+
> => {
|
|
688
|
+
const mutationOptions = getDeleteOrganisationUnitMutationOptions(options);
|
|
689
|
+
|
|
690
|
+
return useMutation(mutationOptions);
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* @summary Gets your Personal Unit (if you have one)
|
|
694
|
+
*/
|
|
695
|
+
export type getPersonalUnitResponse200 = { data: UnitAllDetail; status: 200 };
|
|
696
|
+
|
|
697
|
+
export type getPersonalUnitResponse401 = { data: void; status: 401 };
|
|
698
|
+
|
|
699
|
+
export type getPersonalUnitResponse403 = { data: AsError; status: 403 };
|
|
700
|
+
|
|
701
|
+
export type getPersonalUnitResponse404 = { data: AsError; status: 404 };
|
|
702
|
+
|
|
703
|
+
export type getPersonalUnitResponseSuccess = getPersonalUnitResponse200 & { headers: Headers };
|
|
704
|
+
export type getPersonalUnitResponseError = (
|
|
705
|
+
| getPersonalUnitResponse401
|
|
706
|
+
| getPersonalUnitResponse403
|
|
707
|
+
| getPersonalUnitResponse404
|
|
708
|
+
) & { headers: Headers };
|
|
709
|
+
|
|
710
|
+
export type getPersonalUnitResponse = getPersonalUnitResponseSuccess | getPersonalUnitResponseError;
|
|
711
|
+
|
|
712
|
+
export const getGetPersonalUnitUrl = () => {
|
|
713
|
+
return `/personal-unit`;
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
export const getPersonalUnit = async (options?: RequestInit): Promise<getPersonalUnitResponse> => {
|
|
717
|
+
return customFetch<getPersonalUnitResponse>(getGetPersonalUnitUrl(), {
|
|
718
|
+
...options,
|
|
719
|
+
method: "GET",
|
|
720
|
+
});
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
export const getGetPersonalUnitQueryKey = () => {
|
|
724
|
+
return ["account-server", "personal-unit"] as const;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
export const getGetPersonalUnitQueryOptions = <
|
|
728
|
+
TData = Awaited<ReturnType<typeof getPersonalUnit>>,
|
|
729
|
+
TError = ErrorType<void | AsError>,
|
|
730
|
+
>(options?: {
|
|
731
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getPersonalUnit>>, TError, TData>;
|
|
732
|
+
request?: SecondParameter<typeof customFetch>;
|
|
733
|
+
}) => {
|
|
734
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
735
|
+
|
|
736
|
+
const queryKey = queryOptions?.queryKey ?? getGetPersonalUnitQueryKey();
|
|
737
|
+
|
|
738
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getPersonalUnit>>> = ({ signal }) =>
|
|
739
|
+
getPersonalUnit({ signal, ...requestOptions });
|
|
740
|
+
|
|
741
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
742
|
+
Awaited<ReturnType<typeof getPersonalUnit>>,
|
|
743
|
+
TError,
|
|
744
|
+
TData
|
|
745
|
+
> & { queryKey: QueryKey };
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
export type GetPersonalUnitQueryResult = NonNullable<Awaited<ReturnType<typeof getPersonalUnit>>>;
|
|
749
|
+
export type GetPersonalUnitQueryError = ErrorType<void | AsError>;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* @summary Gets your Personal Unit (if you have one)
|
|
753
|
+
*/
|
|
754
|
+
|
|
755
|
+
export function useGetPersonalUnit<
|
|
756
|
+
TData = Awaited<ReturnType<typeof getPersonalUnit>>,
|
|
757
|
+
TError = ErrorType<void | AsError>,
|
|
758
|
+
>(options?: {
|
|
759
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getPersonalUnit>>, TError, TData>;
|
|
760
|
+
request?: SecondParameter<typeof customFetch>;
|
|
761
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
762
|
+
const queryOptions = getGetPersonalUnitQueryOptions(options);
|
|
763
|
+
|
|
764
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
765
|
+
|
|
766
|
+
query.queryKey = queryOptions.queryKey;
|
|
767
|
+
|
|
768
|
+
return query;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @summary Gets your Personal Unit (if you have one)
|
|
773
|
+
*/
|
|
774
|
+
export const invalidateGetPersonalUnit = async (
|
|
775
|
+
queryClient: QueryClient,
|
|
776
|
+
options?: InvalidateOptions,
|
|
777
|
+
): Promise<QueryClient> => {
|
|
778
|
+
await queryClient.invalidateQueries({ queryKey: getGetPersonalUnitQueryKey() }, options);
|
|
779
|
+
|
|
780
|
+
return queryClient;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
export const getGetPersonalUnitSuspenseQueryOptions = <
|
|
784
|
+
TData = Awaited<ReturnType<typeof getPersonalUnit>>,
|
|
785
|
+
TError = ErrorType<void | AsError>,
|
|
786
|
+
>(options?: {
|
|
787
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getPersonalUnit>>, TError, TData>;
|
|
788
|
+
request?: SecondParameter<typeof customFetch>;
|
|
789
|
+
}) => {
|
|
790
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
791
|
+
|
|
792
|
+
const queryKey = queryOptions?.queryKey ?? getGetPersonalUnitQueryKey();
|
|
793
|
+
|
|
794
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getPersonalUnit>>> = ({ signal }) =>
|
|
795
|
+
getPersonalUnit({ signal, ...requestOptions });
|
|
796
|
+
|
|
797
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
798
|
+
Awaited<ReturnType<typeof getPersonalUnit>>,
|
|
799
|
+
TError,
|
|
800
|
+
TData
|
|
801
|
+
> & { queryKey: QueryKey };
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
export type GetPersonalUnitSuspenseQueryResult = NonNullable<
|
|
805
|
+
Awaited<ReturnType<typeof getPersonalUnit>>
|
|
806
|
+
>;
|
|
807
|
+
export type GetPersonalUnitSuspenseQueryError = ErrorType<void | AsError>;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @summary Gets your Personal Unit (if you have one)
|
|
811
|
+
*/
|
|
812
|
+
|
|
813
|
+
export function useGetPersonalUnitSuspense<
|
|
814
|
+
TData = Awaited<ReturnType<typeof getPersonalUnit>>,
|
|
815
|
+
TError = ErrorType<void | AsError>,
|
|
816
|
+
>(options?: {
|
|
817
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getPersonalUnit>>, TError, TData>;
|
|
818
|
+
request?: SecondParameter<typeof customFetch>;
|
|
819
|
+
}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
820
|
+
const queryOptions = getGetPersonalUnitSuspenseQueryOptions(options);
|
|
821
|
+
|
|
822
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
823
|
+
queryKey: QueryKey;
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
query.queryKey = queryOptions.queryKey;
|
|
827
|
+
|
|
828
|
+
return query;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Creates a Personal Unit for a User. The unit will belong to the built-in **Default Organisation**.
|
|
833
|
+
|
|
834
|
+
Users can only create one Personal unit and you cannot add other Users to a Personal Unit.
|
|
835
|
+
|
|
836
|
+
* @summary Create a new Personal Unit
|
|
837
|
+
*/
|
|
838
|
+
export type createPersonalUnitResponse201 = { data: PersonalUnitPutResponse; status: 201 };
|
|
839
|
+
|
|
840
|
+
export type createPersonalUnitResponse400 = { data: AsError; status: 400 };
|
|
841
|
+
|
|
842
|
+
export type createPersonalUnitResponse401 = { data: void; status: 401 };
|
|
843
|
+
|
|
844
|
+
export type createPersonalUnitResponse403 = { data: AsError; status: 403 };
|
|
845
|
+
|
|
846
|
+
export type createPersonalUnitResponseSuccess = createPersonalUnitResponse201 & {
|
|
847
|
+
headers: Headers;
|
|
848
|
+
};
|
|
849
|
+
export type createPersonalUnitResponseError = (
|
|
850
|
+
| createPersonalUnitResponse400
|
|
851
|
+
| createPersonalUnitResponse401
|
|
852
|
+
| createPersonalUnitResponse403
|
|
853
|
+
) & { headers: Headers };
|
|
854
|
+
|
|
855
|
+
export type createPersonalUnitResponse =
|
|
856
|
+
| createPersonalUnitResponseSuccess
|
|
857
|
+
| createPersonalUnitResponseError;
|
|
858
|
+
|
|
859
|
+
export const getCreatePersonalUnitUrl = () => {
|
|
860
|
+
return `/personal-unit`;
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
export const createPersonalUnit = async (
|
|
864
|
+
personalUnitPutBodyBody: PersonalUnitPutBodyBody,
|
|
865
|
+
options?: RequestInit,
|
|
866
|
+
): Promise<createPersonalUnitResponse> => {
|
|
867
|
+
return customFetch<createPersonalUnitResponse>(getCreatePersonalUnitUrl(), {
|
|
868
|
+
...options,
|
|
869
|
+
method: "PUT",
|
|
870
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
871
|
+
body: JSON.stringify(personalUnitPutBodyBody),
|
|
872
|
+
});
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
export const getCreatePersonalUnitMutationOptions = <
|
|
876
|
+
TError = ErrorType<AsError | void>,
|
|
877
|
+
TContext = unknown,
|
|
878
|
+
>(options?: {
|
|
879
|
+
mutation?: UseMutationOptions<
|
|
880
|
+
Awaited<ReturnType<typeof createPersonalUnit>>,
|
|
881
|
+
TError,
|
|
882
|
+
{ data: PersonalUnitPutBodyBody },
|
|
883
|
+
TContext
|
|
884
|
+
>;
|
|
885
|
+
request?: SecondParameter<typeof customFetch>;
|
|
886
|
+
}): UseMutationOptions<
|
|
887
|
+
Awaited<ReturnType<typeof createPersonalUnit>>,
|
|
888
|
+
TError,
|
|
889
|
+
{ data: PersonalUnitPutBodyBody },
|
|
890
|
+
TContext
|
|
891
|
+
> => {
|
|
892
|
+
const mutationKey = ["createPersonalUnit"];
|
|
893
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
894
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
895
|
+
? options
|
|
896
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
897
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
898
|
+
|
|
899
|
+
const mutationFn: MutationFunction<
|
|
900
|
+
Awaited<ReturnType<typeof createPersonalUnit>>,
|
|
901
|
+
{ data: PersonalUnitPutBodyBody }
|
|
902
|
+
> = (props) => {
|
|
903
|
+
const { data } = props ?? {};
|
|
904
|
+
|
|
905
|
+
return createPersonalUnit(data, requestOptions);
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
return { mutationFn, ...mutationOptions };
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
export type CreatePersonalUnitMutationResult = NonNullable<
|
|
912
|
+
Awaited<ReturnType<typeof createPersonalUnit>>
|
|
913
|
+
>;
|
|
914
|
+
export type CreatePersonalUnitMutationBody = PersonalUnitPutBodyBody;
|
|
915
|
+
export type CreatePersonalUnitMutationError = ErrorType<AsError | void>;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* @summary Create a new Personal Unit
|
|
919
|
+
*/
|
|
920
|
+
export const useCreatePersonalUnit = <
|
|
921
|
+
TError = ErrorType<AsError | void>,
|
|
922
|
+
TContext = unknown,
|
|
923
|
+
>(options?: {
|
|
924
|
+
mutation?: UseMutationOptions<
|
|
925
|
+
Awaited<ReturnType<typeof createPersonalUnit>>,
|
|
926
|
+
TError,
|
|
927
|
+
{ data: PersonalUnitPutBodyBody },
|
|
928
|
+
TContext
|
|
929
|
+
>;
|
|
930
|
+
request?: SecondParameter<typeof customFetch>;
|
|
931
|
+
}): UseMutationResult<
|
|
932
|
+
Awaited<ReturnType<typeof createPersonalUnit>>,
|
|
933
|
+
TError,
|
|
934
|
+
{ data: PersonalUnitPutBodyBody },
|
|
935
|
+
TContext
|
|
936
|
+
> => {
|
|
937
|
+
const mutationOptions = getCreatePersonalUnitMutationOptions(options);
|
|
938
|
+
|
|
939
|
+
return useMutation(mutationOptions);
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* Deletes a Personal Unit. The Unit is *your* Unit, and belongs to the **Default Organisation**
|
|
943
|
+
|
|
944
|
+
* @summary Deletes a Personal Unit
|
|
945
|
+
*/
|
|
946
|
+
export type deletePersonalUnitResponse204 = { data: void; status: 204 };
|
|
947
|
+
|
|
948
|
+
export type deletePersonalUnitResponse401 = { data: void; status: 401 };
|
|
949
|
+
|
|
950
|
+
export type deletePersonalUnitResponse403 = { data: AsError; status: 403 };
|
|
951
|
+
|
|
952
|
+
export type deletePersonalUnitResponse404 = { data: AsError; status: 404 };
|
|
953
|
+
|
|
954
|
+
export type deletePersonalUnitResponseSuccess = deletePersonalUnitResponse204 & {
|
|
955
|
+
headers: Headers;
|
|
956
|
+
};
|
|
957
|
+
export type deletePersonalUnitResponseError = (
|
|
958
|
+
| deletePersonalUnitResponse401
|
|
959
|
+
| deletePersonalUnitResponse403
|
|
960
|
+
| deletePersonalUnitResponse404
|
|
961
|
+
) & { headers: Headers };
|
|
962
|
+
|
|
963
|
+
export type deletePersonalUnitResponse =
|
|
964
|
+
| deletePersonalUnitResponseSuccess
|
|
965
|
+
| deletePersonalUnitResponseError;
|
|
966
|
+
|
|
967
|
+
export const getDeletePersonalUnitUrl = () => {
|
|
968
|
+
return `/personal-unit`;
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
export const deletePersonalUnit = async (
|
|
972
|
+
options?: RequestInit,
|
|
973
|
+
): Promise<deletePersonalUnitResponse> => {
|
|
974
|
+
return customFetch<deletePersonalUnitResponse>(getDeletePersonalUnitUrl(), {
|
|
975
|
+
...options,
|
|
976
|
+
method: "DELETE",
|
|
977
|
+
});
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
export const getDeletePersonalUnitMutationOptions = <
|
|
981
|
+
TError = ErrorType<void | AsError>,
|
|
982
|
+
TContext = unknown,
|
|
983
|
+
>(options?: {
|
|
984
|
+
mutation?: UseMutationOptions<
|
|
985
|
+
Awaited<ReturnType<typeof deletePersonalUnit>>,
|
|
986
|
+
TError,
|
|
987
|
+
void,
|
|
988
|
+
TContext
|
|
989
|
+
>;
|
|
990
|
+
request?: SecondParameter<typeof customFetch>;
|
|
991
|
+
}): UseMutationOptions<Awaited<ReturnType<typeof deletePersonalUnit>>, TError, void, TContext> => {
|
|
992
|
+
const mutationKey = ["deletePersonalUnit"];
|
|
993
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
994
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
995
|
+
? options
|
|
996
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
997
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
998
|
+
|
|
999
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof deletePersonalUnit>>, void> = () => {
|
|
1000
|
+
return deletePersonalUnit(requestOptions);
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
return { mutationFn, ...mutationOptions };
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
export type DeletePersonalUnitMutationResult = NonNullable<
|
|
1007
|
+
Awaited<ReturnType<typeof deletePersonalUnit>>
|
|
1008
|
+
>;
|
|
1009
|
+
|
|
1010
|
+
export type DeletePersonalUnitMutationError = ErrorType<void | AsError>;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* @summary Deletes a Personal Unit
|
|
1014
|
+
*/
|
|
1015
|
+
export const useDeletePersonalUnit = <
|
|
1016
|
+
TError = ErrorType<void | AsError>,
|
|
1017
|
+
TContext = unknown,
|
|
1018
|
+
>(options?: {
|
|
1019
|
+
mutation?: UseMutationOptions<
|
|
1020
|
+
Awaited<ReturnType<typeof deletePersonalUnit>>,
|
|
1021
|
+
TError,
|
|
1022
|
+
void,
|
|
1023
|
+
TContext
|
|
1024
|
+
>;
|
|
1025
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1026
|
+
}): UseMutationResult<Awaited<ReturnType<typeof deletePersonalUnit>>, TError, void, TContext> => {
|
|
1027
|
+
const mutationOptions = getDeletePersonalUnitMutationOptions(options);
|
|
1028
|
+
|
|
1029
|
+
return useMutation(mutationOptions);
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* Gets all the Units that you are a member of, or a specific Unit by name.
|
|
1033
|
+
|
|
1034
|
+
You can see a Unit if you are a member of it, the owner (creator) of it, or a member or creator of the Unit's Organisation, or if you are an admin user.
|
|
1035
|
+
|
|
1036
|
+
* @summary Gets Units
|
|
1037
|
+
*/
|
|
1038
|
+
export type getUnitsResponse200 = { data: UnitsGetResponse; status: 200 };
|
|
1039
|
+
|
|
1040
|
+
export type getUnitsResponse401 = { data: void; status: 401 };
|
|
1041
|
+
|
|
1042
|
+
export type getUnitsResponse403 = { data: AsError; status: 403 };
|
|
1043
|
+
|
|
1044
|
+
export type getUnitsResponse404 = { data: AsError; status: 404 };
|
|
1045
|
+
|
|
1046
|
+
export type getUnitsResponseSuccess = getUnitsResponse200 & { headers: Headers };
|
|
1047
|
+
export type getUnitsResponseError = (
|
|
1048
|
+
| getUnitsResponse401
|
|
1049
|
+
| getUnitsResponse403
|
|
1050
|
+
| getUnitsResponse404
|
|
1051
|
+
) & { headers: Headers };
|
|
1052
|
+
|
|
1053
|
+
export type getUnitsResponse = getUnitsResponseSuccess | getUnitsResponseError;
|
|
1054
|
+
|
|
1055
|
+
export const getGetUnitsUrl = (params?: GetUnitsParams) => {
|
|
1056
|
+
const normalizedParams = new URLSearchParams();
|
|
1057
|
+
|
|
1058
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1059
|
+
if (value !== undefined) {
|
|
1060
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
|
|
1064
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1065
|
+
|
|
1066
|
+
return stringifiedParams.length > 0 ? `/unit?${stringifiedParams}` : `/unit`;
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
export const getUnits = async (
|
|
1070
|
+
params?: GetUnitsParams,
|
|
1071
|
+
options?: RequestInit,
|
|
1072
|
+
): Promise<getUnitsResponse> => {
|
|
1073
|
+
return customFetch<getUnitsResponse>(getGetUnitsUrl(params), { ...options, method: "GET" });
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
export const getGetUnitsQueryKey = (params?: GetUnitsParams) => {
|
|
1077
|
+
return ["account-server", "unit", ...(params ? [params] : [])] as const;
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
export const getGetUnitsQueryOptions = <
|
|
1081
|
+
TData = Awaited<ReturnType<typeof getUnits>>,
|
|
1082
|
+
TError = ErrorType<void | AsError>,
|
|
1083
|
+
>(
|
|
1084
|
+
params?: GetUnitsParams,
|
|
1085
|
+
options?: {
|
|
1086
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUnits>>, TError, TData>;
|
|
1087
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1088
|
+
},
|
|
1089
|
+
) => {
|
|
1090
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1091
|
+
|
|
1092
|
+
const queryKey = queryOptions?.queryKey ?? getGetUnitsQueryKey(params);
|
|
1093
|
+
|
|
1094
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUnits>>> = ({ signal }) =>
|
|
1095
|
+
getUnits(params, { signal, ...requestOptions });
|
|
1096
|
+
|
|
1097
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
1098
|
+
Awaited<ReturnType<typeof getUnits>>,
|
|
1099
|
+
TError,
|
|
1100
|
+
TData
|
|
1101
|
+
> & { queryKey: QueryKey };
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
export type GetUnitsQueryResult = NonNullable<Awaited<ReturnType<typeof getUnits>>>;
|
|
1105
|
+
export type GetUnitsQueryError = ErrorType<void | AsError>;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* @summary Gets Units
|
|
1109
|
+
*/
|
|
1110
|
+
|
|
1111
|
+
export function useGetUnits<
|
|
1112
|
+
TData = Awaited<ReturnType<typeof getUnits>>,
|
|
1113
|
+
TError = ErrorType<void | AsError>,
|
|
1114
|
+
>(
|
|
1115
|
+
params?: GetUnitsParams,
|
|
1116
|
+
options?: {
|
|
1117
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUnits>>, TError, TData>;
|
|
1118
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1119
|
+
},
|
|
1120
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
1121
|
+
const queryOptions = getGetUnitsQueryOptions(params, options);
|
|
1122
|
+
|
|
1123
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
1124
|
+
|
|
1125
|
+
query.queryKey = queryOptions.queryKey;
|
|
1126
|
+
|
|
1127
|
+
return query;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* @summary Gets Units
|
|
1132
|
+
*/
|
|
1133
|
+
export const invalidateGetUnits = async (
|
|
1134
|
+
queryClient: QueryClient,
|
|
1135
|
+
params?: GetUnitsParams,
|
|
1136
|
+
options?: InvalidateOptions,
|
|
1137
|
+
): Promise<QueryClient> => {
|
|
1138
|
+
await queryClient.invalidateQueries({ queryKey: getGetUnitsQueryKey(params) }, options);
|
|
1139
|
+
|
|
1140
|
+
return queryClient;
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
export const getGetUnitsSuspenseQueryOptions = <
|
|
1144
|
+
TData = Awaited<ReturnType<typeof getUnits>>,
|
|
1145
|
+
TError = ErrorType<void | AsError>,
|
|
1146
|
+
>(
|
|
1147
|
+
params?: GetUnitsParams,
|
|
1148
|
+
options?: {
|
|
1149
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnits>>, TError, TData>;
|
|
1150
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1151
|
+
},
|
|
1152
|
+
) => {
|
|
1153
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1154
|
+
|
|
1155
|
+
const queryKey = queryOptions?.queryKey ?? getGetUnitsQueryKey(params);
|
|
1156
|
+
|
|
1157
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUnits>>> = ({ signal }) =>
|
|
1158
|
+
getUnits(params, { signal, ...requestOptions });
|
|
1159
|
+
|
|
1160
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
1161
|
+
Awaited<ReturnType<typeof getUnits>>,
|
|
1162
|
+
TError,
|
|
1163
|
+
TData
|
|
1164
|
+
> & { queryKey: QueryKey };
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
export type GetUnitsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUnits>>>;
|
|
1168
|
+
export type GetUnitsSuspenseQueryError = ErrorType<void | AsError>;
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* @summary Gets Units
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
export function useGetUnitsSuspense<
|
|
1175
|
+
TData = Awaited<ReturnType<typeof getUnits>>,
|
|
1176
|
+
TError = ErrorType<void | AsError>,
|
|
1177
|
+
>(
|
|
1178
|
+
params?: GetUnitsParams,
|
|
1179
|
+
options?: {
|
|
1180
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnits>>, TError, TData>;
|
|
1181
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1182
|
+
},
|
|
1183
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
1184
|
+
const queryOptions = getGetUnitsSuspenseQueryOptions(params, options);
|
|
1185
|
+
|
|
1186
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
1187
|
+
queryKey: QueryKey;
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
query.queryKey = queryOptions.queryKey;
|
|
1191
|
+
|
|
1192
|
+
return query;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Creates a Personal Unit for a User. The unit will belong to the built-in **Default Organisation**.
|
|
1197
|
+
|
|
1198
|
+
Users can only create one Personal unit and you cannot add other Users to a Personal Unit.
|
|
1199
|
+
|
|
1200
|
+
This endpoint is DECREMENTED and will be removed in a future release. Please use **PUT** at `/personal-unit`.
|
|
1201
|
+
|
|
1202
|
+
* @summary Create a new Personal Unit
|
|
1203
|
+
*/
|
|
1204
|
+
export type createDefaultUnitResponse201 = { data: PersonalUnitPutResponse; status: 201 };
|
|
1205
|
+
|
|
1206
|
+
export type createDefaultUnitResponse400 = { data: AsError; status: 400 };
|
|
1207
|
+
|
|
1208
|
+
export type createDefaultUnitResponse401 = { data: void; status: 401 };
|
|
1209
|
+
|
|
1210
|
+
export type createDefaultUnitResponse403 = { data: AsError; status: 403 };
|
|
1211
|
+
|
|
1212
|
+
export type createDefaultUnitResponseSuccess = createDefaultUnitResponse201 & { headers: Headers };
|
|
1213
|
+
export type createDefaultUnitResponseError = (
|
|
1214
|
+
| createDefaultUnitResponse400
|
|
1215
|
+
| createDefaultUnitResponse401
|
|
1216
|
+
| createDefaultUnitResponse403
|
|
1217
|
+
) & { headers: Headers };
|
|
1218
|
+
|
|
1219
|
+
export type createDefaultUnitResponse =
|
|
1220
|
+
| createDefaultUnitResponseSuccess
|
|
1221
|
+
| createDefaultUnitResponseError;
|
|
1222
|
+
|
|
1223
|
+
export const getCreateDefaultUnitUrl = () => {
|
|
1224
|
+
return `/unit`;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
export const createDefaultUnit = async (
|
|
1228
|
+
personalUnitPutBodyBody: PersonalUnitPutBodyBody,
|
|
1229
|
+
options?: RequestInit,
|
|
1230
|
+
): Promise<createDefaultUnitResponse> => {
|
|
1231
|
+
return customFetch<createDefaultUnitResponse>(getCreateDefaultUnitUrl(), {
|
|
1232
|
+
...options,
|
|
1233
|
+
method: "PUT",
|
|
1234
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1235
|
+
body: JSON.stringify(personalUnitPutBodyBody),
|
|
1236
|
+
});
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
export const getCreateDefaultUnitMutationOptions = <
|
|
1240
|
+
TError = ErrorType<AsError | void>,
|
|
1241
|
+
TContext = unknown,
|
|
1242
|
+
>(options?: {
|
|
1243
|
+
mutation?: UseMutationOptions<
|
|
1244
|
+
Awaited<ReturnType<typeof createDefaultUnit>>,
|
|
1245
|
+
TError,
|
|
1246
|
+
{ data: PersonalUnitPutBodyBody },
|
|
1247
|
+
TContext
|
|
1248
|
+
>;
|
|
1249
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1250
|
+
}): UseMutationOptions<
|
|
1251
|
+
Awaited<ReturnType<typeof createDefaultUnit>>,
|
|
1252
|
+
TError,
|
|
1253
|
+
{ data: PersonalUnitPutBodyBody },
|
|
1254
|
+
TContext
|
|
1255
|
+
> => {
|
|
1256
|
+
const mutationKey = ["createDefaultUnit"];
|
|
1257
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1258
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1259
|
+
? options
|
|
1260
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1261
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1262
|
+
|
|
1263
|
+
const mutationFn: MutationFunction<
|
|
1264
|
+
Awaited<ReturnType<typeof createDefaultUnit>>,
|
|
1265
|
+
{ data: PersonalUnitPutBodyBody }
|
|
1266
|
+
> = (props) => {
|
|
1267
|
+
const { data } = props ?? {};
|
|
1268
|
+
|
|
1269
|
+
return createDefaultUnit(data, requestOptions);
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
return { mutationFn, ...mutationOptions };
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
export type CreateDefaultUnitMutationResult = NonNullable<
|
|
1276
|
+
Awaited<ReturnType<typeof createDefaultUnit>>
|
|
1277
|
+
>;
|
|
1278
|
+
export type CreateDefaultUnitMutationBody = PersonalUnitPutBodyBody;
|
|
1279
|
+
export type CreateDefaultUnitMutationError = ErrorType<AsError | void>;
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* @summary Create a new Personal Unit
|
|
1283
|
+
*/
|
|
1284
|
+
export const useCreateDefaultUnit = <
|
|
1285
|
+
TError = ErrorType<AsError | void>,
|
|
1286
|
+
TContext = unknown,
|
|
1287
|
+
>(options?: {
|
|
1288
|
+
mutation?: UseMutationOptions<
|
|
1289
|
+
Awaited<ReturnType<typeof createDefaultUnit>>,
|
|
1290
|
+
TError,
|
|
1291
|
+
{ data: PersonalUnitPutBodyBody },
|
|
1292
|
+
TContext
|
|
1293
|
+
>;
|
|
1294
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1295
|
+
}): UseMutationResult<
|
|
1296
|
+
Awaited<ReturnType<typeof createDefaultUnit>>,
|
|
1297
|
+
TError,
|
|
1298
|
+
{ data: PersonalUnitPutBodyBody },
|
|
1299
|
+
TContext
|
|
1300
|
+
> => {
|
|
1301
|
+
const mutationOptions = getCreateDefaultUnitMutationOptions(options);
|
|
1302
|
+
|
|
1303
|
+
return useMutation(mutationOptions);
|
|
1304
|
+
};
|
|
1305
|
+
/**
|
|
1306
|
+
* Deletes a Personal Unit. The Unit is *your* Unit, and belongs to the **Default Organisation**
|
|
1307
|
+
|
|
1308
|
+
This endpoint is DECREMENTED and will be removed in a future release. Please use **DELETE** at `/personal-unit`.
|
|
1309
|
+
|
|
1310
|
+
* @summary Deletes a Personal Unit
|
|
1311
|
+
*/
|
|
1312
|
+
export type deleteDefaultUnitResponse204 = { data: void; status: 204 };
|
|
1313
|
+
|
|
1314
|
+
export type deleteDefaultUnitResponse401 = { data: void; status: 401 };
|
|
1315
|
+
|
|
1316
|
+
export type deleteDefaultUnitResponse403 = { data: AsError; status: 403 };
|
|
1317
|
+
|
|
1318
|
+
export type deleteDefaultUnitResponse404 = { data: AsError; status: 404 };
|
|
1319
|
+
|
|
1320
|
+
export type deleteDefaultUnitResponseSuccess = deleteDefaultUnitResponse204 & { headers: Headers };
|
|
1321
|
+
export type deleteDefaultUnitResponseError = (
|
|
1322
|
+
| deleteDefaultUnitResponse401
|
|
1323
|
+
| deleteDefaultUnitResponse403
|
|
1324
|
+
| deleteDefaultUnitResponse404
|
|
1325
|
+
) & { headers: Headers };
|
|
1326
|
+
|
|
1327
|
+
export type deleteDefaultUnitResponse =
|
|
1328
|
+
| deleteDefaultUnitResponseSuccess
|
|
1329
|
+
| deleteDefaultUnitResponseError;
|
|
1330
|
+
|
|
1331
|
+
export const getDeleteDefaultUnitUrl = () => {
|
|
1332
|
+
return `/unit`;
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
export const deleteDefaultUnit = async (
|
|
1336
|
+
options?: RequestInit,
|
|
1337
|
+
): Promise<deleteDefaultUnitResponse> => {
|
|
1338
|
+
return customFetch<deleteDefaultUnitResponse>(getDeleteDefaultUnitUrl(), {
|
|
1339
|
+
...options,
|
|
1340
|
+
method: "DELETE",
|
|
1341
|
+
});
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
export const getDeleteDefaultUnitMutationOptions = <
|
|
1345
|
+
TError = ErrorType<void | AsError>,
|
|
1346
|
+
TContext = unknown,
|
|
1347
|
+
>(options?: {
|
|
1348
|
+
mutation?: UseMutationOptions<
|
|
1349
|
+
Awaited<ReturnType<typeof deleteDefaultUnit>>,
|
|
1350
|
+
TError,
|
|
1351
|
+
void,
|
|
1352
|
+
TContext
|
|
1353
|
+
>;
|
|
1354
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1355
|
+
}): UseMutationOptions<Awaited<ReturnType<typeof deleteDefaultUnit>>, TError, void, TContext> => {
|
|
1356
|
+
const mutationKey = ["deleteDefaultUnit"];
|
|
1357
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1358
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1359
|
+
? options
|
|
1360
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1361
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1362
|
+
|
|
1363
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteDefaultUnit>>, void> = () => {
|
|
1364
|
+
return deleteDefaultUnit(requestOptions);
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
return { mutationFn, ...mutationOptions };
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
export type DeleteDefaultUnitMutationResult = NonNullable<
|
|
1371
|
+
Awaited<ReturnType<typeof deleteDefaultUnit>>
|
|
1372
|
+
>;
|
|
1373
|
+
|
|
1374
|
+
export type DeleteDefaultUnitMutationError = ErrorType<void | AsError>;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* @summary Deletes a Personal Unit
|
|
1378
|
+
*/
|
|
1379
|
+
export const useDeleteDefaultUnit = <
|
|
1380
|
+
TError = ErrorType<void | AsError>,
|
|
1381
|
+
TContext = unknown,
|
|
1382
|
+
>(options?: {
|
|
1383
|
+
mutation?: UseMutationOptions<
|
|
1384
|
+
Awaited<ReturnType<typeof deleteDefaultUnit>>,
|
|
1385
|
+
TError,
|
|
1386
|
+
void,
|
|
1387
|
+
TContext
|
|
1388
|
+
>;
|
|
1389
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1390
|
+
}): UseMutationResult<Awaited<ReturnType<typeof deleteDefaultUnit>>, TError, void, TContext> => {
|
|
1391
|
+
const mutationOptions = getDeleteDefaultUnitMutationOptions(options);
|
|
1392
|
+
|
|
1393
|
+
return useMutation(mutationOptions);
|
|
1394
|
+
};
|