@squonk/account-server-client 4.4.0-4-4.2195235454 → 4.4.0-4-4.2197069952
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/actions/actions.cjs +29 -18
- package/dist/api/actions/actions.cjs.map +1 -1
- package/dist/api/actions/actions.d.cts +12 -7
- package/dist/api/actions/actions.d.cts.map +1 -1
- package/dist/api/actions/actions.d.ts +12 -7
- package/dist/api/actions/actions.d.ts.map +1 -1
- package/dist/api/actions/actions.fetch.cjs +98 -0
- package/dist/api/actions/actions.fetch.cjs.map +1 -0
- package/dist/api/actions/actions.fetch.d.cts +77 -0
- package/dist/api/actions/actions.fetch.d.cts.map +1 -0
- package/dist/api/actions/actions.fetch.d.ts +77 -0
- package/dist/api/actions/actions.fetch.d.ts.map +1 -0
- package/dist/api/actions/actions.fetch.js +90 -0
- package/dist/api/actions/actions.fetch.js.map +1 -0
- package/dist/api/actions/actions.js +26 -16
- package/dist/api/actions/actions.js.map +1 -1
- package/dist/api/api-schemas/actionDetail.d.cts +17 -0
- package/dist/api/api-schemas/actionDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/actionDetail.d.ts +17 -0
- package/dist/api/api-schemas/actionDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/actionGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/actionGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/actionGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/actionGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/asError.d.cts +18 -0
- package/dist/api/api-schemas/asError.d.cts.map +1 -0
- package/dist/api/api-schemas/asError.d.ts +18 -0
- package/dist/api/api-schemas/asError.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetail.d.cts +22 -0
- package/dist/api/api-schemas/assetDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/assetDetail.d.ts +22 -0
- package/dist/api/api-schemas/assetDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.cjs +13 -0
- package/dist/api/api-schemas/assetDetailScope.cjs.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.d.cts +22 -0
- package/dist/api/api-schemas/assetDetailScope.d.cts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.d.ts +22 -0
- package/dist/api/api-schemas/assetDetailScope.d.ts.map +1 -0
- package/dist/api/api-schemas/assetDetailScope.js +12 -0
- package/dist/api/api-schemas/assetDetailScope.js.map +1 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts +8 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts +8 -0
- package/dist/api/api-schemas/assetGetByIdResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/assetGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/assetGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/assetGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.cts +27 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.ts +27 -0
- package/dist/api/api-schemas/assetPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs +13 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts +25 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts +25 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts.map +1 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.js +12 -0
- package/dist/api/api-schemas/assetPostBodyBodyScope.js.map +1 -0
- package/dist/api/api-schemas/assetPostResponse.d.cts +19 -0
- package/dist/api/api-schemas/assetPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/assetPostResponse.d.ts +19 -0
- package/dist/api/api-schemas/assetPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/attachAssetParams.d.cts +14 -0
- package/dist/api/api-schemas/attachAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/attachAssetParams.d.ts +14 -0
- package/dist/api/api-schemas/attachAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.cts +17 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.ts +17 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummary.d.cts +13 -0
- package/dist/api/api-schemas/chargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeSummary.d.ts +13 -0
- package/dist/api/api-schemas/chargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.cjs +10 -0
- package/dist/api/api-schemas/chargeSummaryType.cjs.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.d.cts +22 -0
- package/dist/api/api-schemas/chargeSummaryType.d.cts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.d.ts +22 -0
- package/dist/api/api-schemas/chargeSummaryType.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeSummaryType.js +9 -0
- package/dist/api/api-schemas/chargeSummaryType.js.map +1 -0
- package/dist/api/api-schemas/chargesGetResponse.d.cts +14 -0
- package/dist/api/api-schemas/chargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/chargesGetResponse.d.ts +14 -0
- package/dist/api/api-schemas/chargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/detachAssetParams.d.cts +14 -0
- package/dist/api/api-schemas/detachAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/detachAssetParams.d.ts +14 -0
- package/dist/api/api-schemas/detachAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts +24 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts +24 -0
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs +10 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts +19 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts +19 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js +9 -0
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs +11 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts +23 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts +23 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts.map +1 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js +10 -0
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js.map +1 -0
- package/dist/api/api-schemas/getActionsParams.d.cts +47 -0
- package/dist/api/api-schemas/getActionsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getActionsParams.d.ts +47 -0
- package/dist/api/api-schemas/getActionsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getAssetParams.d.cts +34 -0
- package/dist/api/api-schemas/getAssetParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getAssetParams.d.ts +34 -0
- package/dist/api/api-schemas/getAssetParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getOrganisationChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.cts +13 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.ts +13 -0
- package/dist/api/api-schemas/getOrganisationsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getProductChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getProductChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getProductChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getProductChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.cts +25 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.ts +25 -0
- package/dist/api/api-schemas/getUnitChargesParams.d.ts.map +1 -0
- package/dist/api/api-schemas/getUnitsParams.d.cts +13 -0
- package/dist/api/api-schemas/getUnitsParams.d.cts.map +1 -0
- package/dist/api/api-schemas/getUnitsParams.d.ts +13 -0
- package/dist/api/api-schemas/getUnitsParams.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetail.d.cts +18 -0
- package/dist/api/api-schemas/merchantDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantDetail.d.ts +18 -0
- package/dist/api/api-schemas/merchantDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.cjs +7 -0
- package/dist/api/api-schemas/merchantDetailKind.cjs.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.d.cts +21 -0
- package/dist/api/api-schemas/merchantDetailKind.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.d.ts +21 -0
- package/dist/api/api-schemas/merchantDetailKind.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantDetailKind.js +6 -0
- package/dist/api/api-schemas/merchantDetailKind.js.map +1 -0
- package/dist/api/api-schemas/merchantGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/merchantGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/merchantGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummary.d.cts +15 -0
- package/dist/api/api-schemas/merchantSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantSummary.d.ts +15 -0
- package/dist/api/api-schemas/merchantSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.cjs +7 -0
- package/dist/api/api-schemas/merchantSummaryKind.cjs.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.cts +21 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.ts +21 -0
- package/dist/api/api-schemas/merchantSummaryKind.d.ts.map +1 -0
- package/dist/api/api-schemas/merchantSummaryKind.js +6 -0
- package/dist/api/api-schemas/merchantSummaryKind.js.map +1 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.cts +13 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.ts +13 -0
- package/dist/api/api-schemas/merchantsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetail.d.cts +25 -0
- package/dist/api/api-schemas/organisationAllDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetail.d.ts +25 -0
- package/dist/api/api-schemas/organisationAllDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.cts +12 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.ts +12 -0
- package/dist/api/api-schemas/organisationChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/organisationChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetail.d.cts +22 -0
- package/dist/api/api-schemas/organisationDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationDetail.d.ts +22 -0
- package/dist/api/api-schemas/organisationDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts +23 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts +23 -0
- package/dist/api/api-schemas/organisationGetDefaultResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/organisationGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/organisationGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts +14 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts +14 -0
- package/dist/api/api-schemas/organisationPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts +26 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts +26 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts +18 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts +18 -0
- package/dist/api/api-schemas/organisationPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/organisationPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/organisationPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts +21 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts +21 -0
- package/dist/api/api-schemas/organisationUnitChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts +15 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts +15 -0
- package/dist/api/api-schemas/organisationUnitsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/organisationsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts +22 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts +22 -0
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts +20 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts +20 -0
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargeItem.d.cts +20 -0
- package/dist/api/api-schemas/processingChargeItem.d.cts.map +1 -0
- package/dist/api/api-schemas/processingChargeItem.d.ts +20 -0
- package/dist/api/api-schemas/processingChargeItem.d.ts.map +1 -0
- package/dist/api/api-schemas/processingCharges.d.cts +20 -0
- package/dist/api/api-schemas/processingCharges.d.cts.map +1 -0
- package/dist/api/api-schemas/processingCharges.d.ts +20 -0
- package/dist/api/api-schemas/processingCharges.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs +7 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts +18 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts +18 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts.map +1 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.js +6 -0
- package/dist/api/api-schemas/processingChargesMerchantKind.js.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.cts +31 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.ts +31 -0
- package/dist/api/api-schemas/productChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs +10 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts +19 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts +19 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts.map +1 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.js +9 -0
- package/dist/api/api-schemas/productChargesGetResponseProductType.js.map +1 -0
- package/dist/api/api-schemas/productClaimDetail.d.cts +22 -0
- package/dist/api/api-schemas/productClaimDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productClaimDetail.d.ts +22 -0
- package/dist/api/api-schemas/productClaimDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productCoinsDetail.d.cts +38 -0
- package/dist/api/api-schemas/productCoinsDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productCoinsDetail.d.ts +38 -0
- package/dist/api/api-schemas/productCoinsDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetail.d.cts +23 -0
- package/dist/api/api-schemas/productDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetail.d.ts +23 -0
- package/dist/api/api-schemas/productDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.cjs +12 -0
- package/dist/api/api-schemas/productDetailFlavour.cjs.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.d.cts +25 -0
- package/dist/api/api-schemas/productDetailFlavour.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.d.ts +25 -0
- package/dist/api/api-schemas/productDetailFlavour.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailFlavour.js +11 -0
- package/dist/api/api-schemas/productDetailFlavour.js.map +1 -0
- package/dist/api/api-schemas/productDetailType.cjs +10 -0
- package/dist/api/api-schemas/productDetailType.cjs.map +1 -0
- package/dist/api/api-schemas/productDetailType.d.cts +23 -0
- package/dist/api/api-schemas/productDetailType.d.cts.map +1 -0
- package/dist/api/api-schemas/productDetailType.d.ts +23 -0
- package/dist/api/api-schemas/productDetailType.d.ts.map +1 -0
- package/dist/api/api-schemas/productDetailType.js +9 -0
- package/dist/api/api-schemas/productDetailType.js.map +1 -0
- package/dist/api/api-schemas/productDmProjectTier.d.cts +24 -0
- package/dist/api/api-schemas/productDmProjectTier.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmProjectTier.d.ts +24 -0
- package/dist/api/api-schemas/productDmProjectTier.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorage.d.cts +20 -0
- package/dist/api/api-schemas/productDmStorage.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorage.d.ts +20 -0
- package/dist/api/api-schemas/productDmStorage.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.cts +12 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.ts +12 -0
- package/dist/api/api-schemas/productDmStorageDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts +20 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts +20 -0
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts +24 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts.map +1 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts +24 -0
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetail.d.cts +10 -0
- package/dist/api/api-schemas/productInstanceDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetail.d.ts +10 -0
- package/dist/api/api-schemas/productInstanceDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts +19 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts.map +1 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts +19 -0
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts.map +1 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.cts +31 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.ts +31 -0
- package/dist/api/api-schemas/productPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/productType.d.cts +15 -0
- package/dist/api/api-schemas/productType.d.cts.map +1 -0
- package/dist/api/api-schemas/productType.d.ts +15 -0
- package/dist/api/api-schemas/productType.d.ts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.cjs +7 -0
- package/dist/api/api-schemas/productTypeServiceKind.cjs.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.cts +21 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.cts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.ts +21 -0
- package/dist/api/api-schemas/productTypeServiceKind.d.ts.map +1 -0
- package/dist/api/api-schemas/productTypeServiceKind.js +6 -0
- package/dist/api/api-schemas/productTypeServiceKind.js.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.cts +11 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.ts +11 -0
- package/dist/api/api-schemas/productUnitGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts +12 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.cts.map +1 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts +12 -0
- package/dist/api/api-schemas/productUnitGetResponseProduct.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts +10 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts +10 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCost.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts +19 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts +19 -0
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/productsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/productsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts +9 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts +9 -0
- package/dist/api/api-schemas/productsGetResponseProductsItem.d.ts.map +1 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts +13 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts +13 -0
- package/dist/api/api-schemas/productsGetTypesResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.cjs +10 -0
- package/dist/api/api-schemas/qFormatParameter.cjs.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.d.cts +19 -0
- package/dist/api/api-schemas/qFormatParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.d.ts +19 -0
- package/dist/api/api-schemas/qFormatParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qFormatParameter.js +9 -0
- package/dist/api/api-schemas/qFormatParameter.js.map +1 -0
- package/dist/api/api-schemas/qFromParameter.d.cts +18 -0
- package/dist/api/api-schemas/qFromParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qFromParameter.d.ts +18 -0
- package/dist/api/api-schemas/qFromParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qMIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qMIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qMIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qMIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qNameParameter.d.cts +18 -0
- package/dist/api/api-schemas/qNameParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qNameParameter.d.ts +18 -0
- package/dist/api/api-schemas/qNameParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qOrgIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qPbpParameter.d.cts +18 -0
- package/dist/api/api-schemas/qPbpParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qPbpParameter.d.ts +18 -0
- package/dist/api/api-schemas/qPbpParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qProductIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qProductIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qProductIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qProductIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUnitIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUntilParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUntilParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUntilParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUntilParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/qUserIdParameter.d.cts +18 -0
- package/dist/api/api-schemas/qUserIdParameter.d.cts.map +1 -0
- package/dist/api/api-schemas/qUserIdParameter.d.ts +18 -0
- package/dist/api/api-schemas/qUserIdParameter.d.ts.map +1 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts +19 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts +19 -0
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/storageChargeItem.d.cts +19 -0
- package/dist/api/api-schemas/storageChargeItem.d.cts.map +1 -0
- package/dist/api/api-schemas/storageChargeItem.d.ts +19 -0
- package/dist/api/api-schemas/storageChargeItem.d.ts.map +1 -0
- package/dist/api/api-schemas/storageCharges.d.cts +11 -0
- package/dist/api/api-schemas/storageCharges.d.cts.map +1 -0
- package/dist/api/api-schemas/storageCharges.d.ts +11 -0
- package/dist/api/api-schemas/storageCharges.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetail.d.cts +27 -0
- package/dist/api/api-schemas/unitAllDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/unitAllDetail.d.ts +27 -0
- package/dist/api/api-schemas/unitAllDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitChargeSummary.d.cts +10 -0
- package/dist/api/api-schemas/unitChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/unitChargeSummary.d.ts +10 -0
- package/dist/api/api-schemas/unitChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts +32 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts +32 -0
- package/dist/api/api-schemas/unitChargesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetail.d.cts +24 -0
- package/dist/api/api-schemas/unitDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/unitDetail.d.ts +24 -0
- package/dist/api/api-schemas/unitDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts +24 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts +24 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/unitGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/unitGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts +14 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts +14 -0
- package/dist/api/api-schemas/unitPatchBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs +12 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts +26 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts +26 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts.map +1 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js +11 -0
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js.map +1 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts +12 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts +12 -0
- package/dist/api/api-schemas/unitProductChargeSummary.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts +30 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts +30 -0
- package/dist/api/api-schemas/unitProductPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs +12 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js +11 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs +10 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts +24 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts.map +1 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js +9 -0
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js.map +1 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.cts +18 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.ts +18 -0
- package/dist/api/api-schemas/unitProductPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/unitsGetResponse.d.cts +12 -0
- package/dist/api/api-schemas/unitsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/unitsGetResponse.d.ts +12 -0
- package/dist/api/api-schemas/unitsGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/userAccountDetail.d.cts +14 -0
- package/dist/api/api-schemas/userAccountDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/userAccountDetail.d.ts +14 -0
- package/dist/api/api-schemas/userAccountDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.cts +8 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.ts +8 -0
- package/dist/api/api-schemas/userAccountGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/userDetail.d.cts +18 -0
- package/dist/api/api-schemas/userDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/userDetail.d.ts +18 -0
- package/dist/api/api-schemas/userDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/usersGetResponse.d.cts +17 -0
- package/dist/api/api-schemas/usersGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/usersGetResponse.d.ts +17 -0
- package/dist/api/api-schemas/usersGetResponse.d.ts.map +1 -0
- package/dist/api/asset/asset.cjs +114 -90
- package/dist/api/asset/asset.cjs.map +1 -1
- package/dist/api/asset/asset.d.cts +33 -17
- package/dist/api/asset/asset.d.cts.map +1 -1
- package/dist/api/asset/asset.d.ts +33 -17
- package/dist/api/asset/asset.d.ts.map +1 -1
- package/dist/api/asset/asset.fetch.cjs +478 -0
- package/dist/api/asset/asset.fetch.cjs.map +1 -0
- package/dist/api/asset/asset.fetch.d.cts +546 -0
- package/dist/api/asset/asset.fetch.d.cts.map +1 -0
- package/dist/api/asset/asset.fetch.d.ts +546 -0
- package/dist/api/asset/asset.fetch.d.ts.map +1 -0
- package/dist/api/asset/asset.fetch.js +434 -0
- package/dist/api/asset/asset.fetch.js.map +1 -0
- package/dist/api/asset/asset.js +93 -71
- package/dist/api/asset/asset.js.map +1 -1
- package/dist/api/charges/charges.cjs +122 -66
- package/dist/api/charges/charges.cjs.map +1 -1
- package/dist/api/charges/charges.d.cts +40 -16
- package/dist/api/charges/charges.d.cts.map +1 -1
- package/dist/api/charges/charges.d.ts +40 -16
- package/dist/api/charges/charges.d.ts.map +1 -1
- package/dist/api/charges/charges.fetch.cjs +347 -0
- package/dist/api/charges/charges.fetch.cjs.map +1 -0
- package/dist/api/charges/charges.fetch.d.cts +306 -0
- package/dist/api/charges/charges.fetch.d.cts.map +1 -0
- package/dist/api/charges/charges.fetch.d.ts +306 -0
- package/dist/api/charges/charges.fetch.d.ts.map +1 -0
- package/dist/api/charges/charges.fetch.js +315 -0
- package/dist/api/charges/charges.fetch.js.map +1 -0
- package/dist/api/charges/charges.js +107 -55
- package/dist/api/charges/charges.js.map +1 -1
- package/dist/api/event-stream/event-stream.cjs +69 -50
- package/dist/api/event-stream/event-stream.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.d.cts +23 -12
- package/dist/api/event-stream/event-stream.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.d.ts +23 -12
- package/dist/api/event-stream/event-stream.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.cjs +249 -0
- package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.d.cts +257 -0
- package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.d.ts +257 -0
- package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -0
- package/dist/api/event-stream/event-stream.fetch.js +225 -0
- package/dist/api/event-stream/event-stream.fetch.js.map +1 -0
- package/dist/api/event-stream/event-stream.js +58 -41
- package/dist/api/event-stream/event-stream.js.map +1 -1
- package/dist/api/merchant/merchant.cjs +54 -34
- package/dist/api/merchant/merchant.cjs.map +1 -1
- package/dist/api/merchant/merchant.d.cts +20 -10
- package/dist/api/merchant/merchant.d.cts.map +1 -1
- package/dist/api/merchant/merchant.d.ts +20 -10
- package/dist/api/merchant/merchant.d.ts.map +1 -1
- package/dist/api/merchant/merchant.fetch.cjs +165 -0
- package/dist/api/merchant/merchant.fetch.cjs.map +1 -0
- package/dist/api/merchant/merchant.fetch.d.cts +151 -0
- package/dist/api/merchant/merchant.fetch.d.cts.map +1 -0
- package/dist/api/merchant/merchant.fetch.d.ts +151 -0
- package/dist/api/merchant/merchant.fetch.d.ts.map +1 -0
- package/dist/api/merchant/merchant.fetch.js +149 -0
- package/dist/api/merchant/merchant.fetch.js.map +1 -0
- package/dist/api/merchant/merchant.js +47 -29
- package/dist/api/merchant/merchant.js.map +1 -1
- package/dist/api/organisation/organisation.cjs +110 -74
- package/dist/api/organisation/organisation.cjs.map +1 -1
- package/dist/api/organisation/organisation.d.cts +35 -16
- package/dist/api/organisation/organisation.d.cts.map +1 -1
- package/dist/api/organisation/organisation.d.ts +35 -16
- package/dist/api/organisation/organisation.d.ts.map +1 -1
- package/dist/api/organisation/organisation.fetch.cjs +379 -0
- package/dist/api/organisation/organisation.fetch.cjs.map +1 -0
- package/dist/api/organisation/organisation.fetch.d.cts +398 -0
- package/dist/api/organisation/organisation.fetch.d.cts.map +1 -0
- package/dist/api/organisation/organisation.fetch.d.ts +398 -0
- package/dist/api/organisation/organisation.fetch.d.ts.map +1 -0
- package/dist/api/organisation/organisation.fetch.js +343 -0
- package/dist/api/organisation/organisation.fetch.js.map +1 -0
- package/dist/api/organisation/organisation.js +93 -60
- package/dist/api/organisation/organisation.js.map +1 -1
- package/dist/api/product/product.cjs +188 -124
- package/dist/api/product/product.cjs.map +1 -1
- package/dist/api/product/product.d.cts +56 -25
- package/dist/api/product/product.d.cts.map +1 -1
- package/dist/api/product/product.d.ts +56 -25
- package/dist/api/product/product.d.ts.map +1 -1
- package/dist/api/product/product.fetch.cjs +591 -0
- package/dist/api/product/product.fetch.cjs.map +1 -0
- package/dist/api/product/product.fetch.d.cts +605 -0
- package/dist/api/product/product.fetch.d.cts.map +1 -0
- package/dist/api/product/product.fetch.d.ts +605 -0
- package/dist/api/product/product.fetch.d.ts.map +1 -0
- package/dist/api/product/product.fetch.js +531 -0
- package/dist/api/product/product.fetch.js.map +1 -0
- package/dist/api/product/product.js +159 -101
- package/dist/api/product/product.js.map +1 -1
- package/dist/api/state/state.cjs +25 -18
- package/dist/api/state/state.cjs.map +1 -1
- package/dist/api/state/state.d.cts +12 -7
- package/dist/api/state/state.d.cts.map +1 -1
- package/dist/api/state/state.d.ts +12 -7
- package/dist/api/state/state.d.ts.map +1 -1
- package/dist/api/state/state.fetch.cjs +89 -0
- package/dist/api/state/state.fetch.cjs.map +1 -0
- package/dist/api/state/state.fetch.d.cts +77 -0
- package/dist/api/state/state.fetch.d.cts.map +1 -0
- package/dist/api/state/state.fetch.d.ts +77 -0
- package/dist/api/state/state.fetch.d.ts.map +1 -0
- package/dist/api/state/state.fetch.js +81 -0
- package/dist/api/state/state.fetch.js.map +1 -0
- package/dist/api/state/state.js +22 -16
- package/dist/api/state/state.js.map +1 -1
- package/dist/api/unit/unit.cjs +169 -123
- package/dist/api/unit/unit.cjs.map +1 -1
- package/dist/api/unit/unit.d.cts +48 -23
- package/dist/api/unit/unit.d.cts.map +1 -1
- package/dist/api/unit/unit.d.ts +48 -23
- package/dist/api/unit/unit.d.ts.map +1 -1
- package/dist/api/unit/unit.fetch.cjs +620 -0
- package/dist/api/unit/unit.fetch.cjs.map +1 -0
- package/dist/api/unit/unit.fetch.d.cts +665 -0
- package/dist/api/unit/unit.fetch.d.cts.map +1 -0
- package/dist/api/unit/unit.fetch.d.ts +665 -0
- package/dist/api/unit/unit.fetch.d.ts.map +1 -0
- package/dist/api/unit/unit.fetch.js +560 -0
- package/dist/api/unit/unit.fetch.js.map +1 -0
- package/dist/api/unit/unit.js +140 -98
- package/dist/api/unit/unit.js.map +1 -1
- package/dist/api/user/user.cjs +121 -82
- package/dist/api/user/user.cjs.map +1 -1
- package/dist/api/user/user.d.cts +31 -17
- package/dist/api/user/user.d.cts.map +1 -1
- package/dist/api/user/user.d.ts +31 -17
- package/dist/api/user/user.d.ts.map +1 -1
- package/dist/api/user/user.fetch.cjs +407 -0
- package/dist/api/user/user.fetch.cjs.map +1 -0
- package/dist/api/user/user.fetch.d.cts +454 -0
- package/dist/api/user/user.fetch.d.cts.map +1 -0
- package/dist/api/user/user.fetch.d.ts +454 -0
- package/dist/api/user/user.fetch.d.ts.map +1 -0
- package/dist/api/user/user.fetch.js +367 -0
- package/dist/api/user/user.fetch.js.map +1 -0
- package/dist/api/user/user.js +102 -66
- package/dist/api/user/user.js.map +1 -1
- package/dist/{custom-instance.cjs → custom-axios.cjs} +6 -14
- package/dist/custom-axios.cjs.map +1 -0
- package/dist/{custom-instance.d.ts → custom-axios.d.cts} +2 -2
- package/dist/custom-axios.d.cts.map +1 -0
- package/dist/{custom-instance.d.cts → custom-axios.d.ts} +2 -2
- package/dist/custom-axios.d.ts.map +1 -0
- package/dist/{custom-instance.js → custom-axios.js} +6 -14
- package/dist/custom-axios.js.map +1 -0
- package/dist/custom-fetch.cjs +32 -0
- package/dist/custom-fetch.cjs.map +1 -0
- package/dist/custom-fetch.d.cts +13 -0
- package/dist/custom-fetch.d.cts.map +1 -0
- package/dist/custom-fetch.d.ts +13 -0
- package/dist/custom-fetch.d.ts.map +1 -0
- package/dist/custom-fetch.js +31 -0
- package/dist/custom-fetch.js.map +1 -0
- package/dist/index.cjs +53 -30
- package/dist/index.d.cts +118 -2
- package/dist/index.d.ts +118 -2
- package/dist/index.js +25 -2
- package/morph-query-keys.ts +57 -0
- package/orval.config.ts +46 -7
- package/package.json +256 -3
- package/src/api/actions/actions.fetch.ts +188 -0
- package/src/api/actions/actions.ts +29 -17
- package/src/api/api-schemas/actionDetail.ts +22 -0
- package/src/api/api-schemas/actionGetResponse.ts +20 -0
- package/src/api/api-schemas/asError.ts +15 -0
- package/src/api/api-schemas/assetDetail.ts +27 -0
- package/src/api/api-schemas/assetDetailScope.ts +21 -0
- package/src/api/api-schemas/assetGetByIdResponse.ts +13 -0
- package/src/api/api-schemas/assetGetResponse.ts +20 -0
- package/src/api/api-schemas/assetPatchBodyBody.ts +19 -0
- package/src/api/api-schemas/assetPostBodyBody.ts +32 -0
- package/src/api/api-schemas/assetPostBodyBodyScope.ts +25 -0
- package/src/api/api-schemas/assetPostResponse.ts +16 -0
- package/src/api/api-schemas/attachAssetParams.ts +19 -0
- package/src/api/api-schemas/chargeAdditionalData.ts +14 -0
- package/src/api/api-schemas/chargeSummary.ts +18 -0
- package/src/api/api-schemas/chargeSummaryType.ts +18 -0
- package/src/api/api-schemas/chargesGetResponse.ts +19 -0
- package/src/api/api-schemas/detachAssetParams.ts +19 -0
- package/src/api/api-schemas/eventStreamGetPostResponse.ts +21 -0
- package/src/api/api-schemas/eventStreamPostBodyBody.ts +13 -0
- package/src/api/api-schemas/eventStreamPostBodyBodyFormat.ts +19 -0
- package/src/api/api-schemas/eventStreamVersionGetResponse.ts +20 -0
- package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.ts +23 -0
- package/src/api/api-schemas/getActionsParams.ts +52 -0
- package/src/api/api-schemas/getAssetParams.ts +39 -0
- package/src/api/api-schemas/getChargesParams.ts +30 -0
- package/src/api/api-schemas/getOrganisationChargesParams.ts +30 -0
- package/src/api/api-schemas/getOrganisationsParams.ts +18 -0
- package/src/api/api-schemas/getProductChargesParams.ts +30 -0
- package/src/api/api-schemas/getUnitChargesParams.ts +30 -0
- package/src/api/api-schemas/getUnitsParams.ts +18 -0
- package/src/api/api-schemas/index.ts +128 -0
- package/src/api/api-schemas/merchantDetail.ts +23 -0
- package/src/api/api-schemas/merchantDetailKind.ts +18 -0
- package/src/api/api-schemas/merchantGetResponse.ts +13 -0
- package/src/api/api-schemas/merchantSummary.ts +20 -0
- package/src/api/api-schemas/merchantSummaryKind.ts +18 -0
- package/src/api/api-schemas/merchantsGetResponse.ts +18 -0
- package/src/api/api-schemas/organisationAllDetail.ts +30 -0
- package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationChargeSummary.ts +17 -0
- package/src/api/api-schemas/organisationChargesGetResponse.ts +20 -0
- package/src/api/api-schemas/organisationDetail.ts +27 -0
- package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationGetDefaultResponse.ts +28 -0
- package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationGetResponse.ts +13 -0
- package/src/api/api-schemas/organisationPatchBodyBody.ts +20 -0
- package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.ts +26 -0
- package/src/api/api-schemas/organisationPostBodyBody.ts +23 -0
- package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationPostResponse.ts +15 -0
- package/src/api/api-schemas/organisationUnitChargeSummary.ts +26 -0
- package/src/api/api-schemas/organisationUnitPostBodyBody.ts +27 -0
- package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/organisationUnitPostResponse.ts +15 -0
- package/src/api/api-schemas/organisationUnitsGetResponse.ts +20 -0
- package/src/api/api-schemas/organisationsGetResponse.ts +17 -0
- package/src/api/api-schemas/personalUnitPutBodyBody.ts +19 -0
- package/src/api/api-schemas/personalUnitPutResponse.ts +17 -0
- package/src/api/api-schemas/processingChargeItem.ts +25 -0
- package/src/api/api-schemas/processingCharges.ts +25 -0
- package/src/api/api-schemas/processingChargesMerchantKind.ts +16 -0
- package/src/api/api-schemas/productChargesGetResponse.ts +36 -0
- package/src/api/api-schemas/productChargesGetResponseProductType.ts +19 -0
- package/src/api/api-schemas/productClaimDetail.ts +19 -0
- package/src/api/api-schemas/productCoinsDetail.ts +35 -0
- package/src/api/api-schemas/productDetail.ts +28 -0
- package/src/api/api-schemas/productDetailFlavour.ts +24 -0
- package/src/api/api-schemas/productDetailType.ts +22 -0
- package/src/api/api-schemas/productDmProjectTier.ts +29 -0
- package/src/api/api-schemas/productDmStorage.ts +25 -0
- package/src/api/api-schemas/productDmStorageDetail.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetailCoins.ts +17 -0
- package/src/api/api-schemas/productDmStorageDetailSize.ts +21 -0
- package/src/api/api-schemas/productInstanceDetail.ts +15 -0
- package/src/api/api-schemas/productInstanceDetailCoins.ts +16 -0
- package/src/api/api-schemas/productPatchBodyBody.ts +28 -0
- package/src/api/api-schemas/productType.ts +20 -0
- package/src/api/api-schemas/productTypeServiceKind.ts +19 -0
- package/src/api/api-schemas/productUnitGetResponse.ts +16 -0
- package/src/api/api-schemas/productUnitGetResponseProduct.ts +17 -0
- package/src/api/api-schemas/productsGetDefaultStorageCost.ts +15 -0
- package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.ts +16 -0
- package/src/api/api-schemas/productsGetResponse.ts +17 -0
- package/src/api/api-schemas/productsGetResponseProductsItem.ts +14 -0
- package/src/api/api-schemas/productsGetTypesResponse.ts +18 -0
- package/src/api/api-schemas/qFormatParameter.ts +18 -0
- package/src/api/api-schemas/qFromParameter.ts +15 -0
- package/src/api/api-schemas/qMIdParameter.ts +15 -0
- package/src/api/api-schemas/qNameParameter.ts +15 -0
- package/src/api/api-schemas/qOrgIdParameter.ts +15 -0
- package/src/api/api-schemas/qPbpParameter.ts +15 -0
- package/src/api/api-schemas/qProductIdParameter.ts +15 -0
- package/src/api/api-schemas/qUnitIdParameter.ts +15 -0
- package/src/api/api-schemas/qUntilParameter.ts +15 -0
- package/src/api/api-schemas/qUserIdParameter.ts +15 -0
- package/src/api/api-schemas/stateGetVersionResponse.ts +16 -0
- package/src/api/api-schemas/storageChargeItem.ts +24 -0
- package/src/api/api-schemas/storageCharges.ts +16 -0
- package/src/api/api-schemas/unitAllDetail.ts +32 -0
- package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/unitChargeSummary.ts +15 -0
- package/src/api/api-schemas/unitChargesGetResponse.ts +37 -0
- package/src/api/api-schemas/unitDetail.ts +29 -0
- package/src/api/api-schemas/unitDetailDefaultProductPrivacy.ts +24 -0
- package/src/api/api-schemas/unitGetResponse.ts +13 -0
- package/src/api/api-schemas/unitPatchBodyBody.ts +20 -0
- package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.ts +26 -0
- package/src/api/api-schemas/unitProductChargeSummary.ts +17 -0
- package/src/api/api-schemas/unitProductPostBodyBody.ts +36 -0
- package/src/api/api-schemas/unitProductPostBodyBodyFlavour.ts +24 -0
- package/src/api/api-schemas/unitProductPostBodyBodyType.ts +24 -0
- package/src/api/api-schemas/unitProductPostResponse.ts +15 -0
- package/src/api/api-schemas/unitsGetResponse.ts +17 -0
- package/src/api/api-schemas/userAccountDetail.ts +19 -0
- package/src/api/api-schemas/userAccountGetResponse.ts +13 -0
- package/src/api/api-schemas/userDetail.ts +15 -0
- package/src/api/api-schemas/usersGetResponse.ts +22 -0
- package/src/api/asset/asset.fetch.ts +1119 -0
- package/src/api/asset/asset.ts +70 -64
- package/src/api/charges/charges.fetch.ts +777 -0
- package/src/api/charges/charges.ts +101 -50
- package/src/api/event-stream/event-stream.fetch.ts +539 -0
- package/src/api/event-stream/event-stream.ts +49 -37
- package/src/api/merchant/merchant.fetch.ts +318 -0
- package/src/api/merchant/merchant.ts +48 -28
- package/src/api/organisation/organisation.fetch.ts +863 -0
- package/src/api/organisation/organisation.ts +73 -53
- package/src/api/product/product.fetch.ts +1292 -0
- package/src/api/product/product.ts +141 -88
- package/src/api/state/state.fetch.ts +162 -0
- package/src/api/state/state.ts +28 -17
- package/src/api/unit/unit.fetch.ts +1394 -0
- package/src/api/unit/unit.ts +116 -88
- package/src/api/user/user.fetch.ts +965 -0
- package/src/api/user/user.ts +82 -58
- package/src/{custom-instance.ts → custom-axios.ts} +1 -14
- package/src/custom-fetch.ts +59 -0
- package/src/index.ts +2 -2
- package/tsdown.config.ts +35 -4
- package/dist/api/api.schemas.cjs +0 -142
- package/dist/api/api.schemas.cjs.map +0 -1
- package/dist/api/api.schemas.d.cts +0 -1032
- package/dist/api/api.schemas.d.cts.map +0 -1
- package/dist/api/api.schemas.d.ts +0 -1032
- package/dist/api/api.schemas.d.ts.map +0 -1
- package/dist/api/api.schemas.js +0 -118
- package/dist/api/api.schemas.js.map +0 -1
- package/dist/custom-instance.cjs.map +0 -1
- package/dist/custom-instance.d.cts.map +0 -1
- package/dist/custom-instance.d.ts.map +0 -1
- package/dist/custom-instance.js.map +0 -1
- package/dist/options-mutator.cjs +0 -24
- package/dist/options-mutator.cjs.map +0 -1
- package/dist/options-mutator.js +0 -23
- package/dist/options-mutator.js.map +0 -1
- package/src/api/api.schemas.ts +0 -1199
- package/src/options-mutator.ts +0 -27
|
@@ -0,0 +1,1119 @@
|
|
|
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
|
+
AssetDetail,
|
|
29
|
+
AssetGetResponse,
|
|
30
|
+
AssetPatchBodyBody,
|
|
31
|
+
AssetPostBodyBody,
|
|
32
|
+
AssetPostResponse,
|
|
33
|
+
AttachAssetParams,
|
|
34
|
+
DetachAssetParams,
|
|
35
|
+
GetAssetParams,
|
|
36
|
+
} from ".././api-schemas";
|
|
37
|
+
|
|
38
|
+
import { customFetch } from "../../custom-fetch";
|
|
39
|
+
import type { ErrorType } from "../../custom-fetch";
|
|
40
|
+
|
|
41
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets Assets you have access to.
|
|
45
|
+
|
|
46
|
+
* @summary Gets Assets
|
|
47
|
+
*/
|
|
48
|
+
export type getAssetResponse201 = { data: AssetGetResponse; status: 201 };
|
|
49
|
+
|
|
50
|
+
export type getAssetResponse400 = { data: AsError; status: 400 };
|
|
51
|
+
|
|
52
|
+
export type getAssetResponse401 = { data: void; status: 401 };
|
|
53
|
+
|
|
54
|
+
export type getAssetResponse403 = { data: AsError; status: 403 };
|
|
55
|
+
|
|
56
|
+
export type getAssetResponseSuccess = getAssetResponse201 & { headers: Headers };
|
|
57
|
+
export type getAssetResponseError = (
|
|
58
|
+
| getAssetResponse400
|
|
59
|
+
| getAssetResponse401
|
|
60
|
+
| getAssetResponse403
|
|
61
|
+
) & { headers: Headers };
|
|
62
|
+
|
|
63
|
+
export type getAssetResponse = getAssetResponseSuccess | getAssetResponseError;
|
|
64
|
+
|
|
65
|
+
export const getGetAssetUrl = (params?: GetAssetParams) => {
|
|
66
|
+
const normalizedParams = new URLSearchParams();
|
|
67
|
+
|
|
68
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
69
|
+
if (value !== undefined) {
|
|
70
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const stringifiedParams = normalizedParams.toString();
|
|
75
|
+
|
|
76
|
+
return stringifiedParams.length > 0 ? `/asset?${stringifiedParams}` : `/asset`;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const getAsset = async (
|
|
80
|
+
params?: GetAssetParams,
|
|
81
|
+
options?: RequestInit,
|
|
82
|
+
): Promise<getAssetResponse> => {
|
|
83
|
+
return customFetch<getAssetResponse>(getGetAssetUrl(params), { ...options, method: "GET" });
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const getGetAssetQueryKey = (params?: GetAssetParams) => {
|
|
87
|
+
return ["account-server", "asset", ...(params ? [params] : [])] as const;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const getGetAssetQueryOptions = <
|
|
91
|
+
TData = Awaited<ReturnType<typeof getAsset>>,
|
|
92
|
+
TError = ErrorType<AsError | void>,
|
|
93
|
+
>(
|
|
94
|
+
params?: GetAssetParams,
|
|
95
|
+
options?: {
|
|
96
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getAsset>>, TError, TData>;
|
|
97
|
+
request?: SecondParameter<typeof customFetch>;
|
|
98
|
+
},
|
|
99
|
+
) => {
|
|
100
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
101
|
+
|
|
102
|
+
const queryKey = queryOptions?.queryKey ?? getGetAssetQueryKey(params);
|
|
103
|
+
|
|
104
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAsset>>> = ({ signal }) =>
|
|
105
|
+
getAsset(params, { signal, ...requestOptions });
|
|
106
|
+
|
|
107
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
108
|
+
Awaited<ReturnType<typeof getAsset>>,
|
|
109
|
+
TError,
|
|
110
|
+
TData
|
|
111
|
+
> & { queryKey: QueryKey };
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type GetAssetQueryResult = NonNullable<Awaited<ReturnType<typeof getAsset>>>;
|
|
115
|
+
export type GetAssetQueryError = ErrorType<AsError | void>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @summary Gets Assets
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
export function useGetAsset<
|
|
122
|
+
TData = Awaited<ReturnType<typeof getAsset>>,
|
|
123
|
+
TError = ErrorType<AsError | void>,
|
|
124
|
+
>(
|
|
125
|
+
params?: GetAssetParams,
|
|
126
|
+
options?: {
|
|
127
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getAsset>>, TError, TData>;
|
|
128
|
+
request?: SecondParameter<typeof customFetch>;
|
|
129
|
+
},
|
|
130
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
131
|
+
const queryOptions = getGetAssetQueryOptions(params, options);
|
|
132
|
+
|
|
133
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
134
|
+
|
|
135
|
+
query.queryKey = queryOptions.queryKey;
|
|
136
|
+
|
|
137
|
+
return query;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @summary Gets Assets
|
|
142
|
+
*/
|
|
143
|
+
export const invalidateGetAsset = async (
|
|
144
|
+
queryClient: QueryClient,
|
|
145
|
+
params?: GetAssetParams,
|
|
146
|
+
options?: InvalidateOptions,
|
|
147
|
+
): Promise<QueryClient> => {
|
|
148
|
+
await queryClient.invalidateQueries({ queryKey: getGetAssetQueryKey(params) }, options);
|
|
149
|
+
|
|
150
|
+
return queryClient;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export const getGetAssetSuspenseQueryOptions = <
|
|
154
|
+
TData = Awaited<ReturnType<typeof getAsset>>,
|
|
155
|
+
TError = ErrorType<AsError | void>,
|
|
156
|
+
>(
|
|
157
|
+
params?: GetAssetParams,
|
|
158
|
+
options?: {
|
|
159
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAsset>>, TError, TData>;
|
|
160
|
+
request?: SecondParameter<typeof customFetch>;
|
|
161
|
+
},
|
|
162
|
+
) => {
|
|
163
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
164
|
+
|
|
165
|
+
const queryKey = queryOptions?.queryKey ?? getGetAssetQueryKey(params);
|
|
166
|
+
|
|
167
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAsset>>> = ({ signal }) =>
|
|
168
|
+
getAsset(params, { signal, ...requestOptions });
|
|
169
|
+
|
|
170
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
171
|
+
Awaited<ReturnType<typeof getAsset>>,
|
|
172
|
+
TError,
|
|
173
|
+
TData
|
|
174
|
+
> & { queryKey: QueryKey };
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
export type GetAssetSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAsset>>>;
|
|
178
|
+
export type GetAssetSuspenseQueryError = ErrorType<AsError | void>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @summary Gets Assets
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
export function useGetAssetSuspense<
|
|
185
|
+
TData = Awaited<ReturnType<typeof getAsset>>,
|
|
186
|
+
TError = ErrorType<AsError | void>,
|
|
187
|
+
>(
|
|
188
|
+
params?: GetAssetParams,
|
|
189
|
+
options?: {
|
|
190
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAsset>>, TError, TData>;
|
|
191
|
+
request?: SecondParameter<typeof customFetch>;
|
|
192
|
+
},
|
|
193
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
194
|
+
const queryOptions = getGetAssetSuspenseQueryOptions(params, options);
|
|
195
|
+
|
|
196
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
197
|
+
queryKey: QueryKey;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
query.queryKey = queryOptions.queryKey;
|
|
201
|
+
|
|
202
|
+
return query;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Creates an Asset, which can be attached to a **User** account, a **Product**, **Unit**, **Organisation** or can be made **Global**
|
|
207
|
+
|
|
208
|
+
Assets are text and file resources that can be requested by **Merchants**. The Data Manager **Merchant** uses assets to provide additional information that's often sensitive to **Job** (and **Application**) **Instances**.
|
|
209
|
+
|
|
210
|
+
Assets must be *enabled* before they can be used.
|
|
211
|
+
|
|
212
|
+
They must also be *attached* to a **Merchant** before the **Merchant** can ue them. Assets are only available to merchants if they are enabled and attached.
|
|
213
|
+
|
|
214
|
+
* @summary Create an Asset
|
|
215
|
+
*/
|
|
216
|
+
export type createAssetResponse201 = { data: AssetPostResponse; status: 201 };
|
|
217
|
+
|
|
218
|
+
export type createAssetResponse400 = { data: AsError; status: 400 };
|
|
219
|
+
|
|
220
|
+
export type createAssetResponse401 = { data: void; status: 401 };
|
|
221
|
+
|
|
222
|
+
export type createAssetResponse403 = { data: AsError; status: 403 };
|
|
223
|
+
|
|
224
|
+
export type createAssetResponseSuccess = createAssetResponse201 & { headers: Headers };
|
|
225
|
+
export type createAssetResponseError = (
|
|
226
|
+
| createAssetResponse400
|
|
227
|
+
| createAssetResponse401
|
|
228
|
+
| createAssetResponse403
|
|
229
|
+
) & { headers: Headers };
|
|
230
|
+
|
|
231
|
+
export type createAssetResponse = createAssetResponseSuccess | createAssetResponseError;
|
|
232
|
+
|
|
233
|
+
export const getCreateAssetUrl = () => {
|
|
234
|
+
return `/asset`;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export const createAsset = async (
|
|
238
|
+
assetPostBodyBody: AssetPostBodyBody,
|
|
239
|
+
options?: RequestInit,
|
|
240
|
+
): Promise<createAssetResponse> => {
|
|
241
|
+
const formData = new FormData();
|
|
242
|
+
formData.append(`name`, assetPostBodyBody.name);
|
|
243
|
+
if (assetPostBodyBody.content_file !== undefined) {
|
|
244
|
+
formData.append(`content_file`, assetPostBodyBody.content_file);
|
|
245
|
+
}
|
|
246
|
+
if (assetPostBodyBody.content_string !== undefined) {
|
|
247
|
+
formData.append(`content_string`, assetPostBodyBody.content_string);
|
|
248
|
+
}
|
|
249
|
+
formData.append(`scope`, assetPostBodyBody.scope);
|
|
250
|
+
if (assetPostBodyBody.scope_id !== undefined) {
|
|
251
|
+
formData.append(`scope_id`, assetPostBodyBody.scope_id);
|
|
252
|
+
}
|
|
253
|
+
formData.append(`secret`, assetPostBodyBody.secret.toString());
|
|
254
|
+
if (assetPostBodyBody.description !== undefined) {
|
|
255
|
+
formData.append(`description`, assetPostBodyBody.description);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
return customFetch<createAssetResponse>(getCreateAssetUrl(), {
|
|
259
|
+
...options,
|
|
260
|
+
method: "POST",
|
|
261
|
+
body: formData,
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
export const getCreateAssetMutationOptions = <
|
|
266
|
+
TError = ErrorType<AsError | void>,
|
|
267
|
+
TContext = unknown,
|
|
268
|
+
>(options?: {
|
|
269
|
+
mutation?: UseMutationOptions<
|
|
270
|
+
Awaited<ReturnType<typeof createAsset>>,
|
|
271
|
+
TError,
|
|
272
|
+
{ data: AssetPostBodyBody },
|
|
273
|
+
TContext
|
|
274
|
+
>;
|
|
275
|
+
request?: SecondParameter<typeof customFetch>;
|
|
276
|
+
}): UseMutationOptions<
|
|
277
|
+
Awaited<ReturnType<typeof createAsset>>,
|
|
278
|
+
TError,
|
|
279
|
+
{ data: AssetPostBodyBody },
|
|
280
|
+
TContext
|
|
281
|
+
> => {
|
|
282
|
+
const mutationKey = ["createAsset"];
|
|
283
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
284
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
285
|
+
? options
|
|
286
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
287
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
288
|
+
|
|
289
|
+
const mutationFn: MutationFunction<
|
|
290
|
+
Awaited<ReturnType<typeof createAsset>>,
|
|
291
|
+
{ data: AssetPostBodyBody }
|
|
292
|
+
> = (props) => {
|
|
293
|
+
const { data } = props ?? {};
|
|
294
|
+
|
|
295
|
+
return createAsset(data, requestOptions);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
return { mutationFn, ...mutationOptions };
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export type CreateAssetMutationResult = NonNullable<Awaited<ReturnType<typeof createAsset>>>;
|
|
302
|
+
export type CreateAssetMutationBody = AssetPostBodyBody;
|
|
303
|
+
export type CreateAssetMutationError = ErrorType<AsError | void>;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @summary Create an Asset
|
|
307
|
+
*/
|
|
308
|
+
export const useCreateAsset = <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
309
|
+
mutation?: UseMutationOptions<
|
|
310
|
+
Awaited<ReturnType<typeof createAsset>>,
|
|
311
|
+
TError,
|
|
312
|
+
{ data: AssetPostBodyBody },
|
|
313
|
+
TContext
|
|
314
|
+
>;
|
|
315
|
+
request?: SecondParameter<typeof customFetch>;
|
|
316
|
+
}): UseMutationResult<
|
|
317
|
+
Awaited<ReturnType<typeof createAsset>>,
|
|
318
|
+
TError,
|
|
319
|
+
{ data: AssetPostBodyBody },
|
|
320
|
+
TContext
|
|
321
|
+
> => {
|
|
322
|
+
const mutationOptions = getCreateAssetMutationOptions(options);
|
|
323
|
+
|
|
324
|
+
return useMutation(mutationOptions);
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Gets a known Asset
|
|
328
|
+
|
|
329
|
+
* @summary Gets an Asset
|
|
330
|
+
*/
|
|
331
|
+
export type getSpecificAssetResponse201 = { data: AssetDetail; status: 201 };
|
|
332
|
+
|
|
333
|
+
export type getSpecificAssetResponse400 = { data: AsError; status: 400 };
|
|
334
|
+
|
|
335
|
+
export type getSpecificAssetResponse401 = { data: void; status: 401 };
|
|
336
|
+
|
|
337
|
+
export type getSpecificAssetResponse403 = { data: AsError; status: 403 };
|
|
338
|
+
|
|
339
|
+
export type getSpecificAssetResponseSuccess = getSpecificAssetResponse201 & { headers: Headers };
|
|
340
|
+
export type getSpecificAssetResponseError = (
|
|
341
|
+
| getSpecificAssetResponse400
|
|
342
|
+
| getSpecificAssetResponse401
|
|
343
|
+
| getSpecificAssetResponse403
|
|
344
|
+
) & { headers: Headers };
|
|
345
|
+
|
|
346
|
+
export type getSpecificAssetResponse =
|
|
347
|
+
| getSpecificAssetResponseSuccess
|
|
348
|
+
| getSpecificAssetResponseError;
|
|
349
|
+
|
|
350
|
+
export const getGetSpecificAssetUrl = (assetId: string) => {
|
|
351
|
+
return `/asset/${assetId}`;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
export const getSpecificAsset = async (
|
|
355
|
+
assetId: string,
|
|
356
|
+
options?: RequestInit,
|
|
357
|
+
): Promise<getSpecificAssetResponse> => {
|
|
358
|
+
return customFetch<getSpecificAssetResponse>(getGetSpecificAssetUrl(assetId), {
|
|
359
|
+
...options,
|
|
360
|
+
method: "GET",
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
export const getGetSpecificAssetQueryKey = (assetId?: string) => {
|
|
365
|
+
return ["account-server", "asset", assetId] as const;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
export const getGetSpecificAssetQueryOptions = <
|
|
369
|
+
TData = Awaited<ReturnType<typeof getSpecificAsset>>,
|
|
370
|
+
TError = ErrorType<AsError | void>,
|
|
371
|
+
>(
|
|
372
|
+
assetId: string,
|
|
373
|
+
options?: {
|
|
374
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getSpecificAsset>>, TError, TData>;
|
|
375
|
+
request?: SecondParameter<typeof customFetch>;
|
|
376
|
+
},
|
|
377
|
+
) => {
|
|
378
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
379
|
+
|
|
380
|
+
const queryKey = queryOptions?.queryKey ?? getGetSpecificAssetQueryKey(assetId);
|
|
381
|
+
|
|
382
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getSpecificAsset>>> = ({ signal }) =>
|
|
383
|
+
getSpecificAsset(assetId, { signal, ...requestOptions });
|
|
384
|
+
|
|
385
|
+
return { queryKey, queryFn, enabled: !!assetId, ...queryOptions } as UseQueryOptions<
|
|
386
|
+
Awaited<ReturnType<typeof getSpecificAsset>>,
|
|
387
|
+
TError,
|
|
388
|
+
TData
|
|
389
|
+
> & { queryKey: QueryKey };
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
export type GetSpecificAssetQueryResult = NonNullable<Awaited<ReturnType<typeof getSpecificAsset>>>;
|
|
393
|
+
export type GetSpecificAssetQueryError = ErrorType<AsError | void>;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @summary Gets an Asset
|
|
397
|
+
*/
|
|
398
|
+
|
|
399
|
+
export function useGetSpecificAsset<
|
|
400
|
+
TData = Awaited<ReturnType<typeof getSpecificAsset>>,
|
|
401
|
+
TError = ErrorType<AsError | void>,
|
|
402
|
+
>(
|
|
403
|
+
assetId: string,
|
|
404
|
+
options?: {
|
|
405
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getSpecificAsset>>, TError, TData>;
|
|
406
|
+
request?: SecondParameter<typeof customFetch>;
|
|
407
|
+
},
|
|
408
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
409
|
+
const queryOptions = getGetSpecificAssetQueryOptions(assetId, options);
|
|
410
|
+
|
|
411
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
412
|
+
|
|
413
|
+
query.queryKey = queryOptions.queryKey;
|
|
414
|
+
|
|
415
|
+
return query;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* @summary Gets an Asset
|
|
420
|
+
*/
|
|
421
|
+
export const invalidateGetSpecificAsset = async (
|
|
422
|
+
queryClient: QueryClient,
|
|
423
|
+
assetId: string,
|
|
424
|
+
options?: InvalidateOptions,
|
|
425
|
+
): Promise<QueryClient> => {
|
|
426
|
+
await queryClient.invalidateQueries({ queryKey: getGetSpecificAssetQueryKey(assetId) }, options);
|
|
427
|
+
|
|
428
|
+
return queryClient;
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
export const getGetSpecificAssetSuspenseQueryOptions = <
|
|
432
|
+
TData = Awaited<ReturnType<typeof getSpecificAsset>>,
|
|
433
|
+
TError = ErrorType<AsError | void>,
|
|
434
|
+
>(
|
|
435
|
+
assetId: string,
|
|
436
|
+
options?: {
|
|
437
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getSpecificAsset>>, TError, TData>;
|
|
438
|
+
request?: SecondParameter<typeof customFetch>;
|
|
439
|
+
},
|
|
440
|
+
) => {
|
|
441
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
442
|
+
|
|
443
|
+
const queryKey = queryOptions?.queryKey ?? getGetSpecificAssetQueryKey(assetId);
|
|
444
|
+
|
|
445
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getSpecificAsset>>> = ({ signal }) =>
|
|
446
|
+
getSpecificAsset(assetId, { signal, ...requestOptions });
|
|
447
|
+
|
|
448
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
449
|
+
Awaited<ReturnType<typeof getSpecificAsset>>,
|
|
450
|
+
TError,
|
|
451
|
+
TData
|
|
452
|
+
> & { queryKey: QueryKey };
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
export type GetSpecificAssetSuspenseQueryResult = NonNullable<
|
|
456
|
+
Awaited<ReturnType<typeof getSpecificAsset>>
|
|
457
|
+
>;
|
|
458
|
+
export type GetSpecificAssetSuspenseQueryError = ErrorType<AsError | void>;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @summary Gets an Asset
|
|
462
|
+
*/
|
|
463
|
+
|
|
464
|
+
export function useGetSpecificAssetSuspense<
|
|
465
|
+
TData = Awaited<ReturnType<typeof getSpecificAsset>>,
|
|
466
|
+
TError = ErrorType<AsError | void>,
|
|
467
|
+
>(
|
|
468
|
+
assetId: string,
|
|
469
|
+
options?: {
|
|
470
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getSpecificAsset>>, TError, TData>;
|
|
471
|
+
request?: SecondParameter<typeof customFetch>;
|
|
472
|
+
},
|
|
473
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
474
|
+
const queryOptions = getGetSpecificAssetSuspenseQueryOptions(assetId, options);
|
|
475
|
+
|
|
476
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
477
|
+
queryKey: QueryKey;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
query.queryKey = queryOptions.queryKey;
|
|
481
|
+
|
|
482
|
+
return query;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Used to update or replace Asset *Content* or *Description*.
|
|
487
|
+
|
|
488
|
+
The content of an Asset currently in use will not be affected by a change made here. If a **Merchant** has already obtained the Asset it may continue to use the original value until the **Merchant** requests the **Asset** again.
|
|
489
|
+
|
|
490
|
+
Anyone can alter a `GLOBAL` asset. For other *scopes* you will need to be the user for `USER` scoped assets, a member of the **Unit** for `UNIT` and `PRODUCT` scoped assets, or a member of the **Organisation** for `ORGANISATION` scoped assets. Administrators can patch any asset.
|
|
491
|
+
|
|
492
|
+
* @summary Adjust an existing Asset
|
|
493
|
+
*/
|
|
494
|
+
export type patchAssetResponse200 = { data: void; status: 200 };
|
|
495
|
+
|
|
496
|
+
export type patchAssetResponse401 = { data: void; status: 401 };
|
|
497
|
+
|
|
498
|
+
export type patchAssetResponse403 = { data: AsError; status: 403 };
|
|
499
|
+
|
|
500
|
+
export type patchAssetResponse404 = { data: AsError; status: 404 };
|
|
501
|
+
|
|
502
|
+
export type patchAssetResponseSuccess = patchAssetResponse200 & { headers: Headers };
|
|
503
|
+
export type patchAssetResponseError = (
|
|
504
|
+
| patchAssetResponse401
|
|
505
|
+
| patchAssetResponse403
|
|
506
|
+
| patchAssetResponse404
|
|
507
|
+
) & { headers: Headers };
|
|
508
|
+
|
|
509
|
+
export type patchAssetResponse = patchAssetResponseSuccess | patchAssetResponseError;
|
|
510
|
+
|
|
511
|
+
export const getPatchAssetUrl = (assetId: string) => {
|
|
512
|
+
return `/asset/${assetId}`;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
export const patchAsset = async (
|
|
516
|
+
assetId: string,
|
|
517
|
+
assetPatchBodyBody: AssetPatchBodyBody,
|
|
518
|
+
options?: RequestInit,
|
|
519
|
+
): Promise<patchAssetResponse> => {
|
|
520
|
+
const formData = new FormData();
|
|
521
|
+
if (assetPatchBodyBody.content_file !== undefined) {
|
|
522
|
+
formData.append(`content_file`, assetPatchBodyBody.content_file);
|
|
523
|
+
}
|
|
524
|
+
if (assetPatchBodyBody.content_string !== undefined) {
|
|
525
|
+
formData.append(`content_string`, assetPatchBodyBody.content_string);
|
|
526
|
+
}
|
|
527
|
+
if (assetPatchBodyBody.description !== undefined) {
|
|
528
|
+
formData.append(`description`, assetPatchBodyBody.description);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
return customFetch<patchAssetResponse>(getPatchAssetUrl(assetId), {
|
|
532
|
+
...options,
|
|
533
|
+
method: "PATCH",
|
|
534
|
+
body: formData,
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
export const getPatchAssetMutationOptions = <
|
|
539
|
+
TError = ErrorType<void | AsError>,
|
|
540
|
+
TContext = unknown,
|
|
541
|
+
>(options?: {
|
|
542
|
+
mutation?: UseMutationOptions<
|
|
543
|
+
Awaited<ReturnType<typeof patchAsset>>,
|
|
544
|
+
TError,
|
|
545
|
+
{ assetId: string; data: AssetPatchBodyBody },
|
|
546
|
+
TContext
|
|
547
|
+
>;
|
|
548
|
+
request?: SecondParameter<typeof customFetch>;
|
|
549
|
+
}): UseMutationOptions<
|
|
550
|
+
Awaited<ReturnType<typeof patchAsset>>,
|
|
551
|
+
TError,
|
|
552
|
+
{ assetId: string; data: AssetPatchBodyBody },
|
|
553
|
+
TContext
|
|
554
|
+
> => {
|
|
555
|
+
const mutationKey = ["patchAsset"];
|
|
556
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
557
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
558
|
+
? options
|
|
559
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
560
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
561
|
+
|
|
562
|
+
const mutationFn: MutationFunction<
|
|
563
|
+
Awaited<ReturnType<typeof patchAsset>>,
|
|
564
|
+
{ assetId: string; data: AssetPatchBodyBody }
|
|
565
|
+
> = (props) => {
|
|
566
|
+
const { assetId, data } = props ?? {};
|
|
567
|
+
|
|
568
|
+
return patchAsset(assetId, data, requestOptions);
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
return { mutationFn, ...mutationOptions };
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
export type PatchAssetMutationResult = NonNullable<Awaited<ReturnType<typeof patchAsset>>>;
|
|
575
|
+
export type PatchAssetMutationBody = AssetPatchBodyBody;
|
|
576
|
+
export type PatchAssetMutationError = ErrorType<void | AsError>;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @summary Adjust an existing Asset
|
|
580
|
+
*/
|
|
581
|
+
export const usePatchAsset = <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
582
|
+
mutation?: UseMutationOptions<
|
|
583
|
+
Awaited<ReturnType<typeof patchAsset>>,
|
|
584
|
+
TError,
|
|
585
|
+
{ assetId: string; data: AssetPatchBodyBody },
|
|
586
|
+
TContext
|
|
587
|
+
>;
|
|
588
|
+
request?: SecondParameter<typeof customFetch>;
|
|
589
|
+
}): UseMutationResult<
|
|
590
|
+
Awaited<ReturnType<typeof patchAsset>>,
|
|
591
|
+
TError,
|
|
592
|
+
{ assetId: string; data: AssetPatchBodyBody },
|
|
593
|
+
TContext
|
|
594
|
+
> => {
|
|
595
|
+
const mutationOptions = getPatchAssetMutationOptions(options);
|
|
596
|
+
|
|
597
|
+
return useMutation(mutationOptions);
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Deletes a known Asset. Assets that are attached to **Merchants** cannot be deleted
|
|
601
|
+
|
|
602
|
+
Anyone can alter a `GLOBAL` asset. For other *scopes* you will need to be the user for `USER` scoped assets, a member of the **Unit** for `UNIT` and `PRODUCT` scoped assets, or a member of the **Organisation** for `ORGANISATION` scoped assets. Administrators can patch any asset.
|
|
603
|
+
|
|
604
|
+
* @summary Deletes an Asset
|
|
605
|
+
*/
|
|
606
|
+
export type deleteAssetResponse204 = { data: void; status: 204 };
|
|
607
|
+
|
|
608
|
+
export type deleteAssetResponse400 = { data: AsError; status: 400 };
|
|
609
|
+
|
|
610
|
+
export type deleteAssetResponse401 = { data: void; status: 401 };
|
|
611
|
+
|
|
612
|
+
export type deleteAssetResponse403 = { data: AsError; status: 403 };
|
|
613
|
+
|
|
614
|
+
export type deleteAssetResponseSuccess = deleteAssetResponse204 & { headers: Headers };
|
|
615
|
+
export type deleteAssetResponseError = (
|
|
616
|
+
| deleteAssetResponse400
|
|
617
|
+
| deleteAssetResponse401
|
|
618
|
+
| deleteAssetResponse403
|
|
619
|
+
) & { headers: Headers };
|
|
620
|
+
|
|
621
|
+
export type deleteAssetResponse = deleteAssetResponseSuccess | deleteAssetResponseError;
|
|
622
|
+
|
|
623
|
+
export const getDeleteAssetUrl = (assetId: string) => {
|
|
624
|
+
return `/asset/${assetId}`;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
export const deleteAsset = async (
|
|
628
|
+
assetId: string,
|
|
629
|
+
options?: RequestInit,
|
|
630
|
+
): Promise<deleteAssetResponse> => {
|
|
631
|
+
return customFetch<deleteAssetResponse>(getDeleteAssetUrl(assetId), {
|
|
632
|
+
...options,
|
|
633
|
+
method: "DELETE",
|
|
634
|
+
});
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export const getDeleteAssetMutationOptions = <
|
|
638
|
+
TError = ErrorType<AsError | void>,
|
|
639
|
+
TContext = unknown,
|
|
640
|
+
>(options?: {
|
|
641
|
+
mutation?: UseMutationOptions<
|
|
642
|
+
Awaited<ReturnType<typeof deleteAsset>>,
|
|
643
|
+
TError,
|
|
644
|
+
{ assetId: string },
|
|
645
|
+
TContext
|
|
646
|
+
>;
|
|
647
|
+
request?: SecondParameter<typeof customFetch>;
|
|
648
|
+
}): UseMutationOptions<
|
|
649
|
+
Awaited<ReturnType<typeof deleteAsset>>,
|
|
650
|
+
TError,
|
|
651
|
+
{ assetId: string },
|
|
652
|
+
TContext
|
|
653
|
+
> => {
|
|
654
|
+
const mutationKey = ["deleteAsset"];
|
|
655
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
656
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
657
|
+
? options
|
|
658
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
659
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
660
|
+
|
|
661
|
+
const mutationFn: MutationFunction<
|
|
662
|
+
Awaited<ReturnType<typeof deleteAsset>>,
|
|
663
|
+
{ assetId: string }
|
|
664
|
+
> = (props) => {
|
|
665
|
+
const { assetId } = props ?? {};
|
|
666
|
+
|
|
667
|
+
return deleteAsset(assetId, requestOptions);
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
return { mutationFn, ...mutationOptions };
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
export type DeleteAssetMutationResult = NonNullable<Awaited<ReturnType<typeof deleteAsset>>>;
|
|
674
|
+
|
|
675
|
+
export type DeleteAssetMutationError = ErrorType<AsError | void>;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* @summary Deletes an Asset
|
|
679
|
+
*/
|
|
680
|
+
export const useDeleteAsset = <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
681
|
+
mutation?: UseMutationOptions<
|
|
682
|
+
Awaited<ReturnType<typeof deleteAsset>>,
|
|
683
|
+
TError,
|
|
684
|
+
{ assetId: string },
|
|
685
|
+
TContext
|
|
686
|
+
>;
|
|
687
|
+
request?: SecondParameter<typeof customFetch>;
|
|
688
|
+
}): UseMutationResult<
|
|
689
|
+
Awaited<ReturnType<typeof deleteAsset>>,
|
|
690
|
+
TError,
|
|
691
|
+
{ assetId: string },
|
|
692
|
+
TContext
|
|
693
|
+
> => {
|
|
694
|
+
const mutationOptions = getDeleteAssetMutationOptions(options);
|
|
695
|
+
|
|
696
|
+
return useMutation(mutationOptions);
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
* Disables a known Asset
|
|
700
|
+
|
|
701
|
+
Anyone can alter a `GLOBAL` asset. For other *scopes* you will need to be the user for `USER` scoped assets, a member of the **Unit** for `UNIT` and `PRODUCT` scoped assets, or a member of the **Organisation** for `ORGANISATION` scoped assets. Administrators can patch any asset.
|
|
702
|
+
|
|
703
|
+
* @summary Disables an Asset
|
|
704
|
+
*/
|
|
705
|
+
export type disableAssetResponse204 = { data: void; status: 204 };
|
|
706
|
+
|
|
707
|
+
export type disableAssetResponse400 = { data: AsError; status: 400 };
|
|
708
|
+
|
|
709
|
+
export type disableAssetResponse401 = { data: void; status: 401 };
|
|
710
|
+
|
|
711
|
+
export type disableAssetResponse403 = { data: AsError; status: 403 };
|
|
712
|
+
|
|
713
|
+
export type disableAssetResponseSuccess = disableAssetResponse204 & { headers: Headers };
|
|
714
|
+
export type disableAssetResponseError = (
|
|
715
|
+
| disableAssetResponse400
|
|
716
|
+
| disableAssetResponse401
|
|
717
|
+
| disableAssetResponse403
|
|
718
|
+
) & { headers: Headers };
|
|
719
|
+
|
|
720
|
+
export type disableAssetResponse = disableAssetResponseSuccess | disableAssetResponseError;
|
|
721
|
+
|
|
722
|
+
export const getDisableAssetUrl = (assetId: string) => {
|
|
723
|
+
return `/asset/${assetId}/disable`;
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
export const disableAsset = async (
|
|
727
|
+
assetId: string,
|
|
728
|
+
options?: RequestInit,
|
|
729
|
+
): Promise<disableAssetResponse> => {
|
|
730
|
+
return customFetch<disableAssetResponse>(getDisableAssetUrl(assetId), {
|
|
731
|
+
...options,
|
|
732
|
+
method: "PATCH",
|
|
733
|
+
});
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
export const getDisableAssetMutationOptions = <
|
|
737
|
+
TError = ErrorType<AsError | void>,
|
|
738
|
+
TContext = unknown,
|
|
739
|
+
>(options?: {
|
|
740
|
+
mutation?: UseMutationOptions<
|
|
741
|
+
Awaited<ReturnType<typeof disableAsset>>,
|
|
742
|
+
TError,
|
|
743
|
+
{ assetId: string },
|
|
744
|
+
TContext
|
|
745
|
+
>;
|
|
746
|
+
request?: SecondParameter<typeof customFetch>;
|
|
747
|
+
}): UseMutationOptions<
|
|
748
|
+
Awaited<ReturnType<typeof disableAsset>>,
|
|
749
|
+
TError,
|
|
750
|
+
{ assetId: string },
|
|
751
|
+
TContext
|
|
752
|
+
> => {
|
|
753
|
+
const mutationKey = ["disableAsset"];
|
|
754
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
755
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
756
|
+
? options
|
|
757
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
758
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
759
|
+
|
|
760
|
+
const mutationFn: MutationFunction<
|
|
761
|
+
Awaited<ReturnType<typeof disableAsset>>,
|
|
762
|
+
{ assetId: string }
|
|
763
|
+
> = (props) => {
|
|
764
|
+
const { assetId } = props ?? {};
|
|
765
|
+
|
|
766
|
+
return disableAsset(assetId, requestOptions);
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
return { mutationFn, ...mutationOptions };
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
export type DisableAssetMutationResult = NonNullable<Awaited<ReturnType<typeof disableAsset>>>;
|
|
773
|
+
|
|
774
|
+
export type DisableAssetMutationError = ErrorType<AsError | void>;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* @summary Disables an Asset
|
|
778
|
+
*/
|
|
779
|
+
export const useDisableAsset = <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
780
|
+
mutation?: UseMutationOptions<
|
|
781
|
+
Awaited<ReturnType<typeof disableAsset>>,
|
|
782
|
+
TError,
|
|
783
|
+
{ assetId: string },
|
|
784
|
+
TContext
|
|
785
|
+
>;
|
|
786
|
+
request?: SecondParameter<typeof customFetch>;
|
|
787
|
+
}): UseMutationResult<
|
|
788
|
+
Awaited<ReturnType<typeof disableAsset>>,
|
|
789
|
+
TError,
|
|
790
|
+
{ assetId: string },
|
|
791
|
+
TContext
|
|
792
|
+
> => {
|
|
793
|
+
const mutationOptions = getDisableAssetMutationOptions(options);
|
|
794
|
+
|
|
795
|
+
return useMutation(mutationOptions);
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Enables a known Asset
|
|
799
|
+
|
|
800
|
+
Anyone can alter a `GLOBAL` asset. For other *scopes* you will need to be the user for `USER` scoped assets, a member of the **Unit** for `UNIT` and `PRODUCT` scoped assets, or a member of the **Organisation** for `ORGANISATION` scoped assets. Administrators can patch any asset.
|
|
801
|
+
|
|
802
|
+
* @summary Enables an Asset
|
|
803
|
+
*/
|
|
804
|
+
export type enableAssetResponse204 = { data: void; status: 204 };
|
|
805
|
+
|
|
806
|
+
export type enableAssetResponse400 = { data: AsError; status: 400 };
|
|
807
|
+
|
|
808
|
+
export type enableAssetResponse401 = { data: void; status: 401 };
|
|
809
|
+
|
|
810
|
+
export type enableAssetResponse403 = { data: AsError; status: 403 };
|
|
811
|
+
|
|
812
|
+
export type enableAssetResponseSuccess = enableAssetResponse204 & { headers: Headers };
|
|
813
|
+
export type enableAssetResponseError = (
|
|
814
|
+
| enableAssetResponse400
|
|
815
|
+
| enableAssetResponse401
|
|
816
|
+
| enableAssetResponse403
|
|
817
|
+
) & { headers: Headers };
|
|
818
|
+
|
|
819
|
+
export type enableAssetResponse = enableAssetResponseSuccess | enableAssetResponseError;
|
|
820
|
+
|
|
821
|
+
export const getEnableAssetUrl = (assetId: string) => {
|
|
822
|
+
return `/asset/${assetId}/enable`;
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
export const enableAsset = async (
|
|
826
|
+
assetId: string,
|
|
827
|
+
options?: RequestInit,
|
|
828
|
+
): Promise<enableAssetResponse> => {
|
|
829
|
+
return customFetch<enableAssetResponse>(getEnableAssetUrl(assetId), {
|
|
830
|
+
...options,
|
|
831
|
+
method: "PATCH",
|
|
832
|
+
});
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
export const getEnableAssetMutationOptions = <
|
|
836
|
+
TError = ErrorType<AsError | void>,
|
|
837
|
+
TContext = unknown,
|
|
838
|
+
>(options?: {
|
|
839
|
+
mutation?: UseMutationOptions<
|
|
840
|
+
Awaited<ReturnType<typeof enableAsset>>,
|
|
841
|
+
TError,
|
|
842
|
+
{ assetId: string },
|
|
843
|
+
TContext
|
|
844
|
+
>;
|
|
845
|
+
request?: SecondParameter<typeof customFetch>;
|
|
846
|
+
}): UseMutationOptions<
|
|
847
|
+
Awaited<ReturnType<typeof enableAsset>>,
|
|
848
|
+
TError,
|
|
849
|
+
{ assetId: string },
|
|
850
|
+
TContext
|
|
851
|
+
> => {
|
|
852
|
+
const mutationKey = ["enableAsset"];
|
|
853
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
854
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
855
|
+
? options
|
|
856
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
857
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
858
|
+
|
|
859
|
+
const mutationFn: MutationFunction<
|
|
860
|
+
Awaited<ReturnType<typeof enableAsset>>,
|
|
861
|
+
{ assetId: string }
|
|
862
|
+
> = (props) => {
|
|
863
|
+
const { assetId } = props ?? {};
|
|
864
|
+
|
|
865
|
+
return enableAsset(assetId, requestOptions);
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
return { mutationFn, ...mutationOptions };
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
export type EnableAssetMutationResult = NonNullable<Awaited<ReturnType<typeof enableAsset>>>;
|
|
872
|
+
|
|
873
|
+
export type EnableAssetMutationError = ErrorType<AsError | void>;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* @summary Enables an Asset
|
|
877
|
+
*/
|
|
878
|
+
export const useEnableAsset = <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
879
|
+
mutation?: UseMutationOptions<
|
|
880
|
+
Awaited<ReturnType<typeof enableAsset>>,
|
|
881
|
+
TError,
|
|
882
|
+
{ assetId: string },
|
|
883
|
+
TContext
|
|
884
|
+
>;
|
|
885
|
+
request?: SecondParameter<typeof customFetch>;
|
|
886
|
+
}): UseMutationResult<
|
|
887
|
+
Awaited<ReturnType<typeof enableAsset>>,
|
|
888
|
+
TError,
|
|
889
|
+
{ assetId: string },
|
|
890
|
+
TContext
|
|
891
|
+
> => {
|
|
892
|
+
const mutationOptions = getEnableAssetMutationOptions(options);
|
|
893
|
+
|
|
894
|
+
return useMutation(mutationOptions);
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Attaches an Asset to a **Merchant**. This allows the **Merchant** to query the Asset. **Merchants** cannot obtain Assets that are not attached to them.
|
|
898
|
+
|
|
899
|
+
Anyone can alter a `GLOBAL` asset. For other *scopes* you will need to be the user for `USER` scoped assets, a member of the **Unit** for `UNIT` and `PRODUCT` scoped assets, or a member of the **Organisation** for `ORGANISATION` scoped assets. Administrators can patch any asset.
|
|
900
|
+
|
|
901
|
+
* @summary Attaches an Asset to a Merchant
|
|
902
|
+
*/
|
|
903
|
+
export type attachAssetResponse204 = { data: void; status: 204 };
|
|
904
|
+
|
|
905
|
+
export type attachAssetResponse400 = { data: AsError; status: 400 };
|
|
906
|
+
|
|
907
|
+
export type attachAssetResponse401 = { data: void; status: 401 };
|
|
908
|
+
|
|
909
|
+
export type attachAssetResponse403 = { data: AsError; status: 403 };
|
|
910
|
+
|
|
911
|
+
export type attachAssetResponseSuccess = attachAssetResponse204 & { headers: Headers };
|
|
912
|
+
export type attachAssetResponseError = (
|
|
913
|
+
| attachAssetResponse400
|
|
914
|
+
| attachAssetResponse401
|
|
915
|
+
| attachAssetResponse403
|
|
916
|
+
) & { headers: Headers };
|
|
917
|
+
|
|
918
|
+
export type attachAssetResponse = attachAssetResponseSuccess | attachAssetResponseError;
|
|
919
|
+
|
|
920
|
+
export const getAttachAssetUrl = (assetId: string, params?: AttachAssetParams) => {
|
|
921
|
+
const normalizedParams = new URLSearchParams();
|
|
922
|
+
|
|
923
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
924
|
+
if (value !== undefined) {
|
|
925
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
926
|
+
}
|
|
927
|
+
});
|
|
928
|
+
|
|
929
|
+
const stringifiedParams = normalizedParams.toString();
|
|
930
|
+
|
|
931
|
+
return stringifiedParams.length > 0
|
|
932
|
+
? `/asset/${assetId}/attach?${stringifiedParams}`
|
|
933
|
+
: `/asset/${assetId}/attach`;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
export const attachAsset = async (
|
|
937
|
+
assetId: string,
|
|
938
|
+
params?: AttachAssetParams,
|
|
939
|
+
options?: RequestInit,
|
|
940
|
+
): Promise<attachAssetResponse> => {
|
|
941
|
+
return customFetch<attachAssetResponse>(getAttachAssetUrl(assetId, params), {
|
|
942
|
+
...options,
|
|
943
|
+
method: "PATCH",
|
|
944
|
+
});
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
export const getAttachAssetMutationOptions = <
|
|
948
|
+
TError = ErrorType<AsError | void>,
|
|
949
|
+
TContext = unknown,
|
|
950
|
+
>(options?: {
|
|
951
|
+
mutation?: UseMutationOptions<
|
|
952
|
+
Awaited<ReturnType<typeof attachAsset>>,
|
|
953
|
+
TError,
|
|
954
|
+
{ assetId: string; params?: AttachAssetParams },
|
|
955
|
+
TContext
|
|
956
|
+
>;
|
|
957
|
+
request?: SecondParameter<typeof customFetch>;
|
|
958
|
+
}): UseMutationOptions<
|
|
959
|
+
Awaited<ReturnType<typeof attachAsset>>,
|
|
960
|
+
TError,
|
|
961
|
+
{ assetId: string; params?: AttachAssetParams },
|
|
962
|
+
TContext
|
|
963
|
+
> => {
|
|
964
|
+
const mutationKey = ["attachAsset"];
|
|
965
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
966
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
967
|
+
? options
|
|
968
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
969
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
970
|
+
|
|
971
|
+
const mutationFn: MutationFunction<
|
|
972
|
+
Awaited<ReturnType<typeof attachAsset>>,
|
|
973
|
+
{ assetId: string; params?: AttachAssetParams }
|
|
974
|
+
> = (props) => {
|
|
975
|
+
const { assetId, params } = props ?? {};
|
|
976
|
+
|
|
977
|
+
return attachAsset(assetId, params, requestOptions);
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
return { mutationFn, ...mutationOptions };
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
export type AttachAssetMutationResult = NonNullable<Awaited<ReturnType<typeof attachAsset>>>;
|
|
984
|
+
|
|
985
|
+
export type AttachAssetMutationError = ErrorType<AsError | void>;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* @summary Attaches an Asset to a Merchant
|
|
989
|
+
*/
|
|
990
|
+
export const useAttachAsset = <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
991
|
+
mutation?: UseMutationOptions<
|
|
992
|
+
Awaited<ReturnType<typeof attachAsset>>,
|
|
993
|
+
TError,
|
|
994
|
+
{ assetId: string; params?: AttachAssetParams },
|
|
995
|
+
TContext
|
|
996
|
+
>;
|
|
997
|
+
request?: SecondParameter<typeof customFetch>;
|
|
998
|
+
}): UseMutationResult<
|
|
999
|
+
Awaited<ReturnType<typeof attachAsset>>,
|
|
1000
|
+
TError,
|
|
1001
|
+
{ assetId: string; params?: AttachAssetParams },
|
|
1002
|
+
TContext
|
|
1003
|
+
> => {
|
|
1004
|
+
const mutationOptions = getAttachAssetMutationOptions(options);
|
|
1005
|
+
|
|
1006
|
+
return useMutation(mutationOptions);
|
|
1007
|
+
};
|
|
1008
|
+
/**
|
|
1009
|
+
* Detaches an Asset from a **Merchant**
|
|
1010
|
+
|
|
1011
|
+
Anyone can alter a `GLOBAL` asset. For other *scopes* you will need to be the user for `USER` scoped assets, a member of the **Unit** for `UNIT` and `PRODUCT` scoped assets, or a member of the **Organisation** for `ORGANISATION` scoped assets. Administrators can patch any asset.
|
|
1012
|
+
|
|
1013
|
+
* @summary Detaches an Asset from a Merchant
|
|
1014
|
+
*/
|
|
1015
|
+
export type detachAssetResponse204 = { data: void; status: 204 };
|
|
1016
|
+
|
|
1017
|
+
export type detachAssetResponse400 = { data: AsError; status: 400 };
|
|
1018
|
+
|
|
1019
|
+
export type detachAssetResponse401 = { data: void; status: 401 };
|
|
1020
|
+
|
|
1021
|
+
export type detachAssetResponse403 = { data: AsError; status: 403 };
|
|
1022
|
+
|
|
1023
|
+
export type detachAssetResponseSuccess = detachAssetResponse204 & { headers: Headers };
|
|
1024
|
+
export type detachAssetResponseError = (
|
|
1025
|
+
| detachAssetResponse400
|
|
1026
|
+
| detachAssetResponse401
|
|
1027
|
+
| detachAssetResponse403
|
|
1028
|
+
) & { headers: Headers };
|
|
1029
|
+
|
|
1030
|
+
export type detachAssetResponse = detachAssetResponseSuccess | detachAssetResponseError;
|
|
1031
|
+
|
|
1032
|
+
export const getDetachAssetUrl = (assetId: string, params?: DetachAssetParams) => {
|
|
1033
|
+
const normalizedParams = new URLSearchParams();
|
|
1034
|
+
|
|
1035
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1036
|
+
if (value !== undefined) {
|
|
1037
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
|
|
1041
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1042
|
+
|
|
1043
|
+
return stringifiedParams.length > 0
|
|
1044
|
+
? `/asset/${assetId}/detach?${stringifiedParams}`
|
|
1045
|
+
: `/asset/${assetId}/detach`;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
export const detachAsset = async (
|
|
1049
|
+
assetId: string,
|
|
1050
|
+
params?: DetachAssetParams,
|
|
1051
|
+
options?: RequestInit,
|
|
1052
|
+
): Promise<detachAssetResponse> => {
|
|
1053
|
+
return customFetch<detachAssetResponse>(getDetachAssetUrl(assetId, params), {
|
|
1054
|
+
...options,
|
|
1055
|
+
method: "PATCH",
|
|
1056
|
+
});
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
export const getDetachAssetMutationOptions = <
|
|
1060
|
+
TError = ErrorType<AsError | void>,
|
|
1061
|
+
TContext = unknown,
|
|
1062
|
+
>(options?: {
|
|
1063
|
+
mutation?: UseMutationOptions<
|
|
1064
|
+
Awaited<ReturnType<typeof detachAsset>>,
|
|
1065
|
+
TError,
|
|
1066
|
+
{ assetId: string; params?: DetachAssetParams },
|
|
1067
|
+
TContext
|
|
1068
|
+
>;
|
|
1069
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1070
|
+
}): UseMutationOptions<
|
|
1071
|
+
Awaited<ReturnType<typeof detachAsset>>,
|
|
1072
|
+
TError,
|
|
1073
|
+
{ assetId: string; params?: DetachAssetParams },
|
|
1074
|
+
TContext
|
|
1075
|
+
> => {
|
|
1076
|
+
const mutationKey = ["detachAsset"];
|
|
1077
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1078
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1079
|
+
? options
|
|
1080
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1081
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1082
|
+
|
|
1083
|
+
const mutationFn: MutationFunction<
|
|
1084
|
+
Awaited<ReturnType<typeof detachAsset>>,
|
|
1085
|
+
{ assetId: string; params?: DetachAssetParams }
|
|
1086
|
+
> = (props) => {
|
|
1087
|
+
const { assetId, params } = props ?? {};
|
|
1088
|
+
|
|
1089
|
+
return detachAsset(assetId, params, requestOptions);
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
return { mutationFn, ...mutationOptions };
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
export type DetachAssetMutationResult = NonNullable<Awaited<ReturnType<typeof detachAsset>>>;
|
|
1096
|
+
|
|
1097
|
+
export type DetachAssetMutationError = ErrorType<AsError | void>;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* @summary Detaches an Asset from a Merchant
|
|
1101
|
+
*/
|
|
1102
|
+
export const useDetachAsset = <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
1103
|
+
mutation?: UseMutationOptions<
|
|
1104
|
+
Awaited<ReturnType<typeof detachAsset>>,
|
|
1105
|
+
TError,
|
|
1106
|
+
{ assetId: string; params?: DetachAssetParams },
|
|
1107
|
+
TContext
|
|
1108
|
+
>;
|
|
1109
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1110
|
+
}): UseMutationResult<
|
|
1111
|
+
Awaited<ReturnType<typeof detachAsset>>,
|
|
1112
|
+
TError,
|
|
1113
|
+
{ assetId: string; params?: DetachAssetParams },
|
|
1114
|
+
TContext
|
|
1115
|
+
> => {
|
|
1116
|
+
const mutationOptions = getDetachAssetMutationOptions(options);
|
|
1117
|
+
|
|
1118
|
+
return useMutation(mutationOptions);
|
|
1119
|
+
};
|