Skip to content

Commit

Permalink
refresh outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
inkognitro committed Oct 7, 2024
1 parent 302ce34 commit 3f0c7f7
Show file tree
Hide file tree
Showing 692 changed files with 1,926 additions and 750 deletions.
26 changes: 14 additions & 12 deletions example-outputs/binance-with-zod/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,26 +183,28 @@ export type RequestUnion<
>
: never;

export type RequiredAndPartial<
T extends object = any,
RFields extends keyof T = any,
OFields extends keyof T = any,
> = Required<Pick<T, RFields>> & Partial<Pick<T, OFields>>;

export type RequestPayload<
TRequest extends Request = any,
TFields extends
| 'cookies'
| 'headers'
| 'pathParams'
| 'queryParams'
| 'contentType'
| 'body' = any,
> = Pick<
RFields extends 'pathParams' | 'queryParams' | 'contentType' | 'body' = any,
OFields extends 'cookies' | 'headers' | 'queryParams' = any,
> = RequiredAndPartial<
{
requestId?: string; // always optional
headers?: TRequest['headers']; // always optional
cookies?: TRequest['cookies']; // always optional
requestId: string;
headers: TRequest['headers'];
cookies: TRequest['cookies'];
pathParams: TRequest['pathParams'];
queryParams: TRequest['queryParams'];
contentType: TRequest['contentType'];
body: TRequest['body'];
},
'requestId' | TFields
RFields,
'requestId' | OFields
>;

export type RequestFromPayload<TPayload extends RequestPayload> = Request<
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/deleteApiV3Openorders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type DeleteApiV3OpenordersRequestResult = RequestResult<

