Comparing version 0.9.0 to 0.9.1
@@ -68,3 +68,3 @@ /** | ||
export function getMultipartRequestOptions<T extends {} = Record<string, unknown>>( | ||
export function getMultipartRequestOptions<T = Record<string, unknown>>( | ||
form: FormData, | ||
@@ -71,0 +71,0 @@ opts: RequestOptions<T>, |
@@ -15,3 +15,3 @@ /** | ||
ReadableStream: any; | ||
getMultipartRequestOptions: <T extends {} = Record<string, unknown>>(form: Shims['FormData'], opts: RequestOptions<T>) => Promise<RequestOptions<T>>; | ||
getMultipartRequestOptions: <T = Record<string, unknown>>(form: Shims['FormData'], opts: RequestOptions<T>) => Promise<RequestOptions<T>>; | ||
getDefaultAgent: (url: string) => any; | ||
@@ -18,0 +18,0 @@ fileFromPath: ((path: string, filename?: string, options?: {}) => Promise<Shims['File']>) | ((path: string, options?: {}) => Promise<Shims['File']>); |
# Changelog | ||
## 0.9.1 (2024-01-05) | ||
Full Changelog: [v0.9.0...v0.9.1](https://github.com/stainless-sdks/sink-node-public/compare/v0.9.0...v0.9.1) | ||
### Bug Fixes | ||
* escape interface names, fix pagination types ([#322](https://github.com/stainless-sdks/sink-node-public/issues/322)) ([0a228e9](https://github.com/stainless-sdks/sink-node-public/commit/0a228e99bcea8564b0a863a285b67bf23d1a4848)) | ||
### Chores | ||
* **internal:** improve type signatures ([#320](https://github.com/stainless-sdks/sink-node-public/issues/320)) ([220ae0d](https://github.com/stainless-sdks/sink-node-public/commit/220ae0da055b3a945641971a724fefc43e763c10)) | ||
## 0.9.0 (2024-01-04) | ||
@@ -4,0 +17,0 @@ |
import { APIError } from "./error.js"; | ||
@@ -92,11 +91,11 @@ import { type Readable, type Agent, type RequestInfo, type RequestInit, type Response, type HeadersInit } from "./_shims/index.js"; | ||
protected defaultIdempotencyKey(): string; | ||
get<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
post<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
patch<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
put<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
delete<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
get<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
post<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
patch<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
put<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
delete<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>; | ||
private methodRequest; | ||
getAPIList<Item, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions<any>): PagePromise<PageClass, Item>; | ||
private calculateContentLength; | ||
buildRequest<Req extends {}>(options: FinalRequestOptions<Req>): { | ||
buildRequest<Req>(options: FinalRequestOptions<Req>): { | ||
req: RequestInit; | ||
@@ -119,6 +118,6 @@ url: string; | ||
protected makeStatusError(status: number | undefined, error: Object | undefined, message: string | undefined, headers: Headers | undefined): APIError; | ||
request<Req extends {}, Rsp>(options: PromiseOrValue<FinalRequestOptions<Req>>, remainingRetries?: number | null): APIPromise<Rsp>; | ||
request<Req, Rsp>(options: PromiseOrValue<FinalRequestOptions<Req>>, remainingRetries?: number | null): APIPromise<Rsp>; | ||
private makeRequest; | ||
requestAPIList<Item = unknown, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof AbstractPage>) => PageClass, options: FinalRequestOptions): PagePromise<PageClass, Item>; | ||
buildURL<Req extends Record<string, unknown>>(path: string, query: Req | null | undefined): string; | ||
buildURL<Req>(path: string, query: Req | null | undefined): string; | ||
protected stringifyQuery(query: Record<string, unknown>): string; | ||
@@ -184,3 +183,3 @@ fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>; | ||
}; | ||
export type RequestOptions<Req extends {} = Record<string, unknown> | Readable> = { | ||
export type RequestOptions<Req = unknown | Record<string, unknown> | Readable> = { | ||
method?: HTTPMethod; | ||
@@ -203,4 +202,4 @@ path?: string; | ||
}; | ||
export declare const isRequestOptions: (obj: unknown) => obj is RequestOptions<Readable | Record<string, unknown>>; | ||
export type FinalRequestOptions<Req extends {} = Record<string, unknown> | Readable> = RequestOptions<Req> & { | ||
export declare const isRequestOptions: (obj: unknown) => obj is RequestOptions<unknown>; | ||
export type FinalRequestOptions<Req = unknown | Record<string, unknown> | Readable> = RequestOptions<Req> & { | ||
method: HTTPMethod; | ||
@@ -207,0 +206,0 @@ path: string; |
@@ -427,3 +427,3 @@ "use strict"; | ||
const nextOptions = { ...this.options }; | ||
if ('params' in nextInfo) { | ||
if ('params' in nextInfo && typeof nextOptions.query === 'object') { | ||
nextOptions.query = { ...nextOptions.query, ...nextInfo.params }; | ||
@@ -430,0 +430,0 @@ } |
@@ -340,5 +340,7 @@ import * as Core from "./core.js"; | ||
export import NamePropertiesCommonConflictsResponse = API.NamePropertiesCommonConflictsResponse; | ||
export import NamePropertiesIllegalJavascriptIdentifiersResponse = API.NamePropertiesIllegalJavascriptIdentifiersResponse; | ||
export import NameResponsePropertyClashesModelImportResponse = API.NameResponsePropertyClashesModelImportResponse; | ||
export import NameResponseShadowsPydanticResponse = API.NameResponseShadowsPydanticResponse; | ||
export import NamePropertiesCommonConflictsParams = API.NamePropertiesCommonConflictsParams; | ||
export import NamePropertiesIllegalJavascriptIdentifiersParams = API.NamePropertiesIllegalJavascriptIdentifiersParams; | ||
export import Widgets = API.Widgets; | ||
@@ -345,0 +347,0 @@ export import Widget = API.Widget; |
{ | ||
"name": "sink-npm", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "The official TypeScript library for the Sink API", | ||
@@ -5,0 +5,0 @@ "author": "Sink <dev@stainlessapi.com>", |
@@ -181,4 +181,4 @@ "use strict"; | ||
this.data = body.data || []; | ||
this.page = body.page || 0.0; | ||
this.last_page = body.last_page || 0.0; | ||
this.page = body.page || 0; | ||
this.last_page = body.last_page || 0; | ||
} | ||
@@ -185,0 +185,0 @@ getPaginatedItems() { |
@@ -5,3 +5,3 @@ export * from "./shared.js"; | ||
export { ArrayRecursion, BranchRecursion, BranchRecursionChildA, BranchRecursionChildB, SelfRecursion, RecursionCreateEnvelopeResponse, RecursionCreateBranchParams, RecursionCreateEnvelopeParams, RecursionCreateSelfParams, Recursion, } from "./recursion/recursion.js"; | ||
export { Balance, NameChildPropImportClashResponse, NamePropertiesCommonConflictsResponse, NameResponsePropertyClashesModelImportResponse, NameResponseShadowsPydanticResponse, NamePropertiesCommonConflictsParams, Names, } from "./names/names.js"; | ||
export { Balance, NameChildPropImportClashResponse, NamePropertiesCommonConflictsResponse, NamePropertiesIllegalJavascriptIdentifiersResponse, NameResponsePropertyClashesModelImportResponse, NameResponseShadowsPydanticResponse, NamePropertiesCommonConflictsParams, NamePropertiesIllegalJavascriptIdentifiersParams, Names, } from "./names/names.js"; | ||
export { BinaryWithPathAndBodyParamParams, Binaries } from "./binaries.js"; | ||
@@ -8,0 +8,0 @@ export { Card, CardAlias, FundingAccount, CardProvisionFooResponse, CardCreateParams, CardUpdateParams, CardCreateAliasedParams, CardCreateAliasedDeprecatedParams, CardProvisionFooParams, CardReissueParams, Cards, } from "./cards.js"; |
@@ -1,2 +0,2 @@ | ||
export { Balance, NameChildPropImportClashResponse, NamePropertiesCommonConflictsResponse, NameResponsePropertyClashesModelImportResponse, NameResponseShadowsPydanticResponse, NamePropertiesCommonConflictsParams, Names, } from "./names.js"; | ||
export { Balance, NameChildPropImportClashResponse, NamePropertiesCommonConflictsResponse, NamePropertiesIllegalJavascriptIdentifiersResponse, NameResponsePropertyClashesModelImportResponse, NameResponseShadowsPydanticResponse, NamePropertiesCommonConflictsParams, NamePropertiesIllegalJavascriptIdentifiersParams, Names, } from "./names.js"; | ||
export { CanCauseClashes } from "./can-cause-clashes/index.js"; | ||
@@ -3,0 +3,0 @@ export { DiscriminatedUnion, VariantsSinglePropObjects, Unions } from "./unions.js"; |
@@ -29,2 +29,7 @@ import * as Core from 'sink-npm/core'; | ||
/** | ||
* Endpoint with request & response properties with names that aren't legal | ||
* javascript identifiers. | ||
*/ | ||
propertiesIllegalJavascriptIdentifiers(body: NamePropertiesIllegalJavascriptIdentifiersParams, options?: Core.RequestOptions): Core.APIPromise<NamePropertiesIllegalJavascriptIdentifiersResponse>; | ||
/** | ||
* Endpoint with a response model property that can cause clashes with a model | ||
@@ -80,2 +85,8 @@ * import. | ||
} | ||
export type NamePropertiesIllegalJavascriptIdentifiersResponse = NamePropertiesIllegalJavascriptIdentifiersResponse._2llegalJavascriptIdentifiers | number; | ||
export declare namespace NamePropertiesIllegalJavascriptIdentifiersResponse { | ||
interface _2llegalJavascriptIdentifiers { | ||
irrelevant?: number; | ||
} | ||
} | ||
export interface NameResponsePropertyClashesModelImportResponse { | ||
@@ -118,2 +129,9 @@ balance: Balance; | ||
} | ||
export type NamePropertiesIllegalJavascriptIdentifiersParams = NamePropertiesIllegalJavascriptIdentifiersParams._2llegalJavascriptIdentifiers | NamePropertiesIllegalJavascriptIdentifiersParams._3llegalJavascriptIdentifiers; | ||
export declare namespace NamePropertiesIllegalJavascriptIdentifiersParams { | ||
interface _2llegalJavascriptIdentifiers { | ||
irrelevant?: number; | ||
} | ||
type _3llegalJavascriptIdentifiers = number; | ||
} | ||
export declare namespace Names { | ||
@@ -123,5 +141,7 @@ export import Balance = NamesAPI.Balance; | ||
export import NamePropertiesCommonConflictsResponse = NamesAPI.NamePropertiesCommonConflictsResponse; | ||
export import NamePropertiesIllegalJavascriptIdentifiersResponse = NamesAPI.NamePropertiesIllegalJavascriptIdentifiersResponse; | ||
export import NameResponsePropertyClashesModelImportResponse = NamesAPI.NameResponsePropertyClashesModelImportResponse; | ||
export import NameResponseShadowsPydanticResponse = NamesAPI.NameResponseShadowsPydanticResponse; | ||
export import NamePropertiesCommonConflictsParams = NamesAPI.NamePropertiesCommonConflictsParams; | ||
export import NamePropertiesIllegalJavascriptIdentifiersParams = NamesAPI.NamePropertiesIllegalJavascriptIdentifiersParams; | ||
export import Unions = UnionsAPI.Unions; | ||
@@ -128,0 +148,0 @@ export import DiscriminatedUnion = UnionsAPI.DiscriminatedUnion; |
@@ -62,2 +62,9 @@ "use strict"; | ||
/** | ||
* Endpoint with request & response properties with names that aren't legal | ||
* javascript identifiers. | ||
*/ | ||
propertiesIllegalJavascriptIdentifiers(body, options) { | ||
return this._client.post('/names/properties_illegal_javascript_identifiers', { body, ...options }); | ||
} | ||
/** | ||
* Endpoint with a response model property that can cause clashes with a model | ||
@@ -64,0 +71,0 @@ * import. |
@@ -68,3 +68,3 @@ /** | ||
export function getMultipartRequestOptions<T extends {} = Record<string, unknown>>( | ||
export function getMultipartRequestOptions<T = Record<string, unknown>>( | ||
form: FormData, | ||
@@ -71,0 +71,0 @@ opts: RequestOptions<T>, |
@@ -46,3 +46,3 @@ /** | ||
async function getMultipartRequestOptions<T extends {} = Record<string, unknown>>( | ||
async function getMultipartRequestOptions<T = Record<string, unknown>>( | ||
form: fd.FormData, | ||
@@ -49,0 +49,0 @@ opts: RequestOptions<T>, |
@@ -16,3 +16,3 @@ /** | ||
ReadableStream: any; | ||
getMultipartRequestOptions: <T extends {} = Record<string, unknown>>( | ||
getMultipartRequestOptions: <T = Record<string, unknown>>( | ||
form: Shims['FormData'], | ||
@@ -19,0 +19,0 @@ opts: RequestOptions<T>, |
@@ -87,3 +87,3 @@ /** | ||
), | ||
getMultipartRequestOptions: async <T extends {} = Record<string, unknown>>( | ||
getMultipartRequestOptions: async <T = Record<string, unknown>>( | ||
// @ts-ignore | ||
@@ -90,0 +90,0 @@ form: FormData, |
@@ -220,23 +220,23 @@ import { VERSION } from './version'; | ||
get<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
get<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
return this.methodRequest('get', path, opts); | ||
} | ||
post<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
post<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
return this.methodRequest('post', path, opts); | ||
} | ||
patch<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
patch<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
return this.methodRequest('patch', path, opts); | ||
} | ||
put<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
put<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
return this.methodRequest('put', path, opts); | ||
} | ||
delete<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
delete<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp> { | ||
return this.methodRequest('delete', path, opts); | ||
} | ||
private methodRequest<Req extends {}, Rsp>( | ||
private methodRequest<Req, Rsp>( | ||
method: HTTPMethod, | ||
@@ -273,5 +273,3 @@ path: string, | ||
buildRequest<Req extends {}>( | ||
options: FinalRequestOptions<Req>, | ||
): { req: RequestInit; url: string; timeout: number } { | ||
buildRequest<Req>(options: FinalRequestOptions<Req>): { req: RequestInit; url: string; timeout: number } { | ||
const { method, path, query, headers: headers = {} } = options; | ||
@@ -378,3 +376,3 @@ | ||
request<Req extends {}, Rsp>( | ||
request<Req, Rsp>( | ||
options: PromiseOrValue<FinalRequestOptions<Req>>, | ||
@@ -386,4 +384,4 @@ remainingRetries: number | null = null, | ||
private async makeRequest( | ||
optionsInput: PromiseOrValue<FinalRequestOptions>, | ||
private async makeRequest<Req>( | ||
optionsInput: PromiseOrValue<FinalRequestOptions<Req>>, | ||
retriesRemaining: number | null, | ||
@@ -450,3 +448,3 @@ ): Promise<APIResponseProps> { | ||
buildURL<Req extends Record<string, unknown>>(path: string, query: Req | null | undefined): string { | ||
buildURL<Req>(path: string, query: Req | null | undefined): string { | ||
const url = | ||
@@ -625,3 +623,3 @@ isAbsoluteURL(path) ? | ||
const nextOptions = { ...this.options }; | ||
if ('params' in nextInfo) { | ||
if ('params' in nextInfo && typeof nextOptions.query === 'object') { | ||
nextOptions.query = { ...nextOptions.query, ...nextInfo.params }; | ||
@@ -724,3 +722,3 @@ } else if ('url' in nextInfo) { | ||
export type RequestOptions<Req extends {} = Record<string, unknown> | Readable> = { | ||
export type RequestOptions<Req = unknown | Record<string, unknown> | Readable> = { | ||
method?: HTTPMethod; | ||
@@ -772,3 +770,3 @@ path?: string; | ||
export const isRequestOptions = (obj: unknown): obj is RequestOptions<Record<string, unknown> | Readable> => { | ||
export const isRequestOptions = (obj: unknown): obj is RequestOptions => { | ||
return ( | ||
@@ -782,3 +780,3 @@ typeof obj === 'object' && | ||
export type FinalRequestOptions<Req extends {} = Record<string, unknown> | Readable> = RequestOptions<Req> & { | ||
export type FinalRequestOptions<Req = unknown | Record<string, unknown> | Readable> = RequestOptions<Req> & { | ||
method: HTTPMethod; | ||
@@ -785,0 +783,0 @@ path: string; |
@@ -558,5 +558,7 @@ // File generated from our OpenAPI spec by Stainless. | ||
export import NamePropertiesCommonConflictsResponse = API.NamePropertiesCommonConflictsResponse; | ||
export import NamePropertiesIllegalJavascriptIdentifiersResponse = API.NamePropertiesIllegalJavascriptIdentifiersResponse; | ||
export import NameResponsePropertyClashesModelImportResponse = API.NameResponsePropertyClashesModelImportResponse; | ||
export import NameResponseShadowsPydanticResponse = API.NameResponseShadowsPydanticResponse; | ||
export import NamePropertiesCommonConflictsParams = API.NamePropertiesCommonConflictsParams; | ||
export import NamePropertiesIllegalJavascriptIdentifiersParams = API.NamePropertiesIllegalJavascriptIdentifiersParams; | ||
@@ -563,0 +565,0 @@ export import Widgets = API.Widgets; |
@@ -333,4 +333,4 @@ // File generated from our OpenAPI spec by Stainless. | ||
this.data = body.data || []; | ||
this.page = body.page || 0.0; | ||
this.last_page = body.last_page || 0.0; | ||
this.page = body.page || 0; | ||
this.last_page = body.last_page || 0; | ||
} | ||
@@ -337,0 +337,0 @@ |
@@ -27,5 +27,7 @@ // File generated from our OpenAPI spec by Stainless. | ||
NamePropertiesCommonConflictsResponse, | ||
NamePropertiesIllegalJavascriptIdentifiersResponse, | ||
NameResponsePropertyClashesModelImportResponse, | ||
NameResponseShadowsPydanticResponse, | ||
NamePropertiesCommonConflictsParams, | ||
NamePropertiesIllegalJavascriptIdentifiersParams, | ||
Names, | ||
@@ -32,0 +34,0 @@ } from './names/names'; |
@@ -7,5 +7,7 @@ // File generated from our OpenAPI spec by Stainless. | ||
NamePropertiesCommonConflictsResponse, | ||
NamePropertiesIllegalJavascriptIdentifiersResponse, | ||
NameResponsePropertyClashesModelImportResponse, | ||
NameResponseShadowsPydanticResponse, | ||
NamePropertiesCommonConflictsParams, | ||
NamePropertiesIllegalJavascriptIdentifiersParams, | ||
Names, | ||
@@ -12,0 +14,0 @@ } from './names'; |
@@ -45,2 +45,13 @@ // File generated from our OpenAPI spec by Stainless. | ||
/** | ||
* Endpoint with request & response properties with names that aren't legal | ||
* javascript identifiers. | ||
*/ | ||
propertiesIllegalJavascriptIdentifiers( | ||
body: NamePropertiesIllegalJavascriptIdentifiersParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<NamePropertiesIllegalJavascriptIdentifiersResponse> { | ||
return this._client.post('/names/properties_illegal_javascript_identifiers', { body, ...options }); | ||
} | ||
/** | ||
* Endpoint with a response model property that can cause clashes with a model | ||
@@ -118,2 +129,12 @@ * import. | ||
export type NamePropertiesIllegalJavascriptIdentifiersResponse = | ||
| NamePropertiesIllegalJavascriptIdentifiersResponse._2llegalJavascriptIdentifiers | ||
| number; | ||
export namespace NamePropertiesIllegalJavascriptIdentifiersResponse { | ||
export interface _2llegalJavascriptIdentifiers { | ||
irrelevant?: number; | ||
} | ||
} | ||
export interface NameResponsePropertyClashesModelImportResponse { | ||
@@ -168,2 +189,14 @@ balance: Balance; | ||
export type NamePropertiesIllegalJavascriptIdentifiersParams = | ||
| NamePropertiesIllegalJavascriptIdentifiersParams._2llegalJavascriptIdentifiers | ||
| NamePropertiesIllegalJavascriptIdentifiersParams._3llegalJavascriptIdentifiers; | ||
export namespace NamePropertiesIllegalJavascriptIdentifiersParams { | ||
export interface _2llegalJavascriptIdentifiers { | ||
irrelevant?: number; | ||
} | ||
export type _3llegalJavascriptIdentifiers = number; | ||
} | ||
export namespace Names { | ||
@@ -173,5 +206,7 @@ export import Balance = NamesAPI.Balance; | ||
export import NamePropertiesCommonConflictsResponse = NamesAPI.NamePropertiesCommonConflictsResponse; | ||
export import NamePropertiesIllegalJavascriptIdentifiersResponse = NamesAPI.NamePropertiesIllegalJavascriptIdentifiersResponse; | ||
export import NameResponsePropertyClashesModelImportResponse = NamesAPI.NameResponsePropertyClashesModelImportResponse; | ||
export import NameResponseShadowsPydanticResponse = NamesAPI.NameResponseShadowsPydanticResponse; | ||
export import NamePropertiesCommonConflictsParams = NamesAPI.NamePropertiesCommonConflictsParams; | ||
export import NamePropertiesIllegalJavascriptIdentifiersParams = NamesAPI.NamePropertiesIllegalJavascriptIdentifiersParams; | ||
export import Unions = UnionsAPI.Unions; | ||
@@ -178,0 +213,0 @@ export import DiscriminatedUnion = UnionsAPI.DiscriminatedUnion; |
@@ -187,3 +187,3 @@ import { type RequestOptions } from './core'; | ||
*/ | ||
export const maybeMultipartFormRequestOptions = async <T extends {} = Record<string, unknown>>( | ||
export const maybeMultipartFormRequestOptions = async <T = Record<string, unknown>>( | ||
opts: RequestOptions<T>, | ||
@@ -197,3 +197,3 @@ ): Promise<RequestOptions<T | MultipartBody>> => { | ||
export const multipartFormRequestOptions = async <T extends {} = Record<string, unknown>>( | ||
export const multipartFormRequestOptions = async <T = Record<string, unknown>>( | ||
opts: RequestOptions<T>, | ||
@@ -200,0 +200,0 @@ ): Promise<RequestOptions<T | MultipartBody>> => { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.9.0'; // x-release-please-version | ||
export const VERSION = '0.9.1'; // x-release-please-version |
@@ -72,5 +72,5 @@ import { type RequestOptions } from "./core.js"; | ||
*/ | ||
export declare const maybeMultipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>; | ||
export declare const multipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>; | ||
export declare const maybeMultipartFormRequestOptions: <T = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>; | ||
export declare const multipartFormRequestOptions: <T = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>; | ||
export declare const createForm: <T = Record<string, unknown>>(body: T | undefined) => Promise<FormData>; | ||
//# sourceMappingURL=uploads.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.9.0"; | ||
export declare const VERSION = "0.9.1"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.9.0'; // x-release-please-version | ||
exports.VERSION = '0.9.1'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1588763
25213