Skip to content

Commit

Permalink
test(schemas): update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed May 22, 2024
1 parent 44d37a6 commit efec06b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 52 deletions.
52 changes: 0 additions & 52 deletions src/types/schemas/clients.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,45 +243,6 @@ export type DeleteClientsClientid404 = {
message?: string
}

export type GetClientsV2400Code = typeof GetClientsV2400Code[keyof typeof GetClientsV2400Code]

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const GetClientsV2400Code = {
INVALID_PARAMETER: 'INVALID_PARAMETER',
} as const

export type GetClientsV2400 = {
code?: GetClientsV2400Code
message?: string
}

export type GetClientsV2ConnState = typeof GetClientsV2ConnState[keyof typeof GetClientsV2ConnState]

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const GetClientsV2ConnState = {
connected: 'connected',
idle: 'idle',
disconnected: 'disconnected',
} as const

export type GetClientsV2Params = {
cursor?: PublicCursorParameter
limit?: PublicLimitParameter
username?: string[]
ip_address?: string
conn_state?: GetClientsV2ConnState
clean_start?: boolean
proto_ver?: string
like_clientid?: string
like_username?: string
gte_created_at?: number | string
lte_created_at?: number | string
gte_connected_at?: number | string
lte_connected_at?: number | string
clientid?: string[]
fields?: EmqxMgmtApiClientsRequestedClientFieldsParameter
}

export type GetClientsClientidAuthorizationCache404Code =
typeof GetClientsClientidAuthorizationCache404Code[keyof typeof GetClientsClientidAuthorizationCache404Code]

Expand Down Expand Up @@ -331,8 +292,6 @@ export type PublicPageParameter = number

export type PublicLimitParameter = number

export type PublicCursorParameter = string | 'none'

export type EmqxMgmtApiClientsRequestedClientFieldsParameterOneOfItem =
typeof EmqxMgmtApiClientsRequestedClientFieldsParameterOneOfItem[keyof typeof EmqxMgmtApiClientsRequestedClientFieldsParameterOneOfItem]

Expand Down Expand Up @@ -402,12 +361,6 @@ export type EmqxMgmtApiClientsRequestedClientFieldsParameter =
| EmqxMgmtApiClientsRequestedClientFieldsParameterOneOfItem[]
| 'all'

export interface PublicMetaWithCursor {
count?: number
hasnext: boolean
cursor?: string
}

export interface PublicMeta {
page?: number
limit?: number
Expand Down Expand Up @@ -549,11 +502,6 @@ export interface EmqxMgmtApiClientsClient {
seqno_q2_next?: number
}

export interface EmqxMgmtApiClientsListClientsV2Response {
data?: EmqxMgmtApiClientsClient[]
meta?: PublicMetaWithCursor
}

export interface EmqxMgmtApiClientsClients {
data?: EmqxMgmtApiClientsClient[]
meta?: PublicMeta
Expand Down
3 changes: 3 additions & 0 deletions src/types/schemas/metrics.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export interface EmqxDashboardMonitorApiSamplerCurrentNode {
sent_msg_rate?: number
validation_failed_rate?: number
validation_succeeded_rate?: number
disconnected_durable_sessions?: number
durable_subscriptions?: number
subscriptions?: number
topics?: number
Expand All @@ -307,6 +308,7 @@ export interface EmqxDashboardMonitorApiSamplerCurrent {
sent_msg_rate?: number
validation_failed_rate?: number
validation_succeeded_rate?: number
disconnected_durable_sessions?: number
durable_subscriptions?: number
subscriptions?: number
topics?: number
Expand All @@ -318,6 +320,7 @@ export interface EmqxDashboardMonitorApiSamplerCurrent {

export interface EmqxDashboardMonitorApiSampler {
time_stamp?: number
disconnected_durable_sessions?: number
durable_subscriptions?: number
subscriptions?: number
topics?: number
Expand Down

0 comments on commit efec06b

Please sign in to comment.