export function deleteApiV3Openorders(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteApiV3OpenordersRequest, 'queryParams'>,
payload: RequestPayload<DeleteApiV3OpenordersRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteApiV3OpenordersRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/deleteApiV3Order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export type DeleteApiV3OrderRequestResult = RequestResult<

export function deleteApiV3Order(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteApiV3OrderRequest, 'queryParams'>,
payload: RequestPayload<DeleteApiV3OrderRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteApiV3OrderRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/deleteApiV3Orderlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export type DeleteApiV3OrderlistRequestResult = RequestResult<

export function deleteApiV3Orderlist(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteApiV3OrderlistRequest, 'queryParams'>,
payload: RequestPayload<DeleteApiV3OrderlistRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteApiV3OrderlistRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export type DeleteApiV3UserdatastreamRequestResult = RequestResult<

export function deleteApiV3Userdatastream(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteApiV3UserdatastreamRequest, 'queryParams'>,
payload: RequestPayload<
DeleteApiV3UserdatastreamRequest,
never,
'queryParams'
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteApiV3UserdatastreamRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ export type DeleteSapiV1AlgoFuturesOrderRequestResult = RequestResult<

export function deleteSapiV1AlgoFuturesOrder(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteSapiV1AlgoFuturesOrderRequest, 'queryParams'>,
payload: RequestPayload<
DeleteSapiV1AlgoFuturesOrderRequest,
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1AlgoFuturesOrderRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ export type DeleteSapiV1AlgoSpotOrderRequestResult = RequestResult<

export function deleteSapiV1AlgoSpotOrder(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteSapiV1AlgoSpotOrderRequest, 'queryParams'>,
payload: RequestPayload<
DeleteSapiV1AlgoSpotOrderRequest,
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1AlgoSpotOrderRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export function deleteSapiV1MarginIsolatedAccount(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<
DeleteSapiV1MarginIsolatedAccountRequest,
'queryParams'
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1MarginIsolatedAccountRequestResult> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export type DeleteSapiV1MarginOpenordersRequestResult = RequestResult<

export function deleteSapiV1MarginOpenorders(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteSapiV1MarginOpenordersRequest, 'queryParams'>,
payload: RequestPayload<
DeleteSapiV1MarginOpenordersRequest,
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1MarginOpenordersRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export type DeleteSapiV1MarginOrderRequestResult = RequestResult<

export function deleteSapiV1MarginOrder(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteSapiV1MarginOrderRequest, 'queryParams'>,
payload: RequestPayload<DeleteSapiV1MarginOrderRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1MarginOrderRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ export type DeleteSapiV1MarginOrderlistRequestResult = RequestResult<

export function deleteSapiV1MarginOrderlist(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteSapiV1MarginOrderlistRequest, 'queryParams'>,
payload: RequestPayload<
DeleteSapiV1MarginOrderlistRequest,
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1MarginOrderlistRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export function deleteSapiV1SubAccountSubaccountapiIprestrictionIplist(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<
DeleteSapiV1SubAccountSubaccountapiIprestrictionIplistRequest,
'queryParams'
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1SubAccountSubaccountapiIprestrictionIplistRequestResult> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export type DeleteSapiV1UserdatastreamRequestResult = RequestResult<

export function deleteSapiV1Userdatastream(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<DeleteSapiV1UserdatastreamRequest, 'queryParams'>,
payload: RequestPayload<
DeleteSapiV1UserdatastreamRequest,
never,
'queryParams'
>,
config?: RequestHandlerExecutionConfig
): Promise<DeleteSapiV1UserdatastreamRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function deleteSapiV1UserdatastreamIsolated(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<
DeleteSapiV1UserdatastreamIsolatedRequest,
never,
'queryParams'
>,
config?: RequestHandlerExecutionConfig
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type GetApiV3AccountRequestResult = RequestResult<

export function getApiV3Account(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3AccountRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3AccountRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3AccountRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ export type GetApiV3AccountCommissionRequestResult = RequestResult<

export function getApiV3AccountCommission(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3AccountCommissionRequest, 'queryParams'>,
payload: RequestPayload<
GetApiV3AccountCommissionRequest,
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3AccountCommissionRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Aggtrades.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export type GetApiV3AggtradesRequestResult = RequestResult<

export function getApiV3Aggtrades(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3AggtradesRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3AggtradesRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3AggtradesRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Allorderlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export type GetApiV3AllorderlistRequestResult = RequestResult<

export function getApiV3Allorderlist(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3AllorderlistRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3AllorderlistRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3AllorderlistRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Allorders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export type GetApiV3AllordersRequestResult = RequestResult<

export function getApiV3Allorders(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3AllordersRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3AllordersRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3AllordersRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Avgprice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type GetApiV3AvgpriceRequestResult = RequestResult<

export function getApiV3Avgprice(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3AvgpriceRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3AvgpriceRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3AvgpriceRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Depth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export type GetApiV3DepthRequestResult = RequestResult<

export function getApiV3Depth(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3DepthRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3DepthRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3DepthRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Exchangeinfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export type GetApiV3ExchangeinfoRequestResult = RequestResult<

export function getApiV3Exchangeinfo(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3ExchangeinfoRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3ExchangeinfoRequest, never, 'queryParams'>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3ExchangeinfoRequestResult> {
return requestHandler.execute(
Expand Down
6 changes: 5 additions & 1 deletion example-outputs/binance-with-zod/getApiV3Historicaltrades.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export type GetApiV3HistoricaltradesRequestResult = RequestResult<

export function getApiV3Historicaltrades(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3HistoricaltradesRequest, 'queryParams'>,
payload: RequestPayload<
GetApiV3HistoricaltradesRequest,
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3HistoricaltradesRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Klines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export type GetApiV3KlinesRequestResult = RequestResult<

export function getApiV3Klines(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3KlinesRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3KlinesRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3KlinesRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Myallocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export type GetApiV3MyallocationsRequestResult = RequestResult<

export function getApiV3Myallocations(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3MyallocationsRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3MyallocationsRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3MyallocationsRequestResult> {
return requestHandler.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ export type GetApiV3MypreventedmatchesRequestResult = RequestResult<

export function getApiV3Mypreventedmatches(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3MypreventedmatchesRequest, 'queryParams'>,
payload: RequestPayload<
GetApiV3MypreventedmatchesRequest,
'queryParams',
never
>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3MypreventedmatchesRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Mytrades.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export type GetApiV3MytradesRequestResult = RequestResult<

export function getApiV3Mytrades(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3MytradesRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3MytradesRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3MytradesRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Openorderlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export type GetApiV3OpenorderlistRequestResult = RequestResult<

export function getApiV3Openorderlist(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3OpenorderlistRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3OpenorderlistRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3OpenorderlistRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Openorders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export type GetApiV3OpenordersRequestResult = RequestResult<

export function getApiV3Openorders(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3OpenordersRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3OpenordersRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3OpenordersRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export type GetApiV3OrderRequestResult = RequestResult<

export function getApiV3Order(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3OrderRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3OrderRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3OrderRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Orderlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export type GetApiV3OrderlistRequestResult = RequestResult<

export function getApiV3Orderlist(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3OrderlistRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3OrderlistRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3OrderlistRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3RatelimitOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type GetApiV3RatelimitOrderRequestResult = RequestResult<

export function getApiV3RatelimitOrder(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3RatelimitOrderRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3RatelimitOrderRequest, 'queryParams', never>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3RatelimitOrderRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Ticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export type GetApiV3TickerRequestResult = RequestResult<

export function getApiV3Ticker(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3TickerRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3TickerRequest, never, 'queryParams'>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3TickerRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3Ticker24hr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type GetApiV3Ticker24hrRequestResult = RequestResult<

export function getApiV3Ticker24hr(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3Ticker24hrRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3Ticker24hrRequest, never, 'queryParams'>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3Ticker24hrRequestResult> {
return requestHandler.execute(
Expand Down
6 changes: 5 additions & 1 deletion example-outputs/binance-with-zod/getApiV3TickerBookticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export type GetApiV3TickerBooktickerRequestResult = RequestResult<

export function getApiV3TickerBookticker(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3TickerBooktickerRequest, 'queryParams'>,
payload: RequestPayload<
GetApiV3TickerBooktickerRequest,
never,
'queryParams'
>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3TickerBooktickerRequestResult> {
return requestHandler.execute(
Expand Down
2 changes: 1 addition & 1 deletion example-outputs/binance-with-zod/getApiV3TickerPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export type GetApiV3TickerPriceRequestResult = RequestResult<

export function getApiV3TickerPrice(
requestHandler: SimpleRequestHandler,
payload: RequestPayload<GetApiV3TickerPriceRequest, 'queryParams'>,
payload: RequestPayload<GetApiV3TickerPriceRequest, never, 'queryParams'>,
config?: RequestHandlerExecutionConfig
): Promise<GetApiV3TickerPriceRequestResult> {
return requestHandler.execute(
Expand Down
Loading

0 comments on commit 3f0c7f7

Please sign in to comment.