@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,1292 @@
|
|
|
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
|
+
ProductPatchBodyBody,
|
|
29
|
+
ProductUnitGetResponse,
|
|
30
|
+
ProductsGetDefaultStorageCost,
|
|
31
|
+
ProductsGetResponse,
|
|
32
|
+
ProductsGetTypesResponse,
|
|
33
|
+
UnitProductPostBodyBody,
|
|
34
|
+
UnitProductPostResponse,
|
|
35
|
+
} from ".././api-schemas";
|
|
36
|
+
|
|
37
|
+
import { customFetch } from "../../custom-fetch";
|
|
38
|
+
import type { ErrorType } from "../../custom-fetch";
|
|
39
|
+
|
|
40
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Gets Product Types you can purchase (subscribe to)
|
|
44
|
+
|
|
45
|
+
* @summary Gets all Product Types
|
|
46
|
+
*/
|
|
47
|
+
export type getProductTypesResponse200 = { data: ProductsGetTypesResponse; status: 200 };
|
|
48
|
+
|
|
49
|
+
export type getProductTypesResponse400 = { data: AsError; status: 400 };
|
|
50
|
+
|
|
51
|
+
export type getProductTypesResponse401 = { data: void; status: 401 };
|
|
52
|
+
|
|
53
|
+
export type getProductTypesResponse403 = { data: AsError; status: 403 };
|
|
54
|
+
|
|
55
|
+
export type getProductTypesResponseSuccess = getProductTypesResponse200 & { headers: Headers };
|
|
56
|
+
export type getProductTypesResponseError = (
|
|
57
|
+
| getProductTypesResponse400
|
|
58
|
+
| getProductTypesResponse401
|
|
59
|
+
| getProductTypesResponse403
|
|
60
|
+
) & { headers: Headers };
|
|
61
|
+
|
|
62
|
+
export type getProductTypesResponse = getProductTypesResponseSuccess | getProductTypesResponseError;
|
|
63
|
+
|
|
64
|
+
export const getGetProductTypesUrl = () => {
|
|
65
|
+
return `/product-type`;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const getProductTypes = async (options?: RequestInit): Promise<getProductTypesResponse> => {
|
|
69
|
+
return customFetch<getProductTypesResponse>(getGetProductTypesUrl(), {
|
|
70
|
+
...options,
|
|
71
|
+
method: "GET",
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const getGetProductTypesQueryKey = () => {
|
|
76
|
+
return ["account-server", "product-type"] as const;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const getGetProductTypesQueryOptions = <
|
|
80
|
+
TData = Awaited<ReturnType<typeof getProductTypes>>,
|
|
81
|
+
TError = ErrorType<AsError | void>,
|
|
82
|
+
>(options?: {
|
|
83
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
|
|
84
|
+
request?: SecondParameter<typeof customFetch>;
|
|
85
|
+
}) => {
|
|
86
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
87
|
+
|
|
88
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductTypesQueryKey();
|
|
89
|
+
|
|
90
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductTypes>>> = ({ signal }) =>
|
|
91
|
+
getProductTypes({ signal, ...requestOptions });
|
|
92
|
+
|
|
93
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
94
|
+
Awaited<ReturnType<typeof getProductTypes>>,
|
|
95
|
+
TError,
|
|
96
|
+
TData
|
|
97
|
+
> & { queryKey: QueryKey };
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type GetProductTypesQueryResult = NonNullable<Awaited<ReturnType<typeof getProductTypes>>>;
|
|
101
|
+
export type GetProductTypesQueryError = ErrorType<AsError | void>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @summary Gets all Product Types
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
export function useGetProductTypes<
|
|
108
|
+
TData = Awaited<ReturnType<typeof getProductTypes>>,
|
|
109
|
+
TError = ErrorType<AsError | void>,
|
|
110
|
+
>(options?: {
|
|
111
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
|
|
112
|
+
request?: SecondParameter<typeof customFetch>;
|
|
113
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
114
|
+
const queryOptions = getGetProductTypesQueryOptions(options);
|
|
115
|
+
|
|
116
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
117
|
+
|
|
118
|
+
query.queryKey = queryOptions.queryKey;
|
|
119
|
+
|
|
120
|
+
return query;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @summary Gets all Product Types
|
|
125
|
+
*/
|
|
126
|
+
export const invalidateGetProductTypes = async (
|
|
127
|
+
queryClient: QueryClient,
|
|
128
|
+
options?: InvalidateOptions,
|
|
129
|
+
): Promise<QueryClient> => {
|
|
130
|
+
await queryClient.invalidateQueries({ queryKey: getGetProductTypesQueryKey() }, options);
|
|
131
|
+
|
|
132
|
+
return queryClient;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export const getGetProductTypesSuspenseQueryOptions = <
|
|
136
|
+
TData = Awaited<ReturnType<typeof getProductTypes>>,
|
|
137
|
+
TError = ErrorType<AsError | void>,
|
|
138
|
+
>(options?: {
|
|
139
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
|
|
140
|
+
request?: SecondParameter<typeof customFetch>;
|
|
141
|
+
}) => {
|
|
142
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
143
|
+
|
|
144
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductTypesQueryKey();
|
|
145
|
+
|
|
146
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductTypes>>> = ({ signal }) =>
|
|
147
|
+
getProductTypes({ signal, ...requestOptions });
|
|
148
|
+
|
|
149
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
150
|
+
Awaited<ReturnType<typeof getProductTypes>>,
|
|
151
|
+
TError,
|
|
152
|
+
TData
|
|
153
|
+
> & { queryKey: QueryKey };
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export type GetProductTypesSuspenseQueryResult = NonNullable<
|
|
157
|
+
Awaited<ReturnType<typeof getProductTypes>>
|
|
158
|
+
>;
|
|
159
|
+
export type GetProductTypesSuspenseQueryError = ErrorType<AsError | void>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @summary Gets all Product Types
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
export function useGetProductTypesSuspense<
|
|
166
|
+
TData = Awaited<ReturnType<typeof getProductTypes>>,
|
|
167
|
+
TError = ErrorType<AsError | void>,
|
|
168
|
+
>(options?: {
|
|
169
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
|
|
170
|
+
request?: SecondParameter<typeof customFetch>;
|
|
171
|
+
}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
172
|
+
const queryOptions = getGetProductTypesSuspenseQueryOptions(options);
|
|
173
|
+
|
|
174
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
175
|
+
queryKey: QueryKey;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
query.queryKey = queryOptions.queryKey;
|
|
179
|
+
|
|
180
|
+
return query;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The storage cost is returned along with its measurement units, typically a Coin value based on the the peak storage that was measured on each billable day.
|
|
185
|
+
|
|
186
|
+
* @summary Gets the default cross-product storage cost
|
|
187
|
+
*/
|
|
188
|
+
export type getProductDefaultStorageCostResponse200 = {
|
|
189
|
+
data: ProductsGetDefaultStorageCost;
|
|
190
|
+
status: 200;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export type getProductDefaultStorageCostResponse400 = { data: AsError; status: 400 };
|
|
194
|
+
|
|
195
|
+
export type getProductDefaultStorageCostResponse401 = { data: void; status: 401 };
|
|
196
|
+
|
|
197
|
+
export type getProductDefaultStorageCostResponse403 = { data: AsError; status: 403 };
|
|
198
|
+
|
|
199
|
+
export type getProductDefaultStorageCostResponseSuccess =
|
|
200
|
+
getProductDefaultStorageCostResponse200 & { headers: Headers };
|
|
201
|
+
export type getProductDefaultStorageCostResponseError = (
|
|
202
|
+
| getProductDefaultStorageCostResponse400
|
|
203
|
+
| getProductDefaultStorageCostResponse401
|
|
204
|
+
| getProductDefaultStorageCostResponse403
|
|
205
|
+
) & { headers: Headers };
|
|
206
|
+
|
|
207
|
+
export type getProductDefaultStorageCostResponse =
|
|
208
|
+
| getProductDefaultStorageCostResponseSuccess
|
|
209
|
+
| getProductDefaultStorageCostResponseError;
|
|
210
|
+
|
|
211
|
+
export const getGetProductDefaultStorageCostUrl = () => {
|
|
212
|
+
return `/product-default-storage-cost`;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export const getProductDefaultStorageCost = async (
|
|
216
|
+
options?: RequestInit,
|
|
217
|
+
): Promise<getProductDefaultStorageCostResponse> => {
|
|
218
|
+
return customFetch<getProductDefaultStorageCostResponse>(getGetProductDefaultStorageCostUrl(), {
|
|
219
|
+
...options,
|
|
220
|
+
method: "GET",
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export const getGetProductDefaultStorageCostQueryKey = () => {
|
|
225
|
+
return ["account-server", "product-default-storage-cost"] as const;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
export const getGetProductDefaultStorageCostQueryOptions = <
|
|
229
|
+
TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
230
|
+
TError = ErrorType<AsError | void>,
|
|
231
|
+
>(options?: {
|
|
232
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>;
|
|
233
|
+
request?: SecondParameter<typeof customFetch>;
|
|
234
|
+
}) => {
|
|
235
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
236
|
+
|
|
237
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductDefaultStorageCostQueryKey();
|
|
238
|
+
|
|
239
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductDefaultStorageCost>>> = ({
|
|
240
|
+
signal,
|
|
241
|
+
}) => getProductDefaultStorageCost({ signal, ...requestOptions });
|
|
242
|
+
|
|
243
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
244
|
+
Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
245
|
+
TError,
|
|
246
|
+
TData
|
|
247
|
+
> & { queryKey: QueryKey };
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export type GetProductDefaultStorageCostQueryResult = NonNullable<
|
|
251
|
+
Awaited<ReturnType<typeof getProductDefaultStorageCost>>
|
|
252
|
+
>;
|
|
253
|
+
export type GetProductDefaultStorageCostQueryError = ErrorType<AsError | void>;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @summary Gets the default cross-product storage cost
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
export function useGetProductDefaultStorageCost<
|
|
260
|
+
TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
261
|
+
TError = ErrorType<AsError | void>,
|
|
262
|
+
>(options?: {
|
|
263
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>;
|
|
264
|
+
request?: SecondParameter<typeof customFetch>;
|
|
265
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
266
|
+
const queryOptions = getGetProductDefaultStorageCostQueryOptions(options);
|
|
267
|
+
|
|
268
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
269
|
+
|
|
270
|
+
query.queryKey = queryOptions.queryKey;
|
|
271
|
+
|
|
272
|
+
return query;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @summary Gets the default cross-product storage cost
|
|
277
|
+
*/
|
|
278
|
+
export const invalidateGetProductDefaultStorageCost = async (
|
|
279
|
+
queryClient: QueryClient,
|
|
280
|
+
options?: InvalidateOptions,
|
|
281
|
+
): Promise<QueryClient> => {
|
|
282
|
+
await queryClient.invalidateQueries(
|
|
283
|
+
{ queryKey: getGetProductDefaultStorageCostQueryKey() },
|
|
284
|
+
options,
|
|
285
|
+
);
|
|
286
|
+
|
|
287
|
+
return queryClient;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export const getGetProductDefaultStorageCostSuspenseQueryOptions = <
|
|
291
|
+
TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
292
|
+
TError = ErrorType<AsError | void>,
|
|
293
|
+
>(options?: {
|
|
294
|
+
query?: UseSuspenseQueryOptions<
|
|
295
|
+
Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
296
|
+
TError,
|
|
297
|
+
TData
|
|
298
|
+
>;
|
|
299
|
+
request?: SecondParameter<typeof customFetch>;
|
|
300
|
+
}) => {
|
|
301
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
302
|
+
|
|
303
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductDefaultStorageCostQueryKey();
|
|
304
|
+
|
|
305
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductDefaultStorageCost>>> = ({
|
|
306
|
+
signal,
|
|
307
|
+
}) => getProductDefaultStorageCost({ signal, ...requestOptions });
|
|
308
|
+
|
|
309
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
310
|
+
Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
311
|
+
TError,
|
|
312
|
+
TData
|
|
313
|
+
> & { queryKey: QueryKey };
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export type GetProductDefaultStorageCostSuspenseQueryResult = NonNullable<
|
|
317
|
+
Awaited<ReturnType<typeof getProductDefaultStorageCost>>
|
|
318
|
+
>;
|
|
319
|
+
export type GetProductDefaultStorageCostSuspenseQueryError = ErrorType<AsError | void>;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @summary Gets the default cross-product storage cost
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
export function useGetProductDefaultStorageCostSuspense<
|
|
326
|
+
TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
327
|
+
TError = ErrorType<AsError | void>,
|
|
328
|
+
>(options?: {
|
|
329
|
+
query?: UseSuspenseQueryOptions<
|
|
330
|
+
Awaited<ReturnType<typeof getProductDefaultStorageCost>>,
|
|
331
|
+
TError,
|
|
332
|
+
TData
|
|
333
|
+
>;
|
|
334
|
+
request?: SecondParameter<typeof customFetch>;
|
|
335
|
+
}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
336
|
+
const queryOptions = getGetProductDefaultStorageCostSuspenseQueryOptions(options);
|
|
337
|
+
|
|
338
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
339
|
+
queryKey: QueryKey;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
query.queryKey = queryOptions.queryKey;
|
|
343
|
+
|
|
344
|
+
return query;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Gets Products you have access to, across all **Units** and **Organisations**
|
|
349
|
+
|
|
350
|
+
* @summary Gets all Products
|
|
351
|
+
*/
|
|
352
|
+
export type getProductsResponse200 = { data: ProductsGetResponse; status: 200 };
|
|
353
|
+
|
|
354
|
+
export type getProductsResponse400 = { data: AsError; status: 400 };
|
|
355
|
+
|
|
356
|
+
export type getProductsResponse401 = { data: void; status: 401 };
|
|
357
|
+
|
|
358
|
+
export type getProductsResponse403 = { data: AsError; status: 403 };
|
|
359
|
+
|
|
360
|
+
export type getProductsResponseSuccess = getProductsResponse200 & { headers: Headers };
|
|
361
|
+
export type getProductsResponseError = (
|
|
362
|
+
| getProductsResponse400
|
|
363
|
+
| getProductsResponse401
|
|
364
|
+
| getProductsResponse403
|
|
365
|
+
) & { headers: Headers };
|
|
366
|
+
|
|
367
|
+
export type getProductsResponse = getProductsResponseSuccess | getProductsResponseError;
|
|
368
|
+
|
|
369
|
+
export const getGetProductsUrl = () => {
|
|
370
|
+
return `/product`;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
export const getProducts = async (options?: RequestInit): Promise<getProductsResponse> => {
|
|
374
|
+
return customFetch<getProductsResponse>(getGetProductsUrl(), { ...options, method: "GET" });
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export const getGetProductsQueryKey = () => {
|
|
378
|
+
return ["account-server", "product"] as const;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
export const getGetProductsQueryOptions = <
|
|
382
|
+
TData = Awaited<ReturnType<typeof getProducts>>,
|
|
383
|
+
TError = ErrorType<AsError | void>,
|
|
384
|
+
>(options?: {
|
|
385
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
|
|
386
|
+
request?: SecondParameter<typeof customFetch>;
|
|
387
|
+
}) => {
|
|
388
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
389
|
+
|
|
390
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductsQueryKey();
|
|
391
|
+
|
|
392
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProducts>>> = ({ signal }) =>
|
|
393
|
+
getProducts({ signal, ...requestOptions });
|
|
394
|
+
|
|
395
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
396
|
+
Awaited<ReturnType<typeof getProducts>>,
|
|
397
|
+
TError,
|
|
398
|
+
TData
|
|
399
|
+
> & { queryKey: QueryKey };
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
export type GetProductsQueryResult = NonNullable<Awaited<ReturnType<typeof getProducts>>>;
|
|
403
|
+
export type GetProductsQueryError = ErrorType<AsError | void>;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @summary Gets all Products
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
export function useGetProducts<
|
|
410
|
+
TData = Awaited<ReturnType<typeof getProducts>>,
|
|
411
|
+
TError = ErrorType<AsError | void>,
|
|
412
|
+
>(options?: {
|
|
413
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
|
|
414
|
+
request?: SecondParameter<typeof customFetch>;
|
|
415
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
416
|
+
const queryOptions = getGetProductsQueryOptions(options);
|
|
417
|
+
|
|
418
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
419
|
+
|
|
420
|
+
query.queryKey = queryOptions.queryKey;
|
|
421
|
+
|
|
422
|
+
return query;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @summary Gets all Products
|
|
427
|
+
*/
|
|
428
|
+
export const invalidateGetProducts = async (
|
|
429
|
+
queryClient: QueryClient,
|
|
430
|
+
options?: InvalidateOptions,
|
|
431
|
+
): Promise<QueryClient> => {
|
|
432
|
+
await queryClient.invalidateQueries({ queryKey: getGetProductsQueryKey() }, options);
|
|
433
|
+
|
|
434
|
+
return queryClient;
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
export const getGetProductsSuspenseQueryOptions = <
|
|
438
|
+
TData = Awaited<ReturnType<typeof getProducts>>,
|
|
439
|
+
TError = ErrorType<AsError | void>,
|
|
440
|
+
>(options?: {
|
|
441
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
|
|
442
|
+
request?: SecondParameter<typeof customFetch>;
|
|
443
|
+
}) => {
|
|
444
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
445
|
+
|
|
446
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductsQueryKey();
|
|
447
|
+
|
|
448
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProducts>>> = ({ signal }) =>
|
|
449
|
+
getProducts({ signal, ...requestOptions });
|
|
450
|
+
|
|
451
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
452
|
+
Awaited<ReturnType<typeof getProducts>>,
|
|
453
|
+
TError,
|
|
454
|
+
TData
|
|
455
|
+
> & { queryKey: QueryKey };
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
export type GetProductsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProducts>>>;
|
|
459
|
+
export type GetProductsSuspenseQueryError = ErrorType<AsError | void>;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* @summary Gets all Products
|
|
463
|
+
*/
|
|
464
|
+
|
|
465
|
+
export function useGetProductsSuspense<
|
|
466
|
+
TData = Awaited<ReturnType<typeof getProducts>>,
|
|
467
|
+
TError = ErrorType<AsError | void>,
|
|
468
|
+
>(options?: {
|
|
469
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
|
|
470
|
+
request?: SecondParameter<typeof customFetch>;
|
|
471
|
+
}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
472
|
+
const queryOptions = getGetProductsSuspenseQueryOptions(options);
|
|
473
|
+
|
|
474
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
475
|
+
queryKey: QueryKey;
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
query.queryKey = queryOptions.queryKey;
|
|
479
|
+
|
|
480
|
+
return query;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Gets Products you have access to based on an **Organisation**
|
|
485
|
+
|
|
486
|
+
* @summary Gets Products for an Organisation
|
|
487
|
+
*/
|
|
488
|
+
export type getProductsForOrganisationResponse200 = { data: ProductsGetResponse; status: 200 };
|
|
489
|
+
|
|
490
|
+
export type getProductsForOrganisationResponse401 = { data: void; status: 401 };
|
|
491
|
+
|
|
492
|
+
export type getProductsForOrganisationResponse403 = { data: AsError; status: 403 };
|
|
493
|
+
|
|
494
|
+
export type getProductsForOrganisationResponse404 = { data: AsError; status: 404 };
|
|
495
|
+
|
|
496
|
+
export type getProductsForOrganisationResponseSuccess = getProductsForOrganisationResponse200 & {
|
|
497
|
+
headers: Headers;
|
|
498
|
+
};
|
|
499
|
+
export type getProductsForOrganisationResponseError = (
|
|
500
|
+
| getProductsForOrganisationResponse401
|
|
501
|
+
| getProductsForOrganisationResponse403
|
|
502
|
+
| getProductsForOrganisationResponse404
|
|
503
|
+
) & { headers: Headers };
|
|
504
|
+
|
|
505
|
+
export type getProductsForOrganisationResponse =
|
|
506
|
+
| getProductsForOrganisationResponseSuccess
|
|
507
|
+
| getProductsForOrganisationResponseError;
|
|
508
|
+
|
|
509
|
+
export const getGetProductsForOrganisationUrl = (orgId: string) => {
|
|
510
|
+
return `/product/organisation/${orgId}`;
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
export const getProductsForOrganisation = async (
|
|
514
|
+
orgId: string,
|
|
515
|
+
options?: RequestInit,
|
|
516
|
+
): Promise<getProductsForOrganisationResponse> => {
|
|
517
|
+
return customFetch<getProductsForOrganisationResponse>(getGetProductsForOrganisationUrl(orgId), {
|
|
518
|
+
...options,
|
|
519
|
+
method: "GET",
|
|
520
|
+
});
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export const getGetProductsForOrganisationQueryKey = (orgId?: string) => {
|
|
524
|
+
return ["account-server", "product", "organisation", orgId] as const;
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
export const getGetProductsForOrganisationQueryOptions = <
|
|
528
|
+
TData = Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
529
|
+
TError = ErrorType<void | AsError>,
|
|
530
|
+
>(
|
|
531
|
+
orgId: string,
|
|
532
|
+
options?: {
|
|
533
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>;
|
|
534
|
+
request?: SecondParameter<typeof customFetch>;
|
|
535
|
+
},
|
|
536
|
+
) => {
|
|
537
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
538
|
+
|
|
539
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductsForOrganisationQueryKey(orgId);
|
|
540
|
+
|
|
541
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductsForOrganisation>>> = ({
|
|
542
|
+
signal,
|
|
543
|
+
}) => getProductsForOrganisation(orgId, { signal, ...requestOptions });
|
|
544
|
+
|
|
545
|
+
return { queryKey, queryFn, enabled: !!orgId, ...queryOptions } as UseQueryOptions<
|
|
546
|
+
Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
547
|
+
TError,
|
|
548
|
+
TData
|
|
549
|
+
> & { queryKey: QueryKey };
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
export type GetProductsForOrganisationQueryResult = NonNullable<
|
|
553
|
+
Awaited<ReturnType<typeof getProductsForOrganisation>>
|
|
554
|
+
>;
|
|
555
|
+
export type GetProductsForOrganisationQueryError = ErrorType<void | AsError>;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* @summary Gets Products for an Organisation
|
|
559
|
+
*/
|
|
560
|
+
|
|
561
|
+
export function useGetProductsForOrganisation<
|
|
562
|
+
TData = Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
563
|
+
TError = ErrorType<void | AsError>,
|
|
564
|
+
>(
|
|
565
|
+
orgId: string,
|
|
566
|
+
options?: {
|
|
567
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>;
|
|
568
|
+
request?: SecondParameter<typeof customFetch>;
|
|
569
|
+
},
|
|
570
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
571
|
+
const queryOptions = getGetProductsForOrganisationQueryOptions(orgId, options);
|
|
572
|
+
|
|
573
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
574
|
+
|
|
575
|
+
query.queryKey = queryOptions.queryKey;
|
|
576
|
+
|
|
577
|
+
return query;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* @summary Gets Products for an Organisation
|
|
582
|
+
*/
|
|
583
|
+
export const invalidateGetProductsForOrganisation = async (
|
|
584
|
+
queryClient: QueryClient,
|
|
585
|
+
orgId: string,
|
|
586
|
+
options?: InvalidateOptions,
|
|
587
|
+
): Promise<QueryClient> => {
|
|
588
|
+
await queryClient.invalidateQueries(
|
|
589
|
+
{ queryKey: getGetProductsForOrganisationQueryKey(orgId) },
|
|
590
|
+
options,
|
|
591
|
+
);
|
|
592
|
+
|
|
593
|
+
return queryClient;
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
export const getGetProductsForOrganisationSuspenseQueryOptions = <
|
|
597
|
+
TData = Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
598
|
+
TError = ErrorType<void | AsError>,
|
|
599
|
+
>(
|
|
600
|
+
orgId: string,
|
|
601
|
+
options?: {
|
|
602
|
+
query?: UseSuspenseQueryOptions<
|
|
603
|
+
Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
604
|
+
TError,
|
|
605
|
+
TData
|
|
606
|
+
>;
|
|
607
|
+
request?: SecondParameter<typeof customFetch>;
|
|
608
|
+
},
|
|
609
|
+
) => {
|
|
610
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
611
|
+
|
|
612
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductsForOrganisationQueryKey(orgId);
|
|
613
|
+
|
|
614
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductsForOrganisation>>> = ({
|
|
615
|
+
signal,
|
|
616
|
+
}) => getProductsForOrganisation(orgId, { signal, ...requestOptions });
|
|
617
|
+
|
|
618
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
619
|
+
Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
620
|
+
TError,
|
|
621
|
+
TData
|
|
622
|
+
> & { queryKey: QueryKey };
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
export type GetProductsForOrganisationSuspenseQueryResult = NonNullable<
|
|
626
|
+
Awaited<ReturnType<typeof getProductsForOrganisation>>
|
|
627
|
+
>;
|
|
628
|
+
export type GetProductsForOrganisationSuspenseQueryError = ErrorType<void | AsError>;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* @summary Gets Products for an Organisation
|
|
632
|
+
*/
|
|
633
|
+
|
|
634
|
+
export function useGetProductsForOrganisationSuspense<
|
|
635
|
+
TData = Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
636
|
+
TError = ErrorType<void | AsError>,
|
|
637
|
+
>(
|
|
638
|
+
orgId: string,
|
|
639
|
+
options?: {
|
|
640
|
+
query?: UseSuspenseQueryOptions<
|
|
641
|
+
Awaited<ReturnType<typeof getProductsForOrganisation>>,
|
|
642
|
+
TError,
|
|
643
|
+
TData
|
|
644
|
+
>;
|
|
645
|
+
request?: SecondParameter<typeof customFetch>;
|
|
646
|
+
},
|
|
647
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
648
|
+
const queryOptions = getGetProductsForOrganisationSuspenseQueryOptions(orgId, options);
|
|
649
|
+
|
|
650
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
651
|
+
queryKey: QueryKey;
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
query.queryKey = queryOptions.queryKey;
|
|
655
|
+
|
|
656
|
+
return query;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Products are **Subscriptions** that you create in a **Unit** that allow you to use services provided by a **Merchant**. To create products you need to be a member of the **Unit** or the Unit's **Organisation**.
|
|
661
|
+
|
|
662
|
+
Supported subscription **types** include `DATA_MANAGER_STORAGE_SUBSCRIPTION`, and `DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION`.
|
|
663
|
+
|
|
664
|
+
The `DATA_MANAGER_STORAGE_SUBSCRIPTION` **type** needs a **name**, an **allowance**, and an optional **limit** (that cannot be less than the **allowance**). If no **limit** is provided the **allowance** is used.
|
|
665
|
+
|
|
666
|
+
The `DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION` **type** needs a **name**, and a **flavour**. The **flavour**, a string, should typically be one of `EVALUATION`, `BRONZE`, `SILVER` or `GOLD`.
|
|
667
|
+
|
|
668
|
+
Users who are **Evaluators** can only create products in their Personal Unit, and where products support flavours, are restricted to `EVALUATION` flavours .
|
|
669
|
+
|
|
670
|
+
* @summary Creates a Product for a Unit
|
|
671
|
+
*/
|
|
672
|
+
export type createUnitProductResponse201 = { data: UnitProductPostResponse; status: 201 };
|
|
673
|
+
|
|
674
|
+
export type createUnitProductResponse400 = { data: AsError; status: 400 };
|
|
675
|
+
|
|
676
|
+
export type createUnitProductResponse401 = { data: void; status: 401 };
|
|
677
|
+
|
|
678
|
+
export type createUnitProductResponse403 = { data: AsError; status: 403 };
|
|
679
|
+
|
|
680
|
+
export type createUnitProductResponseSuccess = createUnitProductResponse201 & { headers: Headers };
|
|
681
|
+
export type createUnitProductResponseError = (
|
|
682
|
+
| createUnitProductResponse400
|
|
683
|
+
| createUnitProductResponse401
|
|
684
|
+
| createUnitProductResponse403
|
|
685
|
+
) & { headers: Headers };
|
|
686
|
+
|
|
687
|
+
export type createUnitProductResponse =
|
|
688
|
+
| createUnitProductResponseSuccess
|
|
689
|
+
| createUnitProductResponseError;
|
|
690
|
+
|
|
691
|
+
export const getCreateUnitProductUrl = (unitId: string) => {
|
|
692
|
+
return `/product/unit/${unitId}`;
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
export const createUnitProduct = async (
|
|
696
|
+
unitId: string,
|
|
697
|
+
unitProductPostBodyBody: UnitProductPostBodyBody,
|
|
698
|
+
options?: RequestInit,
|
|
699
|
+
): Promise<createUnitProductResponse> => {
|
|
700
|
+
return customFetch<createUnitProductResponse>(getCreateUnitProductUrl(unitId), {
|
|
701
|
+
...options,
|
|
702
|
+
method: "POST",
|
|
703
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
704
|
+
body: JSON.stringify(unitProductPostBodyBody),
|
|
705
|
+
});
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
export const getCreateUnitProductMutationOptions = <
|
|
709
|
+
TError = ErrorType<AsError | void>,
|
|
710
|
+
TContext = unknown,
|
|
711
|
+
>(options?: {
|
|
712
|
+
mutation?: UseMutationOptions<
|
|
713
|
+
Awaited<ReturnType<typeof createUnitProduct>>,
|
|
714
|
+
TError,
|
|
715
|
+
{ unitId: string; data: UnitProductPostBodyBody },
|
|
716
|
+
TContext
|
|
717
|
+
>;
|
|
718
|
+
request?: SecondParameter<typeof customFetch>;
|
|
719
|
+
}): UseMutationOptions<
|
|
720
|
+
Awaited<ReturnType<typeof createUnitProduct>>,
|
|
721
|
+
TError,
|
|
722
|
+
{ unitId: string; data: UnitProductPostBodyBody },
|
|
723
|
+
TContext
|
|
724
|
+
> => {
|
|
725
|
+
const mutationKey = ["createUnitProduct"];
|
|
726
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
727
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
728
|
+
? options
|
|
729
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
730
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
731
|
+
|
|
732
|
+
const mutationFn: MutationFunction<
|
|
733
|
+
Awaited<ReturnType<typeof createUnitProduct>>,
|
|
734
|
+
{ unitId: string; data: UnitProductPostBodyBody }
|
|
735
|
+
> = (props) => {
|
|
736
|
+
const { unitId, data } = props ?? {};
|
|
737
|
+
|
|
738
|
+
return createUnitProduct(unitId, data, requestOptions);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
return { mutationFn, ...mutationOptions };
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
export type CreateUnitProductMutationResult = NonNullable<
|
|
745
|
+
Awaited<ReturnType<typeof createUnitProduct>>
|
|
746
|
+
>;
|
|
747
|
+
export type CreateUnitProductMutationBody = UnitProductPostBodyBody;
|
|
748
|
+
export type CreateUnitProductMutationError = ErrorType<AsError | void>;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* @summary Creates a Product for a Unit
|
|
752
|
+
*/
|
|
753
|
+
export const useCreateUnitProduct = <
|
|
754
|
+
TError = ErrorType<AsError | void>,
|
|
755
|
+
TContext = unknown,
|
|
756
|
+
>(options?: {
|
|
757
|
+
mutation?: UseMutationOptions<
|
|
758
|
+
Awaited<ReturnType<typeof createUnitProduct>>,
|
|
759
|
+
TError,
|
|
760
|
+
{ unitId: string; data: UnitProductPostBodyBody },
|
|
761
|
+
TContext
|
|
762
|
+
>;
|
|
763
|
+
request?: SecondParameter<typeof customFetch>;
|
|
764
|
+
}): UseMutationResult<
|
|
765
|
+
Awaited<ReturnType<typeof createUnitProduct>>,
|
|
766
|
+
TError,
|
|
767
|
+
{ unitId: string; data: UnitProductPostBodyBody },
|
|
768
|
+
TContext
|
|
769
|
+
> => {
|
|
770
|
+
const mutationOptions = getCreateUnitProductMutationOptions(options);
|
|
771
|
+
|
|
772
|
+
return useMutation(mutationOptions);
|
|
773
|
+
};
|
|
774
|
+
/**
|
|
775
|
+
* Gets products you have access to based on an Organisational **Unit**
|
|
776
|
+
|
|
777
|
+
* @summary Gets Products for an Organisational Unit
|
|
778
|
+
*/
|
|
779
|
+
export type getProductsForUnitResponse200 = { data: ProductsGetResponse; status: 200 };
|
|
780
|
+
|
|
781
|
+
export type getProductsForUnitResponse401 = { data: void; status: 401 };
|
|
782
|
+
|
|
783
|
+
export type getProductsForUnitResponse403 = { data: AsError; status: 403 };
|
|
784
|
+
|
|
785
|
+
export type getProductsForUnitResponse404 = { data: AsError; status: 404 };
|
|
786
|
+
|
|
787
|
+
export type getProductsForUnitResponseSuccess = getProductsForUnitResponse200 & {
|
|
788
|
+
headers: Headers;
|
|
789
|
+
};
|
|
790
|
+
export type getProductsForUnitResponseError = (
|
|
791
|
+
| getProductsForUnitResponse401
|
|
792
|
+
| getProductsForUnitResponse403
|
|
793
|
+
| getProductsForUnitResponse404
|
|
794
|
+
) & { headers: Headers };
|
|
795
|
+
|
|
796
|
+
export type getProductsForUnitResponse =
|
|
797
|
+
| getProductsForUnitResponseSuccess
|
|
798
|
+
| getProductsForUnitResponseError;
|
|
799
|
+
|
|
800
|
+
export const getGetProductsForUnitUrl = (unitId: string) => {
|
|
801
|
+
return `/product/unit/${unitId}`;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
export const getProductsForUnit = async (
|
|
805
|
+
unitId: string,
|
|
806
|
+
options?: RequestInit,
|
|
807
|
+
): Promise<getProductsForUnitResponse> => {
|
|
808
|
+
return customFetch<getProductsForUnitResponse>(getGetProductsForUnitUrl(unitId), {
|
|
809
|
+
...options,
|
|
810
|
+
method: "GET",
|
|
811
|
+
});
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
export const getGetProductsForUnitQueryKey = (unitId?: string) => {
|
|
815
|
+
return ["account-server", "product", "unit", unitId] as const;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
export const getGetProductsForUnitQueryOptions = <
|
|
819
|
+
TData = Awaited<ReturnType<typeof getProductsForUnit>>,
|
|
820
|
+
TError = ErrorType<void | AsError>,
|
|
821
|
+
>(
|
|
822
|
+
unitId: string,
|
|
823
|
+
options?: {
|
|
824
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
|
|
825
|
+
request?: SecondParameter<typeof customFetch>;
|
|
826
|
+
},
|
|
827
|
+
) => {
|
|
828
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
829
|
+
|
|
830
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductsForUnitQueryKey(unitId);
|
|
831
|
+
|
|
832
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductsForUnit>>> = ({ signal }) =>
|
|
833
|
+
getProductsForUnit(unitId, { signal, ...requestOptions });
|
|
834
|
+
|
|
835
|
+
return { queryKey, queryFn, enabled: !!unitId, ...queryOptions } as UseQueryOptions<
|
|
836
|
+
Awaited<ReturnType<typeof getProductsForUnit>>,
|
|
837
|
+
TError,
|
|
838
|
+
TData
|
|
839
|
+
> & { queryKey: QueryKey };
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
export type GetProductsForUnitQueryResult = NonNullable<
|
|
843
|
+
Awaited<ReturnType<typeof getProductsForUnit>>
|
|
844
|
+
>;
|
|
845
|
+
export type GetProductsForUnitQueryError = ErrorType<void | AsError>;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* @summary Gets Products for an Organisational Unit
|
|
849
|
+
*/
|
|
850
|
+
|
|
851
|
+
export function useGetProductsForUnit<
|
|
852
|
+
TData = Awaited<ReturnType<typeof getProductsForUnit>>,
|
|
853
|
+
TError = ErrorType<void | AsError>,
|
|
854
|
+
>(
|
|
855
|
+
unitId: string,
|
|
856
|
+
options?: {
|
|
857
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
|
|
858
|
+
request?: SecondParameter<typeof customFetch>;
|
|
859
|
+
},
|
|
860
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
861
|
+
const queryOptions = getGetProductsForUnitQueryOptions(unitId, options);
|
|
862
|
+
|
|
863
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
864
|
+
|
|
865
|
+
query.queryKey = queryOptions.queryKey;
|
|
866
|
+
|
|
867
|
+
return query;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* @summary Gets Products for an Organisational Unit
|
|
872
|
+
*/
|
|
873
|
+
export const invalidateGetProductsForUnit = async (
|
|
874
|
+
queryClient: QueryClient,
|
|
875
|
+
unitId: string,
|
|
876
|
+
options?: InvalidateOptions,
|
|
877
|
+
): Promise<QueryClient> => {
|
|
878
|
+
await queryClient.invalidateQueries({ queryKey: getGetProductsForUnitQueryKey(unitId) }, options);
|
|
879
|
+
|
|
880
|
+
return queryClient;
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
export const getGetProductsForUnitSuspenseQueryOptions = <
|
|
884
|
+
TData = Awaited<ReturnType<typeof getProductsForUnit>>,
|
|
885
|
+
TError = ErrorType<void | AsError>,
|
|
886
|
+
>(
|
|
887
|
+
unitId: string,
|
|
888
|
+
options?: {
|
|
889
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
|
|
890
|
+
request?: SecondParameter<typeof customFetch>;
|
|
891
|
+
},
|
|
892
|
+
) => {
|
|
893
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
894
|
+
|
|
895
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductsForUnitQueryKey(unitId);
|
|
896
|
+
|
|
897
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProductsForUnit>>> = ({ signal }) =>
|
|
898
|
+
getProductsForUnit(unitId, { signal, ...requestOptions });
|
|
899
|
+
|
|
900
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
901
|
+
Awaited<ReturnType<typeof getProductsForUnit>>,
|
|
902
|
+
TError,
|
|
903
|
+
TData
|
|
904
|
+
> & { queryKey: QueryKey };
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
export type GetProductsForUnitSuspenseQueryResult = NonNullable<
|
|
908
|
+
Awaited<ReturnType<typeof getProductsForUnit>>
|
|
909
|
+
>;
|
|
910
|
+
export type GetProductsForUnitSuspenseQueryError = ErrorType<void | AsError>;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* @summary Gets Products for an Organisational Unit
|
|
914
|
+
*/
|
|
915
|
+
|
|
916
|
+
export function useGetProductsForUnitSuspense<
|
|
917
|
+
TData = Awaited<ReturnType<typeof getProductsForUnit>>,
|
|
918
|
+
TError = ErrorType<void | AsError>,
|
|
919
|
+
>(
|
|
920
|
+
unitId: string,
|
|
921
|
+
options?: {
|
|
922
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
|
|
923
|
+
request?: SecondParameter<typeof customFetch>;
|
|
924
|
+
},
|
|
925
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
926
|
+
const queryOptions = getGetProductsForUnitSuspenseQueryOptions(unitId, options);
|
|
927
|
+
|
|
928
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
929
|
+
queryKey: QueryKey;
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
query.queryKey = queryOptions.queryKey;
|
|
933
|
+
|
|
934
|
+
return query;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Gets details of a specific Product that you have access to.
|
|
939
|
+
|
|
940
|
+
* @summary Gets a Product
|
|
941
|
+
*/
|
|
942
|
+
export type getProductResponse200 = { data: ProductUnitGetResponse; status: 200 };
|
|
943
|
+
|
|
944
|
+
export type getProductResponse400 = { data: AsError; status: 400 };
|
|
945
|
+
|
|
946
|
+
export type getProductResponse401 = { data: void; status: 401 };
|
|
947
|
+
|
|
948
|
+
export type getProductResponse403 = { data: AsError; status: 403 };
|
|
949
|
+
|
|
950
|
+
export type getProductResponseSuccess = getProductResponse200 & { headers: Headers };
|
|
951
|
+
export type getProductResponseError = (
|
|
952
|
+
| getProductResponse400
|
|
953
|
+
| getProductResponse401
|
|
954
|
+
| getProductResponse403
|
|
955
|
+
) & { headers: Headers };
|
|
956
|
+
|
|
957
|
+
export type getProductResponse = getProductResponseSuccess | getProductResponseError;
|
|
958
|
+
|
|
959
|
+
export const getGetProductUrl = (productId: string) => {
|
|
960
|
+
return `/product/${productId}`;
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
export const getProduct = async (
|
|
964
|
+
productId: string,
|
|
965
|
+
options?: RequestInit,
|
|
966
|
+
): Promise<getProductResponse> => {
|
|
967
|
+
return customFetch<getProductResponse>(getGetProductUrl(productId), {
|
|
968
|
+
...options,
|
|
969
|
+
method: "GET",
|
|
970
|
+
});
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
export const getGetProductQueryKey = (productId?: string) => {
|
|
974
|
+
return ["account-server", "product", productId] as const;
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
export const getGetProductQueryOptions = <
|
|
978
|
+
TData = Awaited<ReturnType<typeof getProduct>>,
|
|
979
|
+
TError = ErrorType<AsError | void>,
|
|
980
|
+
>(
|
|
981
|
+
productId: string,
|
|
982
|
+
options?: {
|
|
983
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
|
|
984
|
+
request?: SecondParameter<typeof customFetch>;
|
|
985
|
+
},
|
|
986
|
+
) => {
|
|
987
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
988
|
+
|
|
989
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductQueryKey(productId);
|
|
990
|
+
|
|
991
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProduct>>> = ({ signal }) =>
|
|
992
|
+
getProduct(productId, { signal, ...requestOptions });
|
|
993
|
+
|
|
994
|
+
return { queryKey, queryFn, enabled: !!productId, ...queryOptions } as UseQueryOptions<
|
|
995
|
+
Awaited<ReturnType<typeof getProduct>>,
|
|
996
|
+
TError,
|
|
997
|
+
TData
|
|
998
|
+
> & { queryKey: QueryKey };
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
export type GetProductQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
|
|
1002
|
+
export type GetProductQueryError = ErrorType<AsError | void>;
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* @summary Gets a Product
|
|
1006
|
+
*/
|
|
1007
|
+
|
|
1008
|
+
export function useGetProduct<
|
|
1009
|
+
TData = Awaited<ReturnType<typeof getProduct>>,
|
|
1010
|
+
TError = ErrorType<AsError | void>,
|
|
1011
|
+
>(
|
|
1012
|
+
productId: string,
|
|
1013
|
+
options?: {
|
|
1014
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
|
|
1015
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1016
|
+
},
|
|
1017
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
1018
|
+
const queryOptions = getGetProductQueryOptions(productId, options);
|
|
1019
|
+
|
|
1020
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
1021
|
+
|
|
1022
|
+
query.queryKey = queryOptions.queryKey;
|
|
1023
|
+
|
|
1024
|
+
return query;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* @summary Gets a Product
|
|
1029
|
+
*/
|
|
1030
|
+
export const invalidateGetProduct = async (
|
|
1031
|
+
queryClient: QueryClient,
|
|
1032
|
+
productId: string,
|
|
1033
|
+
options?: InvalidateOptions,
|
|
1034
|
+
): Promise<QueryClient> => {
|
|
1035
|
+
await queryClient.invalidateQueries({ queryKey: getGetProductQueryKey(productId) }, options);
|
|
1036
|
+
|
|
1037
|
+
return queryClient;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
export const getGetProductSuspenseQueryOptions = <
|
|
1041
|
+
TData = Awaited<ReturnType<typeof getProduct>>,
|
|
1042
|
+
TError = ErrorType<AsError | void>,
|
|
1043
|
+
>(
|
|
1044
|
+
productId: string,
|
|
1045
|
+
options?: {
|
|
1046
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
|
|
1047
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1048
|
+
},
|
|
1049
|
+
) => {
|
|
1050
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1051
|
+
|
|
1052
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductQueryKey(productId);
|
|
1053
|
+
|
|
1054
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getProduct>>> = ({ signal }) =>
|
|
1055
|
+
getProduct(productId, { signal, ...requestOptions });
|
|
1056
|
+
|
|
1057
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
1058
|
+
Awaited<ReturnType<typeof getProduct>>,
|
|
1059
|
+
TError,
|
|
1060
|
+
TData
|
|
1061
|
+
> & { queryKey: QueryKey };
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
export type GetProductSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
|
|
1065
|
+
export type GetProductSuspenseQueryError = ErrorType<AsError | void>;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* @summary Gets a Product
|
|
1069
|
+
*/
|
|
1070
|
+
|
|
1071
|
+
export function useGetProductSuspense<
|
|
1072
|
+
TData = Awaited<ReturnType<typeof getProduct>>,
|
|
1073
|
+
TError = ErrorType<AsError | void>,
|
|
1074
|
+
>(
|
|
1075
|
+
productId: string,
|
|
1076
|
+
options?: {
|
|
1077
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
|
|
1078
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1079
|
+
},
|
|
1080
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
1081
|
+
const queryOptions = getGetProductSuspenseQueryOptions(productId, options);
|
|
1082
|
+
|
|
1083
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
1084
|
+
queryKey: QueryKey;
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
query.queryKey = queryOptions.queryKey;
|
|
1088
|
+
|
|
1089
|
+
return query;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* You need access to the Product and, if the Product is *claimable* the claim must be removed before the Product can be removed. An example claimable Product is a `DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION` where the *claimable* commodity is a Data Manager **Project**. In this case you will need to delete the Data Manager **Project** before you can delete the Account Server **Product**.
|
|
1094
|
+
|
|
1095
|
+
* @summary Deletes an existing Product
|
|
1096
|
+
*/
|
|
1097
|
+
export type deleteProductResponse204 = { data: void; status: 204 };
|
|
1098
|
+
|
|
1099
|
+
export type deleteProductResponse401 = { data: void; status: 401 };
|
|
1100
|
+
|
|
1101
|
+
export type deleteProductResponse403 = { data: AsError; status: 403 };
|
|
1102
|
+
|
|
1103
|
+
export type deleteProductResponse404 = { data: AsError; status: 404 };
|
|
1104
|
+
|
|
1105
|
+
export type deleteProductResponseSuccess = deleteProductResponse204 & { headers: Headers };
|
|
1106
|
+
export type deleteProductResponseError = (
|
|
1107
|
+
| deleteProductResponse401
|
|
1108
|
+
| deleteProductResponse403
|
|
1109
|
+
| deleteProductResponse404
|
|
1110
|
+
) & { headers: Headers };
|
|
1111
|
+
|
|
1112
|
+
export type deleteProductResponse = deleteProductResponseSuccess | deleteProductResponseError;
|
|
1113
|
+
|
|
1114
|
+
export const getDeleteProductUrl = (productId: string) => {
|
|
1115
|
+
return `/product/${productId}`;
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
export const deleteProduct = async (
|
|
1119
|
+
productId: string,
|
|
1120
|
+
options?: RequestInit,
|
|
1121
|
+
): Promise<deleteProductResponse> => {
|
|
1122
|
+
return customFetch<deleteProductResponse>(getDeleteProductUrl(productId), {
|
|
1123
|
+
...options,
|
|
1124
|
+
method: "DELETE",
|
|
1125
|
+
});
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
export const getDeleteProductMutationOptions = <
|
|
1129
|
+
TError = ErrorType<void | AsError>,
|
|
1130
|
+
TContext = unknown,
|
|
1131
|
+
>(options?: {
|
|
1132
|
+
mutation?: UseMutationOptions<
|
|
1133
|
+
Awaited<ReturnType<typeof deleteProduct>>,
|
|
1134
|
+
TError,
|
|
1135
|
+
{ productId: string },
|
|
1136
|
+
TContext
|
|
1137
|
+
>;
|
|
1138
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1139
|
+
}): UseMutationOptions<
|
|
1140
|
+
Awaited<ReturnType<typeof deleteProduct>>,
|
|
1141
|
+
TError,
|
|
1142
|
+
{ productId: string },
|
|
1143
|
+
TContext
|
|
1144
|
+
> => {
|
|
1145
|
+
const mutationKey = ["deleteProduct"];
|
|
1146
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1147
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1148
|
+
? options
|
|
1149
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1150
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1151
|
+
|
|
1152
|
+
const mutationFn: MutationFunction<
|
|
1153
|
+
Awaited<ReturnType<typeof deleteProduct>>,
|
|
1154
|
+
{ productId: string }
|
|
1155
|
+
> = (props) => {
|
|
1156
|
+
const { productId } = props ?? {};
|
|
1157
|
+
|
|
1158
|
+
return deleteProduct(productId, requestOptions);
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
return { mutationFn, ...mutationOptions };
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
export type DeleteProductMutationResult = NonNullable<Awaited<ReturnType<typeof deleteProduct>>>;
|
|
1165
|
+
|
|
1166
|
+
export type DeleteProductMutationError = ErrorType<void | AsError>;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* @summary Deletes an existing Product
|
|
1170
|
+
*/
|
|
1171
|
+
export const useDeleteProduct = <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
1172
|
+
mutation?: UseMutationOptions<
|
|
1173
|
+
Awaited<ReturnType<typeof deleteProduct>>,
|
|
1174
|
+
TError,
|
|
1175
|
+
{ productId: string },
|
|
1176
|
+
TContext
|
|
1177
|
+
>;
|
|
1178
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1179
|
+
}): UseMutationResult<
|
|
1180
|
+
Awaited<ReturnType<typeof deleteProduct>>,
|
|
1181
|
+
TError,
|
|
1182
|
+
{ productId: string },
|
|
1183
|
+
TContext
|
|
1184
|
+
> => {
|
|
1185
|
+
const mutationOptions = getDeleteProductMutationOptions(options);
|
|
1186
|
+
|
|
1187
|
+
return useMutation(mutationOptions);
|
|
1188
|
+
};
|
|
1189
|
+
/**
|
|
1190
|
+
* Used to update some adjustable parameters of a Product, i.e. to extend its **Allowance** or **Limit**.
|
|
1191
|
+
|
|
1192
|
+
You must be a member of the **Unit**, or its **Organisation**, or an administrator to use this method.
|
|
1193
|
+
|
|
1194
|
+
At the moment we only support Products associated with the Data Manager, and these can be patched by changing the `name`, its coin `allowance` or `limit`
|
|
1195
|
+
|
|
1196
|
+
* @summary Adjust an existing Product
|
|
1197
|
+
*/
|
|
1198
|
+
export type patchProductResponse200 = { data: void; status: 200 };
|
|
1199
|
+
|
|
1200
|
+
export type patchProductResponse401 = { data: void; status: 401 };
|
|
1201
|
+
|
|
1202
|
+
export type patchProductResponse403 = { data: AsError; status: 403 };
|
|
1203
|
+
|
|
1204
|
+
export type patchProductResponse404 = { data: AsError; status: 404 };
|
|
1205
|
+
|
|
1206
|
+
export type patchProductResponseSuccess = patchProductResponse200 & { headers: Headers };
|
|
1207
|
+
export type patchProductResponseError = (
|
|
1208
|
+
| patchProductResponse401
|
|
1209
|
+
| patchProductResponse403
|
|
1210
|
+
| patchProductResponse404
|
|
1211
|
+
) & { headers: Headers };
|
|
1212
|
+
|
|
1213
|
+
export type patchProductResponse = patchProductResponseSuccess | patchProductResponseError;
|
|
1214
|
+
|
|
1215
|
+
export const getPatchProductUrl = (productId: string) => {
|
|
1216
|
+
return `/product/${productId}`;
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
export const patchProduct = async (
|
|
1220
|
+
productId: string,
|
|
1221
|
+
productPatchBodyBody: ProductPatchBodyBody,
|
|
1222
|
+
options?: RequestInit,
|
|
1223
|
+
): Promise<patchProductResponse> => {
|
|
1224
|
+
return customFetch<patchProductResponse>(getPatchProductUrl(productId), {
|
|
1225
|
+
...options,
|
|
1226
|
+
method: "PATCH",
|
|
1227
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1228
|
+
body: JSON.stringify(productPatchBodyBody),
|
|
1229
|
+
});
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
export const getPatchProductMutationOptions = <
|
|
1233
|
+
TError = ErrorType<void | AsError>,
|
|
1234
|
+
TContext = unknown,
|
|
1235
|
+
>(options?: {
|
|
1236
|
+
mutation?: UseMutationOptions<
|
|
1237
|
+
Awaited<ReturnType<typeof patchProduct>>,
|
|
1238
|
+
TError,
|
|
1239
|
+
{ productId: string; data: ProductPatchBodyBody },
|
|
1240
|
+
TContext
|
|
1241
|
+
>;
|
|
1242
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1243
|
+
}): UseMutationOptions<
|
|
1244
|
+
Awaited<ReturnType<typeof patchProduct>>,
|
|
1245
|
+
TError,
|
|
1246
|
+
{ productId: string; data: ProductPatchBodyBody },
|
|
1247
|
+
TContext
|
|
1248
|
+
> => {
|
|
1249
|
+
const mutationKey = ["patchProduct"];
|
|
1250
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1251
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1252
|
+
? options
|
|
1253
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1254
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1255
|
+
|
|
1256
|
+
const mutationFn: MutationFunction<
|
|
1257
|
+
Awaited<ReturnType<typeof patchProduct>>,
|
|
1258
|
+
{ productId: string; data: ProductPatchBodyBody }
|
|
1259
|
+
> = (props) => {
|
|
1260
|
+
const { productId, data } = props ?? {};
|
|
1261
|
+
|
|
1262
|
+
return patchProduct(productId, data, requestOptions);
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
return { mutationFn, ...mutationOptions };
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
export type PatchProductMutationResult = NonNullable<Awaited<ReturnType<typeof patchProduct>>>;
|
|
1269
|
+
export type PatchProductMutationBody = ProductPatchBodyBody;
|
|
1270
|
+
export type PatchProductMutationError = ErrorType<void | AsError>;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* @summary Adjust an existing Product
|
|
1274
|
+
*/
|
|
1275
|
+
export const usePatchProduct = <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
1276
|
+
mutation?: UseMutationOptions<
|
|
1277
|
+
Awaited<ReturnType<typeof patchProduct>>,
|
|
1278
|
+
TError,
|
|
1279
|
+
{ productId: string; data: ProductPatchBodyBody },
|
|
1280
|
+
TContext
|
|
1281
|
+
>;
|
|
1282
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1283
|
+
}): UseMutationResult<
|
|
1284
|
+
Awaited<ReturnType<typeof patchProduct>>,
|
|
1285
|
+
TError,
|
|
1286
|
+
{ productId: string; data: ProductPatchBodyBody },
|
|
1287
|
+
TContext
|
|
1288
|
+
> => {
|
|
1289
|
+
const mutationOptions = getPatchProductMutationOptions(options);
|
|
1290
|
+
|
|
1291
|
+
return useMutation(mutationOptions);
|
|
1292
|
+
};
|