-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: regenerate api clients (#373)
- Loading branch information
Showing
89 changed files
with
2,116 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
packages/project-client/documentation/models/BroadcastListResponse.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# BroadcastListResponse | ||
|
||
**Properties** | ||
|
||
| Name | Type | Required | Description | | ||
| :---- | :---------- | :------- | :---------- | | ||
| links | Links | ✅ | | | ||
| data | Broadcast[] | ✅ | | | ||
|
||
# Links | ||
|
||
**Properties** | ||
|
||
| Name | Type | Required | Description | | ||
| :--- | :----- | :------- | :--------------------------------------------------------------------------- | | ||
| next | string | ✅ | The cursor to the next page of results. If null, there are no more results. | | ||
| prev | string | ✅ | The cursor to the previous page of results. If null, this is the first page. | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/project-client/src/http/handlers/mb-header-handler.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { SerializationStyle } from '../serialization/base-serializer'; | ||
import { Request } from '../transport/request'; | ||
import { HttpResponse, RequestHandler } from '../types'; | ||
|
||
export class HeaderHandler implements RequestHandler { | ||
next?: RequestHandler; | ||
|
||
async handle<T>(request: Request<T>): Promise<HttpResponse<T>> { | ||
if (!this.next) { | ||
throw new Error(`No next handler set in ${HeaderHandler.name}`); | ||
} | ||
|
||
const requestWithHeaders = this.addHeaders(request); | ||
return this.next?.handle(requestWithHeaders); | ||
} | ||
|
||
private addHeaders<T>(request: Request<T>): Request<T> { | ||
const { headers } = request.config as any; | ||
if (typeof headers !== 'object') { | ||
return request; | ||
} | ||
|
||
for (const [key, value] of Object.entries(headers)) { | ||
request.addHeaderParam(key, { | ||
key: key, | ||
value: value, | ||
explode: false, | ||
encode: false, | ||
style: SerializationStyle.SIMPLE, | ||
}); | ||
} | ||
|
||
return request; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.