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 Oct 25, 2024
1 parent 45d48f3 commit 9ba2ddf
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/types/schemas/actions.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ export type DeleteActionsIdParams = {
also_delete_dep_actions?: boolean
}

export type PutActionsId503Code = typeof PutActionsId503Code[keyof typeof PutActionsId503Code]

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

export type PutActionsId503 = {
code?: PutActionsId503Code
message?: string
}

export type PutActionsId404Code = typeof PutActionsId404Code[keyof typeof PutActionsId404Code]

// eslint-disable-next-line @typescript-eslint/no-redeclare
Expand Down
8 changes: 8 additions & 0 deletions src/types/schemas/authentication.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ export type PostAuthenticationIdImportUsers400 = {
message?: string
}

export type PostAuthenticationIdImportUsers200 = {
total?: number
success?: number
override?: number
skipped?: number
failed?: number
}

export type PostAuthenticationIdImportUsersBodyTwo = { [key: string]: any }

export type PostAuthenticationIdImportUsersBodyOne = {
Expand Down
16 changes: 16 additions & 0 deletions src/types/schemas/gatewayAuthentication.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ export type PostGatewaysNameListenersIdAuthenticationImportUsers400 = {
message?: string
}

export type PostGatewaysNameListenersIdAuthenticationImportUsers200 = {
total?: number
success?: number
override?: number
skipped?: number
failed?: number
}

export type PostGatewaysNameListenersIdAuthenticationImportUsersBody = {
filename?: Blob
}
Expand Down Expand Up @@ -198,6 +206,14 @@ export type PostGatewaysNameAuthenticationImportUsers400 = {
message?: string
}

export type PostGatewaysNameAuthenticationImportUsers200 = {
total?: number
success?: number
override?: number
skipped?: number
failed?: number
}

export type PostGatewaysNameAuthenticationImportUsersBody = {
filename?: Blob
}
Expand Down
1 change: 1 addition & 0 deletions src/types/schemas/metrics.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export type GetMetrics200 = EmqxMgmtApiMetricsNodeMetrics[] | EmqxMgmtApiMetrics

export type GetMetricsParams = {
aggregate?: boolean
node?: string
}

export type EmqxMgmtApiStatsAggregateParameter = boolean
Expand Down
12 changes: 12 additions & 0 deletions src/types/schemas/sources.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ export type DeleteSourcesIdParams = {
also_delete_dep_actions?: boolean
}

export type PutSourcesId503Code = typeof PutSourcesId503Code[keyof typeof PutSourcesId503Code]

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

export type PutSourcesId503 = {
code?: PutSourcesId503Code
message?: string
}

export type PutSourcesId404Code = typeof PutSourcesId404Code[keyof typeof PutSourcesId404Code]

// eslint-disable-next-line @typescript-eslint/no-redeclare
Expand Down

0 comments on commit 9ba2ddf

Please sign in to comment.