Socket
Socket
Sign inDemoInstall

@microsoft/kiota-abstractions

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/kiota-abstractions - npm Package Compare versions

Comparing version 1.0.0-preview.20 to 1.0.0-preview.21

dist/cjs/src/responseHandlerOptions.d.ts

1

dist/cjs/src/index.d.ts

@@ -19,2 +19,3 @@ export * from "./apiClientBuilder";

export * from "./utils";
export * from "./responseHandlerOptions";
//# sourceMappingURL=index.d.ts.map

@@ -22,2 +22,3 @@ "use strict";

tslib_1.__exportStar(require("./utils"), exports);
tslib_1.__exportStar(require("./responseHandlerOptions"), exports);
//# sourceMappingURL=index.js.map

16

dist/cjs/src/requestAdapter.d.ts
import { RequestInformation } from "./requestInformation";
import { ResponseHandler } from "./responseHandler";
import { Parsable, ParsableFactory, SerializationWriterFactory } from "./serialization";

@@ -15,3 +14,2 @@ import { BackingStoreFactory } from "./store";

* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -22,7 +20,6 @@ * @param type the class of the response model to deserialize the response into.

*/
sendAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType | undefined>;
sendAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType | undefined>;
/**
* Executes the HTTP request specified by the given RequestInformation and returns the deserialized response model collection.
* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -33,3 +30,3 @@ * @param type the class of the response model to deserialize the response into.

*/
sendCollectionAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType[] | undefined>;
sendCollectionAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType[] | undefined>;
/**

@@ -39,3 +36,2 @@ * Executes the HTTP request specified by the given RequestInformation and returns the deserialized response model collection.

* @param responseType the class of the response model to deserialize the response into.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -46,7 +42,6 @@ * @param type the class of the response model to deserialize the response into.

*/
sendCollectionOfPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date", responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType[] | undefined>;
sendCollectionOfPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date", errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType[] | undefined>;
/**
* Executes the HTTP request specified by the given RequestInformation and returns the deserialized primitive response model.
* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -57,11 +52,10 @@ * @param responseType the class of the response model to deserialize the response into.

*/
sendPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date" | "ArrayBuffer", responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType | undefined>;
sendPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date" | "ArrayBuffer", errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType | undefined>;
/**
* Executes the HTTP request specified by the given RequestInformation and returns the deserialized primitive response model.
* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.
* @return a {@link Promise} of void.
*/
sendNoResponseContentAsync(requestInfo: RequestInformation, responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<void>;
sendNoResponseContentAsync(requestInfo: RequestInformation, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<void>;
/**

@@ -68,0 +62,0 @@ * Enables the backing store proxies for the SerializationWriters and ParseNodes in use.

@@ -19,2 +19,3 @@ export * from "./apiClientBuilder";

export * from "./utils";
export * from "./responseHandlerOptions";
//# sourceMappingURL=index.d.ts.map

@@ -19,2 +19,3 @@ export * from "./apiClientBuilder";

export * from "./utils";
export * from "./responseHandlerOptions";
//# sourceMappingURL=index.js.map
import { RequestInformation } from "./requestInformation";
import { ResponseHandler } from "./responseHandler";
import { Parsable, ParsableFactory, SerializationWriterFactory } from "./serialization";

@@ -15,3 +14,2 @@ import { BackingStoreFactory } from "./store";

* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -22,7 +20,6 @@ * @param type the class of the response model to deserialize the response into.

*/
sendAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType | undefined>;
sendAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType | undefined>;
/**
* Executes the HTTP request specified by the given RequestInformation and returns the deserialized response model collection.
* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -33,3 +30,3 @@ * @param type the class of the response model to deserialize the response into.

*/
sendCollectionAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType[] | undefined>;
sendCollectionAsync<ModelType extends Parsable>(requestInfo: RequestInformation, type: ParsableFactory<ModelType>, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ModelType[] | undefined>;
/**

@@ -39,3 +36,2 @@ * Executes the HTTP request specified by the given RequestInformation and returns the deserialized response model collection.

* @param responseType the class of the response model to deserialize the response into.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -46,7 +42,6 @@ * @param type the class of the response model to deserialize the response into.

*/
sendCollectionOfPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date", responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType[] | undefined>;
sendCollectionOfPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date", errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType[] | undefined>;
/**
* Executes the HTTP request specified by the given RequestInformation and returns the deserialized primitive response model.
* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.

@@ -57,11 +52,10 @@ * @param responseType the class of the response model to deserialize the response into.

*/
sendPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date" | "ArrayBuffer", responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType | undefined>;
sendPrimitiveAsync<ResponseType>(requestInfo: RequestInformation, responseType: "string" | "number" | "boolean" | "Date" | "ArrayBuffer", errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<ResponseType | undefined>;
/**
* Executes the HTTP request specified by the given RequestInformation and returns the deserialized primitive response model.
* @param requestInfo the request info to execute.
* @param responseHandler The response handler to use for the HTTP request instead of the default handler.
* @param errorMappings the error factories mapping to use in case of a failed request.
* @return a {@link Promise} of void.
*/
sendNoResponseContentAsync(requestInfo: RequestInformation, responseHandler: ResponseHandler | undefined, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<void>;
sendNoResponseContentAsync(requestInfo: RequestInformation, errorMappings: Record<string, ParsableFactory<Parsable>> | undefined): Promise<void>;
/**

@@ -68,0 +62,0 @@ * Enables the backing store proxies for the SerializationWriters and ParseNodes in use.

{
"name": "@microsoft/kiota-abstractions",
"version": "1.0.0-preview.20",
"version": "1.0.0-preview.21",
"description": "Core abstractions for kiota generated libraries in TypeScript and JavaScript",

@@ -47,3 +47,3 @@ "main": "dist/cjs/src/index.js",

},
"gitHead": "4d33c1141694a5a66046acc52214dbcf1064b2e4"
"gitHead": "798a589d802400a087846d528675b63cac50da3b"
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc