@squonk/account-server-client 4.4.0-4-4.2195235454 → 4.4.0-4-4.2197467763
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,151 @@
|
|
|
1
|
+
import { AsError } from "../api-schemas/asError.js";
|
|
2
|
+
import { MerchantDetail } from "../api-schemas/merchantDetail.js";
|
|
3
|
+
import { MerchantsGetResponse } from "../api-schemas/merchantsGetResponse.js";
|
|
4
|
+
import { ErrorType, customFetch } from "../../custom-fetch.js";
|
|
5
|
+
import { InvalidateOptions, QueryClient, QueryKey, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
6
|
+
|
|
7
|
+
//#region src/api/merchant/merchant.fetch.d.ts
|
|
8
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
9
|
+
/**
|
|
10
|
+
* Gets Merchants known to the Account Server
|
|
11
|
+
|
|
12
|
+
Merchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server
|
|
13
|
+
|
|
14
|
+
* @summary Gets all Merchants
|
|
15
|
+
*/
|
|
16
|
+
type getMerchantsResponse200 = {
|
|
17
|
+
data: MerchantsGetResponse;
|
|
18
|
+
status: 200;
|
|
19
|
+
};
|
|
20
|
+
type getMerchantsResponse400 = {
|
|
21
|
+
data: AsError;
|
|
22
|
+
status: 400;
|
|
23
|
+
};
|
|
24
|
+
type getMerchantsResponse401 = {
|
|
25
|
+
data: void;
|
|
26
|
+
status: 401;
|
|
27
|
+
};
|
|
28
|
+
type getMerchantsResponse403 = {
|
|
29
|
+
data: AsError;
|
|
30
|
+
status: 403;
|
|
31
|
+
};
|
|
32
|
+
type getMerchantsResponseSuccess = getMerchantsResponse200 & {
|
|
33
|
+
headers: Headers;
|
|
34
|
+
};
|
|
35
|
+
type getMerchantsResponseError = (getMerchantsResponse400 | getMerchantsResponse401 | getMerchantsResponse403) & {
|
|
36
|
+
headers: Headers;
|
|
37
|
+
};
|
|
38
|
+
type getMerchantsResponse = getMerchantsResponseSuccess | getMerchantsResponseError;
|
|
39
|
+
declare const getGetMerchantsUrl: () => string;
|
|
40
|
+
declare const getMerchants: (options?: RequestInit) => Promise<getMerchantsResponse>;
|
|
41
|
+
declare const getGetMerchantsQueryKey: () => readonly ["account-server", "merchant"];
|
|
42
|
+
declare const getGetMerchantsQueryOptions: <TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
|
|
43
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
44
|
+
request?: SecondParameter<typeof customFetch>;
|
|
45
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData> & {
|
|
46
|
+
queryKey: QueryKey;
|
|
47
|
+
};
|
|
48
|
+
type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;
|
|
49
|
+
type GetMerchantsQueryError = ErrorType<AsError | void>;
|
|
50
|
+
/**
|
|
51
|
+
* @summary Gets all Merchants
|
|
52
|
+
*/
|
|
53
|
+
declare function useGetMerchants<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
|
|
54
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
55
|
+
request?: SecondParameter<typeof customFetch>;
|
|
56
|
+
}): UseQueryResult<TData, TError> & {
|
|
57
|
+
queryKey: QueryKey;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @summary Gets all Merchants
|
|
61
|
+
*/
|
|
62
|
+
declare const invalidateGetMerchants: (queryClient: QueryClient, options?: InvalidateOptions) => Promise<QueryClient>;
|
|
63
|
+
declare const getGetMerchantsSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
|
|
64
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
65
|
+
request?: SecondParameter<typeof customFetch>;
|
|
66
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData> & {
|
|
67
|
+
queryKey: QueryKey;
|
|
68
|
+
};
|
|
69
|
+
type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;
|
|
70
|
+
type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;
|
|
71
|
+
/**
|
|
72
|
+
* @summary Gets all Merchants
|
|
73
|
+
*/
|
|
74
|
+
declare function useGetMerchantsSuspense<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
|
|
75
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
76
|
+
request?: SecondParameter<typeof customFetch>;
|
|
77
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
78
|
+
queryKey: QueryKey;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Gets a known Merchant
|
|
82
|
+
|
|
83
|
+
* @summary Gets a specific Merchant
|
|
84
|
+
*/
|
|
85
|
+
type getServiceResponse200 = {
|
|
86
|
+
data: MerchantDetail;
|
|
87
|
+
status: 200;
|
|
88
|
+
};
|
|
89
|
+
type getServiceResponse400 = {
|
|
90
|
+
data: AsError;
|
|
91
|
+
status: 400;
|
|
92
|
+
};
|
|
93
|
+
type getServiceResponse401 = {
|
|
94
|
+
data: void;
|
|
95
|
+
status: 401;
|
|
96
|
+
};
|
|
97
|
+
type getServiceResponse403 = {
|
|
98
|
+
data: AsError;
|
|
99
|
+
status: 403;
|
|
100
|
+
};
|
|
101
|
+
type getServiceResponseSuccess = getServiceResponse200 & {
|
|
102
|
+
headers: Headers;
|
|
103
|
+
};
|
|
104
|
+
type getServiceResponseError = (getServiceResponse400 | getServiceResponse401 | getServiceResponse403) & {
|
|
105
|
+
headers: Headers;
|
|
106
|
+
};
|
|
107
|
+
type getServiceResponse = getServiceResponseSuccess | getServiceResponseError;
|
|
108
|
+
declare const getGetServiceUrl: (mId: number) => string;
|
|
109
|
+
declare const getService: (mId: number, options?: RequestInit) => Promise<getServiceResponse>;
|
|
110
|
+
declare const getGetServiceQueryKey: (mId?: number) => readonly ["account-server", "merchant", number | undefined];
|
|
111
|
+
declare const getGetServiceQueryOptions: <TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
|
|
112
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
113
|
+
request?: SecondParameter<typeof customFetch>;
|
|
114
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData> & {
|
|
115
|
+
queryKey: QueryKey;
|
|
116
|
+
};
|
|
117
|
+
type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;
|
|
118
|
+
type GetServiceQueryError = ErrorType<AsError | void>;
|
|
119
|
+
/**
|
|
120
|
+
* @summary Gets a specific Merchant
|
|
121
|
+
*/
|
|
122
|
+
declare function useGetService<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
|
|
123
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
124
|
+
request?: SecondParameter<typeof customFetch>;
|
|
125
|
+
}): UseQueryResult<TData, TError> & {
|
|
126
|
+
queryKey: QueryKey;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* @summary Gets a specific Merchant
|
|
130
|
+
*/
|
|
131
|
+
declare const invalidateGetService: (queryClient: QueryClient, mId: number, options?: InvalidateOptions) => Promise<QueryClient>;
|
|
132
|
+
declare const getGetServiceSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
|
|
133
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
134
|
+
request?: SecondParameter<typeof customFetch>;
|
|
135
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData> & {
|
|
136
|
+
queryKey: QueryKey;
|
|
137
|
+
};
|
|
138
|
+
type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;
|
|
139
|
+
type GetServiceSuspenseQueryError = ErrorType<AsError | void>;
|
|
140
|
+
/**
|
|
141
|
+
* @summary Gets a specific Merchant
|
|
142
|
+
*/
|
|
143
|
+
declare function useGetServiceSuspense<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
|
|
144
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
145
|
+
request?: SecondParameter<typeof customFetch>;
|
|
146
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
147
|
+
queryKey: QueryKey;
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
export { GetMerchantsQueryError, GetMerchantsQueryResult, GetMerchantsSuspenseQueryError, GetMerchantsSuspenseQueryResult, GetServiceQueryError, GetServiceQueryResult, GetServiceSuspenseQueryError, GetServiceSuspenseQueryResult, getGetMerchantsQueryKey, getGetMerchantsQueryOptions, getGetMerchantsSuspenseQueryOptions, getGetMerchantsUrl, getGetServiceQueryKey, getGetServiceQueryOptions, getGetServiceSuspenseQueryOptions, getGetServiceUrl, getMerchants, getMerchantsResponse, getMerchantsResponse200, getMerchantsResponse400, getMerchantsResponse401, getMerchantsResponse403, getMerchantsResponseError, getMerchantsResponseSuccess, getService, getServiceResponse, getServiceResponse200, getServiceResponse400, getServiceResponse401, getServiceResponse403, getServiceResponseError, getServiceResponseSuccess, invalidateGetMerchants, invalidateGetService, useGetMerchants, useGetMerchantsSuspense, useGetService, useGetServiceSuspense };
|
|
151
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#region src/api/merchant/merchant.fetch.ts
|
|
5
|
+
/**
|
|
6
|
+
* Generated by orval v7.17.0 🍺
|
|
7
|
+
* Do not edit manually.
|
|
8
|
+
* Account Server API
|
|
9
|
+
* The Informatics Matters Account Server API.
|
|
10
|
+
|
|
11
|
+
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
12
|
+
|
|
13
|
+
* OpenAPI spec version: 4.4
|
|
14
|
+
*/
|
|
15
|
+
const getGetMerchantsUrl = () => {
|
|
16
|
+
return `/merchant`;
|
|
17
|
+
};
|
|
18
|
+
const getMerchants = async (options) => {
|
|
19
|
+
return customFetch(getGetMerchantsUrl(), {
|
|
20
|
+
...options,
|
|
21
|
+
method: "GET"
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const getGetMerchantsQueryKey = () => {
|
|
25
|
+
return ["account-server", "merchant"];
|
|
26
|
+
};
|
|
27
|
+
const getGetMerchantsQueryOptions = (options) => {
|
|
28
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
29
|
+
const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();
|
|
30
|
+
const queryFn = ({ signal }) => getMerchants({
|
|
31
|
+
signal,
|
|
32
|
+
...requestOptions
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
queryKey,
|
|
36
|
+
queryFn,
|
|
37
|
+
...queryOptions
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @summary Gets all Merchants
|
|
42
|
+
*/
|
|
43
|
+
function useGetMerchants(options) {
|
|
44
|
+
const queryOptions = getGetMerchantsQueryOptions(options);
|
|
45
|
+
const query = useQuery(queryOptions);
|
|
46
|
+
query.queryKey = queryOptions.queryKey;
|
|
47
|
+
return query;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @summary Gets all Merchants
|
|
51
|
+
*/
|
|
52
|
+
const invalidateGetMerchants = async (queryClient, options) => {
|
|
53
|
+
await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);
|
|
54
|
+
return queryClient;
|
|
55
|
+
};
|
|
56
|
+
const getGetMerchantsSuspenseQueryOptions = (options) => {
|
|
57
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
58
|
+
const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();
|
|
59
|
+
const queryFn = ({ signal }) => getMerchants({
|
|
60
|
+
signal,
|
|
61
|
+
...requestOptions
|
|
62
|
+
});
|
|
63
|
+
return {
|
|
64
|
+
queryKey,
|
|
65
|
+
queryFn,
|
|
66
|
+
...queryOptions
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @summary Gets all Merchants
|
|
71
|
+
*/
|
|
72
|
+
function useGetMerchantsSuspense(options) {
|
|
73
|
+
const queryOptions = getGetMerchantsSuspenseQueryOptions(options);
|
|
74
|
+
const query = useSuspenseQuery(queryOptions);
|
|
75
|
+
query.queryKey = queryOptions.queryKey;
|
|
76
|
+
return query;
|
|
77
|
+
}
|
|
78
|
+
const getGetServiceUrl = (mId) => {
|
|
79
|
+
return `/merchant/${mId}`;
|
|
80
|
+
};
|
|
81
|
+
const getService = async (mId, options) => {
|
|
82
|
+
return customFetch(getGetServiceUrl(mId), {
|
|
83
|
+
...options,
|
|
84
|
+
method: "GET"
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
const getGetServiceQueryKey = (mId) => {
|
|
88
|
+
return [
|
|
89
|
+
"account-server",
|
|
90
|
+
"merchant",
|
|
91
|
+
mId
|
|
92
|
+
];
|
|
93
|
+
};
|
|
94
|
+
const getGetServiceQueryOptions = (mId, options) => {
|
|
95
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
96
|
+
const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);
|
|
97
|
+
const queryFn = ({ signal }) => getService(mId, {
|
|
98
|
+
signal,
|
|
99
|
+
...requestOptions
|
|
100
|
+
});
|
|
101
|
+
return {
|
|
102
|
+
queryKey,
|
|
103
|
+
queryFn,
|
|
104
|
+
enabled: !!mId,
|
|
105
|
+
...queryOptions
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @summary Gets a specific Merchant
|
|
110
|
+
*/
|
|
111
|
+
function useGetService(mId, options) {
|
|
112
|
+
const queryOptions = getGetServiceQueryOptions(mId, options);
|
|
113
|
+
const query = useQuery(queryOptions);
|
|
114
|
+
query.queryKey = queryOptions.queryKey;
|
|
115
|
+
return query;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* @summary Gets a specific Merchant
|
|
119
|
+
*/
|
|
120
|
+
const invalidateGetService = async (queryClient, mId, options) => {
|
|
121
|
+
await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);
|
|
122
|
+
return queryClient;
|
|
123
|
+
};
|
|
124
|
+
const getGetServiceSuspenseQueryOptions = (mId, options) => {
|
|
125
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
126
|
+
const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);
|
|
127
|
+
const queryFn = ({ signal }) => getService(mId, {
|
|
128
|
+
signal,
|
|
129
|
+
...requestOptions
|
|
130
|
+
});
|
|
131
|
+
return {
|
|
132
|
+
queryKey,
|
|
133
|
+
queryFn,
|
|
134
|
+
...queryOptions
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* @summary Gets a specific Merchant
|
|
139
|
+
*/
|
|
140
|
+
function useGetServiceSuspense(mId, options) {
|
|
141
|
+
const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);
|
|
142
|
+
const query = useSuspenseQuery(queryOptions);
|
|
143
|
+
query.queryKey = queryOptions.queryKey;
|
|
144
|
+
return query;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
export { getGetMerchantsQueryKey, getGetMerchantsQueryOptions, getGetMerchantsSuspenseQueryOptions, getGetMerchantsUrl, getGetServiceQueryKey, getGetServiceQueryOptions, getGetServiceSuspenseQueryOptions, getGetServiceUrl, getMerchants, getService, invalidateGetMerchants, invalidateGetService, useGetMerchants, useGetMerchantsSuspense, useGetService, useGetServiceSuspense };
|
|
149
|
+
//# sourceMappingURL=merchant.fetch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merchant.fetch.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>>"],"sources":["../../../src/api/merchant/merchant.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n\n * OpenAPI spec version: 4.4\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, MerchantDetail, MerchantsGetResponse } from \".././api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets Merchants known to the Account Server\n\nMerchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server\n\n * @summary Gets all Merchants\n */\nexport type getMerchantsResponse200 = { data: MerchantsGetResponse; status: 200 };\n\nexport type getMerchantsResponse400 = { data: AsError; status: 400 };\n\nexport type getMerchantsResponse401 = { data: void; status: 401 };\n\nexport type getMerchantsResponse403 = { data: AsError; status: 403 };\n\nexport type getMerchantsResponseSuccess = getMerchantsResponse200 & { headers: Headers };\nexport type getMerchantsResponseError = (\n | getMerchantsResponse400\n | getMerchantsResponse401\n | getMerchantsResponse403\n) & { headers: Headers };\n\nexport type getMerchantsResponse = getMerchantsResponseSuccess | getMerchantsResponseError;\n\nexport const getGetMerchantsUrl = () => {\n return `/merchant`;\n};\n\nexport const getMerchants = async (options?: RequestInit): Promise<getMerchantsResponse> => {\n return customFetch<getMerchantsResponse>(getGetMerchantsUrl(), { ...options, method: \"GET\" });\n};\n\nexport const getGetMerchantsQueryKey = () => {\n return [\"account-server\", \"merchant\"] as const;\n};\n\nexport const getGetMerchantsQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsQueryOptions(options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets all Merchants\n */\nexport const invalidateGetMerchants = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetMerchantsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets a known Merchant\n\n * @summary Gets a specific Merchant\n */\nexport type getServiceResponse200 = { data: MerchantDetail; status: 200 };\n\nexport type getServiceResponse400 = { data: AsError; status: 400 };\n\nexport type getServiceResponse401 = { data: void; status: 401 };\n\nexport type getServiceResponse403 = { data: AsError; status: 403 };\n\nexport type getServiceResponseSuccess = getServiceResponse200 & { headers: Headers };\nexport type getServiceResponseError = (\n | getServiceResponse400\n | getServiceResponse401\n | getServiceResponse403\n) & { headers: Headers };\n\nexport type getServiceResponse = getServiceResponseSuccess | getServiceResponseError;\n\nexport const getGetServiceUrl = (mId: number) => {\n return `/merchant/${mId}`;\n};\n\nexport const getService = async (\n mId: number,\n options?: RequestInit,\n): Promise<getServiceResponse> => {\n return customFetch<getServiceResponse>(getGetServiceUrl(mId), { ...options, method: \"GET\" });\n};\n\nexport const getGetServiceQueryKey = (mId?: number) => {\n return [\"account-server\", \"merchant\", mId] as const;\n};\n\nexport const getGetServiceQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, enabled: !!mId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceQueryOptions(mId, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets a specific Merchant\n */\nexport const invalidateGetService = async (\n queryClient: QueryClient,\n mId: number,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);\n\n return queryClient;\n};\n\nexport const getGetServiceSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}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E,GAAG;EAAS,QAAQ;EAAO,CAAC;;AAG9F,MAAa,yBAAyB,QAAiB;AACrD,QAAO;EAAC;EAAkB;EAAY;EAAI;;AAG5C,MAAa,6BAIX,KACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMC,WAAkE,EAAE,aACxE,WAAW,KAAK;EAAE;EAAQ,GAAG;EAAgB,CAAC;AAEhD,QAAO;EAAE;EAAU;EAAS,SAAS,CAAC,CAAC;EAAK,GAAG;EAAc;;;;;AAc/D,SAAgB,cAId,KACA,SAIwD;CACxD,MAAM,eAAe,0BAA0B,KAAK,QAAQ;CAE5D,MAAM,QAAQ,SAAS,aAAa;AAEpC,OAAM,WAAW,aAAa;AAE9B,QAAO;;;;;AAMT,MAAa,uBAAuB,OAClC,aACA,KACA,YACyB;AACzB,OAAM,YAAY,kBAAkB,EAAE,UAAU,sBAAsB,IAAI,EAAE,EAAE,QAAQ;AAEtF,QAAO;;AAGT,MAAa,qCAIX,KACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMA,WAAkE,EAAE,aACxE,WAAW,KAAK;EAAE;EAAQ,GAAG;EAAgB,CAAC;AAEhD,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AAc/C,SAAgB,sBAId,KACA,SAIgE;CAChE,MAAM,eAAe,kCAAkC,KAAK,QAAQ;CAEpE,MAAM,QAAQ,iBAAiB,aAAa;AAI5C,OAAM,WAAW,aAAa;AAE9B,QAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { customInstance } from "../../custom-
|
|
2
|
-
import { queryMutator } from "../../options-mutator.js";
|
|
1
|
+
import { customInstance } from "../../custom-axios.js";
|
|
3
2
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
4
3
|
|
|
5
4
|
//#region src/api/merchant/merchant.ts
|
|
@@ -28,42 +27,49 @@ const getMerchants = (options, signal) => {
|
|
|
28
27
|
}, options);
|
|
29
28
|
};
|
|
30
29
|
const getGetMerchantsQueryKey = () => {
|
|
31
|
-
return [
|
|
30
|
+
return ["account-server", "merchant"];
|
|
32
31
|
};
|
|
33
|
-
const
|
|
32
|
+
const getGetMerchantsQueryOptions = (options) => {
|
|
34
33
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
35
34
|
const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();
|
|
36
35
|
const queryFn = ({ signal }) => getMerchants(requestOptions, signal);
|
|
37
|
-
return
|
|
38
|
-
...queryOptions,
|
|
36
|
+
return {
|
|
39
37
|
queryKey,
|
|
40
|
-
queryFn
|
|
41
|
-
|
|
38
|
+
queryFn,
|
|
39
|
+
...queryOptions
|
|
40
|
+
};
|
|
42
41
|
};
|
|
43
42
|
/**
|
|
44
43
|
* @summary Gets all Merchants
|
|
45
44
|
*/
|
|
46
45
|
function useGetMerchants(options) {
|
|
47
|
-
const queryOptions =
|
|
46
|
+
const queryOptions = getGetMerchantsQueryOptions(options);
|
|
48
47
|
const query = useQuery(queryOptions);
|
|
49
48
|
query.queryKey = queryOptions.queryKey;
|
|
50
49
|
return query;
|
|
51
50
|
}
|
|
52
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @summary Gets all Merchants
|
|
53
|
+
*/
|
|
54
|
+
const invalidateGetMerchants = async (queryClient, options) => {
|
|
55
|
+
await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);
|
|
56
|
+
return queryClient;
|
|
57
|
+
};
|
|
58
|
+
const getGetMerchantsSuspenseQueryOptions = (options) => {
|
|
53
59
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
54
60
|
const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();
|
|
55
61
|
const queryFn = ({ signal }) => getMerchants(requestOptions, signal);
|
|
56
|
-
return
|
|
57
|
-
...queryOptions,
|
|
62
|
+
return {
|
|
58
63
|
queryKey,
|
|
59
|
-
queryFn
|
|
60
|
-
|
|
64
|
+
queryFn,
|
|
65
|
+
...queryOptions
|
|
66
|
+
};
|
|
61
67
|
};
|
|
62
68
|
/**
|
|
63
69
|
* @summary Gets all Merchants
|
|
64
70
|
*/
|
|
65
71
|
function useGetMerchantsSuspense(options) {
|
|
66
|
-
const queryOptions =
|
|
72
|
+
const queryOptions = getGetMerchantsSuspenseQueryOptions(options);
|
|
67
73
|
const query = useSuspenseQuery(queryOptions);
|
|
68
74
|
query.queryKey = queryOptions.queryKey;
|
|
69
75
|
return query;
|
|
@@ -81,47 +87,59 @@ const getService = (mId, options, signal) => {
|
|
|
81
87
|
}, options);
|
|
82
88
|
};
|
|
83
89
|
const getGetServiceQueryKey = (mId) => {
|
|
84
|
-
return [
|
|
90
|
+
return [
|
|
91
|
+
"account-server",
|
|
92
|
+
"merchant",
|
|
93
|
+
mId
|
|
94
|
+
];
|
|
85
95
|
};
|
|
86
|
-
const
|
|
96
|
+
const getGetServiceQueryOptions = (mId, options) => {
|
|
87
97
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
88
98
|
const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);
|
|
89
99
|
const queryFn = ({ signal }) => getService(mId, requestOptions, signal);
|
|
90
|
-
return
|
|
91
|
-
...queryOptions,
|
|
100
|
+
return {
|
|
92
101
|
queryKey,
|
|
93
|
-
queryFn
|
|
94
|
-
|
|
102
|
+
queryFn,
|
|
103
|
+
enabled: !!mId,
|
|
104
|
+
...queryOptions
|
|
105
|
+
};
|
|
95
106
|
};
|
|
96
107
|
/**
|
|
97
108
|
* @summary Gets a specific Merchant
|
|
98
109
|
*/
|
|
99
110
|
function useGetService(mId, options) {
|
|
100
|
-
const queryOptions =
|
|
111
|
+
const queryOptions = getGetServiceQueryOptions(mId, options);
|
|
101
112
|
const query = useQuery(queryOptions);
|
|
102
113
|
query.queryKey = queryOptions.queryKey;
|
|
103
114
|
return query;
|
|
104
115
|
}
|
|
105
|
-
|
|
116
|
+
/**
|
|
117
|
+
* @summary Gets a specific Merchant
|
|
118
|
+
*/
|
|
119
|
+
const invalidateGetService = async (queryClient, mId, options) => {
|
|
120
|
+
await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);
|
|
121
|
+
return queryClient;
|
|
122
|
+
};
|
|
123
|
+
const getGetServiceSuspenseQueryOptions = (mId, options) => {
|
|
106
124
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
107
125
|
const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);
|
|
108
126
|
const queryFn = ({ signal }) => getService(mId, requestOptions, signal);
|
|
109
|
-
return
|
|
110
|
-
...queryOptions,
|
|
127
|
+
return {
|
|
111
128
|
queryKey,
|
|
112
|
-
queryFn
|
|
113
|
-
|
|
129
|
+
queryFn,
|
|
130
|
+
...queryOptions
|
|
131
|
+
};
|
|
114
132
|
};
|
|
115
133
|
/**
|
|
116
134
|
* @summary Gets a specific Merchant
|
|
117
135
|
*/
|
|
118
136
|
function useGetServiceSuspense(mId, options) {
|
|
119
|
-
const queryOptions =
|
|
137
|
+
const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);
|
|
120
138
|
const query = useSuspenseQuery(queryOptions);
|
|
121
139
|
query.queryKey = queryOptions.queryKey;
|
|
122
140
|
return query;
|
|
123
141
|
}
|
|
124
142
|
|
|
125
143
|
//#endregion
|
|
126
|
-
export { getGetMerchantsQueryKey, getGetServiceQueryKey, getMerchants, getService,
|
|
144
|
+
export { getGetMerchantsQueryKey, getGetMerchantsQueryOptions, getGetMerchantsSuspenseQueryOptions, getGetServiceQueryKey, getGetServiceQueryOptions, getGetServiceSuspenseQueryOptions, getMerchants, getService, invalidateGetMerchants, invalidateGetService, useGetMerchants, useGetMerchantsSuspense, useGetService, useGetServiceSuspense };
|
|
127
145
|
//# sourceMappingURL=merchant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merchant.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>>"],"sources":["../../../src/api/merchant/merchant.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n\n * OpenAPI spec version: 4.4\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n QueryFunction,\n QueryKey,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, MerchantDetail, MerchantsGetResponse } from \"../api.schemas\";\n\nimport { customInstance } from \"../../custom-instance\";\nimport type { ErrorType } from \"../../custom-instance\";\nimport { queryMutator } from \"../../options-mutator\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets Merchants known to the Account Server\n\nMerchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server\n\n * @summary Gets all Merchants\n */\nexport const getMerchants = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantsGetResponse>({ url: `/merchant`, method: \"GET\", signal }, options);\n};\n\nexport const getGetMerchantsQueryKey = () => {\n return [`/merchant`] as const;\n};\n\nexport const useGetMerchantsQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = useGetMerchantsQueryOptions(options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\nexport const useGetMerchantsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = useGetMerchantsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets a known Merchant\n\n * @summary Gets a specific Merchant\n */\nexport const getService = (\n mId: number,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantDetail>(\n { url: `/merchant/${mId}`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetServiceQueryKey = (mId?: number) => {\n return [`/merchant/${mId}`] as const;\n};\n\nexport const useGetServiceQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData> & {\n queryKey: QueryKey;\n };\n};\n\nexport type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = useGetServiceQueryOptions(mId, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\nexport const useGetServiceSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = useGetServiceSuspenseQueryOptions(mId, options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;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,sBAAsB,IAAI;CAErE,MAAMC,WAAkE,EAAE,aACxE,WAAW,KAAK,gBAAgB,OAAO;AAIzC,QAFsB,aAAa;EAAE,GAAG;EAAc;EAAU;EAAS,CAAC;;;;;AAc5E,SAAgB,cAId,KACA,SAIwD;CACxD,MAAM,eAAe,0BAA0B,KAAK,QAAQ;CAE5D,MAAM,QAAQ,SAAS,aAAa;AAEpC,OAAM,WAAW,aAAa;AAE9B,QAAO;;AAGT,MAAa,qCAIX,KACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMA,WAAkE,EAAE,aACxE,WAAW,KAAK,gBAAgB,OAAO;AAIzC,QAFsB,aAAa;EAAE,GAAG;EAAc;EAAU;EAAS,CAAC;;;;;AAgB5E,SAAgB,sBAId,KACA,SAIgE;CAChE,MAAM,eAAe,kCAAkC,KAAK,QAAQ;CAEpE,MAAM,QAAQ,iBAAiB,aAAa;AAI5C,OAAM,WAAW,aAAa;AAE9B,QAAO"}
|
|
1
|
+
{"version":3,"file":"merchant.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>>"],"sources":["../../../src/api/merchant/merchant.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n\n * OpenAPI spec version: 4.4\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, MerchantDetail, MerchantsGetResponse } from \".././api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets Merchants known to the Account Server\n\nMerchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server\n\n * @summary Gets all Merchants\n */\nexport const getMerchants = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantsGetResponse>({ url: `/merchant`, method: \"GET\", signal }, options);\n};\n\nexport const getGetMerchantsQueryKey = () => {\n return [\"account-server\", \"merchant\"] as const;\n};\n\nexport const getGetMerchantsQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsQueryOptions(options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets all Merchants\n */\nexport const invalidateGetMerchants = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetMerchantsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets a known Merchant\n\n * @summary Gets a specific Merchant\n */\nexport const getService = (\n mId: number,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantDetail>(\n { url: `/merchant/${mId}`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetServiceQueryKey = (mId?: number) => {\n return [\"account-server\", \"merchant\", mId] as const;\n};\n\nexport const getGetServiceQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n return { queryKey, queryFn, enabled: !!mId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceQueryOptions(mId, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets a specific Merchant\n */\nexport const invalidateGetService = async (\n queryClient: QueryClient,\n mId: number,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);\n\n return queryClient;\n};\n\nexport const getGetServiceSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,MAAa,gBACX,SACA,WACG;AACH,QAAO,eAAqC;EAAE,KAAK;EAAa,QAAQ;EAAO;EAAQ,EAAE,QAAQ;;AAGnG,MAAa,gCAAgC;AAC3C,QAAO,CAAC,kBAAkB,WAAW;;AAGvC,MAAa,+BAGX,YAGI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,Y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