Loading console/console.pb.go +756 −735 File changed.Preview size limit exceeded, changes collapsed. Show changes console/console.proto +4 −0 Original line number Diff line number Diff line Loading @@ -727,6 +727,10 @@ message ListChannelMessagesRequest { string user_id_two = 5; // Cursor to start from string cursor = 6; // Whether to list messages from oldest to newest, or newest to oldest. bool forward = 7; // Timestamp to list messages around, if no cursor is provided int64 haystack_sec = 8; } // List (and optionally filter) groups. Loading console/console.swagger.json +15 −0 Original line number Diff line number Diff line Loading @@ -1180,6 +1180,21 @@ "in": "query", "required": false, "type": "string" }, { "name": "forward", "description": "Whether to list messages from oldest to newest, or newest to oldest.", "in": "query", "required": false, "type": "boolean" }, { "name": "haystack_sec", "description": "Timestamp to list messages around, if no cursor is provided.", "in": "query", "required": false, "type": "string", "format": "int64" } ], "tags": [ Loading console/ui/src/app/console.service.ts +7 −1 Original line number Diff line number Diff line Loading @@ -1057,7 +1057,7 @@ export class ConsoleService { } /** List channel messages with the selected filter */ listChannelMessages(auth_token: string, type?: string, label?: string, group_id?: string, user_id_one?: string, user_id_two?: string, cursor?: string): Observable<ApiChannelMessageList> { listChannelMessages(auth_token: string, type?: string, label?: string, group_id?: string, user_id_one?: string, user_id_two?: string, cursor?: string, forward?: boolean, haystack_sec?: string): Observable<ApiChannelMessageList> { const urlPath = `/v2/console/channel`; let params = new HttpParams(); if (type) { Loading @@ -1078,6 +1078,12 @@ export class ConsoleService { if (cursor) { params = params.set('cursor', cursor); } if (forward || forward === false) { params = params.set('forward', String(forward)); } if (haystack_sec) { params = params.set('haystack_sec', haystack_sec); } return this.httpClient.get<ApiChannelMessageList>(this.config.host + urlPath, { params: params, headers: this.getTokenAuthHeaders(auth_token) }) } Loading Loading
console/console.pb.go +756 −735 File changed.Preview size limit exceeded, changes collapsed. Show changes
console/console.proto +4 −0 Original line number Diff line number Diff line Loading @@ -727,6 +727,10 @@ message ListChannelMessagesRequest { string user_id_two = 5; // Cursor to start from string cursor = 6; // Whether to list messages from oldest to newest, or newest to oldest. bool forward = 7; // Timestamp to list messages around, if no cursor is provided int64 haystack_sec = 8; } // List (and optionally filter) groups. Loading
console/console.swagger.json +15 −0 Original line number Diff line number Diff line Loading @@ -1180,6 +1180,21 @@ "in": "query", "required": false, "type": "string" }, { "name": "forward", "description": "Whether to list messages from oldest to newest, or newest to oldest.", "in": "query", "required": false, "type": "boolean" }, { "name": "haystack_sec", "description": "Timestamp to list messages around, if no cursor is provided.", "in": "query", "required": false, "type": "string", "format": "int64" } ], "tags": [ Loading
console/ui/src/app/console.service.ts +7 −1 Original line number Diff line number Diff line Loading @@ -1057,7 +1057,7 @@ export class ConsoleService { } /** List channel messages with the selected filter */ listChannelMessages(auth_token: string, type?: string, label?: string, group_id?: string, user_id_one?: string, user_id_two?: string, cursor?: string): Observable<ApiChannelMessageList> { listChannelMessages(auth_token: string, type?: string, label?: string, group_id?: string, user_id_one?: string, user_id_two?: string, cursor?: string, forward?: boolean, haystack_sec?: string): Observable<ApiChannelMessageList> { const urlPath = `/v2/console/channel`; let params = new HttpParams(); if (type) { Loading @@ -1078,6 +1078,12 @@ export class ConsoleService { if (cursor) { params = params.set('cursor', cursor); } if (forward || forward === false) { params = params.set('forward', String(forward)); } if (haystack_sec) { params = params.set('haystack_sec', haystack_sec); } return this.httpClient.get<ApiChannelMessageList>(this.config.host + urlPath, { params: params, headers: this.getTokenAuthHeaders(auth_token) }) } Loading