@squonk/account-server-client 4.13.0 → 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 +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/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 +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 +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 +7 -1
- package/dist/index.d.ts +7 -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/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 +7 -1
- package/src/api/api-schemas/merchantDetail.fetch.ts +1 -1
- package/src/api/api-schemas/merchantDetail.ts +1 -1
- package/src/api/api-schemas/merchantDetailKind.fetch.ts +1 -1
- package/src/api/api-schemas/merchantDetailKind.ts +1 -1
- package/src/api/api-schemas/merchantGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/merchantGetResponse.ts +1 -1
- package/src/api/api-schemas/merchantSummary.fetch.ts +1 -1
- package/src/api/api-schemas/merchantSummary.ts +1 -1
- package/src/api/api-schemas/merchantSummaryKind.fetch.ts +1 -1
- package/src/api/api-schemas/merchantSummaryKind.ts +1 -1
- package/src/api/api-schemas/merchantsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/merchantsGetResponse.ts +1 -1
- package/src/api/api-schemas/notificationDetail.fetch.ts +1 -1
- package/src/api/api-schemas/notificationDetail.ts +1 -1
- package/src/api/api-schemas/notificationDetailState.fetch.ts +1 -1
- package/src/api/api-schemas/notificationDetailState.ts +1 -1
- package/src/api/api-schemas/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 +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
|
@@ -10,7 +10,7 @@ let _tanstack_react_query = require("@tanstack/react-query");
|
|
|
10
10
|
*
|
|
11
11
|
* A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
12
12
|
*
|
|
13
|
-
* OpenAPI spec version: 4.
|
|
13
|
+
* OpenAPI spec version: 4.14
|
|
14
14
|
*/
|
|
15
15
|
const withQueryKey = (query, queryKey) => {
|
|
16
16
|
const result = { queryKey };
|
|
@@ -174,22 +174,327 @@ function useGetIncidentsSuspense(params, options, queryClient) {
|
|
|
174
174
|
const queryOptions = getGetIncidentsSuspenseQueryOptions(params, options);
|
|
175
175
|
return withQueryKey((0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
176
176
|
}
|
|
177
|
+
const getGetIncidentKindsUrl = () => {
|
|
178
|
+
return `/incident-kind`;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* 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.
|
|
182
|
+
* @summary Gets the Incident Kinds
|
|
183
|
+
*/
|
|
184
|
+
const getIncidentKinds = async (options) => {
|
|
185
|
+
return require_custom_fetch.customFetch(getGetIncidentKindsUrl(), {
|
|
186
|
+
...options,
|
|
187
|
+
method: "GET"
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
const getGetIncidentKindsQueryKey = () => {
|
|
191
|
+
return ["account-server", "incident-kind"];
|
|
192
|
+
};
|
|
193
|
+
const getGetIncidentKindsQueryOptions = (options) => {
|
|
194
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
195
|
+
const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();
|
|
196
|
+
const queryFn = ({ signal }) => getIncidentKinds({
|
|
197
|
+
signal,
|
|
198
|
+
...requestOptions
|
|
199
|
+
});
|
|
200
|
+
return {
|
|
201
|
+
queryKey,
|
|
202
|
+
queryFn,
|
|
203
|
+
...queryOptions
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* @summary Gets the Incident Kinds
|
|
208
|
+
*/
|
|
209
|
+
function useGetIncidentKinds(options, queryClient) {
|
|
210
|
+
const queryOptions = getGetIncidentKindsQueryOptions(options);
|
|
211
|
+
return withQueryKey((0, _tanstack_react_query.useQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* @summary Gets the Incident Kinds
|
|
215
|
+
*/
|
|
216
|
+
const invalidateGetIncidentKinds = async (queryClient, options) => {
|
|
217
|
+
await queryClient.invalidateQueries({ queryKey: getGetIncidentKindsQueryKey() }, options);
|
|
218
|
+
return queryClient;
|
|
219
|
+
};
|
|
220
|
+
const getGetIncidentKindsSuspenseQueryOptions = (options) => {
|
|
221
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
222
|
+
const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();
|
|
223
|
+
const queryFn = ({ signal }) => getIncidentKinds({
|
|
224
|
+
signal,
|
|
225
|
+
...requestOptions
|
|
226
|
+
});
|
|
227
|
+
return {
|
|
228
|
+
queryKey,
|
|
229
|
+
queryFn,
|
|
230
|
+
...queryOptions
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* @summary Gets the Incident Kinds
|
|
235
|
+
*/
|
|
236
|
+
function useGetIncidentKindsSuspense(options, queryClient) {
|
|
237
|
+
const queryOptions = getGetIncidentKindsSuspenseQueryOptions(options);
|
|
238
|
+
return withQueryKey((0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
239
|
+
}
|
|
240
|
+
const getGetRelaysUrl = () => {
|
|
241
|
+
return `/relay`;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* 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.
|
|
245
|
+
* @summary Gets the Relays
|
|
246
|
+
*/
|
|
247
|
+
const getRelays = async (options) => {
|
|
248
|
+
return require_custom_fetch.customFetch(getGetRelaysUrl(), {
|
|
249
|
+
...options,
|
|
250
|
+
method: "GET"
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
const getGetRelaysQueryKey = () => {
|
|
254
|
+
return ["account-server", "relay"];
|
|
255
|
+
};
|
|
256
|
+
const getGetRelaysQueryOptions = (options) => {
|
|
257
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
258
|
+
const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();
|
|
259
|
+
const queryFn = ({ signal }) => getRelays({
|
|
260
|
+
signal,
|
|
261
|
+
...requestOptions
|
|
262
|
+
});
|
|
263
|
+
return {
|
|
264
|
+
queryKey,
|
|
265
|
+
queryFn,
|
|
266
|
+
...queryOptions
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* @summary Gets the Relays
|
|
271
|
+
*/
|
|
272
|
+
function useGetRelays(options, queryClient) {
|
|
273
|
+
const queryOptions = getGetRelaysQueryOptions(options);
|
|
274
|
+
return withQueryKey((0, _tanstack_react_query.useQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* @summary Gets the Relays
|
|
278
|
+
*/
|
|
279
|
+
const invalidateGetRelays = async (queryClient, options) => {
|
|
280
|
+
await queryClient.invalidateQueries({ queryKey: getGetRelaysQueryKey() }, options);
|
|
281
|
+
return queryClient;
|
|
282
|
+
};
|
|
283
|
+
const getGetRelaysSuspenseQueryOptions = (options) => {
|
|
284
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
285
|
+
const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();
|
|
286
|
+
const queryFn = ({ signal }) => getRelays({
|
|
287
|
+
signal,
|
|
288
|
+
...requestOptions
|
|
289
|
+
});
|
|
290
|
+
return {
|
|
291
|
+
queryKey,
|
|
292
|
+
queryFn,
|
|
293
|
+
...queryOptions
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* @summary Gets the Relays
|
|
298
|
+
*/
|
|
299
|
+
function useGetRelaysSuspense(options, queryClient) {
|
|
300
|
+
const queryOptions = getGetRelaysSuspenseQueryOptions(options);
|
|
301
|
+
return withQueryKey((0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
302
|
+
}
|
|
303
|
+
const getGetNotificationPreferencesUrl = () => {
|
|
304
|
+
return `/notification-preference`;
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* 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.
|
|
308
|
+
* @summary Gets your Notification Preferences
|
|
309
|
+
*/
|
|
310
|
+
const getNotificationPreferences = async (options) => {
|
|
311
|
+
return require_custom_fetch.customFetch(getGetNotificationPreferencesUrl(), {
|
|
312
|
+
...options,
|
|
313
|
+
method: "GET"
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
const getGetNotificationPreferencesQueryKey = () => {
|
|
317
|
+
return ["account-server", "notification-preference"];
|
|
318
|
+
};
|
|
319
|
+
const getGetNotificationPreferencesQueryOptions = (options) => {
|
|
320
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
321
|
+
const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();
|
|
322
|
+
const queryFn = ({ signal }) => getNotificationPreferences({
|
|
323
|
+
signal,
|
|
324
|
+
...requestOptions
|
|
325
|
+
});
|
|
326
|
+
return {
|
|
327
|
+
queryKey,
|
|
328
|
+
queryFn,
|
|
329
|
+
...queryOptions
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* @summary Gets your Notification Preferences
|
|
334
|
+
*/
|
|
335
|
+
function useGetNotificationPreferences(options, queryClient) {
|
|
336
|
+
const queryOptions = getGetNotificationPreferencesQueryOptions(options);
|
|
337
|
+
return withQueryKey((0, _tanstack_react_query.useQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @summary Gets your Notification Preferences
|
|
341
|
+
*/
|
|
342
|
+
const invalidateGetNotificationPreferences = async (queryClient, options) => {
|
|
343
|
+
await queryClient.invalidateQueries({ queryKey: getGetNotificationPreferencesQueryKey() }, options);
|
|
344
|
+
return queryClient;
|
|
345
|
+
};
|
|
346
|
+
const getGetNotificationPreferencesSuspenseQueryOptions = (options) => {
|
|
347
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
348
|
+
const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();
|
|
349
|
+
const queryFn = ({ signal }) => getNotificationPreferences({
|
|
350
|
+
signal,
|
|
351
|
+
...requestOptions
|
|
352
|
+
});
|
|
353
|
+
return {
|
|
354
|
+
queryKey,
|
|
355
|
+
queryFn,
|
|
356
|
+
...queryOptions
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* @summary Gets your Notification Preferences
|
|
361
|
+
*/
|
|
362
|
+
function useGetNotificationPreferencesSuspense(options, queryClient) {
|
|
363
|
+
const queryOptions = getGetNotificationPreferencesSuspenseQueryOptions(options);
|
|
364
|
+
return withQueryKey((0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
365
|
+
}
|
|
366
|
+
const getEnableNotificationPreferenceUrl = (kind, relay) => {
|
|
367
|
+
return `/notification-preference/${kind}/${relay}/enable`;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* 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.
|
|
371
|
+
*
|
|
372
|
+
* You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.
|
|
373
|
+
* @summary Enables an Incident Kind over a Relay for you
|
|
374
|
+
*/
|
|
375
|
+
const enableNotificationPreference = async (kind, relay, options) => {
|
|
376
|
+
return require_custom_fetch.customFetch(getEnableNotificationPreferenceUrl(kind, relay), {
|
|
377
|
+
...options,
|
|
378
|
+
method: "PUT"
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
const getEnableNotificationPreferenceMutationOptions = (options) => {
|
|
382
|
+
const mutationKey = ["enableNotificationPreference"];
|
|
383
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
384
|
+
...options,
|
|
385
|
+
mutation: {
|
|
386
|
+
...options.mutation,
|
|
387
|
+
mutationKey
|
|
388
|
+
}
|
|
389
|
+
} : {
|
|
390
|
+
mutation: { mutationKey },
|
|
391
|
+
request: void 0
|
|
392
|
+
};
|
|
393
|
+
const mutationFn = (props) => {
|
|
394
|
+
const { kind, relay } = props ?? {};
|
|
395
|
+
return enableNotificationPreference(kind, relay, requestOptions);
|
|
396
|
+
};
|
|
397
|
+
return {
|
|
398
|
+
mutationFn,
|
|
399
|
+
...mutationOptions
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* @summary Enables an Incident Kind over a Relay for you
|
|
404
|
+
*/
|
|
405
|
+
const useEnableNotificationPreference = (options, queryClient) => {
|
|
406
|
+
return (0, _tanstack_react_query.useMutation)(getEnableNotificationPreferenceMutationOptions(options), queryClient);
|
|
407
|
+
};
|
|
408
|
+
const getDisableNotificationPreferenceUrl = (kind, relay) => {
|
|
409
|
+
return `/notification-preference/${kind}/${relay}/disable`;
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* 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.
|
|
413
|
+
*
|
|
414
|
+
* You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.
|
|
415
|
+
* @summary Disables an Incident Kind over a Relay for you
|
|
416
|
+
*/
|
|
417
|
+
const disableNotificationPreference = async (kind, relay, options) => {
|
|
418
|
+
return require_custom_fetch.customFetch(getDisableNotificationPreferenceUrl(kind, relay), {
|
|
419
|
+
...options,
|
|
420
|
+
method: "PUT"
|
|
421
|
+
});
|
|
422
|
+
};
|
|
423
|
+
const getDisableNotificationPreferenceMutationOptions = (options) => {
|
|
424
|
+
const mutationKey = ["disableNotificationPreference"];
|
|
425
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
426
|
+
...options,
|
|
427
|
+
mutation: {
|
|
428
|
+
...options.mutation,
|
|
429
|
+
mutationKey
|
|
430
|
+
}
|
|
431
|
+
} : {
|
|
432
|
+
mutation: { mutationKey },
|
|
433
|
+
request: void 0
|
|
434
|
+
};
|
|
435
|
+
const mutationFn = (props) => {
|
|
436
|
+
const { kind, relay } = props ?? {};
|
|
437
|
+
return disableNotificationPreference(kind, relay, requestOptions);
|
|
438
|
+
};
|
|
439
|
+
return {
|
|
440
|
+
mutationFn,
|
|
441
|
+
...mutationOptions
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* @summary Disables an Incident Kind over a Relay for you
|
|
446
|
+
*/
|
|
447
|
+
const useDisableNotificationPreference = (options, queryClient) => {
|
|
448
|
+
return (0, _tanstack_react_query.useMutation)(getDisableNotificationPreferenceMutationOptions(options), queryClient);
|
|
449
|
+
};
|
|
177
450
|
//#endregion
|
|
451
|
+
exports.disableNotificationPreference = disableNotificationPreference;
|
|
452
|
+
exports.enableNotificationPreference = enableNotificationPreference;
|
|
453
|
+
exports.getDisableNotificationPreferenceMutationOptions = getDisableNotificationPreferenceMutationOptions;
|
|
454
|
+
exports.getDisableNotificationPreferenceUrl = getDisableNotificationPreferenceUrl;
|
|
455
|
+
exports.getEnableNotificationPreferenceMutationOptions = getEnableNotificationPreferenceMutationOptions;
|
|
456
|
+
exports.getEnableNotificationPreferenceUrl = getEnableNotificationPreferenceUrl;
|
|
457
|
+
exports.getGetIncidentKindsQueryKey = getGetIncidentKindsQueryKey;
|
|
458
|
+
exports.getGetIncidentKindsQueryOptions = getGetIncidentKindsQueryOptions;
|
|
459
|
+
exports.getGetIncidentKindsSuspenseQueryOptions = getGetIncidentKindsSuspenseQueryOptions;
|
|
460
|
+
exports.getGetIncidentKindsUrl = getGetIncidentKindsUrl;
|
|
178
461
|
exports.getGetIncidentsQueryKey = getGetIncidentsQueryKey;
|
|
179
462
|
exports.getGetIncidentsQueryOptions = getGetIncidentsQueryOptions;
|
|
180
463
|
exports.getGetIncidentsSuspenseQueryOptions = getGetIncidentsSuspenseQueryOptions;
|
|
181
464
|
exports.getGetIncidentsUrl = getGetIncidentsUrl;
|
|
465
|
+
exports.getGetNotificationPreferencesQueryKey = getGetNotificationPreferencesQueryKey;
|
|
466
|
+
exports.getGetNotificationPreferencesQueryOptions = getGetNotificationPreferencesQueryOptions;
|
|
467
|
+
exports.getGetNotificationPreferencesSuspenseQueryOptions = getGetNotificationPreferencesSuspenseQueryOptions;
|
|
468
|
+
exports.getGetNotificationPreferencesUrl = getGetNotificationPreferencesUrl;
|
|
182
469
|
exports.getGetNotificationsQueryKey = getGetNotificationsQueryKey;
|
|
183
470
|
exports.getGetNotificationsQueryOptions = getGetNotificationsQueryOptions;
|
|
184
471
|
exports.getGetNotificationsSuspenseQueryOptions = getGetNotificationsSuspenseQueryOptions;
|
|
185
472
|
exports.getGetNotificationsUrl = getGetNotificationsUrl;
|
|
473
|
+
exports.getGetRelaysQueryKey = getGetRelaysQueryKey;
|
|
474
|
+
exports.getGetRelaysQueryOptions = getGetRelaysQueryOptions;
|
|
475
|
+
exports.getGetRelaysSuspenseQueryOptions = getGetRelaysSuspenseQueryOptions;
|
|
476
|
+
exports.getGetRelaysUrl = getGetRelaysUrl;
|
|
477
|
+
exports.getIncidentKinds = getIncidentKinds;
|
|
186
478
|
exports.getIncidents = getIncidents;
|
|
479
|
+
exports.getNotificationPreferences = getNotificationPreferences;
|
|
187
480
|
exports.getNotifications = getNotifications;
|
|
481
|
+
exports.getRelays = getRelays;
|
|
482
|
+
exports.invalidateGetIncidentKinds = invalidateGetIncidentKinds;
|
|
188
483
|
exports.invalidateGetIncidents = invalidateGetIncidents;
|
|
484
|
+
exports.invalidateGetNotificationPreferences = invalidateGetNotificationPreferences;
|
|
189
485
|
exports.invalidateGetNotifications = invalidateGetNotifications;
|
|
486
|
+
exports.invalidateGetRelays = invalidateGetRelays;
|
|
487
|
+
exports.useDisableNotificationPreference = useDisableNotificationPreference;
|
|
488
|
+
exports.useEnableNotificationPreference = useEnableNotificationPreference;
|
|
489
|
+
exports.useGetIncidentKinds = useGetIncidentKinds;
|
|
490
|
+
exports.useGetIncidentKindsSuspense = useGetIncidentKindsSuspense;
|
|
190
491
|
exports.useGetIncidents = useGetIncidents;
|
|
191
492
|
exports.useGetIncidentsSuspense = useGetIncidentsSuspense;
|
|
493
|
+
exports.useGetNotificationPreferences = useGetNotificationPreferences;
|
|
494
|
+
exports.useGetNotificationPreferencesSuspense = useGetNotificationPreferencesSuspense;
|
|
192
495
|
exports.useGetNotifications = useGetNotifications;
|
|
193
496
|
exports.useGetNotificationsSuspense = useGetNotificationsSuspense;
|
|
497
|
+
exports.useGetRelays = useGetRelays;
|
|
498
|
+
exports.useGetRelaysSuspense = useGetRelaysSuspense;
|
|
194
499
|
|
|
195
500
|
//# sourceMappingURL=notifications.fetch.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.fetch.cjs","names":["customFetch"],"sources":["../../../src/api/notifications/notifications.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.13\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetIncidentsParams,\n GetNotificationsParams,\n IncidentsGetResponse,\n NotificationsGetResponse,\n} from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getNotificationsResponse200 = { data: NotificationsGetResponse; status: 200 };\n\nexport type getNotificationsResponse400 = { data: AsError; status: 400 };\n\nexport type getNotificationsResponse401 = { data: void; status: 401 };\n\nexport type getNotificationsResponse403 = { data: AsError; status: 403 };\n\nexport type getNotificationsResponseSuccess = getNotificationsResponse200 & { headers: Headers };\nexport type getNotificationsResponseError = (\n | getNotificationsResponse400\n | getNotificationsResponse401\n | getNotificationsResponse403\n) & { headers: Headers };\n\nexport type getNotificationsResponse =\n | getNotificationsResponseSuccess\n | getNotificationsResponseError;\n\nexport const getGetNotificationsUrl = (params?: GetNotificationsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/notification?${stringifiedParams}` : `/notification`;\n};\n\n/**\n * Gets Notifications, newest first - who was told about an Incident, over which Relay, and how it went.\n *\n * Each Notification has exactly one delivery attempt and is never retried, so the `reason` of a `FAILED` Notification is the whole of its delivery record, and is returned in full.\n *\n * You need admin rights to use this path.\n * @summary Gets Notifications\n */\nexport const getNotifications = async (\n params?: GetNotificationsParams,\n options?: RequestInit,\n): Promise<getNotificationsResponse> => {\n return customFetch<getNotificationsResponse>(getGetNotificationsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetNotificationsQueryKey = (params?: GetNotificationsParams) => {\n return [\"account-server\", \"notification\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetNotificationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsQueryResult = NonNullable<Awaited<ReturnType<typeof getNotifications>>>;\nexport type GetNotificationsQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Notifications\n */\nexport const invalidateGetNotifications = async (\n queryClient: QueryClient,\n params?: GetNotificationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetNotificationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetNotificationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotifications>>\n>;\nexport type GetNotificationsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getIncidentsResponse200 = { data: IncidentsGetResponse; status: 200 };\n\nexport type getIncidentsResponse400 = { data: AsError; status: 400 };\n\nexport type getIncidentsResponse401 = { data: void; status: 401 };\n\nexport type getIncidentsResponse403 = { data: AsError; status: 403 };\n\nexport type getIncidentsResponseSuccess = getIncidentsResponse200 & { headers: Headers };\nexport type getIncidentsResponseError = (\n | getIncidentsResponse400\n | getIncidentsResponse401\n | getIncidentsResponse403\n) & { headers: Headers };\n\nexport type getIncidentsResponse = getIncidentsResponseSuccess | getIncidentsResponseError;\n\nexport const getGetIncidentsUrl = (params?: GetIncidentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/incident?${stringifiedParams}` : `/incident`;\n};\n\n/**\n * Gets Incidents, newest first - the conditions the Account Server has detected, each recorded once however many people were told.\n *\n * You need admin rights to use this path.\n * @summary Gets Incidents\n */\nexport const getIncidents = async (\n params?: GetIncidentsParams,\n options?: RequestInit,\n): Promise<getIncidentsResponse> => {\n return customFetch<getIncidentsResponse>(getGetIncidentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetIncidentsQueryKey = (params?: GetIncidentsParams) => {\n return [\"account-server\", \"incident\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetIncidentsQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Incidents\n */\nexport const invalidateGetIncidents = async (\n queryClient: QueryClient,\n params?: GetIncidentsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetIncidentsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetIncidentsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"notifications.fetch.cjs","names":["customFetch"],"sources":["../../../src/api/notifications/notifications.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n *\n * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n *\n * OpenAPI spec version: 4.14\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n GetIncidentsParams,\n GetNotificationsParams,\n IncidentKindsGetResponse,\n IncidentsGetResponse,\n NotificationPreferencesGetResponse,\n NotificationsGetResponse,\n RelaysGetResponse,\n} from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getNotificationsResponse200 = { data: NotificationsGetResponse; status: 200 };\n\nexport type getNotificationsResponse400 = { data: AsError; status: 400 };\n\nexport type getNotificationsResponse401 = { data: void; status: 401 };\n\nexport type getNotificationsResponse403 = { data: AsError; status: 403 };\n\nexport type getNotificationsResponseSuccess = getNotificationsResponse200 & { headers: Headers };\nexport type getNotificationsResponseError = (\n | getNotificationsResponse400\n | getNotificationsResponse401\n | getNotificationsResponse403\n) & { headers: Headers };\n\nexport type getNotificationsResponse =\n | getNotificationsResponseSuccess\n | getNotificationsResponseError;\n\nexport const getGetNotificationsUrl = (params?: GetNotificationsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/notification?${stringifiedParams}` : `/notification`;\n};\n\n/**\n * Gets Notifications, newest first - who was told about an Incident, over which Relay, and how it went.\n *\n * Each Notification has exactly one delivery attempt and is never retried, so the `reason` of a `FAILED` Notification is the whole of its delivery record, and is returned in full.\n *\n * You need admin rights to use this path.\n * @summary Gets Notifications\n */\nexport const getNotifications = async (\n params?: GetNotificationsParams,\n options?: RequestInit,\n): Promise<getNotificationsResponse> => {\n return customFetch<getNotificationsResponse>(getGetNotificationsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetNotificationsQueryKey = (params?: GetNotificationsParams) => {\n return [\"account-server\", \"notification\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetNotificationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsQueryResult = NonNullable<Awaited<ReturnType<typeof getNotifications>>>;\nexport type GetNotificationsQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n Awaited<ReturnType<typeof getNotifications>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotifications<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Notifications\n */\nexport const invalidateGetNotifications = async (\n queryClient: QueryClient,\n params?: GetNotificationsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetNotificationsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetNotificationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotifications>>> = ({ signal }) =>\n getNotifications(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getNotifications>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotifications>>\n>;\nexport type GetNotificationsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetNotificationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Notifications\n */\n\nexport function useGetNotificationsSuspense<\n TData = Awaited<ReturnType<typeof getNotifications>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetNotificationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotifications>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getIncidentsResponse200 = { data: IncidentsGetResponse; status: 200 };\n\nexport type getIncidentsResponse400 = { data: AsError; status: 400 };\n\nexport type getIncidentsResponse401 = { data: void; status: 401 };\n\nexport type getIncidentsResponse403 = { data: AsError; status: 403 };\n\nexport type getIncidentsResponseSuccess = getIncidentsResponse200 & { headers: Headers };\nexport type getIncidentsResponseError = (\n | getIncidentsResponse400\n | getIncidentsResponse401\n | getIncidentsResponse403\n) & { headers: Headers };\n\nexport type getIncidentsResponse = getIncidentsResponseSuccess | getIncidentsResponseError;\n\nexport const getGetIncidentsUrl = (params?: GetIncidentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/incident?${stringifiedParams}` : `/incident`;\n};\n\n/**\n * Gets Incidents, newest first - the conditions the Account Server has detected, each recorded once however many people were told.\n *\n * You need admin rights to use this path.\n * @summary Gets Incidents\n */\nexport const getIncidents = async (\n params?: GetIncidentsParams,\n options?: RequestInit,\n): Promise<getIncidentsResponse> => {\n return customFetch<getIncidentsResponse>(getGetIncidentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetIncidentsQueryKey = (params?: GetIncidentsParams) => {\n return [\"account-server\", \"incident\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetIncidentsQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n Awaited<ReturnType<typeof getIncidents>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidents<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets Incidents\n */\nexport const invalidateGetIncidents = async (\n queryClient: QueryClient,\n params?: GetIncidentsParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetIncidentsQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetIncidentsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidents>>> = ({ signal }) =>\n getIncidents(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getIncidents>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidents>>>;\nexport type GetIncidentsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params: undefined | GetIncidentsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Incidents\n */\n\nexport function useGetIncidentsSuspense<\n TData = Awaited<ReturnType<typeof getIncidents>>,\n TError = ErrorType<AsError | void>,\n>(\n params?: GetIncidentsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidents>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentsSuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getIncidentKindsResponse200 = { data: IncidentKindsGetResponse; status: 200 };\n\nexport type getIncidentKindsResponse401 = { data: void; status: 401 };\n\nexport type getIncidentKindsResponseSuccess = getIncidentKindsResponse200 & { headers: Headers };\nexport type getIncidentKindsResponseError = getIncidentKindsResponse401 & { headers: Headers };\n\nexport type getIncidentKindsResponse =\n | getIncidentKindsResponseSuccess\n | getIncidentKindsResponseError;\n\nexport const getGetIncidentKindsUrl = () => {\n return `/incident-kind`;\n};\n\n/**\n * 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.\n * @summary Gets the Incident Kinds\n */\nexport const getIncidentKinds = async (\n options?: RequestInit,\n): Promise<getIncidentKindsResponse> => {\n return customFetch<getIncidentKindsResponse>(getGetIncidentKindsUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetIncidentKindsQueryKey = () => {\n return [\"account-server\", \"incident-kind\"] as const;\n};\n\nexport const getGetIncidentKindsQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidentKinds>>> = ({ signal }) =>\n getIncidentKinds({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getIncidentKinds>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentKindsQueryResult = NonNullable<Awaited<ReturnType<typeof getIncidentKinds>>>;\nexport type GetIncidentKindsQueryError = ErrorType<void>;\n\nexport function useGetIncidentKinds<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidentKinds>>,\n TError,\n Awaited<ReturnType<typeof getIncidentKinds>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentKinds<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getIncidentKinds>>,\n TError,\n Awaited<ReturnType<typeof getIncidentKinds>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentKinds<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Incident Kinds\n */\n\nexport function useGetIncidentKinds<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentKindsQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets the Incident Kinds\n */\nexport const invalidateGetIncidentKinds = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetIncidentKindsQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetIncidentKindsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetIncidentKindsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getIncidentKinds>>> = ({ signal }) =>\n getIncidentKinds({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getIncidentKinds>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetIncidentKindsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getIncidentKinds>>\n>;\nexport type GetIncidentKindsSuspenseQueryError = ErrorType<void>;\n\nexport function useGetIncidentKindsSuspense<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentKindsSuspense<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetIncidentKindsSuspense<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Incident Kinds\n */\n\nexport function useGetIncidentKindsSuspense<\n TData = Awaited<ReturnType<typeof getIncidentKinds>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getIncidentKinds>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetIncidentKindsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getRelaysResponse200 = { data: RelaysGetResponse; status: 200 };\n\nexport type getRelaysResponse401 = { data: void; status: 401 };\n\nexport type getRelaysResponseSuccess = getRelaysResponse200 & { headers: Headers };\nexport type getRelaysResponseError = getRelaysResponse401 & { headers: Headers };\n\nexport type getRelaysResponse = getRelaysResponseSuccess | getRelaysResponseError;\n\nexport const getGetRelaysUrl = () => {\n return `/relay`;\n};\n\n/**\n * 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.\n * @summary Gets the Relays\n */\nexport const getRelays = async (options?: RequestInit): Promise<getRelaysResponse> => {\n return customFetch<getRelaysResponse>(getGetRelaysUrl(), { ...options, method: \"GET\" });\n};\n\nexport const getGetRelaysQueryKey = () => {\n return [\"account-server\", \"relay\"] as const;\n};\n\nexport const getGetRelaysQueryOptions = <\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getRelays>>> = ({ signal }) =>\n getRelays({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getRelays>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetRelaysQueryResult = NonNullable<Awaited<ReturnType<typeof getRelays>>>;\nexport type GetRelaysQueryError = ErrorType<void>;\n\nexport function useGetRelays<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getRelays>>,\n TError,\n Awaited<ReturnType<typeof getRelays>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetRelays<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getRelays>>,\n TError,\n Awaited<ReturnType<typeof getRelays>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetRelays<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Relays\n */\n\nexport function useGetRelays<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetRelaysQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets the Relays\n */\nexport const invalidateGetRelays = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetRelaysQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetRelaysSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetRelaysQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getRelays>>> = ({ signal }) =>\n getRelays({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getRelays>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetRelaysSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getRelays>>>;\nexport type GetRelaysSuspenseQueryError = ErrorType<void>;\n\nexport function useGetRelaysSuspense<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options: {\n query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetRelaysSuspense<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetRelaysSuspense<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the Relays\n */\n\nexport function useGetRelaysSuspense<\n TData = Awaited<ReturnType<typeof getRelays>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getRelays>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetRelaysSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type getNotificationPreferencesResponse200 = {\n data: NotificationPreferencesGetResponse;\n status: 200;\n};\n\nexport type getNotificationPreferencesResponse401 = { data: void; status: 401 };\n\nexport type getNotificationPreferencesResponseSuccess = getNotificationPreferencesResponse200 & {\n headers: Headers;\n};\nexport type getNotificationPreferencesResponseError = getNotificationPreferencesResponse401 & {\n headers: Headers;\n};\n\nexport type getNotificationPreferencesResponse =\n | getNotificationPreferencesResponseSuccess\n | getNotificationPreferencesResponseError;\n\nexport const getGetNotificationPreferencesUrl = () => {\n return `/notification-preference`;\n};\n\n/**\n * 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.\n * @summary Gets your Notification Preferences\n */\nexport const getNotificationPreferences = async (\n options?: RequestInit,\n): Promise<getNotificationPreferencesResponse> => {\n return customFetch<getNotificationPreferencesResponse>(getGetNotificationPreferencesUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetNotificationPreferencesQueryKey = () => {\n return [\"account-server\", \"notification-preference\"] as const;\n};\n\nexport const getGetNotificationPreferencesQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotificationPreferences>>> = ({\n signal,\n }) => getNotificationPreferences({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationPreferencesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotificationPreferences>>\n>;\nexport type GetNotificationPreferencesQueryError = ErrorType<void>;\n\nexport function useGetNotificationPreferences<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError,\n Awaited<ReturnType<typeof getNotificationPreferences>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationPreferences<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError,\n Awaited<ReturnType<typeof getNotificationPreferences>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationPreferences<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets your Notification Preferences\n */\n\nexport function useGetNotificationPreferences<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationPreferencesQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Gets your Notification Preferences\n */\nexport const invalidateGetNotificationPreferences = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries(\n { queryKey: getGetNotificationPreferencesQueryKey() },\n options,\n );\n\n return queryClient;\n};\n\nexport const getGetNotificationPreferencesSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetNotificationPreferencesQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getNotificationPreferences>>> = ({\n signal,\n }) => getNotificationPreferences({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetNotificationPreferencesSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getNotificationPreferences>>\n>;\nexport type GetNotificationPreferencesSuspenseQueryError = ErrorType<void>;\n\nexport function useGetNotificationPreferencesSuspense<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationPreferencesSuspense<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetNotificationPreferencesSuspense<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets your Notification Preferences\n */\n\nexport function useGetNotificationPreferencesSuspense<\n TData = Awaited<ReturnType<typeof getNotificationPreferences>>,\n TError = ErrorType<void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getNotificationPreferences>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetNotificationPreferencesSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\nexport type enableNotificationPreferenceResponse204 = { data: void; status: 204 };\n\nexport type enableNotificationPreferenceResponse401 = { data: void; status: 401 };\n\nexport type enableNotificationPreferenceResponse404 = { data: AsError; status: 404 };\n\nexport type enableNotificationPreferenceResponse422 = { data: AsError; status: 422 };\n\nexport type enableNotificationPreferenceResponseSuccess =\n enableNotificationPreferenceResponse204 & { headers: Headers };\nexport type enableNotificationPreferenceResponseError = (\n | enableNotificationPreferenceResponse401\n | enableNotificationPreferenceResponse404\n | enableNotificationPreferenceResponse422\n) & { headers: Headers };\n\nexport type enableNotificationPreferenceResponse =\n | enableNotificationPreferenceResponseSuccess\n | enableNotificationPreferenceResponseError;\n\nexport const getEnableNotificationPreferenceUrl = (kind: string, relay: string) => {\n return `/notification-preference/${kind}/${relay}/enable`;\n};\n\n/**\n * 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.\n *\n * You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.\n * @summary Enables an Incident Kind over a Relay for you\n */\nexport const enableNotificationPreference = async (\n kind: string,\n relay: string,\n options?: RequestInit,\n): Promise<enableNotificationPreferenceResponse> => {\n return customFetch<enableNotificationPreferenceResponse>(\n getEnableNotificationPreferenceUrl(kind, relay),\n { ...options, method: \"PUT\" },\n );\n};\n\nexport const getEnableNotificationPreferenceMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof enableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof enableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n> => {\n const mutationKey = [\"enableNotificationPreference\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof enableNotificationPreference>>,\n { kind: string; relay: string }\n > = (props) => {\n const { kind, relay } = props ?? {};\n\n return enableNotificationPreference(kind, relay, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type EnableNotificationPreferenceMutationResult = NonNullable<\n Awaited<ReturnType<typeof enableNotificationPreference>>\n>;\n\nexport type EnableNotificationPreferenceMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Enables an Incident Kind over a Relay for you\n */\nexport const useEnableNotificationPreference = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof enableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof enableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n> => {\n return useMutation(getEnableNotificationPreferenceMutationOptions(options), queryClient);\n};\nexport type disableNotificationPreferenceResponse204 = { data: void; status: 204 };\n\nexport type disableNotificationPreferenceResponse401 = { data: void; status: 401 };\n\nexport type disableNotificationPreferenceResponse404 = { data: AsError; status: 404 };\n\nexport type disableNotificationPreferenceResponse422 = { data: AsError; status: 422 };\n\nexport type disableNotificationPreferenceResponseSuccess =\n disableNotificationPreferenceResponse204 & { headers: Headers };\nexport type disableNotificationPreferenceResponseError = (\n | disableNotificationPreferenceResponse401\n | disableNotificationPreferenceResponse404\n | disableNotificationPreferenceResponse422\n) & { headers: Headers };\n\nexport type disableNotificationPreferenceResponse =\n | disableNotificationPreferenceResponseSuccess\n | disableNotificationPreferenceResponseError;\n\nexport const getDisableNotificationPreferenceUrl = (kind: string, relay: string) => {\n return `/notification-preference/${kind}/${relay}/disable`;\n};\n\n/**\n * 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.\n *\n * You cannot set a Critical kind (it always reaches you), and you cannot set a Relay that is disabled.\n * @summary Disables an Incident Kind over a Relay for you\n */\nexport const disableNotificationPreference = async (\n kind: string,\n relay: string,\n options?: RequestInit,\n): Promise<disableNotificationPreferenceResponse> => {\n return customFetch<disableNotificationPreferenceResponse>(\n getDisableNotificationPreferenceUrl(kind, relay),\n { ...options, method: \"PUT\" },\n );\n};\n\nexport const getDisableNotificationPreferenceMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof disableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof disableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n> => {\n const mutationKey = [\"disableNotificationPreference\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof disableNotificationPreference>>,\n { kind: string; relay: string }\n > = (props) => {\n const { kind, relay } = props ?? {};\n\n return disableNotificationPreference(kind, relay, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type DisableNotificationPreferenceMutationResult = NonNullable<\n Awaited<ReturnType<typeof disableNotificationPreference>>\n>;\n\nexport type DisableNotificationPreferenceMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Disables an Incident Kind over a Relay for you\n */\nexport const useDisableNotificationPreference = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof disableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof disableNotificationPreference>>,\n TError,\n { kind: string; relay: string },\n TContext\n> => {\n return useMutation(getDisableNotificationPreferenceMutationOptions(options), queryClient);\n};\n"],"mappings":"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"}
|