@squonk/account-server-client 4.13.0 → 4.16.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 +1 -1
- package/dist/api/api-schemas/capabilityUpdateBodyBody.d.ts +1 -1
- 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/eventStreamDetail.d.cts +28 -0
- package/dist/api/api-schemas/eventStreamDetail.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamDetail.d.ts +28 -0
- package/dist/api/api-schemas/eventStreamDetail.d.ts.map +1 -0
- 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/eventStreamsGetResponse.d.cts +10 -0
- package/dist/api/api-schemas/eventStreamsGetResponse.d.cts.map +1 -0
- package/dist/api/api-schemas/eventStreamsGetResponse.d.ts +10 -0
- package/dist/api/api-schemas/eventStreamsGetResponse.d.ts.map +1 -0
- 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 +1 -1
- package/dist/api/capabilities/capabilities.cjs.map +1 -1
- package/dist/api/capabilities/capabilities.fetch.cjs +1 -1
- package/dist/api/capabilities/capabilities.fetch.cjs.map +1 -1
- package/dist/api/capabilities/capabilities.fetch.js +1 -1
- package/dist/api/capabilities/capabilities.fetch.js.map +1 -1
- package/dist/api/capabilities/capabilities.js +1 -1
- 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 +72 -4
- package/dist/api/event-stream/event-stream.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.d.cts +69 -4
- package/dist/api/event-stream/event-stream.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.d.ts +69 -4
- package/dist/api/event-stream/event-stream.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.cjs +81 -4
- package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.d.cts +89 -4
- package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.d.ts +89 -4
- package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.fetch.js +74 -5
- package/dist/api/event-stream/event-stream.fetch.js.map +1 -1
- package/dist/api/event-stream/event-stream.js +66 -5
- 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 +9 -1
- package/dist/index.d.ts +9 -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 +1 -1
- package/src/api/api-schemas/capabilityUpdateBodyBody.ts +1 -1
- 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/eventStreamDetail.fetch.ts +25 -0
- package/src/api/api-schemas/eventStreamDetail.ts +25 -0
- 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/eventStreamsGetResponse.fetch.ts +16 -0
- package/src/api/api-schemas/eventStreamsGetResponse.ts +16 -0
- 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 +9 -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 +1 -1
- package/src/api/capabilities/capabilities.ts +1 -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 +235 -4
- package/src/api/event-stream/event-stream.ts +220 -4
- 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.16
|
|
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 { customInstance } from "../../custom-axios";
|
|
@@ -513,3 +519,815 @@ export function useGetIncidentsSuspense<
|
|
|
513
519
|
|
|
514
520
|
return withQueryKey(query, queryOptions.queryKey);
|
|
515
521
|
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* 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.
|
|
525
|
+
* @summary Gets the Incident Kinds
|
|
526
|
+
*/
|
|
527
|
+
export const getIncidentKinds = (
|
|
528
|
+
options?: SecondParameter<typeof customInstance>,
|
|
529
|
+
signal?: AbortSignal,
|
|
530
|
+
) => {
|
|
531
|
+
return customInstance<IncidentKindsGetResponse>(
|
|
532
|
+
{ url: `/incident-kind`, method: "GET", signal },
|
|
533
|
+
options,
|
|
534
|
+
);
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
export const getGetIncidentKindsQueryKey = () => {
|
|
538
|
+
return ["account-server", "incident-kind"] as const;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
export const getGetIncidentKindsQueryOptions = <
|
|
542
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
543
|
+
TError = ErrorType<void>,
|
|
544
|
+
>(options?: {
|
|
545
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;
|
|
546
|
+
request?: SecondParameter<typeof customInstance>;
|
|
547
|
+
}) => {
|
|
548
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
549
|
+
|
|
550
|
+
const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();
|
|
551
|
+
|
|
552
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidentKinds>>> = ({ signal }) =>
|
|
553
|
+
getIncidentKinds(requestOptions, signal);
|
|
554
|
+
|
|
555
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
556
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
557
|
+
TError,
|
|
558
|
+
TData
|
|
559
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
export type GetIncidentKindsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidentKinds>>>;
|
|
563
|
+
export type GetIncidentKindsQueryError = ErrorType<void>;
|
|
564
|
+
|
|
565
|
+
export function useGetIncidentKinds<
|
|
566
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
567
|
+
TError = ErrorType<void>,
|
|
568
|
+
>(
|
|
569
|
+
options: {
|
|
570
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>> &
|
|
571
|
+
Pick<
|
|
572
|
+
DefinedInitialDataOptions<
|
|
573
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
574
|
+
TError,
|
|
575
|
+
Awaited<ReturnType<typeof getIncidentKinds>>
|
|
576
|
+
>,
|
|
577
|
+
"initialData"
|
|
578
|
+
>;
|
|
579
|
+
request?: SecondParameter<typeof customInstance>;
|
|
580
|
+
},
|
|
581
|
+
queryClient?: QueryClient,
|
|
582
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
583
|
+
export function useGetIncidentKinds<
|
|
584
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
585
|
+
TError = ErrorType<void>,
|
|
586
|
+
>(
|
|
587
|
+
options?: {
|
|
588
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>> &
|
|
589
|
+
Pick<
|
|
590
|
+
UndefinedInitialDataOptions<
|
|
591
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
592
|
+
TError,
|
|
593
|
+
Awaited<ReturnType<typeof getIncidentKinds>>
|
|
594
|
+
>,
|
|
595
|
+
"initialData"
|
|
596
|
+
>;
|
|
597
|
+
request?: SecondParameter<typeof customInstance>;
|
|
598
|
+
},
|
|
599
|
+
queryClient?: QueryClient,
|
|
600
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
601
|
+
export function useGetIncidentKinds<
|
|
602
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
603
|
+
TError = ErrorType<void>,
|
|
604
|
+
>(
|
|
605
|
+
options?: {
|
|
606
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;
|
|
607
|
+
request?: SecondParameter<typeof customInstance>;
|
|
608
|
+
},
|
|
609
|
+
queryClient?: QueryClient,
|
|
610
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
611
|
+
/**
|
|
612
|
+
* @summary Gets the Incident Kinds
|
|
613
|
+
*/
|
|
614
|
+
|
|
615
|
+
export function useGetIncidentKinds<
|
|
616
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
617
|
+
TError = ErrorType<void>,
|
|
618
|
+
>(
|
|
619
|
+
options?: {
|
|
620
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;
|
|
621
|
+
request?: SecondParameter<typeof customInstance>;
|
|
622
|
+
},
|
|
623
|
+
queryClient?: QueryClient,
|
|
624
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
625
|
+
const queryOptions = getGetIncidentKindsQueryOptions(options);
|
|
626
|
+
|
|
627
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
628
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* @summary Gets the Incident Kinds
|
|
636
|
+
*/
|
|
637
|
+
export const invalidateGetIncidentKinds = async (
|
|
638
|
+
queryClient: QueryClient,
|
|
639
|
+
options?: InvalidateOptions,
|
|
640
|
+
): Promise<QueryClient> => {
|
|
641
|
+
await queryClient.invalidateQueries({ queryKey: getGetIncidentKindsQueryKey() }, options);
|
|
642
|
+
|
|
643
|
+
return queryClient;
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
export const getGetIncidentKindsSuspenseQueryOptions = <
|
|
647
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
648
|
+
TError = ErrorType<void>,
|
|
649
|
+
>(options?: {
|
|
650
|
+
query?: Partial<
|
|
651
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
652
|
+
>;
|
|
653
|
+
request?: SecondParameter<typeof customInstance>;
|
|
654
|
+
}) => {
|
|
655
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
656
|
+
|
|
657
|
+
const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();
|
|
658
|
+
|
|
659
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidentKinds>>> = ({ signal }) =>
|
|
660
|
+
getIncidentKinds(requestOptions, signal);
|
|
661
|
+
|
|
662
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
663
|
+
Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
664
|
+
TError,
|
|
665
|
+
TData
|
|
666
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
export type GetIncidentKindsSuspenseQueryResult = NonNullable<
|
|
670
|
+
Awaited<ReturnType<typeof getIncidentKinds>>
|
|
671
|
+
>;
|
|
672
|
+
export type GetIncidentKindsSuspenseQueryError = ErrorType<void>;
|
|
673
|
+
|
|
674
|
+
export function useGetIncidentKindsSuspense<
|
|
675
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
676
|
+
TError = ErrorType<void>,
|
|
677
|
+
>(
|
|
678
|
+
options: {
|
|
679
|
+
query: Partial<
|
|
680
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
681
|
+
>;
|
|
682
|
+
request?: SecondParameter<typeof customInstance>;
|
|
683
|
+
},
|
|
684
|
+
queryClient?: QueryClient,
|
|
685
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
686
|
+
export function useGetIncidentKindsSuspense<
|
|
687
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
688
|
+
TError = ErrorType<void>,
|
|
689
|
+
>(
|
|
690
|
+
options?: {
|
|
691
|
+
query?: Partial<
|
|
692
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
693
|
+
>;
|
|
694
|
+
request?: SecondParameter<typeof customInstance>;
|
|
695
|
+
},
|
|
696
|
+
queryClient?: QueryClient,
|
|
697
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
698
|
+
export function useGetIncidentKindsSuspense<
|
|
699
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
700
|
+
TError = ErrorType<void>,
|
|
701
|
+
>(
|
|
702
|
+
options?: {
|
|
703
|
+
query?: Partial<
|
|
704
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
705
|
+
>;
|
|
706
|
+
request?: SecondParameter<typeof customInstance>;
|
|
707
|
+
},
|
|
708
|
+
queryClient?: QueryClient,
|
|
709
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
710
|
+
/**
|
|
711
|
+
* @summary Gets the Incident Kinds
|
|
712
|
+
*/
|
|
713
|
+
|
|
714
|
+
export function useGetIncidentKindsSuspense<
|
|
715
|
+
TData = Awaited<ReturnType<typeof getIncidentKinds>>,
|
|
716
|
+
TError = ErrorType<void>,
|
|
717
|
+
>(
|
|
718
|
+
options?: {
|
|
719
|
+
query?: Partial<
|
|
720
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>
|
|
721
|
+
>;
|
|
722
|
+
request?: SecondParameter<typeof customInstance>;
|
|
723
|
+
},
|
|
724
|
+
queryClient?: QueryClient,
|
|
725
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
726
|
+
const queryOptions = getGetIncidentKindsSuspenseQueryOptions(options);
|
|
727
|
+
|
|
728
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
729
|
+
TData,
|
|
730
|
+
TError
|
|
731
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
732
|
+
|
|
733
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* 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.
|
|
738
|
+
* @summary Gets the Relays
|
|
739
|
+
*/
|
|
740
|
+
export const getRelays = (
|
|
741
|
+
options?: SecondParameter<typeof customInstance>,
|
|
742
|
+
signal?: AbortSignal,
|
|
743
|
+
) => {
|
|
744
|
+
return customInstance<RelaysGetResponse>({ url: `/relay`, method: "GET", signal }, options);
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
export const getGetRelaysQueryKey = () => {
|
|
748
|
+
return ["account-server", "relay"] as const;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
export const getGetRelaysQueryOptions = <
|
|
752
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
753
|
+
TError = ErrorType<void>,
|
|
754
|
+
>(options?: {
|
|
755
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
756
|
+
request?: SecondParameter<typeof customInstance>;
|
|
757
|
+
}) => {
|
|
758
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
759
|
+
|
|
760
|
+
const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();
|
|
761
|
+
|
|
762
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getRelays>>> = ({ signal }) =>
|
|
763
|
+
getRelays(requestOptions, signal);
|
|
764
|
+
|
|
765
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
766
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
767
|
+
TError,
|
|
768
|
+
TData
|
|
769
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
export type GetRelaysQueryResult = NonNullable<Awaited<ReturnType<typeof getRelays>>>;
|
|
773
|
+
export type GetRelaysQueryError = ErrorType<void>;
|
|
774
|
+
|
|
775
|
+
export function useGetRelays<
|
|
776
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
777
|
+
TError = ErrorType<void>,
|
|
778
|
+
>(
|
|
779
|
+
options: {
|
|
780
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>> &
|
|
781
|
+
Pick<
|
|
782
|
+
DefinedInitialDataOptions<
|
|
783
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
784
|
+
TError,
|
|
785
|
+
Awaited<ReturnType<typeof getRelays>>
|
|
786
|
+
>,
|
|
787
|
+
"initialData"
|
|
788
|
+
>;
|
|
789
|
+
request?: SecondParameter<typeof customInstance>;
|
|
790
|
+
},
|
|
791
|
+
queryClient?: QueryClient,
|
|
792
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
793
|
+
export function useGetRelays<
|
|
794
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
795
|
+
TError = ErrorType<void>,
|
|
796
|
+
>(
|
|
797
|
+
options?: {
|
|
798
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>> &
|
|
799
|
+
Pick<
|
|
800
|
+
UndefinedInitialDataOptions<
|
|
801
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
802
|
+
TError,
|
|
803
|
+
Awaited<ReturnType<typeof getRelays>>
|
|
804
|
+
>,
|
|
805
|
+
"initialData"
|
|
806
|
+
>;
|
|
807
|
+
request?: SecondParameter<typeof customInstance>;
|
|
808
|
+
},
|
|
809
|
+
queryClient?: QueryClient,
|
|
810
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
811
|
+
export function useGetRelays<
|
|
812
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
813
|
+
TError = ErrorType<void>,
|
|
814
|
+
>(
|
|
815
|
+
options?: {
|
|
816
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
817
|
+
request?: SecondParameter<typeof customInstance>;
|
|
818
|
+
},
|
|
819
|
+
queryClient?: QueryClient,
|
|
820
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
821
|
+
/**
|
|
822
|
+
* @summary Gets the Relays
|
|
823
|
+
*/
|
|
824
|
+
|
|
825
|
+
export function useGetRelays<
|
|
826
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
827
|
+
TError = ErrorType<void>,
|
|
828
|
+
>(
|
|
829
|
+
options?: {
|
|
830
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
831
|
+
request?: SecondParameter<typeof customInstance>;
|
|
832
|
+
},
|
|
833
|
+
queryClient?: QueryClient,
|
|
834
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
835
|
+
const queryOptions = getGetRelaysQueryOptions(options);
|
|
836
|
+
|
|
837
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
838
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* @summary Gets the Relays
|
|
846
|
+
*/
|
|
847
|
+
export const invalidateGetRelays = async (
|
|
848
|
+
queryClient: QueryClient,
|
|
849
|
+
options?: InvalidateOptions,
|
|
850
|
+
): Promise<QueryClient> => {
|
|
851
|
+
await queryClient.invalidateQueries({ queryKey: getGetRelaysQueryKey() }, options);
|
|
852
|
+
|
|
853
|
+
return queryClient;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
export const getGetRelaysSuspenseQueryOptions = <
|
|
857
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
858
|
+
TError = ErrorType<void>,
|
|
859
|
+
>(options?: {
|
|
860
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
861
|
+
request?: SecondParameter<typeof customInstance>;
|
|
862
|
+
}) => {
|
|
863
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
864
|
+
|
|
865
|
+
const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();
|
|
866
|
+
|
|
867
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getRelays>>> = ({ signal }) =>
|
|
868
|
+
getRelays(requestOptions, signal);
|
|
869
|
+
|
|
870
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
871
|
+
Awaited<ReturnType<typeof getRelays>>,
|
|
872
|
+
TError,
|
|
873
|
+
TData
|
|
874
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
export type GetRelaysSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getRelays>>>;
|
|
878
|
+
export type GetRelaysSuspenseQueryError = ErrorType<void>;
|
|
879
|
+
|
|
880
|
+
export function useGetRelaysSuspense<
|
|
881
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
882
|
+
TError = ErrorType<void>,
|
|
883
|
+
>(
|
|
884
|
+
options: {
|
|
885
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
886
|
+
request?: SecondParameter<typeof customInstance>;
|
|
887
|
+
},
|
|
888
|
+
queryClient?: QueryClient,
|
|
889
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
890
|
+
export function useGetRelaysSuspense<
|
|
891
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
892
|
+
TError = ErrorType<void>,
|
|
893
|
+
>(
|
|
894
|
+
options?: {
|
|
895
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
896
|
+
request?: SecondParameter<typeof customInstance>;
|
|
897
|
+
},
|
|
898
|
+
queryClient?: QueryClient,
|
|
899
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
900
|
+
export function useGetRelaysSuspense<
|
|
901
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
902
|
+
TError = ErrorType<void>,
|
|
903
|
+
>(
|
|
904
|
+
options?: {
|
|
905
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
906
|
+
request?: SecondParameter<typeof customInstance>;
|
|
907
|
+
},
|
|
908
|
+
queryClient?: QueryClient,
|
|
909
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
910
|
+
/**
|
|
911
|
+
* @summary Gets the Relays
|
|
912
|
+
*/
|
|
913
|
+
|
|
914
|
+
export function useGetRelaysSuspense<
|
|
915
|
+
TData = Awaited<ReturnType<typeof getRelays>>,
|
|
916
|
+
TError = ErrorType<void>,
|
|
917
|
+
>(
|
|
918
|
+
options?: {
|
|
919
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;
|
|
920
|
+
request?: SecondParameter<typeof customInstance>;
|
|
921
|
+
},
|
|
922
|
+
queryClient?: QueryClient,
|
|
923
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
924
|
+
const queryOptions = getGetRelaysSuspenseQueryOptions(options);
|
|
925
|
+
|
|
926
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
927
|
+
TData,
|
|
928
|
+
TError
|
|
929
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
930
|
+
|
|
931
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* 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.
|
|
936
|
+
* @summary Gets your Notification Preferences
|
|
937
|
+
*/
|
|
938
|
+
export const getNotificationPreferences = (
|
|
939
|
+
options?: SecondParameter<typeof customInstance>,
|
|
940
|
+
signal?: AbortSignal,
|
|
941
|
+
) => {
|
|
942
|
+
return customInstance<NotificationPreferencesGetResponse>(
|
|
943
|
+
{ url: `/notification-preference`, method: "GET", signal },
|
|
944
|
+
options,
|
|
945
|
+
);
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
export const getGetNotificationPreferencesQueryKey = () => {
|
|
949
|
+
return ["account-server", "notification-preference"] as const;
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
export const getGetNotificationPreferencesQueryOptions = <
|
|
953
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
954
|
+
TError = ErrorType<void>,
|
|
955
|
+
>(options?: {
|
|
956
|
+
query?: Partial<
|
|
957
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
958
|
+
>;
|
|
959
|
+
request?: SecondParameter<typeof customInstance>;
|
|
960
|
+
}) => {
|
|
961
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
962
|
+
|
|
963
|
+
const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();
|
|
964
|
+
|
|
965
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotificationPreferences>>> = ({
|
|
966
|
+
signal,
|
|
967
|
+
}) => getNotificationPreferences(requestOptions, signal);
|
|
968
|
+
|
|
969
|
+
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
|
970
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
971
|
+
TError,
|
|
972
|
+
TData
|
|
973
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
export type GetNotificationPreferencesQueryResult = NonNullable<
|
|
977
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
978
|
+
>;
|
|
979
|
+
export type GetNotificationPreferencesQueryError = ErrorType<void>;
|
|
980
|
+
|
|
981
|
+
export function useGetNotificationPreferences<
|
|
982
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
983
|
+
TError = ErrorType<void>,
|
|
984
|
+
>(
|
|
985
|
+
options: {
|
|
986
|
+
query: Partial<
|
|
987
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
988
|
+
> &
|
|
989
|
+
Pick<
|
|
990
|
+
DefinedInitialDataOptions<
|
|
991
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
992
|
+
TError,
|
|
993
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
994
|
+
>,
|
|
995
|
+
"initialData"
|
|
996
|
+
>;
|
|
997
|
+
request?: SecondParameter<typeof customInstance>;
|
|
998
|
+
},
|
|
999
|
+
queryClient?: QueryClient,
|
|
1000
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1001
|
+
export function useGetNotificationPreferences<
|
|
1002
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1003
|
+
TError = ErrorType<void>,
|
|
1004
|
+
>(
|
|
1005
|
+
options?: {
|
|
1006
|
+
query?: Partial<
|
|
1007
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1008
|
+
> &
|
|
1009
|
+
Pick<
|
|
1010
|
+
UndefinedInitialDataOptions<
|
|
1011
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1012
|
+
TError,
|
|
1013
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
1014
|
+
>,
|
|
1015
|
+
"initialData"
|
|
1016
|
+
>;
|
|
1017
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1018
|
+
},
|
|
1019
|
+
queryClient?: QueryClient,
|
|
1020
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1021
|
+
export function useGetNotificationPreferences<
|
|
1022
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1023
|
+
TError = ErrorType<void>,
|
|
1024
|
+
>(
|
|
1025
|
+
options?: {
|
|
1026
|
+
query?: Partial<
|
|
1027
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1028
|
+
>;
|
|
1029
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1030
|
+
},
|
|
1031
|
+
queryClient?: QueryClient,
|
|
1032
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1033
|
+
/**
|
|
1034
|
+
* @summary Gets your Notification Preferences
|
|
1035
|
+
*/
|
|
1036
|
+
|
|
1037
|
+
export function useGetNotificationPreferences<
|
|
1038
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1039
|
+
TError = ErrorType<void>,
|
|
1040
|
+
>(
|
|
1041
|
+
options?: {
|
|
1042
|
+
query?: Partial<
|
|
1043
|
+
UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1044
|
+
>;
|
|
1045
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1046
|
+
},
|
|
1047
|
+
queryClient?: QueryClient,
|
|
1048
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
1049
|
+
const queryOptions = getGetNotificationPreferencesQueryOptions(options);
|
|
1050
|
+
|
|
1051
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
1052
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* @summary Gets your Notification Preferences
|
|
1060
|
+
*/
|
|
1061
|
+
export const invalidateGetNotificationPreferences = async (
|
|
1062
|
+
queryClient: QueryClient,
|
|
1063
|
+
options?: InvalidateOptions,
|
|
1064
|
+
): Promise<QueryClient> => {
|
|
1065
|
+
await queryClient.invalidateQueries(
|
|
1066
|
+
{ queryKey: getGetNotificationPreferencesQueryKey() },
|
|
1067
|
+
options,
|
|
1068
|
+
);
|
|
1069
|
+
|
|
1070
|
+
return queryClient;
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
export const getGetNotificationPreferencesSuspenseQueryOptions = <
|
|
1074
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1075
|
+
TError = ErrorType<void>,
|
|
1076
|
+
>(options?: {
|
|
1077
|
+
query?: Partial<
|
|
1078
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1079
|
+
>;
|
|
1080
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1081
|
+
}) => {
|
|
1082
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1083
|
+
|
|
1084
|
+
const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();
|
|
1085
|
+
|
|
1086
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotificationPreferences>>> = ({
|
|
1087
|
+
signal,
|
|
1088
|
+
}) => getNotificationPreferences(requestOptions, signal);
|
|
1089
|
+
|
|
1090
|
+
return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<
|
|
1091
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1092
|
+
TError,
|
|
1093
|
+
TData
|
|
1094
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
export type GetNotificationPreferencesSuspenseQueryResult = NonNullable<
|
|
1098
|
+
Awaited<ReturnType<typeof getNotificationPreferences>>
|
|
1099
|
+
>;
|
|
1100
|
+
export type GetNotificationPreferencesSuspenseQueryError = ErrorType<void>;
|
|
1101
|
+
|
|
1102
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1103
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1104
|
+
TError = ErrorType<void>,
|
|
1105
|
+
>(
|
|
1106
|
+
options: {
|
|
1107
|
+
query: Partial<
|
|
1108
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1109
|
+
>;
|
|
1110
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1111
|
+
},
|
|
1112
|
+
queryClient?: QueryClient,
|
|
1113
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1114
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1115
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1116
|
+
TError = ErrorType<void>,
|
|
1117
|
+
>(
|
|
1118
|
+
options?: {
|
|
1119
|
+
query?: Partial<
|
|
1120
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1121
|
+
>;
|
|
1122
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1123
|
+
},
|
|
1124
|
+
queryClient?: QueryClient,
|
|
1125
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1126
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1127
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1128
|
+
TError = ErrorType<void>,
|
|
1129
|
+
>(
|
|
1130
|
+
options?: {
|
|
1131
|
+
query?: Partial<
|
|
1132
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1133
|
+
>;
|
|
1134
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1135
|
+
},
|
|
1136
|
+
queryClient?: QueryClient,
|
|
1137
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1138
|
+
/**
|
|
1139
|
+
* @summary Gets your Notification Preferences
|
|
1140
|
+
*/
|
|
1141
|
+
|
|
1142
|
+
export function useGetNotificationPreferencesSuspense<
|
|
1143
|
+
TData = Awaited<ReturnType<typeof getNotificationPreferences>>,
|
|
1144
|
+
TError = ErrorType<void>,
|
|
1145
|
+
>(
|
|
1146
|
+
options?: {
|
|
1147
|
+
query?: Partial<
|
|
1148
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>
|
|
1149
|
+
>;
|
|
1150
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1151
|
+
},
|
|
1152
|
+
queryClient?: QueryClient,
|
|
1153
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
1154
|
+
const queryOptions = getGetNotificationPreferencesSuspenseQueryOptions(options);
|
|
1155
|
+
|
|
1156
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
1157
|
+
TData,
|
|
1158
|
+
TError
|
|
1159
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1160
|
+
|
|
1161
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* 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.
|
|
1166
|
+
*
|
|
1167
|
+
* You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.
|
|
1168
|
+
* @summary Enables an Incident Kind over a Relay for you
|
|
1169
|
+
*/
|
|
1170
|
+
export const enableNotificationPreference = (
|
|
1171
|
+
kind: string,
|
|
1172
|
+
relay: string,
|
|
1173
|
+
options?: SecondParameter<typeof customInstance>,
|
|
1174
|
+
signal?: AbortSignal,
|
|
1175
|
+
) => {
|
|
1176
|
+
return customInstance<void>(
|
|
1177
|
+
{ url: `/notification-preference/${kind}/${relay}/enable`, method: "PUT", signal },
|
|
1178
|
+
options,
|
|
1179
|
+
);
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
export const getEnableNotificationPreferenceMutationOptions = <
|
|
1183
|
+
TError = ErrorType<void | AsError>,
|
|
1184
|
+
TContext = unknown,
|
|
1185
|
+
>(options?: {
|
|
1186
|
+
mutation?: UseMutationOptions<
|
|
1187
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1188
|
+
TError,
|
|
1189
|
+
{ kind: string; relay: string },
|
|
1190
|
+
TContext
|
|
1191
|
+
>;
|
|
1192
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1193
|
+
}): UseMutationOptions<
|
|
1194
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1195
|
+
TError,
|
|
1196
|
+
{ kind: string; relay: string },
|
|
1197
|
+
TContext
|
|
1198
|
+
> => {
|
|
1199
|
+
const mutationKey = ["enableNotificationPreference"];
|
|
1200
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1201
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1202
|
+
? options
|
|
1203
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1204
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1205
|
+
|
|
1206
|
+
const mutationFn: MutationFunction<
|
|
1207
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1208
|
+
{ kind: string; relay: string }
|
|
1209
|
+
> = (props) => {
|
|
1210
|
+
const { kind, relay } = props ?? {};
|
|
1211
|
+
|
|
1212
|
+
return enableNotificationPreference(kind, relay, requestOptions);
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
return { mutationFn, ...mutationOptions };
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
export type EnableNotificationPreferenceMutationResult = NonNullable<
|
|
1219
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>
|
|
1220
|
+
>;
|
|
1221
|
+
|
|
1222
|
+
export type EnableNotificationPreferenceMutationError = ErrorType<void | AsError>;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* @summary Enables an Incident Kind over a Relay for you
|
|
1226
|
+
*/
|
|
1227
|
+
export const useEnableNotificationPreference = <
|
|
1228
|
+
TError = ErrorType<void | AsError>,
|
|
1229
|
+
TContext = unknown,
|
|
1230
|
+
>(
|
|
1231
|
+
options?: {
|
|
1232
|
+
mutation?: UseMutationOptions<
|
|
1233
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1234
|
+
TError,
|
|
1235
|
+
{ kind: string; relay: string },
|
|
1236
|
+
TContext
|
|
1237
|
+
>;
|
|
1238
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1239
|
+
},
|
|
1240
|
+
queryClient?: QueryClient,
|
|
1241
|
+
): UseMutationResult<
|
|
1242
|
+
Awaited<ReturnType<typeof enableNotificationPreference>>,
|
|
1243
|
+
TError,
|
|
1244
|
+
{ kind: string; relay: string },
|
|
1245
|
+
TContext
|
|
1246
|
+
> => {
|
|
1247
|
+
return useMutation(getEnableNotificationPreferenceMutationOptions(options), queryClient);
|
|
1248
|
+
};
|
|
1249
|
+
/**
|
|
1250
|
+
* 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.
|
|
1251
|
+
*
|
|
1252
|
+
* You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.
|
|
1253
|
+
* @summary Disables an Incident Kind over a Relay for you
|
|
1254
|
+
*/
|
|
1255
|
+
export const disableNotificationPreference = (
|
|
1256
|
+
kind: string,
|
|
1257
|
+
relay: string,
|
|
1258
|
+
options?: SecondParameter<typeof customInstance>,
|
|
1259
|
+
signal?: AbortSignal,
|
|
1260
|
+
) => {
|
|
1261
|
+
return customInstance<void>(
|
|
1262
|
+
{ url: `/notification-preference/${kind}/${relay}/disable`, method: "PUT", signal },
|
|
1263
|
+
options,
|
|
1264
|
+
);
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
export const getDisableNotificationPreferenceMutationOptions = <
|
|
1268
|
+
TError = ErrorType<void | AsError>,
|
|
1269
|
+
TContext = unknown,
|
|
1270
|
+
>(options?: {
|
|
1271
|
+
mutation?: UseMutationOptions<
|
|
1272
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1273
|
+
TError,
|
|
1274
|
+
{ kind: string; relay: string },
|
|
1275
|
+
TContext
|
|
1276
|
+
>;
|
|
1277
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1278
|
+
}): UseMutationOptions<
|
|
1279
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1280
|
+
TError,
|
|
1281
|
+
{ kind: string; relay: string },
|
|
1282
|
+
TContext
|
|
1283
|
+
> => {
|
|
1284
|
+
const mutationKey = ["disableNotificationPreference"];
|
|
1285
|
+
const { mutation: mutationOptions, request: requestOptions } = options
|
|
1286
|
+
? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey
|
|
1287
|
+
? options
|
|
1288
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
1289
|
+
: { mutation: { mutationKey }, request: undefined };
|
|
1290
|
+
|
|
1291
|
+
const mutationFn: MutationFunction<
|
|
1292
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1293
|
+
{ kind: string; relay: string }
|
|
1294
|
+
> = (props) => {
|
|
1295
|
+
const { kind, relay } = props ?? {};
|
|
1296
|
+
|
|
1297
|
+
return disableNotificationPreference(kind, relay, requestOptions);
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
return { mutationFn, ...mutationOptions };
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
export type DisableNotificationPreferenceMutationResult = NonNullable<
|
|
1304
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>
|
|
1305
|
+
>;
|
|
1306
|
+
|
|
1307
|
+
export type DisableNotificationPreferenceMutationError = ErrorType<void | AsError>;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* @summary Disables an Incident Kind over a Relay for you
|
|
1311
|
+
*/
|
|
1312
|
+
export const useDisableNotificationPreference = <
|
|
1313
|
+
TError = ErrorType<void | AsError>,
|
|
1314
|
+
TContext = unknown,
|
|
1315
|
+
>(
|
|
1316
|
+
options?: {
|
|
1317
|
+
mutation?: UseMutationOptions<
|
|
1318
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1319
|
+
TError,
|
|
1320
|
+
{ kind: string; relay: string },
|
|
1321
|
+
TContext
|
|
1322
|
+
>;
|
|
1323
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1324
|
+
},
|
|
1325
|
+
queryClient?: QueryClient,
|
|
1326
|
+
): UseMutationResult<
|
|
1327
|
+
Awaited<ReturnType<typeof disableNotificationPreference>>,
|
|
1328
|
+
TError,
|
|
1329
|
+
{ kind: string; relay: string },
|
|
1330
|
+
TContext
|
|
1331
|
+
> => {
|
|
1332
|
+
return useMutation(getDisableNotificationPreferenceMutationOptions(options), queryClient);
|
|
1333
|
+
};
|