refactor(core): simplify session pagination
This commit is contained in:
parent
1b85d55a0e
commit
8d03f6c5be
7 changed files with 154 additions and 201 deletions
|
|
@ -4342,14 +4342,13 @@ export class Session3 extends HeyApiClient {
|
|||
*/
|
||||
public list<ThrowOnError extends boolean = false>(
|
||||
parameters?: {
|
||||
directory?: string
|
||||
workspace?: string
|
||||
limit?: number
|
||||
order?: "asc" | "desc"
|
||||
path?: string
|
||||
roots?: boolean | "true" | "false"
|
||||
start?: number
|
||||
search?: string
|
||||
directory?: string
|
||||
project?: string
|
||||
subpath?: string
|
||||
cursor?: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
|
|
@ -4359,14 +4358,13 @@ export class Session3 extends HeyApiClient {
|
|||
[
|
||||
{
|
||||
args: [
|
||||
{ in: "query", key: "directory" },
|
||||
{ in: "query", key: "workspace" },
|
||||
{ in: "query", key: "limit" },
|
||||
{ in: "query", key: "order" },
|
||||
{ in: "query", key: "path" },
|
||||
{ in: "query", key: "roots" },
|
||||
{ in: "query", key: "start" },
|
||||
{ in: "query", key: "search" },
|
||||
{ in: "query", key: "directory" },
|
||||
{ in: "query", key: "project" },
|
||||
{ in: "query", key: "subpath" },
|
||||
{ in: "query", key: "cursor" },
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7969,16 +7969,15 @@ export type V2SessionListData = {
|
|||
body?: never
|
||||
path?: never
|
||||
query?: {
|
||||
directory?: string
|
||||
workspace?: string
|
||||
limit?: number
|
||||
order?: "asc" | "desc"
|
||||
path?: string
|
||||
roots?: boolean | "true" | "false"
|
||||
start?: number
|
||||
search?: string
|
||||
directory?: string
|
||||
project?: string
|
||||
subpath?: string
|
||||
/**
|
||||
* Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order or filters.
|
||||
* Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response.
|
||||
*/
|
||||
cursor?: string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue