Merge pull request #125 from nbtca/fix-pagination

fix pagination
This commit is contained in:
clas 2025-11-23 16:49:47 +08:00 committed by GitHub
commit f6030a5db5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 187 additions and 181 deletions

View file

@ -444,10 +444,10 @@ export interface components {
schemas: { schemas: {
"ActivateMemberRequest": { "ActivateMemberRequest": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/ActivateMemberRequest.json * @example https://api.nbtca.space/schemas/ActivateMemberRequest.json
*/ */
readonly $schema?: string readonly $schema?: string
MemberId: string MemberId: string
alias: string alias: string
@ -458,29 +458,29 @@ export interface components {
} }
"AlterCommitEventInputBody": { "AlterCommitEventInputBody": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/AlterCommitEventInputBody.json * @example https://api.nbtca.space/schemas/AlterCommitEventInputBody.json
*/ */
readonly $schema?: string readonly $schema?: string
content: string content: string
size?: string size?: string
} }
"Bind-member-logto-idRequest": { "Bind-member-logto-idRequest": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/Bind-member-logto-idRequest.json * @example https://api.nbtca.space/schemas/Bind-member-logto-idRequest.json
*/ */
readonly $schema?: string readonly $schema?: string
password: string password: string
} }
"ClientTokenResponse": { "ClientTokenResponse": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/ClientTokenResponse.json * @example https://api.nbtca.space/schemas/ClientTokenResponse.json
*/ */
readonly $schema?: string readonly $schema?: string
/** Format: int64 */ /** Format: int64 */
clientId: number clientId: number
@ -492,38 +492,38 @@ export interface components {
} }
"CommitEventInputBody": { "CommitEventInputBody": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/CommitEventInputBody.json * @example https://api.nbtca.space/schemas/CommitEventInputBody.json
*/ */
readonly $schema?: string readonly $schema?: string
content: string content: string
size?: string size?: string
} }
"Create-token-via-wechatRequest": { "Create-token-via-wechatRequest": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/Create-token-via-wechatRequest.json * @example https://api.nbtca.space/schemas/Create-token-via-wechatRequest.json
*/ */
readonly $schema?: string readonly $schema?: string
code: string code: string
} }
"Create-tokenRequest": { "Create-tokenRequest": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/Create-tokenRequest.json * @example https://api.nbtca.space/schemas/Create-tokenRequest.json
*/ */
readonly $schema?: string readonly $schema?: string
password: string password: string
} }
"CreateClientEventInputBody": { "CreateClientEventInputBody": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/CreateClientEventInputBody.json * @example https://api.nbtca.space/schemas/CreateClientEventInputBody.json
*/ */
readonly $schema?: string readonly $schema?: string
contactPreference?: string contactPreference?: string
model?: string model?: string
@ -533,10 +533,10 @@ export interface components {
} }
"CreateMemberRequest": { "CreateMemberRequest": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/CreateMemberRequest.json * @example https://api.nbtca.space/schemas/CreateMemberRequest.json
*/ */
readonly $schema?: string readonly $schema?: string
alias: string alias: string
avatar: string avatar: string
@ -551,10 +551,10 @@ export interface components {
} }
"CreateMemberTokenResponse": { "CreateMemberTokenResponse": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/CreateMemberTokenResponse.json * @example https://api.nbtca.space/schemas/CreateMemberTokenResponse.json
*/ */
readonly $schema?: string readonly $schema?: string
alias: string alias: string
avatar: string avatar: string
@ -583,49 +583,49 @@ export interface components {
} }
"ErrorModel": { "ErrorModel": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/ErrorModel.json * @example https://api.nbtca.space/schemas/ErrorModel.json
*/ */
readonly $schema?: string readonly $schema?: string
/** /**
* @description A human-readable explanation specific to this occurrence of the problem. * @description A human-readable explanation specific to this occurrence of the problem.
* @example Property foo is required but is missing. * @example Property foo is required but is missing.
*/ */
detail?: string detail?: string
/** @description Optional list of individual error details */ /** @description Optional list of individual error details */
errors?: components["schemas"]["ErrorDetail"][] | null errors?: components["schemas"]["ErrorDetail"][] | null
/** /**
* Format: uri * Format: uri
* @description A URI reference that identifies the specific occurrence of the problem. * @description A URI reference that identifies the specific occurrence of the problem.
* @example https://example.com/error-log/abc123 * @example https://example.com/error-log/abc123
*/ */
instance?: string instance?: string
/** /**
* Format: int64 * Format: int64
* @description HTTP status code * @description HTTP status code
* @example 400 * @example 400
*/ */
status?: number status?: number
/** /**
* @description A short, human-readable summary of the problem type. This value should not change between occurrences of the error. * @description A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
* @example Bad Request * @example Bad Request
*/ */
title?: string title?: string
/** /**
* Format: uri * Format: uri
* @description A URI reference to human-readable documentation for the error. * @description A URI reference to human-readable documentation for the error.
* @default about:blank * @default about:blank
* @example https://example.com/errors/example * @example https://example.com/errors/example
*/ */
type: string type: string
} }
"Event": { "Event": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/Event.json * @example https://api.nbtca.space/schemas/Event.json
*/ */
readonly $schema?: string readonly $schema?: string
/** Format: int64 */ /** Format: int64 */
clientId: number clientId: number
@ -662,10 +662,10 @@ export interface components {
} }
"Member": { "Member": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/Member.json * @example https://api.nbtca.space/schemas/Member.json
*/ */
readonly $schema?: string readonly $schema?: string
alias: string alias: string
avatar: string avatar: string
@ -700,23 +700,23 @@ export interface components {
} }
"PingResponse": { "PingResponse": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/PingResponse.json * @example https://api.nbtca.space/schemas/PingResponse.json
*/ */
readonly $schema?: string readonly $schema?: string
/** /**
* @description Ping message * @description Ping message
* @example ping * @example ping
*/ */
message: string message: string
} }
"PublicEvent": { "PublicEvent": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/PublicEvent.json * @example https://api.nbtca.space/schemas/PublicEvent.json
*/ */
readonly $schema?: string readonly $schema?: string
/** Format: int64 */ /** Format: int64 */
clientId: number clientId: number
@ -738,10 +738,10 @@ export interface components {
} }
"PublicMember": { "PublicMember": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/PublicMember.json * @example https://api.nbtca.space/schemas/PublicMember.json
*/ */
readonly $schema?: string readonly $schema?: string
alias: string alias: string
avatar: string avatar: string
@ -754,10 +754,10 @@ export interface components {
} }
"UpdateClientEventInputBody": { "UpdateClientEventInputBody": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/UpdateClientEventInputBody.json * @example https://api.nbtca.space/schemas/UpdateClientEventInputBody.json
*/ */
readonly $schema?: string readonly $schema?: string
contactPreference?: string contactPreference?: string
model?: string model?: string
@ -768,20 +768,20 @@ export interface components {
} }
"UpdateMemberAvatarInputBody": { "UpdateMemberAvatarInputBody": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/UpdateMemberAvatarInputBody.json * @example https://api.nbtca.space/schemas/UpdateMemberAvatarInputBody.json
*/ */
readonly $schema?: string readonly $schema?: string
/** @description Avatar URL */ /** @description Avatar URL */
avatar: string avatar: string
} }
"UpdateMemberBasicRequest": { "UpdateMemberBasicRequest": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/UpdateMemberBasicRequest.json * @example https://api.nbtca.space/schemas/UpdateMemberBasicRequest.json
*/ */
readonly $schema?: string readonly $schema?: string
memberId: string memberId: string
name: string name: string
@ -790,10 +790,10 @@ export interface components {
} }
"UpdateMemberRequest": { "UpdateMemberRequest": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/UpdateMemberRequest.json * @example https://api.nbtca.space/schemas/UpdateMemberRequest.json
*/ */
readonly $schema?: string readonly $schema?: string
MemberId: string MemberId: string
alias: string alias: string
@ -805,10 +805,10 @@ export interface components {
} }
"UpdateNotificationPreferencesInputBody": { "UpdateNotificationPreferencesInputBody": {
/** /**
* Format: uri * Format: uri
* @description A URL to the JSON Schema for this object. * @description A URL to the JSON Schema for this object.
* @example https://api.nbtca.space/schemas/UpdateNotificationPreferencesInputBody.json * @example https://api.nbtca.space/schemas/UpdateNotificationPreferencesInputBody.json
*/ */
readonly $schema?: string readonly $schema?: string
preferences: components["schemas"]["Item"][] | null preferences: components["schemas"]["Item"][] | null
} }
@ -866,14 +866,14 @@ export interface operations {
parameters: { parameters: {
query?: { query?: {
/** /**
* @description Offset * @description Offset
* @example 0 * @example 0
*/ */
offset?: number offset?: number
/** /**
* @description Limit * @description Limit
* @example 50 * @example 50
*/ */
limit?: number limit?: number
status?: string status?: string
order?: string order?: string
@ -921,9 +921,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -964,9 +964,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1007,9 +1007,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1124,14 +1124,14 @@ export interface operations {
parameters: { parameters: {
query?: { query?: {
/** /**
* @description Offset * @description Offset
* @example 0 * @example 0
*/ */
offset?: number offset?: number
/** /**
* @description Limit * @description Limit
* @example 50 * @example 50
*/ */
limit?: number limit?: number
status?: string[] | null status?: string[] | null
order?: string order?: string
@ -1247,9 +1247,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1290,9 +1290,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1488,14 +1488,14 @@ export interface operations {
parameters: { parameters: {
query?: { query?: {
/** /**
* @description Offset * @description Offset
* @example 0 * @example 0
*/ */
offset?: number offset?: number
/** /**
* @description Limit * @description Limit
* @example 50 * @example 50
*/ */
limit?: number limit?: number
status?: string status?: string
order?: string order?: string
@ -1543,9 +1543,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1586,9 +1586,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1629,9 +1629,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1672,9 +1672,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1719,9 +1719,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Event ID * @description Event ID
* @example 123 * @example 123
*/ */
EventId: number EventId: number
} }
cookie?: never cookie?: never
@ -1875,14 +1875,14 @@ export interface operations {
parameters: { parameters: {
query?: { query?: {
/** /**
* @description Offset * @description Offset
* @example 0 * @example 0
*/ */
offset?: number offset?: number
/** /**
* @description Limit * @description Limit
* @example 50 * @example 50
*/ */
limit?: number limit?: number
} }
header?: never header?: never
@ -1961,14 +1961,14 @@ export interface operations {
parameters: { parameters: {
query?: { query?: {
/** /**
* @description Offset * @description Offset
* @example 0 * @example 0
*/ */
offset?: number offset?: number
/** /**
* @description Limit * @description Limit
* @example 50 * @example 50
*/ */
limit?: number limit?: number
} }
header?: { header?: {
@ -2011,9 +2011,9 @@ export interface operations {
header?: never header?: never
path: { path: {
/** /**
* @description Name to greet * @description Name to greet
* @example 2333333333 * @example 2333333333
*/ */
MemberId: string MemberId: string
} }
cookie?: never cookie?: never
@ -2054,9 +2054,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Member ID * @description Member ID
* @example 2333333333 * @example 2333333333
*/ */
MemberId: string MemberId: string
} }
cookie?: never cookie?: never
@ -2101,9 +2101,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Member ID * @description Member ID
* @example 2333333333 * @example 2333333333
*/ */
MemberId: string MemberId: string
} }
cookie?: never cookie?: never
@ -2147,9 +2147,9 @@ export interface operations {
} }
path: { path: {
/** /**
* @description Member Id * @description Member Id
* @example 2333333333 * @example 2333333333
*/ */
MemberId: string MemberId: string
} }
cookie?: never cookie?: never
@ -2191,9 +2191,9 @@ export interface operations {
header?: never header?: never
path: { path: {
/** /**
* @description Member Id * @description Member Id
* @example 2333333333 * @example 2333333333
*/ */
MemberId: string MemberId: string
} }
cookie?: never cookie?: never

View file

@ -6,6 +6,12 @@ export const saturdayApiBaseUrl = import.meta.env.PROD ? "https://api.nbtca.spac
export const saturdayClient = createClient<saturdayPaths>({ export const saturdayClient = createClient<saturdayPaths>({
baseUrl: saturdayApiBaseUrl, baseUrl: saturdayApiBaseUrl,
querySerializer: {
array: {
style: "form",
explode: false,
},
},
}) })
export const activeClient = new ApiClient({ export const activeClient = new ApiClient({