Skip to content

Commit

Permalink
JS definitions fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sesposito committed Oct 21, 2024
1 parent 9acdc48 commit 2baa78a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2633,21 +2633,23 @@ declare namespace nkruntime {
/**
* Notification Object
*/
export interface NotificationApi {
export interface ApiNotification {
id: string;
code: number;
content: {[key: string]: any};
persistent: boolean;
sender: string;
senderId: string;
subject: string;
createTime: number;
}

export interface Notification {
id: string;
code: number;
content: {[key: string]: any};
persistent: boolean;
senderId: string;
userId: string;
senderId: string;
subject: string;
createTime: number;
}
Expand All @@ -2667,13 +2669,13 @@ declare namespace nkruntime {
}

export interface ApiNotificationList {
notifications?: NotificationApi[];
notifications?: ApiNotification[];
cacheableCursor?: string;
}

export interface NotificationsList {
notifications: Notification[];
cursor: string;
notifications: ApiNotification[];
cursor: string;
}

/**
Expand Down

0 comments on commit 2baa78a

Please sign in to comment.