Skip to content

Commit

Permalink
chore: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Jan 21, 2024
1 parent f9e10bb commit c1e0206
Show file tree
Hide file tree
Showing 118 changed files with 582 additions and 582 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export type FindPetsByStatusQueryParams = {
* @description successful operation
*/
export type FindPetsByStatusQueryResponse = Pet[]
export namespace FindPetsByStatusQuery {
export type Response = FindPetsByStatusQueryResponse
export type QueryParams = FindPetsByStatusQueryParams
export type Errors = FindPetsByStatus400
export type FindPetsByStatusQuery = {
Response: FindPetsByStatusQueryResponse
QueryParams: FindPetsByStatusQueryParams
Errors: FindPetsByStatus400
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export type FindPetsByTagsQueryParams = {
* @description successful operation
*/
export type FindPetsByTagsQueryResponse = Pet[]
export namespace FindPetsByTagsQuery {
export type Response = FindPetsByTagsQueryResponse
export type QueryParams = FindPetsByTagsQueryParams
export type HeaderParams = FindPetsByTagsHeaderParams
export type Errors = FindPetsByTags400
export type FindPetsByTagsQuery = {
Response: FindPetsByTagsQueryResponse
QueryParams: FindPetsByTagsQueryParams
HeaderParams: FindPetsByTagsHeaderParams
Errors: FindPetsByTags400
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetPetByIdPathParams = {
* @description successful operation
*/
export type GetPetByIdQueryResponse = Omit<NonNullable<Pet>, 'name'>
export namespace GetPetByIdQuery {
export type Response = GetPetByIdQueryResponse
export type PathParams = GetPetByIdPathParams
export type Errors = GetPetById400 | GetPetById404
export type GetPetByIdQuery = {
Response: GetPetByIdQueryResponse
PathParams: GetPetByIdPathParams
Errors: GetPetById400 | GetPetById404
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
export type GetInventoryQueryResponse = {
[key: string]: number
}
export namespace GetInventoryQuery {
export type Response = GetInventoryQueryResponse
export type GetInventoryQuery = {
Response: GetInventoryQueryResponse
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetOrderByIdPathParams = {
* @description successful operation
*/
export type GetOrderByIdQueryResponse = Order
export namespace GetOrderByIdQuery {
export type Response = GetOrderByIdQueryResponse
export type PathParams = GetOrderByIdPathParams
export type Errors = GetOrderById400 | GetOrderById404
export type GetOrderByIdQuery = {
Response: GetOrderByIdQueryResponse
PathParams: GetOrderByIdPathParams
Errors: GetOrderById400 | GetOrderById404
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetUserByNamePathParams = {
* @description successful operation
*/
export type GetUserByNameQueryResponse = User
export namespace GetUserByNameQuery {
export type Response = GetUserByNameQueryResponse
export type PathParams = GetUserByNamePathParams
export type Errors = GetUserByName400 | GetUserByName404
export type GetUserByNameQuery = {
Response: GetUserByNameQueryResponse
PathParams: GetUserByNamePathParams
Errors: GetUserByName400 | GetUserByName404
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type LoginUserQueryParams = {
* @description successful operation
*/
export type LoginUserQueryResponse = string
export namespace LoginUserQuery {
export type Response = LoginUserQueryResponse
export type QueryParams = LoginUserQueryParams
export type Errors = LoginUser400
export type LoginUserQuery = {
Response: LoginUserQueryResponse
QueryParams: LoginUserQueryParams
Errors: LoginUser400
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export type LogoutUserError = any | null

export type LogoutUserQueryResponse = any | null
export namespace LogoutUserQuery {
export type Response = LogoutUserQueryResponse
export type Errors = LogoutUserError
export type LogoutUserQuery = {
Response: LogoutUserQueryResponse
Errors: LogoutUserError
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export type FindPetsByStatusQueryParams = {
* @description successful operation
*/
export type FindPetsByStatusQueryResponse = Pet[]
export namespace FindPetsByStatusQuery {
export type Response = FindPetsByStatusQueryResponse
export type QueryParams = FindPetsByStatusQueryParams
export type Errors = FindPetsByStatus400
export type FindPetsByStatusQuery = {
Response: FindPetsByStatusQueryResponse
QueryParams: FindPetsByStatusQueryParams
Errors: FindPetsByStatus400
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export type FindPetsByTagsQueryParams = {
* @description successful operation
*/
export type FindPetsByTagsQueryResponse = Pet[]
export namespace FindPetsByTagsQuery {
export type Response = FindPetsByTagsQueryResponse
export type QueryParams = FindPetsByTagsQueryParams
export type HeaderParams = FindPetsByTagsHeaderParams
export type Errors = FindPetsByTags400
export type FindPetsByTagsQuery = {
Response: FindPetsByTagsQueryResponse
QueryParams: FindPetsByTagsQueryParams
HeaderParams: FindPetsByTagsHeaderParams
Errors: FindPetsByTags400
}
8 changes: 4 additions & 4 deletions examples/client/src/gen/models/ts/petController/GetPetById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetPetByIdPathParams = {
* @description successful operation
*/
export type GetPetByIdQueryResponse = Pet
export namespace GetPetByIdQuery {
export type Response = GetPetByIdQueryResponse
export type PathParams = GetPetByIdPathParams
export type Errors = GetPetById400 | GetPetById404
export type GetPetByIdQuery = {
Response: GetPetByIdQueryResponse
PathParams: GetPetByIdPathParams
Errors: GetPetById400 | GetPetById404
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
export type GetInventoryQueryResponse = {
[key: string]: number
}
export namespace GetInventoryQuery {
export type Response = GetInventoryQueryResponse
export type GetInventoryQuery = {
Response: GetInventoryQueryResponse
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetOrderByIdPathParams = {
* @description successful operation
*/
export type GetOrderByIdQueryResponse = Order
export namespace GetOrderByIdQuery {
export type Response = GetOrderByIdQueryResponse
export type PathParams = GetOrderByIdPathParams
export type Errors = GetOrderById400 | GetOrderById404
export type GetOrderByIdQuery = {
Response: GetOrderByIdQueryResponse
PathParams: GetOrderByIdPathParams
Errors: GetOrderById400 | GetOrderById404
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetUserByNamePathParams = {
* @description successful operation
*/
export type GetUserByNameQueryResponse = User
export namespace GetUserByNameQuery {
export type Response = GetUserByNameQueryResponse
export type PathParams = GetUserByNamePathParams
export type Errors = GetUserByName400 | GetUserByName404
export type GetUserByNameQuery = {
Response: GetUserByNameQueryResponse
PathParams: GetUserByNamePathParams
Errors: GetUserByName400 | GetUserByName404
}
8 changes: 4 additions & 4 deletions examples/client/src/gen/models/ts/userController/LoginUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type LoginUserQueryParams = {
* @description successful operation
*/
export type LoginUserQueryResponse = string
export namespace LoginUserQuery {
export type Response = LoginUserQueryResponse
export type QueryParams = LoginUserQueryParams
export type Errors = LoginUser400
export type LoginUserQuery = {
Response: LoginUserQueryResponse
QueryParams: LoginUserQueryParams
Errors: LoginUser400
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export type LogoutUserError = any | null

export type LogoutUserQueryResponse = any | null
export namespace LogoutUserQuery {
export type Response = LogoutUserQueryResponse
export type Errors = LogoutUserError
export type LogoutUserQuery = {
Response: LogoutUserQueryResponse
Errors: LogoutUserError
}
8 changes: 4 additions & 4 deletions examples/faker/src/gen/models/FindPetsByStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export type FindPetsByStatusQueryParams = {
* @description successful operation
*/
export type FindPetsByStatusQueryResponse = Pet[]
export namespace FindPetsByStatusQuery {
export type Response = FindPetsByStatusQueryResponse
export type QueryParams = FindPetsByStatusQueryParams
export type Errors = FindPetsByStatus400
export type FindPetsByStatusQuery = {
Response: FindPetsByStatusQueryResponse
QueryParams: FindPetsByStatusQueryParams
Errors: FindPetsByStatus400
}
8 changes: 4 additions & 4 deletions examples/faker/src/gen/models/FindPetsByTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export type FindPetsByTagsQueryParams = {
* @description successful operation
*/
export type FindPetsByTagsQueryResponse = Pet[]
export namespace FindPetsByTagsQuery {
export type Response = FindPetsByTagsQueryResponse
export type QueryParams = FindPetsByTagsQueryParams
export type Errors = FindPetsByTags400
export type FindPetsByTagsQuery = {
Response: FindPetsByTagsQueryResponse
QueryParams: FindPetsByTagsQueryParams
Errors: FindPetsByTags400
}
4 changes: 2 additions & 2 deletions examples/faker/src/gen/models/GetInventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
export type GetInventoryQueryResponse = {
[key: string]: number
}
export namespace GetInventoryQuery {
export type Response = GetInventoryQueryResponse
export type GetInventoryQuery = {
Response: GetInventoryQueryResponse
}
8 changes: 4 additions & 4 deletions examples/faker/src/gen/models/GetOrderById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetOrderByIdPathParams = {
* @description successful operation
*/
export type GetOrderByIdQueryResponse = Order
export namespace GetOrderByIdQuery {
export type Response = GetOrderByIdQueryResponse
export type PathParams = GetOrderByIdPathParams
export type Errors = GetOrderById400 | GetOrderById404
export type GetOrderByIdQuery = {
Response: GetOrderByIdQueryResponse
PathParams: GetOrderByIdPathParams
Errors: GetOrderById400 | GetOrderById404
}
8 changes: 4 additions & 4 deletions examples/faker/src/gen/models/GetPetById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetPetByIdPathParams = {
* @description successful operation
*/
export type GetPetByIdQueryResponse = Pet
export namespace GetPetByIdQuery {
export type Response = GetPetByIdQueryResponse
export type PathParams = GetPetByIdPathParams
export type Errors = GetPetById400 | GetPetById404
export type GetPetByIdQuery = {
Response: GetPetByIdQueryResponse
PathParams: GetPetByIdPathParams
Errors: GetPetById400 | GetPetById404
}
8 changes: 4 additions & 4 deletions examples/faker/src/gen/models/GetUserByName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetUserByNamePathParams = {
* @description successful operation
*/
export type GetUserByNameQueryResponse = User
export namespace GetUserByNameQuery {
export type Response = GetUserByNameQueryResponse
export type PathParams = GetUserByNamePathParams
export type Errors = GetUserByName400 | GetUserByName404
export type GetUserByNameQuery = {
Response: GetUserByNameQueryResponse
PathParams: GetUserByNamePathParams
Errors: GetUserByName400 | GetUserByName404
}
8 changes: 4 additions & 4 deletions examples/faker/src/gen/models/LoginUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type LoginUserQueryParams = {
* @description successful operation
*/
export type LoginUserQueryResponse = string
export namespace LoginUserQuery {
export type Response = LoginUserQueryResponse
export type QueryParams = LoginUserQueryParams
export type Errors = LoginUser400
export type LoginUserQuery = {
Response: LoginUserQueryResponse
QueryParams: LoginUserQueryParams
Errors: LoginUser400
}
6 changes: 3 additions & 3 deletions examples/faker/src/gen/models/LogoutUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export type LogoutUserError = any | null

export type LogoutUserQueryResponse = any | null
export namespace LogoutUserQuery {
export type Response = LogoutUserQueryResponse
export type Errors = LogoutUserError
export type LogoutUserQuery = {
Response: LogoutUserQueryResponse
Errors: LogoutUserError
}
8 changes: 4 additions & 4 deletions examples/msw-v2/src/gen/models/FindPetsByStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export type FindPetsByStatusQueryParams = {
* @description successful operation
*/
export type FindPetsByStatusQueryResponse = Pet[]
export namespace FindPetsByStatusQuery {
export type Response = FindPetsByStatusQueryResponse
export type QueryParams = FindPetsByStatusQueryParams
export type Errors = FindPetsByStatus400
export type FindPetsByStatusQuery = {
Response: FindPetsByStatusQueryResponse
QueryParams: FindPetsByStatusQueryParams
Errors: FindPetsByStatus400
}
8 changes: 4 additions & 4 deletions examples/msw-v2/src/gen/models/FindPetsByTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export type FindPetsByTagsQueryParams = {
* @description successful operation
*/
export type FindPetsByTagsQueryResponse = Pet[]
export namespace FindPetsByTagsQuery {
export type Response = FindPetsByTagsQueryResponse
export type QueryParams = FindPetsByTagsQueryParams
export type Errors = FindPetsByTags400
export type FindPetsByTagsQuery = {
Response: FindPetsByTagsQueryResponse
QueryParams: FindPetsByTagsQueryParams
Errors: FindPetsByTags400
}
4 changes: 2 additions & 2 deletions examples/msw-v2/src/gen/models/GetInventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
export type GetInventoryQueryResponse = {
[key: string]: number
}
export namespace GetInventoryQuery {
export type Response = GetInventoryQueryResponse
export type GetInventoryQuery = {
Response: GetInventoryQueryResponse
}
8 changes: 4 additions & 4 deletions examples/msw-v2/src/gen/models/GetOrderById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetOrderByIdPathParams = {
* @description successful operation
*/
export type GetOrderByIdQueryResponse = Order
export namespace GetOrderByIdQuery {
export type Response = GetOrderByIdQueryResponse
export type PathParams = GetOrderByIdPathParams
export type Errors = GetOrderById400 | GetOrderById404
export type GetOrderByIdQuery = {
Response: GetOrderByIdQueryResponse
PathParams: GetOrderByIdPathParams
Errors: GetOrderById400 | GetOrderById404
}
8 changes: 4 additions & 4 deletions examples/msw-v2/src/gen/models/GetPetById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetPetByIdPathParams = {
* @description successful operation
*/
export type GetPetByIdQueryResponse = Pet
export namespace GetPetByIdQuery {
export type Response = GetPetByIdQueryResponse
export type PathParams = GetPetByIdPathParams
export type Errors = GetPetById400 | GetPetById404
export type GetPetByIdQuery = {
Response: GetPetByIdQueryResponse
PathParams: GetPetByIdPathParams
Errors: GetPetById400 | GetPetById404
}
8 changes: 4 additions & 4 deletions examples/msw-v2/src/gen/models/GetUserByName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type GetUserByNamePathParams = {
* @description successful operation
*/
export type GetUserByNameQueryResponse = User
export namespace GetUserByNameQuery {
export type Response = GetUserByNameQueryResponse
export type PathParams = GetUserByNamePathParams
export type Errors = GetUserByName400 | GetUserByName404
export type GetUserByNameQuery = {
Response: GetUserByNameQueryResponse
PathParams: GetUserByNamePathParams
Errors: GetUserByName400 | GetUserByName404
}
8 changes: 4 additions & 4 deletions examples/msw-v2/src/gen/models/LoginUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type LoginUserQueryParams = {
* @description successful operation
*/
export type LoginUserQueryResponse = string
export namespace LoginUserQuery {
export type Response = LoginUserQueryResponse
export type QueryParams = LoginUserQueryParams
export type Errors = LoginUser400
export type LoginUserQuery = {
Response: LoginUserQueryResponse
QueryParams: LoginUserQueryParams
Errors: LoginUser400
}
6 changes: 3 additions & 3 deletions examples/msw-v2/src/gen/models/LogoutUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export type LogoutUserError = any | null

export type LogoutUserQueryResponse = any | null
export namespace LogoutUserQuery {
export type Response = LogoutUserQueryResponse
export type Errors = LogoutUserError
export type LogoutUserQuery = {
Response: LogoutUserQueryResponse
Errors: LogoutUserError
}
Loading

0 comments on commit c1e0206

Please sign in to comment.