-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4944 from microsoft/regen/clients-1706879063
Regenerated Kiota clients in get started projects
- Loading branch information
Showing
36 changed files
with
252 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules/ | ||
makesdk-dev.bat | ||
*.js | ||
out/ |
61 changes: 37 additions & 24 deletions
61
get-started/azure-auth/typescript/client/getUserApiClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,54 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// Generated by Microsoft Kiota | ||
import { MeRequestBuilder } from './me/'; | ||
import { BaseRequestBuilder, enableBackingStoreForSerializationWriterFactory, ParseNodeFactoryRegistry, registerDefaultDeserializer, registerDefaultSerializer, SerializationWriterFactoryRegistry, type RequestAdapter } from '@microsoft/kiota-abstractions'; | ||
import { MeRequestBuilderRequestsMetadata, MeRequestBuilderUriTemplate, type MeRequestBuilder } from './me/'; | ||
import { apiClientProxifier, registerDefaultDeserializer, registerDefaultSerializer, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions'; | ||
import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form'; | ||
import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json'; | ||
import { MultipartSerializationWriterFactory } from '@microsoft/kiota-serialization-multipart'; | ||
import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft/kiota-serialization-text'; | ||
|
||
/** | ||
* Instantiates a new GetUserApiClient and sets the default values. | ||
* @param requestAdapter The request adapter to use to execute the requests. | ||
*/ | ||
export function createGetUserApiClient(requestAdapter: RequestAdapter) { | ||
registerDefaultSerializer(JsonSerializationWriterFactory); | ||
registerDefaultSerializer(TextSerializationWriterFactory); | ||
registerDefaultSerializer(FormSerializationWriterFactory); | ||
registerDefaultSerializer(MultipartSerializationWriterFactory); | ||
registerDefaultDeserializer(JsonParseNodeFactory); | ||
registerDefaultDeserializer(TextParseNodeFactory); | ||
registerDefaultDeserializer(FormParseNodeFactory); | ||
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") { | ||
requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0"; | ||
} | ||
const pathParameters: Record<string, unknown> = { | ||
"baseurl": requestAdapter.baseUrl, | ||
}; | ||
return apiClientProxifier<GetUserApiClient>(requestAdapter, pathParameters, GetUserApiClientUriTemplate, GetUserApiClientNavigationMetadata, undefined); | ||
} | ||
/** | ||
* The main entry point of the SDK, exposes the configuration and the fluent API. | ||
*/ | ||
export class GetUserApiClient extends BaseRequestBuilder<GetUserApiClient> { | ||
export interface GetUserApiClient extends BaseRequestBuilder<GetUserApiClient> { | ||
/** | ||
* The me property | ||
*/ | ||
public get me(): MeRequestBuilder { | ||
return new MeRequestBuilder(this.pathParameters, this.requestAdapter); | ||
} | ||
/** | ||
* Instantiates a new GetUserApiClient and sets the default values. | ||
* @param requestAdapter The request adapter to use to execute the requests. | ||
*/ | ||
public constructor(requestAdapter: RequestAdapter) { | ||
super({}, requestAdapter, "{+baseurl}", (x, y) => new GetUserApiClient(y)); | ||
registerDefaultSerializer(JsonSerializationWriterFactory); | ||
registerDefaultSerializer(TextSerializationWriterFactory); | ||
registerDefaultSerializer(FormSerializationWriterFactory); | ||
registerDefaultSerializer(MultipartSerializationWriterFactory); | ||
registerDefaultDeserializer(JsonParseNodeFactory); | ||
registerDefaultDeserializer(TextParseNodeFactory); | ||
registerDefaultDeserializer(FormParseNodeFactory); | ||
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") { | ||
requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0"; | ||
} | ||
this.pathParameters["baseurl"] = requestAdapter.baseUrl; | ||
} | ||
get me(): MeRequestBuilder; | ||
} | ||
/** | ||
* Metadata for all the navigation properties in the request builder. | ||
*/ | ||
export const GetUserApiClientNavigationMetadata: Record<Exclude<keyof GetUserApiClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = { | ||
me: { | ||
uriTemplate: MeRequestBuilderUriTemplate, | ||
requestsMetadata: MeRequestBuilderRequestsMetadata, | ||
}, | ||
}; | ||
/** | ||
* Uri template for the request builder. | ||
*/ | ||
export const GetUserApiClientUriTemplate = "{+baseurl}"; | ||
/* tslint:enable */ | ||
/* eslint-enable */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.