Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,024 changes: 1,016 additions & 8 deletions packages/kiota-dom-export.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "4F06022D5B45031BAB5C100A8706A34FA46122344724E8FCA8C63860D90BF29AC24BE841A1ED2D972C817F599F3CB3D773FDC21B97C78F4BD30527C351DF0259",
"descriptionHash": "89E8F6D74A32BB61DE8F4EB953F340F058C3B87D73273DC2DF16A3356AB383E85983A902A22001D6AB119C3FB39EB5DF2C76C3D82A5FA86344385E3A8DDCD30D",
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.30.0",
Expand Down
22 changes: 22 additions & 0 deletions packages/msgraph-sdk-admin/admin/people/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { ItemInsightsRequestBuilderRequestsMetadata, type ItemInsightsRequestBui
// @ts-ignore
import { ProfileCardPropertiesRequestBuilderNavigationMetadata, ProfileCardPropertiesRequestBuilderRequestsMetadata, type ProfileCardPropertiesRequestBuilder } from './profileCardProperties/index.js';
// @ts-ignore
import { ProfileSourcesRequestBuilderNavigationMetadata, ProfileSourcesRequestBuilderRequestsMetadata, type ProfileSourcesRequestBuilder } from './profileSources/index.js';
// @ts-ignore
import { ProfileSourcesWithSourceIdRequestBuilderRequestsMetadata, type ProfileSourcesWithSourceIdRequestBuilder } from './profileSourcesWithSourceId/index.js';
// @ts-ignore
import { PronounsRequestBuilderRequestsMetadata, type PronounsRequestBuilder } from './pronouns/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
Expand All @@ -26,6 +30,10 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
* Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
*/
get profileCardProperties(): ProfileCardPropertiesRequestBuilder;
/**
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
*/
get profileSources(): ProfileSourcesRequestBuilder;
/**
* Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
*/
Expand All @@ -38,6 +46,12 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-get?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<PeopleRequestBuilderGetQueryParameters> | undefined) : Promise<PeopleAdminSettings | undefined>;
/**
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
* @param sourceId Alternate key of profileSource
* @returns {ProfileSourcesWithSourceIdRequestBuilder}
*/
profileSourcesWithSourceId(sourceId: string | undefined) : ProfileSourcesWithSourceIdRequestBuilder;
/**
* Retrieve the properties and relationships of a peopleAdminSettings object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
Expand Down Expand Up @@ -73,13 +87,21 @@ const PeopleRequestBuilderGetQueryParametersMapper: Record<string, string> = {
* Metadata for all the navigation properties in the request builder.
*/
export const PeopleRequestBuilderNavigationMetadata: Record<Exclude<keyof PeopleRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
profileSourcesWithSourceId: {
requestsMetadata: ProfileSourcesWithSourceIdRequestBuilderRequestsMetadata,
pathParametersMappings: ["sourceId"],
},
itemInsights: {
requestsMetadata: ItemInsightsRequestBuilderRequestsMetadata,
},
profileCardProperties: {
requestsMetadata: ProfileCardPropertiesRequestBuilderRequestsMetadata,
navigationMetadata: ProfileCardPropertiesRequestBuilderNavigationMetadata,
},
profileSources: {
requestsMetadata: ProfileSourcesRequestBuilderRequestsMetadata,
navigationMetadata: ProfileSourcesRequestBuilderNavigationMetadata,
},
pronouns: {
requestsMetadata: PronounsRequestBuilderRequestsMetadata,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to count the resources in the collection.
*/
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<number>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
/**
* Get the number of the resource
*/
export interface CountRequestBuilderGetQueryParameters {
/**
* Filter items by property values
*/
filter?: string;
/**
* Search items by search phrases
*/
search?: string;
}
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources/$count{?%24filter,%24search}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"filter": "%24filter",
"search": "%24search",
};
/**
* Metadata for all the requests in the request builder.
*/
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: CountRequestBuilderUriTemplate,
responseBodyContentType: "text/plain;q=0.9",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendPrimitive",
responseBodyFactory: "number",
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
},
};
/* tslint:enable */
/* eslint-enable */
154 changes: 154 additions & 0 deletions packages/msgraph-sdk-admin/admin/people/profileSources/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createProfileSourceCollectionResponseFromDiscriminatorValue, createProfileSourceFromDiscriminatorValue, serializeProfileSource, type ProfileSource, type ProfileSourceCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
// @ts-ignore
import { ProfileSourceItemRequestBuilderRequestsMetadata, type ProfileSourceItemRequestBuilder } from './item/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
*/
export interface ProfileSourcesRequestBuilder extends BaseRequestBuilder<ProfileSourcesRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
* @param profileSourceId The unique identifier of profileSource
* @returns {ProfileSourceItemRequestBuilder}
*/
byProfileSourceId(profileSourceId: string) : ProfileSourceItemRequestBuilder;
/**
* Get a list of the profileSource objects and their properties, which represent both external data sources and out-of-the-box Microsoft data sources configured for user profiles in an organization.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ProfileSourceCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-list-profilesources?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ProfileSourcesRequestBuilderGetQueryParameters> | undefined) : Promise<ProfileSourceCollectionResponse | undefined>;
/**
* Create a new profileSource object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ProfileSource>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-post-profilesources?view=graph-rest-1.0|Find more info here}
*/
post(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileSource | undefined>;
/**
* Get a list of the profileSource objects and their properties, which represent both external data sources and out-of-the-box Microsoft data sources configured for user profiles in an organization.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfileSourcesRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Create a new profileSource object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Get a list of the profileSource objects and their properties, which represent both external data sources and out-of-the-box Microsoft data sources configured for user profiles in an organization.
*/
export interface ProfileSourcesRequestBuilderGetQueryParameters {
/**
* Include count of items
*/
count?: boolean;
/**
* Expand related entities
*/
expand?: string[];
/**
* Filter items by property values
*/
filter?: string;
/**
* Order items by property values
*/
orderby?: string[];
/**
* Search items by search phrases
*/
search?: string;
/**
* Select properties to be returned
*/
select?: string[];
/**
* Skip the first n items
*/
skip?: number;
/**
* Show only the first n items
*/
top?: number;
}
/**
* Uri template for the request builder.
*/
export const ProfileSourcesRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const ProfileSourcesRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"count": "%24count",
"expand": "%24expand",
"filter": "%24filter",
"orderby": "%24orderby",
"search": "%24search",
"select": "%24select",
"skip": "%24skip",
"top": "%24top",
};
/**
* Metadata for all the navigation properties in the request builder.
*/
export const ProfileSourcesRequestBuilderNavigationMetadata: Record<Exclude<keyof ProfileSourcesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
byProfileSourceId: {
requestsMetadata: ProfileSourceItemRequestBuilderRequestsMetadata,
pathParametersMappings: ["profileSource%2Did"],
},
count: {
requestsMetadata: CountRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
*/
export const ProfileSourcesRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: ProfileSourcesRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createProfileSourceCollectionResponseFromDiscriminatorValue,
queryParametersMapper: ProfileSourcesRequestBuilderGetQueryParametersMapper,
},
post: {
uriTemplate: ProfileSourcesRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createProfileSourceFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeProfileSource,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Loading
Loading