@squonk/account-server-client 4.8.0 → 4.9.0-beta.1
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 +1 -1
- package/dist/api/actions/actions.cjs.map +1 -1
- package/dist/api/actions/actions.fetch.cjs +1 -1
- package/dist/api/actions/actions.fetch.cjs.map +1 -1
- package/dist/api/actions/actions.fetch.js +1 -1
- package/dist/api/actions/actions.fetch.js.map +1 -1
- package/dist/api/actions/actions.js +1 -1
- package/dist/api/actions/actions.js.map +1 -1
- package/dist/api/api-schemas/asError.d.cts +1 -1
- package/dist/api/api-schemas/asError.d.ts +1 -1
- package/dist/api/api-schemas/assetDetailScope.cjs.map +1 -1
- package/dist/api/api-schemas/assetDetailScope.d.cts +1 -1
- package/dist/api/api-schemas/assetDetailScope.d.ts +1 -1
- package/dist/api/api-schemas/assetDetailScope.js.map +1 -1
- package/dist/api/api-schemas/assetPatchBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/assetPatchBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.cjs.map +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.cts +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.d.ts +1 -1
- package/dist/api/api-schemas/assetPostBodyBodyScope.js.map +1 -1
- package/dist/api/api-schemas/assetPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/assetPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/capabilitiesGetResponse.d.cts +11 -0
- package/dist/api/api-schemas/capabilitiesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/capabilitiesGetResponse.d.ts +11 -0
- package/dist/api/api-schemas/capabilitiesGetResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/capabilityDetail.d.cts +21 -0
- package/dist/api/api-schemas/capabilityDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/capabilityDetail.d.ts +21 -0
- package/dist/api/api-schemas/capabilityDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.cjs +6 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.cjs.map +1 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.d.cts +18 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.d.cts.map +1 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.d.ts +18 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.d.ts.map +1 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.js +6 -0
- package/dist/api/api-schemas/capabilityDetailMerchantKind.js.map +1 -0
- package/dist/api/api-schemas/capabilityDetailSpec.d.cts +20 -0
- package/dist/api/api-schemas/capabilityDetailSpec.d.cts.map +1 -0
- package/dist/api/api-schemas/capabilityDetailSpec.d.ts +20 -0
- package/dist/api/api-schemas/capabilityDetailSpec.d.ts.map +1 -0
- package/dist/api/api-schemas/capabilityPostBodyBody.d.cts +17 -0
- package/dist/api/api-schemas/capabilityPostBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/capabilityPostBodyBody.d.ts +17 -0
- package/dist/api/api-schemas/capabilityPostBodyBody.d.ts.map +1 -0
- package/dist/api/api-schemas/capabilityPostResponse.d.cts +20 -0
- package/dist/api/api-schemas/capabilityPostResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/capabilityPostResponse.d.ts +20 -0
- package/dist/api/api-schemas/capabilityPostResponse.d.ts.map +1 -0
- package/dist/api/api-schemas/chargeAdditionalData.d.cts +1 -1
- package/dist/api/api-schemas/chargeAdditionalData.d.ts +1 -1
- package/dist/api/api-schemas/chargeSummaryType.cjs.map +1 -1
- package/dist/api/api-schemas/chargeSummaryType.d.cts +1 -1
- package/dist/api/api-schemas/chargeSummaryType.d.ts +1 -1
- package/dist/api/api-schemas/chargeSummaryType.js.map +1 -1
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/eventStreamGetPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.cjs.map +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.cts +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.d.ts +1 -1
- package/dist/api/api-schemas/eventStreamPostBodyBodyFormat.js.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.cjs.map +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.cts +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.d.ts +1 -1
- package/dist/api/api-schemas/eventStreamVersionGetResponseProtocol.js.map +1 -1
- package/dist/api/api-schemas/incidentDetailScope.cjs.map +1 -1
- package/dist/api/api-schemas/incidentDetailScope.d.cts +1 -1
- package/dist/api/api-schemas/incidentDetailScope.d.ts +1 -1
- package/dist/api/api-schemas/incidentDetailScope.js.map +1 -1
- package/dist/api/api-schemas/merchantDetailKind.cjs.map +1 -1
- package/dist/api/api-schemas/merchantDetailKind.d.cts +1 -1
- package/dist/api/api-schemas/merchantDetailKind.d.ts +1 -1
- package/dist/api/api-schemas/merchantDetailKind.js.map +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.cjs.map +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.d.cts +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.d.ts +1 -1
- package/dist/api/api-schemas/merchantSummaryKind.js.map +1 -1
- package/dist/api/api-schemas/notificationDetailState.cjs.map +1 -1
- package/dist/api/api-schemas/notificationDetailState.d.cts +1 -1
- package/dist/api/api-schemas/notificationDetailState.d.ts +1 -1
- package/dist/api/api-schemas/notificationDetailState.js.map +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/organisationAllDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/organisationDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/organisationPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/organisationUnitPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/organisationUnitPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/personalUnitPutBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/personalUnitPutResponse.d.cts +1 -1
- package/dist/api/api-schemas/personalUnitPutResponse.d.ts +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.cjs.map +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.d.cts +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.d.ts +1 -1
- package/dist/api/api-schemas/processingChargesMerchantKind.js.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.cjs.map +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.cts +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.d.ts +1 -1
- package/dist/api/api-schemas/productChargesGetResponseProductType.js.map +1 -1
- package/dist/api/api-schemas/productClaimDetail.d.cts +1 -1
- package/dist/api/api-schemas/productClaimDetail.d.ts +1 -1
- package/dist/api/api-schemas/productCoinsDetail.d.cts +1 -1
- package/dist/api/api-schemas/productCoinsDetail.d.ts +1 -1
- package/dist/api/api-schemas/productDetailFlavour.cjs.map +1 -1
- package/dist/api/api-schemas/productDetailFlavour.d.cts +1 -1
- package/dist/api/api-schemas/productDetailFlavour.d.ts +1 -1
- package/dist/api/api-schemas/productDetailFlavour.js.map +1 -1
- package/dist/api/api-schemas/productDetailType.cjs.map +1 -1
- package/dist/api/api-schemas/productDetailType.d.cts +1 -1
- package/dist/api/api-schemas/productDetailType.d.ts +1 -1
- package/dist/api/api-schemas/productDetailType.js.map +1 -1
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.cts +1 -1
- package/dist/api/api-schemas/productDmStorageDetailCoins.d.ts +1 -1
- package/dist/api/api-schemas/productDmStorageDetailSize.d.cts +1 -1
- package/dist/api/api-schemas/productDmStorageDetailSize.d.ts +1 -1
- package/dist/api/api-schemas/productInstanceDetailCoins.d.cts +1 -1
- package/dist/api/api-schemas/productInstanceDetailCoins.d.ts +1 -1
- package/dist/api/api-schemas/productPatchBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/productPatchBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.cjs.map +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.d.cts +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.d.ts +1 -1
- package/dist/api/api-schemas/productTypeServiceKind.js.map +1 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.cts +1 -1
- package/dist/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.d.ts +1 -1
- package/dist/api/api-schemas/qCreatedFromParameter.d.cts +1 -1
- package/dist/api/api-schemas/qCreatedFromParameter.d.ts +1 -1
- package/dist/api/api-schemas/qCreatedUntilParameter.d.cts +1 -1
- package/dist/api/api-schemas/qCreatedUntilParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFormatParameter.cjs.map +1 -1
- package/dist/api/api-schemas/qFormatParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFormatParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFormatParameter.js.map +1 -1
- package/dist/api/api-schemas/qFromParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFromParameter.d.ts +1 -1
- package/dist/api/api-schemas/qIncidentKindParameter.d.cts +1 -1
- package/dist/api/api-schemas/qIncidentKindParameter.d.ts +1 -1
- package/dist/api/api-schemas/qMIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qMIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qNameParameter.d.cts +1 -1
- package/dist/api/api-schemas/qNameParameter.d.ts +1 -1
- package/dist/api/api-schemas/qNotificationStateParameter.cjs.map +1 -1
- package/dist/api/api-schemas/qNotificationStateParameter.d.cts +1 -1
- package/dist/api/api-schemas/qNotificationStateParameter.d.ts +1 -1
- package/dist/api/api-schemas/qNotificationStateParameter.js.map +1 -1
- package/dist/api/api-schemas/qOrgIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qOrgIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qPbpParameter.d.cts +1 -1
- package/dist/api/api-schemas/qPbpParameter.d.ts +1 -1
- package/dist/api/api-schemas/qProductIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qProductIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qRelayParameter.d.cts +1 -1
- package/dist/api/api-schemas/qRelayParameter.d.ts +1 -1
- package/dist/api/api-schemas/qUnitIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qUnitIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qUntilParameter.d.cts +1 -1
- package/dist/api/api-schemas/qUntilParameter.d.ts +1 -1
- package/dist/api/api-schemas/qUserIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qUserIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/stateGetVersionResponse.d.cts +1 -1
- package/dist/api/api-schemas/stateGetVersionResponse.d.ts +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/unitAllDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/unitDetailDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.cjs.map +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.cts +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.d.ts +1 -1
- package/dist/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.js.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.cjs.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.cts +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.d.ts +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyFlavour.js.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.cjs.map +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.cts +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.d.ts +1 -1
- package/dist/api/api-schemas/unitProductPostBodyBodyType.js.map +1 -1
- package/dist/api/api-schemas/unitProductPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/unitProductPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/userDetail.d.cts +1 -1
- package/dist/api/api-schemas/userDetail.d.ts +1 -1
- package/dist/api/asset/asset.cjs +1 -1
- package/dist/api/asset/asset.cjs.map +1 -1
- package/dist/api/asset/asset.fetch.cjs +1 -1
- package/dist/api/asset/asset.fetch.cjs.map +1 -1
- package/dist/api/asset/asset.fetch.js +1 -1
- package/dist/api/asset/asset.fetch.js.map +1 -1
- package/dist/api/asset/asset.js +1 -1
- package/dist/api/asset/asset.js.map +1 -1
- package/dist/api/capabilities/capabilities.cjs +276 -0
- package/dist/api/capabilities/capabilities.cjs.map +1 -0
- package/dist/api/capabilities/capabilities.d.cts +207 -0
- package/dist/api/capabilities/capabilities.d.cts.map +1 -0
- package/dist/api/capabilities/capabilities.d.ts +207 -0
- package/dist/api/capabilities/capabilities.d.ts.map +1 -0
- package/dist/api/capabilities/capabilities.fetch.cjs +296 -0
- package/dist/api/capabilities/capabilities.fetch.cjs.map +1 -0
- package/dist/api/capabilities/capabilities.fetch.d.cts +351 -0
- package/dist/api/capabilities/capabilities.fetch.d.cts.map +1 -0
- package/dist/api/capabilities/capabilities.fetch.d.ts +351 -0
- package/dist/api/capabilities/capabilities.fetch.d.ts.map +1 -0
- package/dist/api/capabilities/capabilities.fetch.js +272 -0
- package/dist/api/capabilities/capabilities.fetch.js.map +1 -0
- package/dist/api/capabilities/capabilities.js +257 -0
- package/dist/api/capabilities/capabilities.js.map +1 -0
- package/dist/api/charges/charges.cjs +1 -1
- package/dist/api/charges/charges.cjs.map +1 -1
- package/dist/api/charges/charges.fetch.cjs +1 -1
- package/dist/api/charges/charges.fetch.cjs.map +1 -1
- package/dist/api/charges/charges.fetch.js +1 -1
- package/dist/api/charges/charges.fetch.js.map +1 -1
- package/dist/api/charges/charges.js +1 -1
- package/dist/api/charges/charges.js.map +1 -1
- package/dist/api/event-stream/event-stream.cjs +1 -1
- package/dist/api/event-stream/event-stream.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.cjs +1 -1
- package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.js +1 -1
- package/dist/api/event-stream/event-stream.fetch.js.map +1 -1
- package/dist/api/event-stream/event-stream.js +1 -1
- package/dist/api/event-stream/event-stream.js.map +1 -1
- package/dist/api/merchant/merchant.cjs +1 -1
- package/dist/api/merchant/merchant.cjs.map +1 -1
- package/dist/api/merchant/merchant.fetch.cjs +1 -1
- package/dist/api/merchant/merchant.fetch.cjs.map +1 -1
- package/dist/api/merchant/merchant.fetch.js +1 -1
- package/dist/api/merchant/merchant.fetch.js.map +1 -1
- package/dist/api/merchant/merchant.js +1 -1
- package/dist/api/merchant/merchant.js.map +1 -1
- package/dist/api/notifications/notifications.cjs +1 -1
- package/dist/api/notifications/notifications.cjs.map +1 -1
- package/dist/api/notifications/notifications.fetch.cjs +1 -1
- package/dist/api/notifications/notifications.fetch.cjs.map +1 -1
- package/dist/api/notifications/notifications.fetch.js +1 -1
- package/dist/api/notifications/notifications.fetch.js.map +1 -1
- package/dist/api/notifications/notifications.js +1 -1
- package/dist/api/notifications/notifications.js.map +1 -1
- package/dist/api/organisation/organisation.cjs +3 -1
- package/dist/api/organisation/organisation.cjs.map +1 -1
- package/dist/api/organisation/organisation.d.cts +2 -0
- package/dist/api/organisation/organisation.d.cts.map +1 -1
- package/dist/api/organisation/organisation.d.ts +2 -0
- package/dist/api/organisation/organisation.d.ts.map +1 -1
- package/dist/api/organisation/organisation.fetch.cjs +3 -1
- package/dist/api/organisation/organisation.fetch.cjs.map +1 -1
- package/dist/api/organisation/organisation.fetch.d.cts +8 -2
- package/dist/api/organisation/organisation.fetch.d.cts.map +1 -1
- package/dist/api/organisation/organisation.fetch.d.ts +8 -2
- package/dist/api/organisation/organisation.fetch.d.ts.map +1 -1
- package/dist/api/organisation/organisation.fetch.js +3 -1
- package/dist/api/organisation/organisation.fetch.js.map +1 -1
- package/dist/api/organisation/organisation.js +3 -1
- package/dist/api/organisation/organisation.js.map +1 -1
- package/dist/api/product/product.cjs +4 -2
- package/dist/api/product/product.cjs.map +1 -1
- package/dist/api/product/product.d.cts +3 -1
- package/dist/api/product/product.d.cts.map +1 -1
- package/dist/api/product/product.d.ts +3 -1
- package/dist/api/product/product.d.ts.map +1 -1
- package/dist/api/product/product.fetch.cjs +4 -2
- package/dist/api/product/product.fetch.cjs.map +1 -1
- package/dist/api/product/product.fetch.d.cts +3 -1
- package/dist/api/product/product.fetch.d.cts.map +1 -1
- package/dist/api/product/product.fetch.d.ts +3 -1
- package/dist/api/product/product.fetch.d.ts.map +1 -1
- package/dist/api/product/product.fetch.js +4 -2
- package/dist/api/product/product.fetch.js.map +1 -1
- package/dist/api/product/product.js +4 -2
- package/dist/api/product/product.js.map +1 -1
- package/dist/api/state/state.cjs +1 -1
- package/dist/api/state/state.cjs.map +1 -1
- package/dist/api/state/state.fetch.cjs +1 -1
- package/dist/api/state/state.fetch.cjs.map +1 -1
- package/dist/api/state/state.fetch.js +1 -1
- package/dist/api/state/state.fetch.js.map +1 -1
- package/dist/api/state/state.js +1 -1
- package/dist/api/state/state.js.map +1 -1
- package/dist/api/unit/unit.cjs +1 -1
- package/dist/api/unit/unit.cjs.map +1 -1
- package/dist/api/unit/unit.fetch.cjs +1 -1
- package/dist/api/unit/unit.fetch.cjs.map +1 -1
- package/dist/api/unit/unit.fetch.js +1 -1
- package/dist/api/unit/unit.fetch.js.map +1 -1
- package/dist/api/unit/unit.js +1 -1
- package/dist/api/unit/unit.js.map +1 -1
- package/dist/api/user/user.cjs +1 -1
- package/dist/api/user/user.cjs.map +1 -1
- package/dist/api/user/user.fetch.cjs +1 -1
- package/dist/api/user/user.fetch.cjs.map +1 -1
- package/dist/api/user/user.fetch.js +1 -1
- package/dist/api/user/user.fetch.js.map +1 -1
- package/dist/api/user/user.js +1 -1
- package/dist/api/user/user.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +2 -1
- package/package.json +39 -1
- package/src/api/actions/actions.fetch.ts +1 -1
- package/src/api/actions/actions.ts +1 -1
- package/src/api/api-schemas/actionDetail.fetch.ts +1 -1
- package/src/api/api-schemas/actionDetail.ts +1 -1
- package/src/api/api-schemas/actionGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/actionGetResponse.ts +1 -1
- package/src/api/api-schemas/asError.fetch.ts +1 -1
- package/src/api/api-schemas/asError.ts +1 -1
- package/src/api/api-schemas/assetDetail.fetch.ts +1 -1
- package/src/api/api-schemas/assetDetail.ts +1 -1
- package/src/api/api-schemas/assetDetailScope.fetch.ts +1 -1
- package/src/api/api-schemas/assetDetailScope.ts +1 -1
- package/src/api/api-schemas/assetGetByIdResponse.fetch.ts +1 -1
- package/src/api/api-schemas/assetGetByIdResponse.ts +1 -1
- package/src/api/api-schemas/assetGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/assetGetResponse.ts +1 -1
- package/src/api/api-schemas/assetPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/assetPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/assetPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/assetPostBodyBody.ts +1 -1
- package/src/api/api-schemas/assetPostBodyBodyScope.fetch.ts +1 -1
- package/src/api/api-schemas/assetPostBodyBodyScope.ts +1 -1
- package/src/api/api-schemas/assetPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/assetPostResponse.ts +1 -1
- package/src/api/api-schemas/attachAssetParams.fetch.ts +1 -1
- package/src/api/api-schemas/attachAssetParams.ts +1 -1
- package/src/api/api-schemas/capabilitiesGetResponse.fetch.ts +17 -0
- package/src/api/api-schemas/capabilitiesGetResponse.ts +17 -0
- package/src/api/api-schemas/capabilityDetail.fetch.ts +27 -0
- package/src/api/api-schemas/capabilityDetail.ts +27 -0
- package/src/api/api-schemas/capabilityDetailMerchantKind.fetch.ts +15 -0
- package/src/api/api-schemas/capabilityDetailMerchantKind.ts +15 -0
- package/src/api/api-schemas/capabilityDetailSpec.fetch.ts +15 -0
- package/src/api/api-schemas/capabilityDetailSpec.ts +15 -0
- package/src/api/api-schemas/capabilityPostBodyBody.fetch.ts +15 -0
- package/src/api/api-schemas/capabilityPostBodyBody.ts +15 -0
- package/src/api/api-schemas/capabilityPostResponse.fetch.ts +17 -0
- package/src/api/api-schemas/capabilityPostResponse.ts +17 -0
- package/src/api/api-schemas/chargeAdditionalData.fetch.ts +1 -1
- package/src/api/api-schemas/chargeAdditionalData.ts +1 -1
- package/src/api/api-schemas/chargeSummary.fetch.ts +1 -1
- package/src/api/api-schemas/chargeSummary.ts +1 -1
- package/src/api/api-schemas/chargeSummaryType.fetch.ts +1 -1
- package/src/api/api-schemas/chargeSummaryType.ts +1 -1
- package/src/api/api-schemas/chargesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/chargesGetResponse.ts +1 -1
- package/src/api/api-schemas/detachAssetParams.fetch.ts +1 -1
- package/src/api/api-schemas/detachAssetParams.ts +1 -1
- package/src/api/api-schemas/eventStreamGetPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/eventStreamGetPostResponse.ts +1 -1
- package/src/api/api-schemas/eventStreamPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/eventStreamPostBodyBody.ts +1 -1
- package/src/api/api-schemas/eventStreamPostBodyBodyFormat.fetch.ts +1 -1
- package/src/api/api-schemas/eventStreamPostBodyBodyFormat.ts +1 -1
- package/src/api/api-schemas/eventStreamVersionGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/eventStreamVersionGetResponse.ts +1 -1
- package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.fetch.ts +1 -1
- package/src/api/api-schemas/eventStreamVersionGetResponseProtocol.ts +1 -1
- package/src/api/api-schemas/getActionsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getActionsParams.ts +1 -1
- package/src/api/api-schemas/getAssetParams.fetch.ts +1 -1
- package/src/api/api-schemas/getAssetParams.ts +1 -1
- package/src/api/api-schemas/getChargesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getChargesParams.ts +1 -1
- package/src/api/api-schemas/getIncidentsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getIncidentsParams.ts +1 -1
- package/src/api/api-schemas/getNotificationsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getNotificationsParams.ts +1 -1
- package/src/api/api-schemas/getOrganisationChargesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getOrganisationChargesParams.ts +1 -1
- package/src/api/api-schemas/getOrganisationsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getOrganisationsParams.ts +1 -1
- package/src/api/api-schemas/getProductChargesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getProductChargesParams.ts +1 -1
- package/src/api/api-schemas/getUnitChargesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getUnitChargesParams.ts +1 -1
- package/src/api/api-schemas/getUnitsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getUnitsParams.ts +1 -1
- package/src/api/api-schemas/incidentDetail.fetch.ts +1 -1
- package/src/api/api-schemas/incidentDetail.ts +1 -1
- package/src/api/api-schemas/incidentDetailScope.fetch.ts +1 -1
- package/src/api/api-schemas/incidentDetailScope.ts +1 -1
- package/src/api/api-schemas/incidentsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/incidentsGetResponse.ts +1 -1
- package/src/api/api-schemas/index.ts +7 -1
- package/src/api/api-schemas/merchantDetail.fetch.ts +1 -1
- package/src/api/api-schemas/merchantDetail.ts +1 -1
- package/src/api/api-schemas/merchantDetailKind.fetch.ts +1 -1
- package/src/api/api-schemas/merchantDetailKind.ts +1 -1
- package/src/api/api-schemas/merchantGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/merchantGetResponse.ts +1 -1
- package/src/api/api-schemas/merchantSummary.fetch.ts +1 -1
- package/src/api/api-schemas/merchantSummary.ts +1 -1
- package/src/api/api-schemas/merchantSummaryKind.fetch.ts +1 -1
- package/src/api/api-schemas/merchantSummaryKind.ts +1 -1
- package/src/api/api-schemas/merchantsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/merchantsGetResponse.ts +1 -1
- package/src/api/api-schemas/notificationDetail.fetch.ts +1 -1
- package/src/api/api-schemas/notificationDetail.ts +1 -1
- package/src/api/api-schemas/notificationDetailState.fetch.ts +1 -1
- package/src/api/api-schemas/notificationDetailState.ts +1 -1
- package/src/api/api-schemas/notificationsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/notificationsGetResponse.ts +1 -1
- package/src/api/api-schemas/organisationAllDetail.fetch.ts +1 -1
- package/src/api/api-schemas/organisationAllDetail.ts +1 -1
- package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/organisationAllDetailDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/organisationChargeSummary.fetch.ts +1 -1
- package/src/api/api-schemas/organisationChargeSummary.ts +1 -1
- package/src/api/api-schemas/organisationChargesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/organisationChargesGetResponse.ts +1 -1
- package/src/api/api-schemas/organisationDetail.fetch.ts +1 -1
- package/src/api/api-schemas/organisationDetail.ts +1 -1
- package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/organisationDetailDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/organisationGetDefaultResponse.fetch.ts +1 -1
- package/src/api/api-schemas/organisationGetDefaultResponse.ts +1 -1
- package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/organisationGetDefaultResponseDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/organisationGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/organisationGetResponse.ts +1 -1
- package/src/api/api-schemas/organisationPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/organisationPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/organisationPatchBodyBodyDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/organisationPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/organisationPostBodyBody.ts +1 -1
- package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/organisationPostBodyBodyDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/organisationPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/organisationPostResponse.ts +1 -1
- package/src/api/api-schemas/organisationUnitChargeSummary.fetch.ts +1 -1
- package/src/api/api-schemas/organisationUnitChargeSummary.ts +1 -1
- package/src/api/api-schemas/organisationUnitPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/organisationUnitPostBodyBody.ts +1 -1
- package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/organisationUnitPostBodyBodyDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/organisationUnitPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/organisationUnitPostResponse.ts +1 -1
- package/src/api/api-schemas/organisationUnitsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/organisationUnitsGetResponse.ts +1 -1
- package/src/api/api-schemas/organisationsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/organisationsGetResponse.ts +1 -1
- package/src/api/api-schemas/personalUnitPutBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/personalUnitPutBodyBody.ts +1 -1
- package/src/api/api-schemas/personalUnitPutResponse.fetch.ts +1 -1
- package/src/api/api-schemas/personalUnitPutResponse.ts +1 -1
- package/src/api/api-schemas/processingChargeItem.fetch.ts +1 -1
- package/src/api/api-schemas/processingChargeItem.ts +1 -1
- package/src/api/api-schemas/processingCharges.fetch.ts +1 -1
- package/src/api/api-schemas/processingCharges.ts +1 -1
- package/src/api/api-schemas/processingChargesMerchantKind.fetch.ts +1 -1
- package/src/api/api-schemas/processingChargesMerchantKind.ts +1 -1
- package/src/api/api-schemas/productChargesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/productChargesGetResponse.ts +1 -1
- package/src/api/api-schemas/productChargesGetResponseProductType.fetch.ts +1 -1
- package/src/api/api-schemas/productChargesGetResponseProductType.ts +1 -1
- package/src/api/api-schemas/productClaimDetail.fetch.ts +1 -1
- package/src/api/api-schemas/productClaimDetail.ts +1 -1
- package/src/api/api-schemas/productCoinsDetail.fetch.ts +1 -1
- package/src/api/api-schemas/productCoinsDetail.ts +1 -1
- package/src/api/api-schemas/productDetail.fetch.ts +1 -1
- package/src/api/api-schemas/productDetail.ts +1 -1
- package/src/api/api-schemas/productDetailFlavour.fetch.ts +1 -1
- package/src/api/api-schemas/productDetailFlavour.ts +1 -1
- package/src/api/api-schemas/productDetailType.fetch.ts +1 -1
- package/src/api/api-schemas/productDetailType.ts +1 -1
- package/src/api/api-schemas/productDmProjectTier.fetch.ts +1 -1
- package/src/api/api-schemas/productDmProjectTier.ts +1 -1
- package/src/api/api-schemas/productDmStorage.fetch.ts +1 -1
- package/src/api/api-schemas/productDmStorage.ts +1 -1
- package/src/api/api-schemas/productDmStorageDetail.fetch.ts +1 -1
- package/src/api/api-schemas/productDmStorageDetail.ts +1 -1
- package/src/api/api-schemas/productDmStorageDetailCoins.fetch.ts +1 -1
- package/src/api/api-schemas/productDmStorageDetailCoins.ts +1 -1
- package/src/api/api-schemas/productDmStorageDetailSize.fetch.ts +1 -1
- package/src/api/api-schemas/productDmStorageDetailSize.ts +1 -1
- package/src/api/api-schemas/productInstanceDetail.fetch.ts +1 -1
- package/src/api/api-schemas/productInstanceDetail.ts +1 -1
- package/src/api/api-schemas/productInstanceDetailCoins.fetch.ts +1 -1
- package/src/api/api-schemas/productInstanceDetailCoins.ts +1 -1
- package/src/api/api-schemas/productPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/productPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/productType.fetch.ts +1 -1
- package/src/api/api-schemas/productType.ts +1 -1
- package/src/api/api-schemas/productTypeServiceKind.fetch.ts +1 -1
- package/src/api/api-schemas/productTypeServiceKind.ts +1 -1
- package/src/api/api-schemas/productUnitGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/productUnitGetResponse.ts +1 -1
- package/src/api/api-schemas/productsGetDefaultStorageCost.fetch.ts +1 -1
- package/src/api/api-schemas/productsGetDefaultStorageCost.ts +1 -1
- package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.fetch.ts +1 -1
- package/src/api/api-schemas/productsGetDefaultStorageCostDefaultStorageCost.ts +1 -1
- package/src/api/api-schemas/productsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/productsGetResponse.ts +1 -1
- package/src/api/api-schemas/productsGetTypesResponse.fetch.ts +1 -1
- package/src/api/api-schemas/productsGetTypesResponse.ts +1 -1
- package/src/api/api-schemas/qCreatedFromParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qCreatedFromParameter.ts +1 -1
- package/src/api/api-schemas/qCreatedUntilParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qCreatedUntilParameter.ts +1 -1
- package/src/api/api-schemas/qFormatParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFormatParameter.ts +1 -1
- package/src/api/api-schemas/qFromParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFromParameter.ts +1 -1
- package/src/api/api-schemas/qIncidentKindParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qIncidentKindParameter.ts +1 -1
- package/src/api/api-schemas/qMIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qMIdParameter.ts +1 -1
- package/src/api/api-schemas/qNameParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qNameParameter.ts +1 -1
- package/src/api/api-schemas/qNotificationStateParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qNotificationStateParameter.ts +1 -1
- package/src/api/api-schemas/qOrgIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qOrgIdParameter.ts +1 -1
- package/src/api/api-schemas/qPbpParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qPbpParameter.ts +1 -1
- package/src/api/api-schemas/qProductIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qProductIdParameter.ts +1 -1
- package/src/api/api-schemas/qRelayParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qRelayParameter.ts +1 -1
- package/src/api/api-schemas/qUnitIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qUnitIdParameter.ts +1 -1
- package/src/api/api-schemas/qUntilParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qUntilParameter.ts +1 -1
- package/src/api/api-schemas/qUserIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qUserIdParameter.ts +1 -1
- package/src/api/api-schemas/stateGetVersionResponse.fetch.ts +1 -1
- package/src/api/api-schemas/stateGetVersionResponse.ts +1 -1
- package/src/api/api-schemas/storageChargeItem.fetch.ts +1 -1
- package/src/api/api-schemas/storageChargeItem.ts +1 -1
- package/src/api/api-schemas/storageCharges.fetch.ts +1 -1
- package/src/api/api-schemas/storageCharges.ts +1 -1
- package/src/api/api-schemas/unitAllDetail.fetch.ts +1 -1
- package/src/api/api-schemas/unitAllDetail.ts +1 -1
- package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/unitAllDetailDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/unitChargeSummary.fetch.ts +1 -1
- package/src/api/api-schemas/unitChargeSummary.ts +1 -1
- package/src/api/api-schemas/unitChargesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/unitChargesGetResponse.ts +1 -1
- package/src/api/api-schemas/unitDetail.fetch.ts +1 -1
- package/src/api/api-schemas/unitDetail.ts +1 -1
- package/src/api/api-schemas/unitDetailDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/unitDetailDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/unitGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/unitGetResponse.ts +1 -1
- package/src/api/api-schemas/unitPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/unitPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.fetch.ts +1 -1
- package/src/api/api-schemas/unitPatchBodyBodyDefaultProductPrivacy.ts +1 -1
- package/src/api/api-schemas/unitProductChargeSummary.fetch.ts +1 -1
- package/src/api/api-schemas/unitProductChargeSummary.ts +1 -1
- package/src/api/api-schemas/unitProductPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/unitProductPostBodyBody.ts +1 -1
- package/src/api/api-schemas/unitProductPostBodyBodyFlavour.fetch.ts +1 -1
- package/src/api/api-schemas/unitProductPostBodyBodyFlavour.ts +1 -1
- package/src/api/api-schemas/unitProductPostBodyBodyType.fetch.ts +1 -1
- package/src/api/api-schemas/unitProductPostBodyBodyType.ts +1 -1
- package/src/api/api-schemas/unitProductPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/unitProductPostResponse.ts +1 -1
- package/src/api/api-schemas/unitsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/unitsGetResponse.ts +1 -1
- package/src/api/api-schemas/userAccountDetail.fetch.ts +1 -1
- package/src/api/api-schemas/userAccountDetail.ts +1 -1
- package/src/api/api-schemas/userAccountGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/userAccountGetResponse.ts +1 -1
- package/src/api/api-schemas/userDetail.fetch.ts +1 -1
- package/src/api/api-schemas/userDetail.ts +1 -1
- package/src/api/api-schemas/usersGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/usersGetResponse.ts +1 -1
- package/src/api/asset/asset.fetch.ts +1 -1
- package/src/api/asset/asset.ts +1 -1
- package/src/api/capabilities/capabilities.fetch.ts +750 -0
- package/src/api/capabilities/capabilities.ts +629 -0
- package/src/api/charges/charges.fetch.ts +1 -1
- package/src/api/charges/charges.ts +1 -1
- package/src/api/event-stream/event-stream.fetch.ts +1 -1
- package/src/api/event-stream/event-stream.ts +1 -1
- package/src/api/merchant/merchant.fetch.ts +1 -1
- package/src/api/merchant/merchant.ts +1 -1
- package/src/api/notifications/notifications.fetch.ts +1 -1
- package/src/api/notifications/notifications.ts +1 -1
- package/src/api/organisation/organisation.fetch.ts +6 -1
- package/src/api/organisation/organisation.ts +3 -1
- package/src/api/product/product.fetch.ts +4 -2
- package/src/api/product/product.ts +4 -2
- package/src/api/state/state.fetch.ts +1 -1
- package/src/api/state/state.ts +1 -1
- package/src/api/unit/unit.fetch.ts +1 -1
- package/src/api/unit/unit.ts +1 -1
- package/src/api/user/user.fetch.ts +1 -1
- package/src/api/user/user.ts +1 -1
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.22.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Account Server API
|
|
5
|
+
* The Informatics Matters Account Server API.
|
|
6
|
+
*
|
|
7
|
+
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
|
+
*
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
|
+
*/
|
|
11
|
+
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
|
+
import type {
|
|
13
|
+
DataTag,
|
|
14
|
+
DefinedInitialDataOptions,
|
|
15
|
+
DefinedUseQueryResult,
|
|
16
|
+
InvalidateOptions,
|
|
17
|
+
MutationFunction,
|
|
18
|
+
QueryClient,
|
|
19
|
+
QueryFunction,
|
|
20
|
+
QueryKey,
|
|
21
|
+
UndefinedInitialDataOptions,
|
|
22
|
+
UseMutationOptions,
|
|
23
|
+
UseMutationResult,
|
|
24
|
+
UseQueryOptions,
|
|
25
|
+
UseQueryResult,
|
|
26
|
+
UseSuspenseQueryOptions,
|
|
27
|
+
UseSuspenseQueryResult,
|
|
28
|
+
} from "@tanstack/react-query";
|
|
29
|
+
|
|
30
|
+
import type {
|
|
31
|
+
AsError,
|
|
32
|
+
CapabilitiesGetResponse,
|
|
33
|
+
CapabilityPostBodyBody,
|
|
34
|
+
CapabilityPostResponse,
|
|
35
|
+
} from "../api-schemas";
|
|
36
|
+
|
|
37
|
+
import { customInstance } from "../../custom-axios";
|
|
38
|
+
import type { ErrorType } from "../../custom-axios";
|
|
39
|
+
|
|
40
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
41
|
+
|
|
42
|
+
const withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {
|
|
43
|
+
const result = { queryKey } as T & { queryKey: K };
|
|
44
|
+
for (const key of Object.keys(query)) {
|
|
45
|
+
// The explicit queryKey always wins, matching the previous
|
|
46
|
+
// `{ ...query, queryKey }` spread where it was set last.
|
|
47
|
+
if (key === "queryKey") continue;
|
|
48
|
+
Object.defineProperty(result, key, {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true,
|
|
51
|
+
get: () => (query as Record<string, unknown>)[key],
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return result;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Loads the Capabilities defined in a YAML file against an Organisation. Several Capabilities can be loaded at once by concatenating their definitions (as separate YAML documents). Either all the Capabilities in the file are loaded or none of them are.
|
|
59
|
+
*
|
|
60
|
+
* A Capability can only be loaded once against an Organisation, and is enabled when it's loaded. The Capabilities that can be loaded, and what goes in their **spec**, are described in the Capability catalogue.
|
|
61
|
+
*
|
|
62
|
+
* You need admin rights to use this path.
|
|
63
|
+
* @summary Loads Capabilities against an Organisation
|
|
64
|
+
*/
|
|
65
|
+
export const loadCapabilities = (
|
|
66
|
+
orgId: string,
|
|
67
|
+
capabilityPostBodyBody: CapabilityPostBodyBody,
|
|
68
|
+
options?: SecondParameter<typeof customInstance>,
|
|
69
|
+
signal?: AbortSignal,
|
|
70
|
+
) => {
|
|
71
|
+
const formData = new FormData();
|
|
72
|
+
formData.append(`capability_file`, capabilityPostBodyBody.capability_file);
|
|
73
|
+
|
|
74
|
+
return customInstance<CapabilityPostResponse>(
|
|
75
|
+
{
|
|
76
|
+
url: `/capability/${orgId}`,
|
|
77
|
+
method: "POST",
|
|
78
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
79
|
+
data: formData,
|
|
80
|
+
signal,
|
|
81
|
+
},
|
|
82
|
+
options,
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const getLoadCapabilitiesMutationOptions = <
|
|
87
|
+
TError = ErrorType<AsError | void>,
|
|
88
|
+
TContext = unknown,
|
|
89
|
+
>(options?: {
|
|
90
|
+
mutation?: UseMutationOptions<
|
|
91
|
+
Awaited<ReturnType<typeof loadCapabilities>>,
|
|
92
|
+
TError,
|
|
93
|
+
{ orgId: string; data: CapabilityPostBodyBody },
|
|
94
|
+
TContext
|
|
95
|
+
>;
|
|
96
|
+
request?: SecondParameter<typeof customInstance>;
|
|
97
|
+
}): UseMutationOptions<
|
|
98
|
+
Awaited<ReturnType<typeof loadCapabilities>>,
|
|
99
|
+
TError,
|
|
100
|
+
{ orgId: string; data: CapabilityPostBodyBody },
|
|
101
|
+
TContext
|
|
102
|
+
> => {
|
|
103
|
+
const mutationKey = ["loadCapabilities"];
|
|
104
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
105
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
106
|
+
? options
|
|
107
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
108
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
109
|
+
|
|
110
|
+
const mutationFn: MutationFunction<
|
|
111
|
+
Awaited<ReturnType<typeof loadCapabilities>>,
|
|
112
|
+
{ orgId: string; data: CapabilityPostBodyBody }
|
|
113
|
+
> = (props) => {
|
|
114
|
+
const { orgId, data } = props ?? {};
|
|
115
|
+
|
|
116
|
+
return loadCapabilities(orgId, data, requestOptions);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
return { mutationFn, ...mutationOptions };
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type LoadCapabilitiesMutationResult = NonNullable<
|
|
123
|
+
Awaited<ReturnType<typeof loadCapabilities>>
|
|
124
|
+
>;
|
|
125
|
+
export type LoadCapabilitiesMutationBody = CapabilityPostBodyBody;
|
|
126
|
+
export type LoadCapabilitiesMutationError = ErrorType<AsError | void>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @summary Loads Capabilities against an Organisation
|
|
130
|
+
*/
|
|
131
|
+
export const useLoadCapabilities = <TError = ErrorType<AsError | void>, TContext = unknown>(
|
|
132
|
+
options?: {
|
|
133
|
+
mutation?: UseMutationOptions<
|
|
134
|
+
Awaited<ReturnType<typeof loadCapabilities>>,
|
|
135
|
+
TError,
|
|
136
|
+
{ orgId: string; data: CapabilityPostBodyBody },
|
|
137
|
+
TContext
|
|
138
|
+
>;
|
|
139
|
+
request?: SecondParameter<typeof customInstance>;
|
|
140
|
+
},
|
|
141
|
+
queryClient?: QueryClient,
|
|
142
|
+
): UseMutationResult<
|
|
143
|
+
Awaited<ReturnType<typeof loadCapabilities>>,
|
|
144
|
+
TError,
|
|
145
|
+
{ orgId: string; data: CapabilityPostBodyBody },
|
|
146
|
+
TContext
|
|
147
|
+
> => {
|
|
148
|
+
return useMutation(getLoadCapabilitiesMutationOptions(options), queryClient);
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Gets the Capabilities loaded against an Organisation.
|
|
152
|
+
*
|
|
153
|
+
* You need admin rights to use this path.
|
|
154
|
+
* @summary Gets an Organisation's Capabilities
|
|
155
|
+
*/
|
|
156
|
+
export const getCapabilities = (
|
|
157
|
+
orgId: string,
|
|
158
|
+
options?: SecondParameter<typeof customInstance>,
|
|
159
|
+
signal?: AbortSignal,
|
|
160
|
+
) => {
|
|
161
|
+
return customInstance<CapabilitiesGetResponse>(
|
|
162
|
+
{ url: `/capability/${orgId}`, method: "GET", signal },
|
|
163
|
+
options,
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export const getGetCapabilitiesQueryKey = (orgId: string) => {
|
|
168
|
+
return ["account-server", "capability", orgId] as const;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export const getGetCapabilitiesQueryOptions = <
|
|
172
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
173
|
+
TError = ErrorType<void | AsError>,
|
|
174
|
+
>(
|
|
175
|
+
orgId: string,
|
|
176
|
+
options?: {
|
|
177
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>>;
|
|
178
|
+
request?: SecondParameter<typeof customInstance>;
|
|
179
|
+
},
|
|
180
|
+
) => {
|
|
181
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
182
|
+
|
|
183
|
+
const queryKey = queryOptions?.queryKey ?? getGetCapabilitiesQueryKey(orgId);
|
|
184
|
+
|
|
185
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getCapabilities>>> = ({ signal }) =>
|
|
186
|
+
getCapabilities(orgId, requestOptions, signal);
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
queryKey,
|
|
190
|
+
queryFn,
|
|
191
|
+
enabled: orgId !== null && orgId !== undefined,
|
|
192
|
+
...queryOptions,
|
|
193
|
+
} as UseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData> & {
|
|
194
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export type GetCapabilitiesQueryResult = NonNullable<Awaited<ReturnType<typeof getCapabilities>>>;
|
|
199
|
+
export type GetCapabilitiesQueryError = ErrorType<void | AsError>;
|
|
200
|
+
|
|
201
|
+
export function useGetCapabilities<
|
|
202
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
203
|
+
TError = ErrorType<void | AsError>,
|
|
204
|
+
>(
|
|
205
|
+
orgId: string,
|
|
206
|
+
options: {
|
|
207
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>> &
|
|
208
|
+
Pick<
|
|
209
|
+
DefinedInitialDataOptions<
|
|
210
|
+
Awaited<ReturnType<typeof getCapabilities>>,
|
|
211
|
+
TError,
|
|
212
|
+
Awaited<ReturnType<typeof getCapabilities>>
|
|
213
|
+
>,
|
|
214
|
+
"initialData"
|
|
215
|
+
>;
|
|
216
|
+
request?: SecondParameter<typeof customInstance>;
|
|
217
|
+
},
|
|
218
|
+
queryClient?: QueryClient,
|
|
219
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
220
|
+
export function useGetCapabilities<
|
|
221
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
222
|
+
TError = ErrorType<void | AsError>,
|
|
223
|
+
>(
|
|
224
|
+
orgId: string,
|
|
225
|
+
options?: {
|
|
226
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>> &
|
|
227
|
+
Pick<
|
|
228
|
+
UndefinedInitialDataOptions<
|
|
229
|
+
Awaited<ReturnType<typeof getCapabilities>>,
|
|
230
|
+
TError,
|
|
231
|
+
Awaited<ReturnType<typeof getCapabilities>>
|
|
232
|
+
>,
|
|
233
|
+
"initialData"
|
|
234
|
+
>;
|
|
235
|
+
request?: SecondParameter<typeof customInstance>;
|
|
236
|
+
},
|
|
237
|
+
queryClient?: QueryClient,
|
|
238
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
239
|
+
export function useGetCapabilities<
|
|
240
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
241
|
+
TError = ErrorType<void | AsError>,
|
|
242
|
+
>(
|
|
243
|
+
orgId: string,
|
|
244
|
+
options?: {
|
|
245
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>>;
|
|
246
|
+
request?: SecondParameter<typeof customInstance>;
|
|
247
|
+
},
|
|
248
|
+
queryClient?: QueryClient,
|
|
249
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
250
|
+
/**
|
|
251
|
+
* @summary Gets an Organisation's Capabilities
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
export function useGetCapabilities<
|
|
255
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
256
|
+
TError = ErrorType<void | AsError>,
|
|
257
|
+
>(
|
|
258
|
+
orgId: string,
|
|
259
|
+
options?: {
|
|
260
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>>;
|
|
261
|
+
request?: SecondParameter<typeof customInstance>;
|
|
262
|
+
},
|
|
263
|
+
queryClient?: QueryClient,
|
|
264
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
265
|
+
const queryOptions = getGetCapabilitiesQueryOptions(orgId, options);
|
|
266
|
+
|
|
267
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
268
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @summary Gets an Organisation's Capabilities
|
|
276
|
+
*/
|
|
277
|
+
export const invalidateGetCapabilities = async (
|
|
278
|
+
queryClient: QueryClient,
|
|
279
|
+
orgId: string,
|
|
280
|
+
options?: InvalidateOptions,
|
|
281
|
+
): Promise<QueryClient> => {
|
|
282
|
+
await queryClient.invalidateQueries({ queryKey: getGetCapabilitiesQueryKey(orgId) }, options);
|
|
283
|
+
|
|
284
|
+
return queryClient;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export const getGetCapabilitiesSuspenseQueryOptions = <
|
|
288
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
289
|
+
TError = ErrorType<void | AsError>,
|
|
290
|
+
>(
|
|
291
|
+
orgId: string,
|
|
292
|
+
options?: {
|
|
293
|
+
query?: Partial<
|
|
294
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>
|
|
295
|
+
>;
|
|
296
|
+
request?: SecondParameter<typeof customInstance>;
|
|
297
|
+
},
|
|
298
|
+
) => {
|
|
299
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
300
|
+
|
|
301
|
+
const queryKey = queryOptions?.queryKey ?? getGetCapabilitiesQueryKey(orgId);
|
|
302
|
+
|
|
303
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getCapabilities>>> = ({ signal }) =>
|
|
304
|
+
getCapabilities(orgId, requestOptions, signal);
|
|
305
|
+
|
|
306
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
307
|
+
Awaited<ReturnType<typeof getCapabilities>>,
|
|
308
|
+
TError,
|
|
309
|
+
TData
|
|
310
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
export type GetCapabilitiesSuspenseQueryResult = NonNullable<
|
|
314
|
+
Awaited<ReturnType<typeof getCapabilities>>
|
|
315
|
+
>;
|
|
316
|
+
export type GetCapabilitiesSuspenseQueryError = ErrorType<void | AsError>;
|
|
317
|
+
|
|
318
|
+
export function useGetCapabilitiesSuspense<
|
|
319
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
320
|
+
TError = ErrorType<void | AsError>,
|
|
321
|
+
>(
|
|
322
|
+
orgId: string,
|
|
323
|
+
options: {
|
|
324
|
+
query: Partial<
|
|
325
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>
|
|
326
|
+
>;
|
|
327
|
+
request?: SecondParameter<typeof customInstance>;
|
|
328
|
+
},
|
|
329
|
+
queryClient?: QueryClient,
|
|
330
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
331
|
+
export function useGetCapabilitiesSuspense<
|
|
332
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
333
|
+
TError = ErrorType<void | AsError>,
|
|
334
|
+
>(
|
|
335
|
+
orgId: string,
|
|
336
|
+
options?: {
|
|
337
|
+
query?: Partial<
|
|
338
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>
|
|
339
|
+
>;
|
|
340
|
+
request?: SecondParameter<typeof customInstance>;
|
|
341
|
+
},
|
|
342
|
+
queryClient?: QueryClient,
|
|
343
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
344
|
+
export function useGetCapabilitiesSuspense<
|
|
345
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
346
|
+
TError = ErrorType<void | AsError>,
|
|
347
|
+
>(
|
|
348
|
+
orgId: string,
|
|
349
|
+
options?: {
|
|
350
|
+
query?: Partial<
|
|
351
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>
|
|
352
|
+
>;
|
|
353
|
+
request?: SecondParameter<typeof customInstance>;
|
|
354
|
+
},
|
|
355
|
+
queryClient?: QueryClient,
|
|
356
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
357
|
+
/**
|
|
358
|
+
* @summary Gets an Organisation's Capabilities
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
export function useGetCapabilitiesSuspense<
|
|
362
|
+
TData = Awaited<ReturnType<typeof getCapabilities>>,
|
|
363
|
+
TError = ErrorType<void | AsError>,
|
|
364
|
+
>(
|
|
365
|
+
orgId: string,
|
|
366
|
+
options?: {
|
|
367
|
+
query?: Partial<
|
|
368
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCapabilities>>, TError, TData>
|
|
369
|
+
>;
|
|
370
|
+
request?: SecondParameter<typeof customInstance>;
|
|
371
|
+
},
|
|
372
|
+
queryClient?: QueryClient,
|
|
373
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
374
|
+
const queryOptions = getGetCapabilitiesSuspenseQueryOptions(orgId, options);
|
|
375
|
+
|
|
376
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
377
|
+
TData,
|
|
378
|
+
TError
|
|
379
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
380
|
+
|
|
381
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Deletes a Capability from an Organisation. What else happens depends on the Capability (see the Capability catalogue).
|
|
386
|
+
*
|
|
387
|
+
* You need admin rights to use this path.
|
|
388
|
+
* @summary Deletes a Capability
|
|
389
|
+
*/
|
|
390
|
+
export const deleteCapability = (
|
|
391
|
+
orgId: string,
|
|
392
|
+
capabilityName: string,
|
|
393
|
+
options?: SecondParameter<typeof customInstance>,
|
|
394
|
+
signal?: AbortSignal,
|
|
395
|
+
) => {
|
|
396
|
+
return customInstance<void>(
|
|
397
|
+
{ url: `/capability/${orgId}/${capabilityName}`, method: "DELETE", signal },
|
|
398
|
+
options,
|
|
399
|
+
);
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
export const getDeleteCapabilityMutationOptions = <
|
|
403
|
+
TError = ErrorType<void | AsError>,
|
|
404
|
+
TContext = unknown,
|
|
405
|
+
>(options?: {
|
|
406
|
+
mutation?: UseMutationOptions<
|
|
407
|
+
Awaited<ReturnType<typeof deleteCapability>>,
|
|
408
|
+
TError,
|
|
409
|
+
{ orgId: string; capabilityName: string },
|
|
410
|
+
TContext
|
|
411
|
+
>;
|
|
412
|
+
request?: SecondParameter<typeof customInstance>;
|
|
413
|
+
}): UseMutationOptions<
|
|
414
|
+
Awaited<ReturnType<typeof deleteCapability>>,
|
|
415
|
+
TError,
|
|
416
|
+
{ orgId: string; capabilityName: string },
|
|
417
|
+
TContext
|
|
418
|
+
> => {
|
|
419
|
+
const mutationKey = ["deleteCapability"];
|
|
420
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
421
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
422
|
+
? options
|
|
423
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
424
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
425
|
+
|
|
426
|
+
const mutationFn: MutationFunction<
|
|
427
|
+
Awaited<ReturnType<typeof deleteCapability>>,
|
|
428
|
+
{ orgId: string; capabilityName: string }
|
|
429
|
+
> = (props) => {
|
|
430
|
+
const { orgId, capabilityName } = props ?? {};
|
|
431
|
+
|
|
432
|
+
return deleteCapability(orgId, capabilityName, requestOptions);
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
return { mutationFn, ...mutationOptions };
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
export type DeleteCapabilityMutationResult = NonNullable<
|
|
439
|
+
Awaited<ReturnType<typeof deleteCapability>>
|
|
440
|
+
>;
|
|
441
|
+
|
|
442
|
+
export type DeleteCapabilityMutationError = ErrorType<void | AsError>;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @summary Deletes a Capability
|
|
446
|
+
*/
|
|
447
|
+
export const useDeleteCapability = <TError = ErrorType<void | AsError>, TContext = unknown>(
|
|
448
|
+
options?: {
|
|
449
|
+
mutation?: UseMutationOptions<
|
|
450
|
+
Awaited<ReturnType<typeof deleteCapability>>,
|
|
451
|
+
TError,
|
|
452
|
+
{ orgId: string; capabilityName: string },
|
|
453
|
+
TContext
|
|
454
|
+
>;
|
|
455
|
+
request?: SecondParameter<typeof customInstance>;
|
|
456
|
+
},
|
|
457
|
+
queryClient?: QueryClient,
|
|
458
|
+
): UseMutationResult<
|
|
459
|
+
Awaited<ReturnType<typeof deleteCapability>>,
|
|
460
|
+
TError,
|
|
461
|
+
{ orgId: string; capabilityName: string },
|
|
462
|
+
TContext
|
|
463
|
+
> => {
|
|
464
|
+
return useMutation(getDeleteCapabilityMutationOptions(options), queryClient);
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* Enables an Organisation's Capability. An enabled Capability is available to Merchants. It is not an error to enable a Capability that is already enabled.
|
|
468
|
+
*
|
|
469
|
+
* You need admin rights to use this path.
|
|
470
|
+
* @summary Enables a Capability
|
|
471
|
+
*/
|
|
472
|
+
export const enableCapability = (
|
|
473
|
+
orgId: string,
|
|
474
|
+
capabilityName: string,
|
|
475
|
+
options?: SecondParameter<typeof customInstance>,
|
|
476
|
+
signal?: AbortSignal,
|
|
477
|
+
) => {
|
|
478
|
+
return customInstance<void>(
|
|
479
|
+
{ url: `/capability/${orgId}/${capabilityName}/enable`, method: "PUT", signal },
|
|
480
|
+
options,
|
|
481
|
+
);
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
export const getEnableCapabilityMutationOptions = <
|
|
485
|
+
TError = ErrorType<void | AsError>,
|
|
486
|
+
TContext = unknown,
|
|
487
|
+
>(options?: {
|
|
488
|
+
mutation?: UseMutationOptions<
|
|
489
|
+
Awaited<ReturnType<typeof enableCapability>>,
|
|
490
|
+
TError,
|
|
491
|
+
{ orgId: string; capabilityName: string },
|
|
492
|
+
TContext
|
|
493
|
+
>;
|
|
494
|
+
request?: SecondParameter<typeof customInstance>;
|
|
495
|
+
}): UseMutationOptions<
|
|
496
|
+
Awaited<ReturnType<typeof enableCapability>>,
|
|
497
|
+
TError,
|
|
498
|
+
{ orgId: string; capabilityName: string },
|
|
499
|
+
TContext
|
|
500
|
+
> => {
|
|
501
|
+
const mutationKey = ["enableCapability"];
|
|
502
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
503
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
504
|
+
? options
|
|
505
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
506
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
507
|
+
|
|
508
|
+
const mutationFn: MutationFunction<
|
|
509
|
+
Awaited<ReturnType<typeof enableCapability>>,
|
|
510
|
+
{ orgId: string; capabilityName: string }
|
|
511
|
+
> = (props) => {
|
|
512
|
+
const { orgId, capabilityName } = props ?? {};
|
|
513
|
+
|
|
514
|
+
return enableCapability(orgId, capabilityName, requestOptions);
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
return { mutationFn, ...mutationOptions };
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
export type EnableCapabilityMutationResult = NonNullable<
|
|
521
|
+
Awaited<ReturnType<typeof enableCapability>>
|
|
522
|
+
>;
|
|
523
|
+
|
|
524
|
+
export type EnableCapabilityMutationError = ErrorType<void | AsError>;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* @summary Enables a Capability
|
|
528
|
+
*/
|
|
529
|
+
export const useEnableCapability = <TError = ErrorType<void | AsError>, TContext = unknown>(
|
|
530
|
+
options?: {
|
|
531
|
+
mutation?: UseMutationOptions<
|
|
532
|
+
Awaited<ReturnType<typeof enableCapability>>,
|
|
533
|
+
TError,
|
|
534
|
+
{ orgId: string; capabilityName: string },
|
|
535
|
+
TContext
|
|
536
|
+
>;
|
|
537
|
+
request?: SecondParameter<typeof customInstance>;
|
|
538
|
+
},
|
|
539
|
+
queryClient?: QueryClient,
|
|
540
|
+
): UseMutationResult<
|
|
541
|
+
Awaited<ReturnType<typeof enableCapability>>,
|
|
542
|
+
TError,
|
|
543
|
+
{ orgId: string; capabilityName: string },
|
|
544
|
+
TContext
|
|
545
|
+
> => {
|
|
546
|
+
return useMutation(getEnableCapabilityMutationOptions(options), queryClient);
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Disables an Organisation's Capability. A disabled Capability remains loaded but has no effect. It is not an error to disable a Capability that is already disabled.
|
|
550
|
+
*
|
|
551
|
+
* You need admin rights to use this path.
|
|
552
|
+
* @summary Disables a Capability
|
|
553
|
+
*/
|
|
554
|
+
export const disableCapability = (
|
|
555
|
+
orgId: string,
|
|
556
|
+
capabilityName: string,
|
|
557
|
+
options?: SecondParameter<typeof customInstance>,
|
|
558
|
+
signal?: AbortSignal,
|
|
559
|
+
) => {
|
|
560
|
+
return customInstance<void>(
|
|
561
|
+
{ url: `/capability/${orgId}/${capabilityName}/disable`, method: "PUT", signal },
|
|
562
|
+
options,
|
|
563
|
+
);
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
export const getDisableCapabilityMutationOptions = <
|
|
567
|
+
TError = ErrorType<void | AsError>,
|
|
568
|
+
TContext = unknown,
|
|
569
|
+
>(options?: {
|
|
570
|
+
mutation?: UseMutationOptions<
|
|
571
|
+
Awaited<ReturnType<typeof disableCapability>>,
|
|
572
|
+
TError,
|
|
573
|
+
{ orgId: string; capabilityName: string },
|
|
574
|
+
TContext
|
|
575
|
+
>;
|
|
576
|
+
request?: SecondParameter<typeof customInstance>;
|
|
577
|
+
}): UseMutationOptions<
|
|
578
|
+
Awaited<ReturnType<typeof disableCapability>>,
|
|
579
|
+
TError,
|
|
580
|
+
{ orgId: string; capabilityName: string },
|
|
581
|
+
TContext
|
|
582
|
+
> => {
|
|
583
|
+
const mutationKey = ["disableCapability"];
|
|
584
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
585
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
586
|
+
? options
|
|
587
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
588
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
589
|
+
|
|
590
|
+
const mutationFn: MutationFunction<
|
|
591
|
+
Awaited<ReturnType<typeof disableCapability>>,
|
|
592
|
+
{ orgId: string; capabilityName: string }
|
|
593
|
+
> = (props) => {
|
|
594
|
+
const { orgId, capabilityName } = props ?? {};
|
|
595
|
+
|
|
596
|
+
return disableCapability(orgId, capabilityName, requestOptions);
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
return { mutationFn, ...mutationOptions };
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
export type DisableCapabilityMutationResult = NonNullable<
|
|
603
|
+
Awaited<ReturnType<typeof disableCapability>>
|
|
604
|
+
>;
|
|
605
|
+
|
|
606
|
+
export type DisableCapabilityMutationError = ErrorType<void | AsError>;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @summary Disables a Capability
|
|
610
|
+
*/
|
|
611
|
+
export const useDisableCapability = <TError = ErrorType<void | AsError>, TContext = unknown>(
|
|
612
|
+
options?: {
|
|
613
|
+
mutation?: UseMutationOptions<
|
|
614
|
+
Awaited<ReturnType<typeof disableCapability>>,
|
|
615
|
+
TError,
|
|
616
|
+
{ orgId: string; capabilityName: string },
|
|
617
|
+
TContext
|
|
618
|
+
>;
|
|
619
|
+
request?: SecondParameter<typeof customInstance>;
|
|
620
|
+
},
|
|
621
|
+
queryClient?: QueryClient,
|
|
622
|
+
): UseMutationResult<
|
|
623
|
+
Awaited<ReturnType<typeof disableCapability>>,
|
|
624
|
+
TError,
|
|
625
|
+
{ orgId: string; capabilityName: string },
|
|
626
|
+
TContext
|
|
627
|
+
> => {
|
|
628
|
+
return useMutation(getDisableCapabilityMutationOptions(options), queryClient);
|
|
629
|
+
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
8
|
*
|
|
9
|
-
* OpenAPI spec version: 4.
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
8
|
*
|
|
9
|
-
* OpenAPI spec version: 4.
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
8
|
*
|
|
9
|
-
* OpenAPI spec version: 4.
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
10
|
*/
|
|
11
11
|
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
8
|
*
|
|
9
|
-
* OpenAPI spec version: 4.
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
10
|
*/
|
|
11
11
|
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
8
|
*
|
|
9
|
-
* OpenAPI spec version: 4.
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
8
|
*
|
|
9
|
-
* OpenAPI spec version: 4.
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
8
|
*
|
|
9
|
-
* OpenAPI spec version: 4.
|
|
9
|
+
* OpenAPI spec version: 4.9
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|