@squonk/account-server-client 4.12.1 → 4.14.0
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/capabilityDetailMerchantKind.cjs.map +1 -1
- package/dist/api/api-schemas/capabilityDetailMerchantKind.d.cts +1 -1
- package/dist/api/api-schemas/capabilityDetailMerchantKind.d.ts +1 -1
- package/dist/api/api-schemas/capabilityDetailMerchantKind.js.map +1 -1
- package/dist/api/api-schemas/capabilityDetailSpec.d.cts +1 -1
- package/dist/api/api-schemas/capabilityDetailSpec.d.ts +1 -1
- package/dist/api/api-schemas/capabilityPostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/capabilityPostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/capabilityPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/capabilityPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/capabilityUpdateBodyBody.d.cts +17 -0
- package/dist/api/api-schemas/capabilityUpdateBodyBody.d.cts.map +1 -0
- package/dist/api/api-schemas/capabilityUpdateBodyBody.d.ts +17 -0
- package/dist/api/api-schemas/capabilityUpdateBodyBody.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/defaultCapabilityDetailMerchantKind.cjs.map +1 -1
- package/dist/api/api-schemas/defaultCapabilityDetailMerchantKind.d.cts +1 -1
- package/dist/api/api-schemas/defaultCapabilityDetailMerchantKind.d.ts +1 -1
- package/dist/api/api-schemas/defaultCapabilityDetailMerchantKind.js.map +1 -1
- package/dist/api/api-schemas/defaultCapabilityDetailSpec.d.cts +1 -1
- package/dist/api/api-schemas/defaultCapabilityDetailSpec.d.ts +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/incidentKindDetail.d.cts +20 -0
- package/dist/api/api-schemas/incidentKindDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/incidentKindDetail.d.ts +20 -0
- package/dist/api/api-schemas/incidentKindDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/incidentKindsGetResponse.d.cts +10 -0
- package/dist/api/api-schemas/incidentKindsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/incidentKindsGetResponse.d.ts +10 -0
- package/dist/api/api-schemas/incidentKindsGetResponse.d.ts.map +1 -0
- 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/notificationPreferenceDetail.d.cts +24 -0
- package/dist/api/api-schemas/notificationPreferenceDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/notificationPreferenceDetail.d.ts +24 -0
- package/dist/api/api-schemas/notificationPreferenceDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/notificationPreferencesGetResponse.d.cts +10 -0
- package/dist/api/api-schemas/notificationPreferencesGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/notificationPreferencesGetResponse.d.ts +10 -0
- package/dist/api/api-schemas/notificationPreferencesGetResponse.d.ts.map +1 -0
- 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/qAssetScopeParameter.cjs.map +1 -1
- package/dist/api/api-schemas/qAssetScopeParameter.d.cts +1 -1
- package/dist/api/api-schemas/qAssetScopeParameter.d.ts +1 -1
- package/dist/api/api-schemas/qAssetScopeParameter.js.map +1 -1
- package/dist/api/api-schemas/qCapabilityParameter.d.cts +1 -1
- package/dist/api/api-schemas/qCapabilityParameter.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/qForceParameter.d.cts +1 -1
- package/dist/api/api-schemas/qForceParameter.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/relayDetail.d.cts +20 -0
- package/dist/api/api-schemas/relayDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/relayDetail.d.ts +20 -0
- package/dist/api/api-schemas/relayDetail.d.ts.map +1 -0
- package/dist/api/api-schemas/relaysGetResponse.d.cts +10 -0
- package/dist/api/api-schemas/relaysGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/relaysGetResponse.d.ts +10 -0
- package/dist/api/api-schemas/relaysGetResponse.d.ts.map +1 -0
- 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 +48 -1
- package/dist/api/capabilities/capabilities.cjs.map +1 -1
- package/dist/api/capabilities/capabilities.d.cts +39 -1
- package/dist/api/capabilities/capabilities.d.cts.map +1 -1
- package/dist/api/capabilities/capabilities.d.ts +39 -1
- package/dist/api/capabilities/capabilities.d.ts.map +1 -1
- package/dist/api/capabilities/capabilities.fetch.cjs +50 -1
- package/dist/api/capabilities/capabilities.fetch.cjs.map +1 -1
- package/dist/api/capabilities/capabilities.fetch.d.cts +75 -1
- package/dist/api/capabilities/capabilities.fetch.d.cts.map +1 -1
- package/dist/api/capabilities/capabilities.fetch.d.ts +75 -1
- package/dist/api/capabilities/capabilities.fetch.d.ts.map +1 -1
- package/dist/api/capabilities/capabilities.fetch.js +47 -2
- package/dist/api/capabilities/capabilities.fetch.js.map +1 -1
- package/dist/api/capabilities/capabilities.js +46 -2
- package/dist/api/capabilities/capabilities.js.map +1 -1
- 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 +273 -1
- package/dist/api/notifications/notifications.cjs.map +1 -1
- package/dist/api/notifications/notifications.d.cts +255 -2
- package/dist/api/notifications/notifications.d.cts.map +1 -1
- package/dist/api/notifications/notifications.d.ts +255 -2
- package/dist/api/notifications/notifications.d.ts.map +1 -1
- package/dist/api/notifications/notifications.fetch.cjs +306 -1
- package/dist/api/notifications/notifications.fetch.cjs.map +1 -1
- package/dist/api/notifications/notifications.fetch.d.cts +351 -2
- package/dist/api/notifications/notifications.fetch.d.cts.map +1 -1
- package/dist/api/notifications/notifications.fetch.d.ts +351 -2
- package/dist/api/notifications/notifications.fetch.d.ts.map +1 -1
- package/dist/api/notifications/notifications.fetch.js +276 -3
- package/dist/api/notifications/notifications.fetch.js.map +1 -1
- package/dist/api/notifications/notifications.js +248 -3
- package/dist/api/notifications/notifications.js.map +1 -1
- package/dist/api/organisation/organisation.cjs +1 -1
- package/dist/api/organisation/organisation.cjs.map +1 -1
- package/dist/api/organisation/organisation.fetch.cjs +1 -1
- package/dist/api/organisation/organisation.fetch.cjs.map +1 -1
- package/dist/api/organisation/organisation.fetch.js +1 -1
- package/dist/api/organisation/organisation.fetch.js.map +1 -1
- package/dist/api/organisation/organisation.js +1 -1
- package/dist/api/organisation/organisation.js.map +1 -1
- package/dist/api/product/product.cjs +1 -1
- package/dist/api/product/product.cjs.map +1 -1
- package/dist/api/product/product.fetch.cjs +1 -1
- package/dist/api/product/product.fetch.cjs.map +1 -1
- package/dist/api/product/product.fetch.js +1 -1
- package/dist/api/product/product.fetch.js.map +1 -1
- package/dist/api/product/product.js +1 -1
- 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.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -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/allCapabilitiesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/allCapabilitiesGetResponse.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 +1 -1
- package/src/api/api-schemas/capabilitiesGetResponse.ts +1 -1
- package/src/api/api-schemas/capabilityDetail.fetch.ts +1 -1
- package/src/api/api-schemas/capabilityDetail.ts +1 -1
- package/src/api/api-schemas/capabilityDetailMerchantKind.fetch.ts +1 -1
- package/src/api/api-schemas/capabilityDetailMerchantKind.ts +1 -1
- package/src/api/api-schemas/capabilityDetailSpec.fetch.ts +1 -1
- package/src/api/api-schemas/capabilityDetailSpec.ts +1 -1
- package/src/api/api-schemas/capabilityPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/capabilityPostBodyBody.ts +1 -1
- package/src/api/api-schemas/capabilityPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/capabilityPostResponse.ts +1 -1
- package/src/api/api-schemas/capabilityUpdateBodyBody.fetch.ts +15 -0
- package/src/api/api-schemas/capabilityUpdateBodyBody.ts +15 -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/defaultCapabilitiesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/defaultCapabilitiesGetResponse.ts +1 -1
- package/src/api/api-schemas/defaultCapabilityDetail.fetch.ts +1 -1
- package/src/api/api-schemas/defaultCapabilityDetail.ts +1 -1
- package/src/api/api-schemas/defaultCapabilityDetailMerchantKind.fetch.ts +1 -1
- package/src/api/api-schemas/defaultCapabilityDetailMerchantKind.ts +1 -1
- package/src/api/api-schemas/defaultCapabilityDetailSpec.fetch.ts +1 -1
- package/src/api/api-schemas/defaultCapabilityDetailSpec.ts +1 -1
- package/src/api/api-schemas/deleteCapabilityParams.fetch.ts +1 -1
- package/src/api/api-schemas/deleteCapabilityParams.ts +1 -1
- package/src/api/api-schemas/deleteDefaultCapabilityParams.fetch.ts +1 -1
- package/src/api/api-schemas/deleteDefaultCapabilityParams.ts +1 -1
- package/src/api/api-schemas/deleteOrganisationParams.fetch.ts +1 -1
- package/src/api/api-schemas/deleteOrganisationParams.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/getAllCapabilitiesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getAllCapabilitiesParams.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/incidentKindDetail.fetch.ts +17 -0
- package/src/api/api-schemas/incidentKindDetail.ts +17 -0
- package/src/api/api-schemas/incidentKindsGetResponse.fetch.ts +16 -0
- package/src/api/api-schemas/incidentKindsGetResponse.ts +16 -0
- 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 +8 -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/notificationPreferenceDetail.fetch.ts +21 -0
- package/src/api/api-schemas/notificationPreferenceDetail.ts +21 -0
- package/src/api/api-schemas/notificationPreferencesGetResponse.fetch.ts +16 -0
- package/src/api/api-schemas/notificationPreferencesGetResponse.ts +16 -0
- 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/organisationCapabilities.fetch.ts +1 -1
- package/src/api/api-schemas/organisationCapabilities.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/qAssetScopeParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qAssetScopeParameter.ts +1 -1
- package/src/api/api-schemas/qCapabilityParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qCapabilityParameter.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/qForceParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qForceParameter.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/relayDetail.fetch.ts +17 -0
- package/src/api/api-schemas/relayDetail.ts +17 -0
- package/src/api/api-schemas/relaysGetResponse.fetch.ts +16 -0
- package/src/api/api-schemas/relaysGetResponse.ts +16 -0
- 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 +120 -1
- package/src/api/capabilities/capabilities.ts +94 -1
- 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 +911 -2
- package/src/api/notifications/notifications.ts +820 -2
- package/src/api/organisation/organisation.fetch.ts +1 -1
- package/src/api/organisation/organisation.ts +1 -1
- package/src/api/product/product.fetch.ts +1 -1
- package/src/api/product/product.ts +1 -1
- 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
|
@@ -6,18 +6,21 @@
|
|
|
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.14
|
|
10
10
|
*/
|
|
11
|
-
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
11
|
+
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
13
13
|
DataTag,
|
|
14
14
|
DefinedInitialDataOptions,
|
|
15
15
|
DefinedUseQueryResult,
|
|
16
16
|
InvalidateOptions,
|
|
17
|
+
MutationFunction,
|
|
17
18
|
QueryClient,
|
|
18
19
|
QueryFunction,
|
|
19
20
|
QueryKey,
|
|
20
21
|
UndefinedInitialDataOptions,
|
|
22
|
+
UseMutationOptions,
|
|
23
|
+
UseMutationResult,
|
|
21
24
|
UseQueryOptions,
|
|
22
25
|
UseQueryResult,
|
|
23
26
|
UseSuspenseQueryOptions,
|
|
@@ -28,8 +31,11 @@ import type {
|
|
|
28
31
|
AsError,
|
|
29
32
|
GetIncidentsParams,
|
|
30
33
|
GetNotificationsParams,
|
|
34
|
+
IncidentKindsGetResponse,
|
|
31
35
|
IncidentsGetResponse,
|
|
36
|
+
NotificationPreferencesGetResponse,
|
|
32
37
|
NotificationsGetResponse,
|
|
38
|
+
RelaysGetResponse,
|
|
33
39
|
} from "../api-schemas";
|
|
34
40
|
|
|
35
41
|
import { customFetch } from "../../custom-fetch";
|
|
@@ -575,3 +581,906 @@ export function useGetIncidentsSuspense<
|
|
|
575
581
|
|
|
576
582
|
return withQueryKey(query, queryOptions.queryKey);
|
|
577
583
|
}
|
|
584
|
+
|
|
585
|
+
export type getIncidentKindsResponse200 = { data: IncidentKindsGetResponse; status: 200 };
|
|
586
|
+
|
|
587
|
+
export type getIncidentKindsResponse401 = { data: void; status: 401 };
|
|
588
|
+
|
|
589
|
+
export type getIncidentKindsResponseSuccess = getIncidentKindsResponse200 & { headers: Headers };
|
|
590
|
+
export type getIncidentKindsResponseError = getIncidentKindsResponse401 & { headers: Headers };
|
|
591
|
+
|
|
592
|
+
export type getIncidentKindsResponse =
|
|
593
|
+
| getIncidentKindsResponseSuccess
|
|
594
|
+
| getIncidentKindsResponseError;
|
|
595
|
+
|
|
596
|
+
export const getGetIncidentKindsUrl = () => {
|
|
597
|
+
return `/incident-kind`;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Gets every kind of Incident the Account Server can detect, and whether it is Critical. Incidents of a Critical kind reach you whatever your Notification Preference.
|
|
602
|
+
* @summary Gets the Incident Kinds
|
|
603
|
+
*/
|
|
604
|
+
export const getIncidentKinds = async (
|
|
605
|
+
options?: RequestInit,
|
|
606
|
+
): Promise<getIncidentKindsResponse> => {
|
|
607
|
+
return customFetch<getIncidentKindsResponse>(getGetIncidentKindsUrl(), {
|
|
608
|
+
...options,
|
|
609
|
+
method: "GET",
|
|
610
|
+
});
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
export const getGetIncidentKindsQueryKey = () => {
|
|
614
|
+
return ["account-server", "incident-kind"] as const;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
export const getGetIncidentKindsQueryOptions = <
|
|
618
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
619
|
+
TError = ErrorType<void>,
|
|
620
|
+
>(options?: {
|
|
621
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;
|
|
622
|
+
request?: SecondParameter<typeof customFetch>;
|
|
623
|
+
}) => {
|
|
624
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
625
|
+
|
|
626
|
+
const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();
|
|
627
|
+
|
|
628
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidentKinds>>> = ({ signal }) =>
|
|
629
|
+
getIncidentKinds({ signal, ...requestOptions });
|
|
630
|
+
|
|
631
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
632
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
633
|
+
TError,
|
|
634
|
+
TData
|
|
635
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
export type GetIncidentKindsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidentKinds>>>;
|
|
639
|
+
export type GetIncidentKindsQueryError = ErrorType<void>;
|
|
640
|
+
|
|
641
|
+
export function useGetIncidentKinds<
|
|
642
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
643
|
+
TError = ErrorType<void>,
|
|
644
|
+
>(
|
|
645
|
+
options: {
|
|
646
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>> &
|
|
647
|
+
Pick<
|
|
648
|
+
DefinedInitialDataOptions<
|
|
649
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
650
|
+
TError,
|
|
651
|
+
Awaited<ReturnType<typeof getIncidentKinds>>
|
|
652
|
+
>,
|
|
653
|
+
"initialData"
|
|
654
|
+
>;
|
|
655
|
+
request?: SecondParameter<typeof customFetch>;
|
|
656
|
+
},
|
|
657
|
+
queryClient?: QueryClient,
|
|
658
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
659
|
+
export function useGetIncidentKinds<
|
|
660
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
661
|
+
TError = ErrorType<void>,
|
|
662
|
+
>(
|
|
663
|
+
options?: {
|
|
664
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>> &
|
|
665
|
+
Pick<
|
|
666
|
+
UndefinedInitialDataOptions<
|
|
667
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
668
|
+
TError,
|
|
669
|
+
Awaited<ReturnType<typeof getIncidentKinds>>
|
|
670
|
+
>,
|
|
671
|
+
"initialData"
|
|
672
|
+
>;
|
|
673
|
+
request?: SecondParameter<typeof customFetch>;
|
|
674
|
+
},
|
|
675
|
+
queryClient?: QueryClient,
|
|
676
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
677
|
+
export function useGetIncidentKinds<
|
|
678
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
679
|
+
TError = ErrorType<void>,
|
|
680
|
+
>(
|
|
681
|
+
options?: {
|
|
682
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;
|
|
683
|
+
request?: SecondParameter<typeof customFetch>;
|
|
684
|
+
},
|
|
685
|
+
queryClient?: QueryClient,
|
|
686
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
687
|
+
/**
|
|
688
|
+
* @summary Gets the Incident Kinds
|
|
689
|
+
*/
|
|
690
|
+
|
|
691
|
+
export function useGetIncidentKinds<
|
|
692
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
693
|
+
TError = ErrorType<void>,
|
|
694
|
+
>(
|
|
695
|
+
options?: {
|
|
696
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;
|
|
697
|
+
request?: SecondParameter<typeof customFetch>;
|
|
698
|
+
},
|
|
699
|
+
queryClient?: QueryClient,
|
|
700
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
701
|
+
const queryOptions = getGetIncidentKindsQueryOptions(options);
|
|
702
|
+
|
|
703
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
704
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* @summary Gets the Incident Kinds
|
|
712
|
+
*/
|
|
713
|
+
export const invalidateGetIncidentKinds = async (
|
|
714
|
+
queryClient: QueryClient,
|
|
715
|
+
options?: InvalidateOptions,
|
|
716
|
+
): Promise<QueryClient> => {
|
|
717
|
+
await queryClient.invalidateQueries({ queryKey: getGetIncidentKindsQueryKey() }, options);
|
|
718
|
+
|
|
719
|
+
return queryClient;
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
export const getGetIncidentKindsSuspenseQueryOptions = <
|
|
723
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
724
|
+
TError = ErrorType<void>,
|
|
725
|
+
>(options?: {
|
|
726
|
+
query?: Partial<
|
|
727
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
728
|
+
>;
|
|
729
|
+
request?: SecondParameter<typeof customFetch>;
|
|
730
|
+
}) => {
|
|
731
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
732
|
+
|
|
733
|
+
const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();
|
|
734
|
+
|
|
735
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidentKinds>>> = ({ signal }) =>
|
|
736
|
+
getIncidentKinds({ signal, ...requestOptions });
|
|
737
|
+
|
|
738
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
739
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
740
|
+
TError,
|
|
741
|
+
TData
|
|
742
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
export type GetIncidentKindsSuspenseQueryResult = NonNullable<
|
|
746
|
+
Awaited<ReturnType<typeof getIncidentKinds>>
|
|
747
|
+
>;
|
|
748
|
+
export type GetIncidentKindsSuspenseQueryError = ErrorType<void>;
|
|
749
|
+
|
|
750
|
+
export function useGetIncidentKindsSuspense<
|
|
751
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
752
|
+
TError = ErrorType<void>,
|
|
753
|
+
>(
|
|
754
|
+
options: {
|
|
755
|
+
query: Partial<
|
|
756
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
757
|
+
>;
|
|
758
|
+
request?: SecondParameter<typeof customFetch>;
|
|
759
|
+
},
|
|
760
|
+
queryClient?: QueryClient,
|
|
761
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
762
|
+
export function useGetIncidentKindsSuspense<
|
|
763
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
764
|
+
TError = ErrorType<void>,
|
|
765
|
+
>(
|
|
766
|
+
options?: {
|
|
767
|
+
query?: Partial<
|
|
768
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
769
|
+
>;
|
|
770
|
+
request?: SecondParameter<typeof customFetch>;
|
|
771
|
+
},
|
|
772
|
+
queryClient?: QueryClient,
|
|
773
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
774
|
+
export function useGetIncidentKindsSuspense<
|
|
775
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
776
|
+
TError = ErrorType<void>,
|
|
777
|
+
>(
|
|
778
|
+
options?: {
|
|
779
|
+
query?: Partial<
|
|
780
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
781
|
+
>;
|
|
782
|
+
request?: SecondParameter<typeof customFetch>;
|
|
783
|
+
},
|
|
784
|
+
queryClient?: QueryClient,
|
|
785
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
786
|
+
/**
|
|
787
|
+
* @summary Gets the Incident Kinds
|
|
788
|
+
*/
|
|
789
|
+
|
|
790
|
+
export function useGetIncidentKindsSuspense<
|
|
791
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
792
|
+
TError = ErrorType<void>,
|
|
793
|
+
>(
|
|
794
|
+
options?: {
|
|
795
|
+
query?: Partial<
|
|
796
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
797
|
+
>;
|
|
798
|
+
request?: SecondParameter<typeof customFetch>;
|
|
799
|
+
},
|
|
800
|
+
queryClient?: QueryClient,
|
|
801
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
802
|
+
const queryOptions = getGetIncidentKindsSuspenseQueryOptions(options);
|
|
803
|
+
|
|
804
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
805
|
+
TData,
|
|
806
|
+
TError
|
|
807
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
808
|
+
|
|
809
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export type getRelaysResponse200 = { data: RelaysGetResponse; status: 200 };
|
|
813
|
+
|
|
814
|
+
export type getRelaysResponse401 = { data: void; status: 401 };
|
|
815
|
+
|
|
816
|
+
export type getRelaysResponseSuccess = getRelaysResponse200 & { headers: Headers };
|
|
817
|
+
export type getRelaysResponseError = getRelaysResponse401 & { headers: Headers };
|
|
818
|
+
|
|
819
|
+
export type getRelaysResponse = getRelaysResponseSuccess | getRelaysResponseError;
|
|
820
|
+
|
|
821
|
+
export const getGetRelaysUrl = () => {
|
|
822
|
+
return `/relay`;
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Gets every Relay (mode of transport, i.e. 'email') that can carry a Notification to you, and whether an administrator has enabled it. A disabled Relay carries nothing.
|
|
827
|
+
* @summary Gets the Relays
|
|
828
|
+
*/
|
|
829
|
+
export const getRelays = async (options?: RequestInit): Promise<getRelaysResponse> => {
|
|
830
|
+
return customFetch<getRelaysResponse>(getGetRelaysUrl(), { ...options, method: "GET" });
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
export const getGetRelaysQueryKey = () => {
|
|
834
|
+
return ["account-server", "relay"] as const;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
export const getGetRelaysQueryOptions = <
|
|
838
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
839
|
+
TError = ErrorType<void>,
|
|
840
|
+
>(options?: {
|
|
841
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
842
|
+
request?: SecondParameter<typeof customFetch>;
|
|
843
|
+
}) => {
|
|
844
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
845
|
+
|
|
846
|
+
const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();
|
|
847
|
+
|
|
848
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getRelays>>> = ({ signal }) =>
|
|
849
|
+
getRelays({ signal, ...requestOptions });
|
|
850
|
+
|
|
851
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
852
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
853
|
+
TError,
|
|
854
|
+
TData
|
|
855
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
export type GetRelaysQueryResult = NonNullable<Awaited<ReturnType<typeof getRelays>>>;
|
|
859
|
+
export type GetRelaysQueryError = ErrorType<void>;
|
|
860
|
+
|
|
861
|
+
export function useGetRelays<
|
|
862
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
863
|
+
TError = ErrorType<void>,
|
|
864
|
+
>(
|
|
865
|
+
options: {
|
|
866
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>> &
|
|
867
|
+
Pick<
|
|
868
|
+
DefinedInitialDataOptions<
|
|
869
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
870
|
+
TError,
|
|
871
|
+
Awaited<ReturnType<typeof getRelays>>
|
|
872
|
+
>,
|
|
873
|
+
"initialData"
|
|
874
|
+
>;
|
|
875
|
+
request?: SecondParameter<typeof customFetch>;
|
|
876
|
+
},
|
|
877
|
+
queryClient?: QueryClient,
|
|
878
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
879
|
+
export function useGetRelays<
|
|
880
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
881
|
+
TError = ErrorType<void>,
|
|
882
|
+
>(
|
|
883
|
+
options?: {
|
|
884
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>> &
|
|
885
|
+
Pick<
|
|
886
|
+
UndefinedInitialDataOptions<
|
|
887
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
888
|
+
TError,
|
|
889
|
+
Awaited<ReturnType<typeof getRelays>>
|
|
890
|
+
>,
|
|
891
|
+
"initialData"
|
|
892
|
+
>;
|
|
893
|
+
request?: SecondParameter<typeof customFetch>;
|
|
894
|
+
},
|
|
895
|
+
queryClient?: QueryClient,
|
|
896
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
897
|
+
export function useGetRelays<
|
|
898
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
899
|
+
TError = ErrorType<void>,
|
|
900
|
+
>(
|
|
901
|
+
options?: {
|
|
902
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
903
|
+
request?: SecondParameter<typeof customFetch>;
|
|
904
|
+
},
|
|
905
|
+
queryClient?: QueryClient,
|
|
906
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
907
|
+
/**
|
|
908
|
+
* @summary Gets the Relays
|
|
909
|
+
*/
|
|
910
|
+
|
|
911
|
+
export function useGetRelays<
|
|
912
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
913
|
+
TError = ErrorType<void>,
|
|
914
|
+
>(
|
|
915
|
+
options?: {
|
|
916
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
917
|
+
request?: SecondParameter<typeof customFetch>;
|
|
918
|
+
},
|
|
919
|
+
queryClient?: QueryClient,
|
|
920
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
921
|
+
const queryOptions = getGetRelaysQueryOptions(options);
|
|
922
|
+
|
|
923
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
924
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* @summary Gets the Relays
|
|
932
|
+
*/
|
|
933
|
+
export const invalidateGetRelays = async (
|
|
934
|
+
queryClient: QueryClient,
|
|
935
|
+
options?: InvalidateOptions,
|
|
936
|
+
): Promise<QueryClient> => {
|
|
937
|
+
await queryClient.invalidateQueries({ queryKey: getGetRelaysQueryKey() }, options);
|
|
938
|
+
|
|
939
|
+
return queryClient;
|
|
940
|
+
};
|
|
941
|
+
|
|
942
|
+
export const getGetRelaysSuspenseQueryOptions = <
|
|
943
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
944
|
+
TError = ErrorType<void>,
|
|
945
|
+
>(options?: {
|
|
946
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
947
|
+
request?: SecondParameter<typeof customFetch>;
|
|
948
|
+
}) => {
|
|
949
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
950
|
+
|
|
951
|
+
const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();
|
|
952
|
+
|
|
953
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getRelays>>> = ({ signal }) =>
|
|
954
|
+
getRelays({ signal, ...requestOptions });
|
|
955
|
+
|
|
956
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
957
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
958
|
+
TError,
|
|
959
|
+
TData
|
|
960
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
export type GetRelaysSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getRelays>>>;
|
|
964
|
+
export type GetRelaysSuspenseQueryError = ErrorType<void>;
|
|
965
|
+
|
|
966
|
+
export function useGetRelaysSuspense<
|
|
967
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
968
|
+
TError = ErrorType<void>,
|
|
969
|
+
>(
|
|
970
|
+
options: {
|
|
971
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
972
|
+
request?: SecondParameter<typeof customFetch>;
|
|
973
|
+
},
|
|
974
|
+
queryClient?: QueryClient,
|
|
975
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
976
|
+
export function useGetRelaysSuspense<
|
|
977
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
978
|
+
TError = ErrorType<void>,
|
|
979
|
+
>(
|
|
980
|
+
options?: {
|
|
981
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
982
|
+
request?: SecondParameter<typeof customFetch>;
|
|
983
|
+
},
|
|
984
|
+
queryClient?: QueryClient,
|
|
985
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
986
|
+
export function useGetRelaysSuspense<
|
|
987
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
988
|
+
TError = ErrorType<void>,
|
|
989
|
+
>(
|
|
990
|
+
options?: {
|
|
991
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
992
|
+
request?: SecondParameter<typeof customFetch>;
|
|
993
|
+
},
|
|
994
|
+
queryClient?: QueryClient,
|
|
995
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
996
|
+
/**
|
|
997
|
+
* @summary Gets the Relays
|
|
998
|
+
*/
|
|
999
|
+
|
|
1000
|
+
export function useGetRelaysSuspense<
|
|
1001
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
1002
|
+
TError = ErrorType<void>,
|
|
1003
|
+
>(
|
|
1004
|
+
options?: {
|
|
1005
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
1006
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1007
|
+
},
|
|
1008
|
+
queryClient?: QueryClient,
|
|
1009
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
1010
|
+
const queryOptions = getGetRelaysSuspenseQueryOptions(options);
|
|
1011
|
+
|
|
1012
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
1013
|
+
TData,
|
|
1014
|
+
TError
|
|
1015
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1016
|
+
|
|
1017
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
export type getNotificationPreferencesResponse200 = {
|
|
1021
|
+
data: NotificationPreferencesGetResponse;
|
|
1022
|
+
status: 200;
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
export type getNotificationPreferencesResponse401 = { data: void; status: 401 };
|
|
1026
|
+
|
|
1027
|
+
export type getNotificationPreferencesResponseSuccess = getNotificationPreferencesResponse200 & {
|
|
1028
|
+
headers: Headers;
|
|
1029
|
+
};
|
|
1030
|
+
export type getNotificationPreferencesResponseError = getNotificationPreferencesResponse401 & {
|
|
1031
|
+
headers: Headers;
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
export type getNotificationPreferencesResponse =
|
|
1035
|
+
| getNotificationPreferencesResponseSuccess
|
|
1036
|
+
| getNotificationPreferencesResponseError;
|
|
1037
|
+
|
|
1038
|
+
export const getGetNotificationPreferencesUrl = () => {
|
|
1039
|
+
return `/notification-preference`;
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Gets your own Notification Preference for every Incident Kind over every enabled Relay. Where you have not chosen, `default` is true and the system default applies. A Critical kind is always enabled.
|
|
1044
|
+
* @summary Gets your Notification Preferences
|
|
1045
|
+
*/
|
|
1046
|
+
export const getNotificationPreferences = async (
|
|
1047
|
+
options?: RequestInit,
|
|
1048
|
+
): Promise<getNotificationPreferencesResponse> => {
|
|
1049
|
+
return customFetch<getNotificationPreferencesResponse>(getGetNotificationPreferencesUrl(), {
|
|
1050
|
+
...options,
|
|
1051
|
+
method: "GET",
|
|
1052
|
+
});
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
export const getGetNotificationPreferencesQueryKey = () => {
|
|
1056
|
+
return ["account-server", "notification-preference"] as const;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
export const getGetNotificationPreferencesQueryOptions = <
|
|
1060
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1061
|
+
TError = ErrorType<void>,
|
|
1062
|
+
>(options?: {
|
|
1063
|
+
query?: Partial<
|
|
1064
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1065
|
+
>;
|
|
1066
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1067
|
+
}) => {
|
|
1068
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1069
|
+
|
|
1070
|
+
const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();
|
|
1071
|
+
|
|
1072
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotificationPreferences>>> = ({
|
|
1073
|
+
signal,
|
|
1074
|
+
}) => getNotificationPreferences({ signal, ...requestOptions });
|
|
1075
|
+
|
|
1076
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
1077
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1078
|
+
TError,
|
|
1079
|
+
TData
|
|
1080
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
export type GetNotificationPreferencesQueryResult = NonNullable<
|
|
1084
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
1085
|
+
>;
|
|
1086
|
+
export type GetNotificationPreferencesQueryError = ErrorType<void>;
|
|
1087
|
+
|
|
1088
|
+
export function useGetNotificationPreferences<
|
|
1089
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1090
|
+
TError = ErrorType<void>,
|
|
1091
|
+
>(
|
|
1092
|
+
options: {
|
|
1093
|
+
query: Partial<
|
|
1094
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1095
|
+
> &
|
|
1096
|
+
Pick<
|
|
1097
|
+
DefinedInitialDataOptions<
|
|
1098
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1099
|
+
TError,
|
|
1100
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
1101
|
+
>,
|
|
1102
|
+
"initialData"
|
|
1103
|
+
>;
|
|
1104
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1105
|
+
},
|
|
1106
|
+
queryClient?: QueryClient,
|
|
1107
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1108
|
+
export function useGetNotificationPreferences<
|
|
1109
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1110
|
+
TError = ErrorType<void>,
|
|
1111
|
+
>(
|
|
1112
|
+
options?: {
|
|
1113
|
+
query?: Partial<
|
|
1114
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1115
|
+
> &
|
|
1116
|
+
Pick<
|
|
1117
|
+
UndefinedInitialDataOptions<
|
|
1118
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1119
|
+
TError,
|
|
1120
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
1121
|
+
>,
|
|
1122
|
+
"initialData"
|
|
1123
|
+
>;
|
|
1124
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1125
|
+
},
|
|
1126
|
+
queryClient?: QueryClient,
|
|
1127
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1128
|
+
export function useGetNotificationPreferences<
|
|
1129
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1130
|
+
TError = ErrorType<void>,
|
|
1131
|
+
>(
|
|
1132
|
+
options?: {
|
|
1133
|
+
query?: Partial<
|
|
1134
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1135
|
+
>;
|
|
1136
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1137
|
+
},
|
|
1138
|
+
queryClient?: QueryClient,
|
|
1139
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1140
|
+
/**
|
|
1141
|
+
* @summary Gets your Notification Preferences
|
|
1142
|
+
*/
|
|
1143
|
+
|
|
1144
|
+
export function useGetNotificationPreferences<
|
|
1145
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1146
|
+
TError = ErrorType<void>,
|
|
1147
|
+
>(
|
|
1148
|
+
options?: {
|
|
1149
|
+
query?: Partial<
|
|
1150
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1151
|
+
>;
|
|
1152
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1153
|
+
},
|
|
1154
|
+
queryClient?: QueryClient,
|
|
1155
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
1156
|
+
const queryOptions = getGetNotificationPreferencesQueryOptions(options);
|
|
1157
|
+
|
|
1158
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
1159
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* @summary Gets your Notification Preferences
|
|
1167
|
+
*/
|
|
1168
|
+
export const invalidateGetNotificationPreferences = async (
|
|
1169
|
+
queryClient: QueryClient,
|
|
1170
|
+
options?: InvalidateOptions,
|
|
1171
|
+
): Promise<QueryClient> => {
|
|
1172
|
+
await queryClient.invalidateQueries(
|
|
1173
|
+
{ queryKey: getGetNotificationPreferencesQueryKey() },
|
|
1174
|
+
options,
|
|
1175
|
+
);
|
|
1176
|
+
|
|
1177
|
+
return queryClient;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
export const getGetNotificationPreferencesSuspenseQueryOptions = <
|
|
1181
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1182
|
+
TError = ErrorType<void>,
|
|
1183
|
+
>(options?: {
|
|
1184
|
+
query?: Partial<
|
|
1185
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1186
|
+
>;
|
|
1187
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1188
|
+
}) => {
|
|
1189
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1190
|
+
|
|
1191
|
+
const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();
|
|
1192
|
+
|
|
1193
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotificationPreferences>>> = ({
|
|
1194
|
+
signal,
|
|
1195
|
+
}) => getNotificationPreferences({ signal, ...requestOptions });
|
|
1196
|
+
|
|
1197
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
1198
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1199
|
+
TError,
|
|
1200
|
+
TData
|
|
1201
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
export type GetNotificationPreferencesSuspenseQueryResult = NonNullable<
|
|
1205
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
1206
|
+
>;
|
|
1207
|
+
export type GetNotificationPreferencesSuspenseQueryError = ErrorType<void>;
|
|
1208
|
+
|
|
1209
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1210
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1211
|
+
TError = ErrorType<void>,
|
|
1212
|
+
>(
|
|
1213
|
+
options: {
|
|
1214
|
+
query: Partial<
|
|
1215
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1216
|
+
>;
|
|
1217
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1218
|
+
},
|
|
1219
|
+
queryClient?: QueryClient,
|
|
1220
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1221
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1222
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1223
|
+
TError = ErrorType<void>,
|
|
1224
|
+
>(
|
|
1225
|
+
options?: {
|
|
1226
|
+
query?: Partial<
|
|
1227
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1228
|
+
>;
|
|
1229
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1230
|
+
},
|
|
1231
|
+
queryClient?: QueryClient,
|
|
1232
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1233
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1234
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1235
|
+
TError = ErrorType<void>,
|
|
1236
|
+
>(
|
|
1237
|
+
options?: {
|
|
1238
|
+
query?: Partial<
|
|
1239
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1240
|
+
>;
|
|
1241
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1242
|
+
},
|
|
1243
|
+
queryClient?: QueryClient,
|
|
1244
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1245
|
+
/**
|
|
1246
|
+
* @summary Gets your Notification Preferences
|
|
1247
|
+
*/
|
|
1248
|
+
|
|
1249
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1250
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1251
|
+
TError = ErrorType<void>,
|
|
1252
|
+
>(
|
|
1253
|
+
options?: {
|
|
1254
|
+
query?: Partial<
|
|
1255
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1256
|
+
>;
|
|
1257
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1258
|
+
},
|
|
1259
|
+
queryClient?: QueryClient,
|
|
1260
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
1261
|
+
const queryOptions = getGetNotificationPreferencesSuspenseQueryOptions(options);
|
|
1262
|
+
|
|
1263
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
1264
|
+
TData,
|
|
1265
|
+
TError
|
|
1266
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1267
|
+
|
|
1268
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
export type enableNotificationPreferenceResponse204 = { data: void; status: 204 };
|
|
1272
|
+
|
|
1273
|
+
export type enableNotificationPreferenceResponse401 = { data: void; status: 401 };
|
|
1274
|
+
|
|
1275
|
+
export type enableNotificationPreferenceResponse404 = { data: AsError; status: 404 };
|
|
1276
|
+
|
|
1277
|
+
export type enableNotificationPreferenceResponse422 = { data: AsError; status: 422 };
|
|
1278
|
+
|
|
1279
|
+
export type enableNotificationPreferenceResponseSuccess =
|
|
1280
|
+
enableNotificationPreferenceResponse204 & { headers: Headers };
|
|
1281
|
+
export type enableNotificationPreferenceResponseError = (
|
|
1282
|
+
| enableNotificationPreferenceResponse401
|
|
1283
|
+
| enableNotificationPreferenceResponse404
|
|
1284
|
+
| enableNotificationPreferenceResponse422
|
|
1285
|
+
) & { headers: Headers };
|
|
1286
|
+
|
|
1287
|
+
export type enableNotificationPreferenceResponse =
|
|
1288
|
+
| enableNotificationPreferenceResponseSuccess
|
|
1289
|
+
| enableNotificationPreferenceResponseError;
|
|
1290
|
+
|
|
1291
|
+
export const getEnableNotificationPreferenceUrl = (kind: string, relay: string) => {
|
|
1292
|
+
return `/notification-preference/${kind}/${relay}/enable`;
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Sets your own Notification Preference so that you receive Incidents of this kind over this Relay. It is not an error to set a preference you already have.
|
|
1297
|
+
*
|
|
1298
|
+
* You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.
|
|
1299
|
+
* @summary Enables an Incident Kind over a Relay for you
|
|
1300
|
+
*/
|
|
1301
|
+
export const enableNotificationPreference = async (
|
|
1302
|
+
kind: string,
|
|
1303
|
+
relay: string,
|
|
1304
|
+
options?: RequestInit,
|
|
1305
|
+
): Promise<enableNotificationPreferenceResponse> => {
|
|
1306
|
+
return customFetch<enableNotificationPreferenceResponse>(
|
|
1307
|
+
getEnableNotificationPreferenceUrl(kind, relay),
|
|
1308
|
+
{ ...options, method: "PUT" },
|
|
1309
|
+
);
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
export const getEnableNotificationPreferenceMutationOptions = <
|
|
1313
|
+
TError = ErrorType<void | AsError>,
|
|
1314
|
+
TContext = unknown,
|
|
1315
|
+
>(options?: {
|
|
1316
|
+
mutation?: UseMutationOptions<
|
|
1317
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1318
|
+
TError,
|
|
1319
|
+
{ kind: string; relay: string },
|
|
1320
|
+
TContext
|
|
1321
|
+
>;
|
|
1322
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1323
|
+
}): UseMutationOptions<
|
|
1324
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1325
|
+
TError,
|
|
1326
|
+
{ kind: string; relay: string },
|
|
1327
|
+
TContext
|
|
1328
|
+
> => {
|
|
1329
|
+
const mutationKey = ["enableNotificationPreference"];
|
|
1330
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1331
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1332
|
+
? options
|
|
1333
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1334
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1335
|
+
|
|
1336
|
+
const mutationFn: MutationFunction<
|
|
1337
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1338
|
+
{ kind: string; relay: string }
|
|
1339
|
+
> = (props) => {
|
|
1340
|
+
const { kind, relay } = props ?? {};
|
|
1341
|
+
|
|
1342
|
+
return enableNotificationPreference(kind, relay, requestOptions);
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
return { mutationFn, ...mutationOptions };
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
export type EnableNotificationPreferenceMutationResult = NonNullable<
|
|
1349
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>
|
|
1350
|
+
>;
|
|
1351
|
+
|
|
1352
|
+
export type EnableNotificationPreferenceMutationError = ErrorType<void | AsError>;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* @summary Enables an Incident Kind over a Relay for you
|
|
1356
|
+
*/
|
|
1357
|
+
export const useEnableNotificationPreference = <
|
|
1358
|
+
TError = ErrorType<void | AsError>,
|
|
1359
|
+
TContext = unknown,
|
|
1360
|
+
>(
|
|
1361
|
+
options?: {
|
|
1362
|
+
mutation?: UseMutationOptions<
|
|
1363
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1364
|
+
TError,
|
|
1365
|
+
{ kind: string; relay: string },
|
|
1366
|
+
TContext
|
|
1367
|
+
>;
|
|
1368
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1369
|
+
},
|
|
1370
|
+
queryClient?: QueryClient,
|
|
1371
|
+
): UseMutationResult<
|
|
1372
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1373
|
+
TError,
|
|
1374
|
+
{ kind: string; relay: string },
|
|
1375
|
+
TContext
|
|
1376
|
+
> => {
|
|
1377
|
+
return useMutation(getEnableNotificationPreferenceMutationOptions(options), queryClient);
|
|
1378
|
+
};
|
|
1379
|
+
export type disableNotificationPreferenceResponse204 = { data: void; status: 204 };
|
|
1380
|
+
|
|
1381
|
+
export type disableNotificationPreferenceResponse401 = { data: void; status: 401 };
|
|
1382
|
+
|
|
1383
|
+
export type disableNotificationPreferenceResponse404 = { data: AsError; status: 404 };
|
|
1384
|
+
|
|
1385
|
+
export type disableNotificationPreferenceResponse422 = { data: AsError; status: 422 };
|
|
1386
|
+
|
|
1387
|
+
export type disableNotificationPreferenceResponseSuccess =
|
|
1388
|
+
disableNotificationPreferenceResponse204 & { headers: Headers };
|
|
1389
|
+
export type disableNotificationPreferenceResponseError = (
|
|
1390
|
+
| disableNotificationPreferenceResponse401
|
|
1391
|
+
| disableNotificationPreferenceResponse404
|
|
1392
|
+
| disableNotificationPreferenceResponse422
|
|
1393
|
+
) & { headers: Headers };
|
|
1394
|
+
|
|
1395
|
+
export type disableNotificationPreferenceResponse =
|
|
1396
|
+
| disableNotificationPreferenceResponseSuccess
|
|
1397
|
+
| disableNotificationPreferenceResponseError;
|
|
1398
|
+
|
|
1399
|
+
export const getDisableNotificationPreferenceUrl = (kind: string, relay: string) => {
|
|
1400
|
+
return `/notification-preference/${kind}/${relay}/disable`;
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Sets your own Notification Preference so that you do not receive Incidents of this kind over this Relay. It is not an error to set a preference you already have.
|
|
1405
|
+
*
|
|
1406
|
+
* You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.
|
|
1407
|
+
* @summary Disables an Incident Kind over a Relay for you
|
|
1408
|
+
*/
|
|
1409
|
+
export const disableNotificationPreference = async (
|
|
1410
|
+
kind: string,
|
|
1411
|
+
relay: string,
|
|
1412
|
+
options?: RequestInit,
|
|
1413
|
+
): Promise<disableNotificationPreferenceResponse> => {
|
|
1414
|
+
return customFetch<disableNotificationPreferenceResponse>(
|
|
1415
|
+
getDisableNotificationPreferenceUrl(kind, relay),
|
|
1416
|
+
{ ...options, method: "PUT" },
|
|
1417
|
+
);
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
export const getDisableNotificationPreferenceMutationOptions = <
|
|
1421
|
+
TError = ErrorType<void | AsError>,
|
|
1422
|
+
TContext = unknown,
|
|
1423
|
+
>(options?: {
|
|
1424
|
+
mutation?: UseMutationOptions<
|
|
1425
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1426
|
+
TError,
|
|
1427
|
+
{ kind: string; relay: string },
|
|
1428
|
+
TContext
|
|
1429
|
+
>;
|
|
1430
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1431
|
+
}): UseMutationOptions<
|
|
1432
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1433
|
+
TError,
|
|
1434
|
+
{ kind: string; relay: string },
|
|
1435
|
+
TContext
|
|
1436
|
+
> => {
|
|
1437
|
+
const mutationKey = ["disableNotificationPreference"];
|
|
1438
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1439
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1440
|
+
? options
|
|
1441
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1442
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1443
|
+
|
|
1444
|
+
const mutationFn: MutationFunction<
|
|
1445
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1446
|
+
{ kind: string; relay: string }
|
|
1447
|
+
> = (props) => {
|
|
1448
|
+
const { kind, relay } = props ?? {};
|
|
1449
|
+
|
|
1450
|
+
return disableNotificationPreference(kind, relay, requestOptions);
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
return { mutationFn, ...mutationOptions };
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
export type DisableNotificationPreferenceMutationResult = NonNullable<
|
|
1457
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>
|
|
1458
|
+
>;
|
|
1459
|
+
|
|
1460
|
+
export type DisableNotificationPreferenceMutationError = ErrorType<void | AsError>;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* @summary Disables an Incident Kind over a Relay for you
|
|
1464
|
+
*/
|
|
1465
|
+
export const useDisableNotificationPreference = <
|
|
1466
|
+
TError = ErrorType<void | AsError>,
|
|
1467
|
+
TContext = unknown,
|
|
1468
|
+
>(
|
|
1469
|
+
options?: {
|
|
1470
|
+
mutation?: UseMutationOptions<
|
|
1471
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1472
|
+
TError,
|
|
1473
|
+
{ kind: string; relay: string },
|
|
1474
|
+
TContext
|
|
1475
|
+
>;
|
|
1476
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1477
|
+
},
|
|
1478
|
+
queryClient?: QueryClient,
|
|
1479
|
+
): UseMutationResult<
|
|
1480
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1481
|
+
TError,
|
|
1482
|
+
{ kind: string; relay: string },
|
|
1483
|
+
TContext
|
|
1484
|
+
> => {
|
|
1485
|
+
return useMutation(getDisableNotificationPreferenceMutationOptions(options), queryClient);
|
|
1486
|
+
};
|