mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
notification cursor
This commit is contained in:
committed by
Aiden McClelland
parent
9a75474aa9
commit
2a8224abcf
@@ -637,7 +637,7 @@ export module Mock {
|
||||
|
||||
export const Notifications: ServerNotifications = [
|
||||
{
|
||||
id: '123e4567-e89b-12d3-a456-426655440000',
|
||||
id: 1,
|
||||
'package-id': null,
|
||||
'created-at': '2019-12-26T14:20:30.872Z',
|
||||
code: 1,
|
||||
@@ -657,7 +657,7 @@ export module Mock {
|
||||
},
|
||||
},
|
||||
{
|
||||
id: '123e4567-e89b-12d3-a456-426655440001',
|
||||
id: 2,
|
||||
'package-id': 'bitcoind',
|
||||
'created-at': '2019-12-26T14:20:30.872Z',
|
||||
code: 2,
|
||||
@@ -667,7 +667,7 @@ export module Mock {
|
||||
data: null,
|
||||
},
|
||||
{
|
||||
id: '123e4567-e89b-12d3-a456-426655440002',
|
||||
id: 3,
|
||||
'package-id': 'bitcoind',
|
||||
'created-at': '2019-12-26T14:20:30.872Z',
|
||||
code: 3,
|
||||
@@ -677,7 +677,7 @@ export module Mock {
|
||||
data: null,
|
||||
},
|
||||
{
|
||||
id: '123e4567-e89b-12d3-a456-426655440003',
|
||||
id: 4,
|
||||
'package-id': 'bitcoind',
|
||||
'created-at': '2019-12-26T14:20:30.872Z',
|
||||
code: 4,
|
||||
|
||||
@@ -68,7 +68,7 @@ export module RR {
|
||||
|
||||
// notification
|
||||
|
||||
export type GetNotificationsReq = WithExpire<{ page: number, 'per-page': number }> // notification.list
|
||||
export type GetNotificationsReq = WithExpire<{ before?: number, after?: number, limit?: number }> // notification.list
|
||||
export type GetNotificationsRes = WithRevision<ServerNotification<number>[]>
|
||||
|
||||
export type DeleteNotificationReq = { id: string } // notification.delete
|
||||
@@ -326,7 +326,7 @@ export interface SSHKeyEntry {
|
||||
export type ServerNotifications = ServerNotification<any>[]
|
||||
|
||||
export interface ServerNotification<T extends number> {
|
||||
id: string
|
||||
id: number
|
||||
'package-id': string | null
|
||||
'created-at': string
|
||||
code: T
|
||||
|
||||
Reference in New Issue
Block a user