@microsoft/kiota-abstractions
Advanced tools
Comparing version 1.0.0-preview.65 to 1.0.0-preview.66
@@ -23,3 +23,3 @@ /** | ||
constructor(apiKey: string, parameterName: string, location: ApiKeyLocation, validHosts?: Set<string>); | ||
authenticateRequest(request: RequestInformation, additionalAuthenticationContext?: Record<string, unknown> | undefined): Promise<void>; | ||
authenticateRequest(request: RequestInformation, additionalAuthenticationContext?: Record<string, unknown>): Promise<void>; | ||
} | ||
@@ -26,0 +26,0 @@ /** The location for the API key */ |
import type { RequestOption } from "./requestOption.js"; | ||
import type { ResponseHandler } from "./responseHandler.js"; | ||
type originalCallType<modelType, queryParametersType, headersType> = (q?: queryParametersType, h?: headersType, o?: RequestOption[] | undefined, responseHandler?: ResponseHandler) => Promise<modelType>; | ||
type originalCallWithBodyType<modelType, queryParametersType, headersType, requestBodyType> = (requestBody: requestBodyType, q?: queryParametersType, h?: headersType, o?: RequestOption[] | undefined, responseHandler?: ResponseHandler) => Promise<modelType>; | ||
type originalCallType<modelType, queryParametersType, headersType> = (q?: queryParametersType, h?: headersType, o?: RequestOption[], responseHandler?: ResponseHandler) => Promise<modelType>; | ||
type originalCallWithBodyType<modelType, queryParametersType, headersType, requestBodyType> = (requestBody: requestBodyType, q?: queryParametersType, h?: headersType, o?: RequestOption[], responseHandler?: ResponseHandler) => Promise<modelType>; | ||
/** This class can be used to wrap a request using the fluent API and get the native response object in return. */ | ||
export declare class NativeResponseWrapper { | ||
static CallAndGetNative: <modelType, nativeResponseType, queryParametersType, headersType>(originalCall: originalCallType<modelType, queryParametersType, headersType>, q?: queryParametersType, h?: headersType, o?: RequestOption[] | undefined) => Promise<nativeResponseType>; | ||
static CallAndGetNativeWithBody: <modelType, nativeResponseType, queryParametersType, headersType, requestBodyType>(originalCall: originalCallWithBodyType<modelType, queryParametersType, headersType, requestBodyType>, requestBody: requestBodyType, q?: queryParametersType, h?: headersType, o?: RequestOption[] | undefined) => Promise<nativeResponseType>; | ||
static CallAndGetNative: <modelType, nativeResponseType, queryParametersType, headersType>(originalCall: originalCallType<modelType, queryParametersType, headersType>, q?: queryParametersType, h?: headersType, o?: RequestOption[]) => Promise<nativeResponseType>; | ||
static CallAndGetNativeWithBody: <modelType, nativeResponseType, queryParametersType, headersType, requestBodyType>(originalCall: originalCallWithBodyType<modelType, queryParametersType, headersType, requestBodyType>, requestBody: requestBodyType, q?: queryParametersType, h?: headersType, o?: RequestOption[]) => Promise<nativeResponseType>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=nativeResponseWrapper.d.ts.map |
@@ -88,3 +88,3 @@ /** | ||
*/ | ||
enableBackingStore(backingStoreFactory?: BackingStoreFactory | undefined): void; | ||
enableBackingStore(backingStoreFactory?: BackingStoreFactory): void; | ||
/** The base url for every request. */ | ||
@@ -91,0 +91,0 @@ baseUrl: string; |
@@ -55,3 +55,3 @@ import { Headers } from "./headers.js"; | ||
*/ | ||
setContentFromParsable: <T extends Parsable>(requestAdapter?: RequestAdapter | undefined, contentType?: string | undefined, value?: T[] | T, modelSerializerFunction?: ModelSerializerFunction<T>) => void; | ||
setContentFromParsable: <T extends Parsable>(requestAdapter?: RequestAdapter, contentType?: string, value?: T[] | T, modelSerializerFunction?: ModelSerializerFunction<T>) => void; | ||
private readonly setContentAndContentType; | ||
@@ -93,4 +93,4 @@ private readonly getSerializationWriter; | ||
setContentFromScalar<T extends PrimitiveTypesForDeserializationType>(requestAdapter: RequestAdapter | undefined, contentType: string | undefined, value: T[] | T): void; | ||
setContentFromParsable<T extends Parsable>(requestAdapter?: RequestAdapter | undefined, contentType?: string | undefined, value?: T[] | T, modelSerializerFunction?: ModelSerializerFunction<T>): void; | ||
setContentFromParsable<T extends Parsable>(requestAdapter?: RequestAdapter, contentType?: string, value?: T[] | T, modelSerializerFunction?: ModelSerializerFunction<T>): void; | ||
} | ||
//# sourceMappingURL=requestInformation.d.ts.map |
@@ -191,3 +191,3 @@ /** | ||
for (const key in this.pathParameters) { | ||
if (this.pathParameters[key]) { | ||
if (this.pathParameters[key] !== null && this.pathParameters[key] !== undefined) { | ||
data[key] = this.normalizeValue(this.pathParameters[key]); | ||
@@ -194,0 +194,0 @@ } |
@@ -10,4 +10,4 @@ /** | ||
import type { SerializationWriter } from "./serializationWriter.js"; | ||
export type ModelSerializerFunction<T extends Parsable> = (writer: SerializationWriter, value?: Partial<T> | null | undefined) => void; | ||
export type DeserializeIntoModelFunction<T extends Parsable> = (value?: Partial<T> | undefined) => Record<string, (node: ParseNode) => void>; | ||
export type ModelSerializerFunction<T extends Parsable> = (writer: SerializationWriter, value?: Partial<T> | null) => void; | ||
export type DeserializeIntoModelFunction<T extends Parsable> = (value?: Partial<T>) => Record<string, (node: ParseNode) => void>; | ||
//# sourceMappingURL=serializationFunctionTypes.d.ts.map |
@@ -20,3 +20,3 @@ /** | ||
*/ | ||
writeByteArrayValue(key?: string | undefined, value?: ArrayBuffer): void; | ||
writeByteArrayValue(key?: string, value?: ArrayBuffer): void; | ||
/** | ||
@@ -27,3 +27,3 @@ * Writes the specified string value to the stream with an optional given key. | ||
*/ | ||
writeStringValue(key?: string | undefined, value?: string | null | undefined): void; | ||
writeStringValue(key?: string, value?: string | null): void; | ||
/** | ||
@@ -34,3 +34,3 @@ * Writes the specified boolean value to the stream with an optional given key. | ||
*/ | ||
writeBooleanValue(key?: string | undefined, value?: boolean | null | undefined): void; | ||
writeBooleanValue(key?: string, value?: boolean | null): void; | ||
/** | ||
@@ -41,3 +41,3 @@ * Writes the specified number value to the stream with an optional given key. | ||
*/ | ||
writeNumberValue(key?: string | undefined, value?: number | null | undefined): void; | ||
writeNumberValue(key?: string, value?: number | null): void; | ||
/** | ||
@@ -48,3 +48,3 @@ * Writes the specified Guid value to the stream with an optional given key. | ||
*/ | ||
writeGuidValue(key?: string | undefined, value?: Guid | null | undefined): void; | ||
writeGuidValue(key?: string, value?: Guid | null): void; | ||
/** | ||
@@ -55,3 +55,3 @@ * Writes the specified Date value to the stream with an optional given key. | ||
*/ | ||
writeDateValue(key?: string | undefined, value?: Date | null | undefined): void; | ||
writeDateValue(key?: string, value?: Date | null): void; | ||
/** | ||
@@ -62,3 +62,3 @@ * Writes the specified Duration value to the stream with an optional given key. | ||
*/ | ||
writeDurationValue(key?: string | undefined, value?: Duration | null | undefined): void; | ||
writeDurationValue(key?: string, value?: Duration | null): void; | ||
/** | ||
@@ -69,3 +69,3 @@ * Writes the specified TimeOnly value to the stream with an optional given key. | ||
*/ | ||
writeTimeOnlyValue(key?: string | undefined, value?: TimeOnly | null | undefined): void; | ||
writeTimeOnlyValue(key?: string, value?: TimeOnly | null): void; | ||
/** | ||
@@ -76,3 +76,3 @@ * Writes the specified DateOnly value to the stream with an optional given key. | ||
*/ | ||
writeDateOnlyValue(key?: string | undefined, value?: DateOnly | null | undefined): void; | ||
writeDateOnlyValue(key?: string, value?: DateOnly | null): void; | ||
/** | ||
@@ -83,3 +83,3 @@ * Writes the specified collection of primitive values to the stream with an optional given key. | ||
*/ | ||
writeCollectionOfPrimitiveValues<T>(key?: string | undefined, values?: T[] | null | undefined): void; | ||
writeCollectionOfPrimitiveValues<T>(key?: string, values?: T[] | null): void; | ||
/** | ||
@@ -90,3 +90,3 @@ * Writes the specified collection of object values to the stream with an optional given key. | ||
*/ | ||
writeCollectionOfObjectValues<T extends Parsable>(key?: string | undefined, values?: T[] | null, serializerMethod?: ModelSerializerFunction<T>): void; | ||
writeCollectionOfObjectValues<T extends Parsable>(key?: string, values?: T[] | null, serializerMethod?: ModelSerializerFunction<T>): void; | ||
/** | ||
@@ -97,3 +97,3 @@ * Writes the specified model object value to the stream with an optional given key. | ||
*/ | ||
writeObjectValue<T extends Parsable>(key?: string | undefined, value?: T | null | undefined, serializerMethod?: ModelSerializerFunction<T>): void; | ||
writeObjectValue<T extends Parsable>(key?: string, value?: T | null, serializerMethod?: ModelSerializerFunction<T>): void; | ||
/** | ||
@@ -104,3 +104,3 @@ * Writes the specified enum value to the stream with an optional given key. | ||
*/ | ||
writeEnumValue<T>(key?: string | undefined, ...values: (T | null | undefined)[]): void; | ||
writeEnumValue<T>(key?: string, ...values: (T | null | undefined)[]): void; | ||
/** | ||
@@ -110,3 +110,3 @@ * Writes a null value for the specified key. | ||
*/ | ||
writeNullValue(key?: string | undefined): void; | ||
writeNullValue(key?: string): void; | ||
/** | ||
@@ -113,0 +113,0 @@ * Gets the value of the serialized content. |
@@ -47,3 +47,3 @@ /** | ||
newValue: unknown; | ||
}, subscriptionId?: string | undefined): string; | ||
}, subscriptionId?: string): string; | ||
/** | ||
@@ -50,0 +50,0 @@ * Removes a subscription from the store based on its subscription id. |
@@ -13,3 +13,3 @@ import type { BackingStore } from "./backingStore.js"; | ||
enumerateKeysForValuesChangedToNull(): string[]; | ||
subscribe(callback: subscriptionCallback, subscriptionId?: string | undefined): string; | ||
subscribe(callback: subscriptionCallback, subscriptionId?: string): string; | ||
unsubscribe(subscriptionId: string): void; | ||
@@ -16,0 +16,0 @@ clear(): void; |
{ | ||
"name": "@microsoft/kiota-abstractions", | ||
"version": "1.0.0-preview.65", | ||
"version": "1.0.0-preview.66", | ||
"description": "Core abstractions for kiota generated libraries in TypeScript and JavaScript", | ||
@@ -46,3 +46,3 @@ "main": "dist/es/src/index.js", | ||
}, | ||
"gitHead": "d45aec90e36937cff43f70330fd894431ad59880" | ||
"gitHead": "e8f18408e6713d3c60882adecfe8b7bc760f76c7" | ||
} |
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
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
384216