mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-10 20:37:49 +00:00
117 lines
2.6 KiB
TypeScript
117 lines
2.6 KiB
TypeScript
/*
|
|
* Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
|
|
*/
|
|
|
|
import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils";
|
|
import { AxiosResponse } from "axios";
|
|
import { Expose, Type } from "class-transformer";
|
|
|
|
export class Data extends SpeakeasyBase {
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "badge_id" })
|
|
badgeId?: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "badge_name" })
|
|
badgeName?: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "badge_slug" })
|
|
badgeSlug?: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "badge_title" })
|
|
badgeTitle?: boolean;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "username" })
|
|
username?: string;
|
|
}
|
|
|
|
export class Notifications extends SpeakeasyBase {
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "created_at" })
|
|
createdAt?: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "data" })
|
|
@Type(() => Data)
|
|
data?: Data;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "id" })
|
|
id?: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "notification_type" })
|
|
notificationType?: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "post_number" })
|
|
postNumber?: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "read" })
|
|
read?: boolean;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "slug" })
|
|
slug?: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "topic_id" })
|
|
topicId?: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "user_id" })
|
|
userId?: number;
|
|
}
|
|
|
|
/**
|
|
* notifications
|
|
*/
|
|
export class GetNotificationsResponseBody extends SpeakeasyBase {
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "load_more_notifications" })
|
|
loadMoreNotifications?: string;
|
|
|
|
@SpeakeasyMetadata({ elemType: Notifications })
|
|
@Expose({ name: "notifications" })
|
|
@Type(() => Notifications)
|
|
notifications?: Notifications[];
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "seen_notification_id" })
|
|
seenNotificationId?: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "total_rows_notifications" })
|
|
totalRowsNotifications?: number;
|
|
}
|
|
|
|
export class GetNotificationsResponse extends SpeakeasyBase {
|
|
/**
|
|
* HTTP response content type for this operation
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
contentType: string;
|
|
|
|
/**
|
|
* HTTP response status code for this operation
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
statusCode: number;
|
|
|
|
/**
|
|
* Raw HTTP response; suitable for custom response parsing
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
rawResponse: AxiosResponse;
|
|
|
|
/**
|
|
* notifications
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
object?: GetNotificationsResponseBody;
|
|
}
|