@apimatic/core
Advanced tools
Comparing version 0.10.13 to 0.10.14
@@ -11,3 +11,2 @@ /// <reference types="node" /> | ||
export declare type RequestBuilderFactory<BaseUrlParamType, AuthParams> = (httpMethod: HttpMethod, path?: string) => RequestBuilder<BaseUrlParamType, AuthParams>; | ||
declare type QueryValue = string | string[] | number | number[] | bigint | Array<bigint> | boolean | boolean[] | null | undefined; | ||
export declare function skipEncode<T extends PathTemplatePrimitiveTypes>(value: T): SkipEncode<T>; | ||
@@ -38,4 +37,4 @@ export declare type ApiErrorConstructor = new (response: HttpContext, message: string) => any; | ||
headers(headersToMerge: Record<string, string>): void; | ||
query(name: string, value: QueryValue | Record<string, QueryValue>, prefixFormat?: ArrayPrefixFunction): void; | ||
query(parameters?: Record<string, QueryValue> | null, prefixFormat?: ArrayPrefixFunction): void; | ||
query(name: string, value: unknown | Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void; | ||
query(parameters?: Record<string, unknown> | null, prefixFormat?: ArrayPrefixFunction): void; | ||
form(parameters: Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void; | ||
@@ -103,4 +102,4 @@ formData(parameters: Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void; | ||
headers(headersToMerge: Record<string, string>): void; | ||
query(name: string, value: QueryValue | Record<string, QueryValue>, prefixFormat?: ArrayPrefixFunction): void; | ||
query(parameters?: Record<string, QueryValue> | null, prefixFormat?: ArrayPrefixFunction): void; | ||
query(name: string, value: unknown | Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void; | ||
query(parameters?: Record<string, unknown> | null, prefixFormat?: ArrayPrefixFunction): void; | ||
text(body: string | number | bigint | boolean | null | undefined): void; | ||
@@ -133,3 +132,2 @@ json(data: unknown): void; | ||
export declare function createRequestBuilderFactory<BaseUrlParamType, AuthParams>(httpClient: HttpClientInterface, baseUrlProvider: (arg?: BaseUrlParamType) => string, apiErrorConstructor: ApiErrorConstructor, authenticationProvider: AuthenticatorInterface<AuthParams>, retryConfig: RetryConfiguration, xmlSerializer?: XmlSerializerInterface, apiLogger?: ApiLoggerInterface): RequestBuilderFactory<BaseUrlParamType, AuthParams>; | ||
export {}; | ||
//# sourceMappingURL=requestBuilder.d.ts.map |
{ | ||
"name": "@apimatic/core", | ||
"author": "APIMatic Ltd.", | ||
"version": "0.10.13", | ||
"version": "0.10.14", | ||
"license": "MIT", | ||
@@ -86,3 +86,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "e6eca29f8d49f29e5aee126152b0a50da23824dc" | ||
"gitHead": "5aa53ee2f99b9893d1ff7891fa5b3a48568d64a1" | ||
} |
@@ -67,14 +67,2 @@ import JSONBig from '@apimatic/json-bigint'; | ||
type QueryValue = | ||
| string | ||
| string[] | ||
| number | ||
| number[] | ||
| bigint | ||
| Array<bigint> | ||
| boolean | ||
| boolean[] | ||
| null | ||
| undefined; | ||
export function skipEncode<T extends PathTemplatePrimitiveTypes>( | ||
@@ -120,7 +108,7 @@ value: T | ||
name: string, | ||
value: QueryValue | Record<string, QueryValue>, | ||
value: unknown | Record<string, unknown>, | ||
prefixFormat?: ArrayPrefixFunction | ||
): void; | ||
query( | ||
parameters?: Record<string, QueryValue> | null, | ||
parameters?: Record<string, unknown> | null, | ||
prefixFormat?: ArrayPrefixFunction | ||
@@ -292,11 +280,11 @@ ): void; | ||
name: string, | ||
value: QueryValue | Record<string, QueryValue>, | ||
value: unknown | Record<string, unknown>, | ||
prefixFormat?: ArrayPrefixFunction | ||
): void; | ||
public query( | ||
parameters?: Record<string, QueryValue> | null, | ||
parameters?: Record<string, unknown> | null, | ||
prefixFormat?: ArrayPrefixFunction | ||
): void; | ||
public query( | ||
nameOrParameters: string | Record<string, QueryValue> | null | undefined, | ||
nameOrParameters: string | Record<string, unknown> | null | undefined, | ||
value?: unknown, | ||
@@ -303,0 +291,0 @@ prefixFormat?: ArrayPrefixFunction |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194625
4947