fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
173 lines • 3.8 kB
TypeScript
/**
* fastcomments
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { NotificationObjectType } from './NotificationObjectType';
import type { NotificationType } from './NotificationType';
/**
*
* @export
* @interface UserNotification
*/
export interface UserNotification {
/**
*
* @type {string}
* @memberof UserNotification
*/
id: string;
/**
*
* @type {string}
* @memberof UserNotification
*/
tenantId: string;
/**
*
* @type {string}
* @memberof UserNotification
*/
userId?: string | null;
/**
*
* @type {string}
* @memberof UserNotification
*/
anonUserId?: string | null;
/**
*
* @type {string}
* @memberof UserNotification
*/
urlId: string;
/**
*
* @type {string}
* @memberof UserNotification
*/
url: string;
/**
*
* @type {string}
* @memberof UserNotification
*/
pageTitle?: string | null;
/**
*
* @type {NotificationObjectType}
* @memberof UserNotification
*/
relatedObjectType: NotificationObjectType;
/**
*
* @type {string}
* @memberof UserNotification
*/
relatedObjectId: string;
/**
*
* @type {boolean}
* @memberof UserNotification
*/
viewed: boolean;
/**
*
* @type {boolean}
* @memberof UserNotification
*/
isUnreadMessage: boolean;
/**
*
* @type {boolean}
* @memberof UserNotification
*/
sent: boolean;
/**
*
* @type {Date}
* @memberof UserNotification
*/
createdAt: Date;
/**
*
* @type {NotificationType}
* @memberof UserNotification
*/
type: NotificationType;
/**
*
* @type {string}
* @memberof UserNotification
*/
fromCommentId?: string | null;
/**
*
* @type {string}
* @memberof UserNotification
*/
fromVoteId?: string | null;
/**
*
* @type {string}
* @memberof UserNotification
*/
fromUserName?: string | null;
/**
*
* @type {string}
* @memberof UserNotification
*/
fromUserId?: string | null;
/**
*
* @type {string}
* @memberof UserNotification
*/
fromUserAvatarSrc?: string | null;
/**
*
* @type {boolean}
* @memberof UserNotification
*/
optedOut: boolean;
/**
*
* @type {number}
* @memberof UserNotification
*/
count?: number;
/**
*
* @type {Array<string>}
* @memberof UserNotification
*/
relatedIds?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof UserNotification
*/
fromUserIds?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof UserNotification
*/
fromUserNames?: Array<string>;
}
/**
* Check if a given object implements the UserNotification interface.
*/
export declare function instanceOfUserNotification(value: object): value is UserNotification;
export declare function UserNotificationFromJSON(json: any): UserNotification;
export declare function UserNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserNotification;
export declare function UserNotificationToJSON(json: any): UserNotification;
export declare function UserNotificationToJSONTyped(value?: UserNotification | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=UserNotification.d.ts.map