/** * Notifications API * An API to create and read notifications * * The version of the OpenAPI document: 1.0.0 * Contact: DevTeamProduct@digitalrealty.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime.js'; import type { GetNotifications200Response, Notification, NotificationBulkPatch, NotificationBulkPatchResult, NotificationDelete, NotificationPatch, NotificationRequest, Status } from '../models/index.js'; export interface CreateNotificationRequest { notificationRequest?: NotificationRequest; } export interface DeleteNotificationsByIdRequest { id: string; } export interface GetNotificationsRequest { sort?: string; cursor?: string; resourceType?: string; accountNumber?: string; createdAfter?: Date; createdBefore?: Date; locationId?: string; subGroup?: string; status?: Status; prefer?: Array; } export interface GetNotificationsByIdRequest { id: string; } export interface PatchNotificationsRequest { notificationBulkPatch: NotificationBulkPatch; } export interface PatchNotificationsByIdRequest { id: string; notificationPatch?: NotificationPatch; } /** * */ export declare class NotificationsApi extends runtime.BaseAPI { /** * Submit notification to be sent to user */ createNotificationRaw(requestParameters: CreateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Submit notification to be sent to user */ createNotification(requestParameters?: CreateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Delete a notification by id */ deleteNotificationsByIdRaw(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a notification by id */ deleteNotificationsById(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get all notifications */ getNotificationsRaw(requestParameters: GetNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get all notifications */ getNotifications(requestParameters?: GetNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get an notification by id */ getNotificationsByIdRaw(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get an notification by id */ getNotificationsById(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Bulk update notifications for the authenticated user (by email and permitted account numbers) */ patchNotificationsRaw(requestParameters: PatchNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Bulk update notifications for the authenticated user (by email and permitted account numbers) */ patchNotifications(requestParameters: PatchNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Update specific fields on a notification by id */ patchNotificationsByIdRaw(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update specific fields on a notification by id */ patchNotificationsById(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }