Skip to content
Merged
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
705 changes: 582 additions & 123 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": "0F40AB32284DFBDC12F20879BCAF6E5BAD30CAECFB277F7C18483CEA887D728A856B1B727CE4F67A8F4CBF0955C0E7F998B80F9A8691E015E619EF53C18818C7",
"descriptionHash": "73ADF297240E71DD9888A3D3F2953DDB3283BC8402049E68906573D617732614224984D7552452D05C66F7EA4C6BFA9A191B714D91F8F18606642172DD1DC2E0",
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.27.0",
Expand Down
22 changes: 22 additions & 0 deletions packages/msgraph-beta-sdk-admin/admin/people/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import { ProfileCardPropertiesRequestBuilderNavigationMetadata, ProfileCardPrope
// @ts-ignore
import { ProfilePropertySettingsRequestBuilderNavigationMetadata, ProfilePropertySettingsRequestBuilderRequestsMetadata, type ProfilePropertySettingsRequestBuilder } from './profilePropertySettings/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 @@ -38,6 +42,10 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
* Provides operations to manage the profilePropertySettings property of the microsoft.graph.peopleAdminSettings entity.
*/
get profilePropertySettings(): ProfilePropertySettingsRequestBuilder;
/**
* 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 @@ -64,6 +72,12 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: PeopleAdminSettings, requestConfiguration?: RequestConfiguration<object> | 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;
/**
* Delete navigation property people for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
Expand Down Expand Up @@ -112,6 +126,10 @@ 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,
},
Expand All @@ -126,6 +144,10 @@ export const PeopleRequestBuilderNavigationMetadata: Record<Exclude<keyof People
requestsMetadata: ProfilePropertySettingsRequestBuilderRequestsMetadata,
navigationMetadata: ProfilePropertySettingsRequestBuilderNavigationMetadata,
},
profileSources: {
requestsMetadata: ProfileSourcesRequestBuilderRequestsMetadata,
navigationMetadata: ProfileSourcesRequestBuilderNavigationMetadata,
},
pronouns: {
requestsMetadata: PronounsRequestBuilderRequestsMetadata,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuil
* @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
* @deprecated What&apos;s new API is being deprecated and will be removed. as of 2025-04/changeManagement on 2025-04-15 and will be removed 2025-05-15
*/
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}
* @deprecated What&apos;s new API is being deprecated and will be removed. as of 2025-04/changeManagement on 2025-04-15 and will be removed 2025-05-15
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
Expand All @@ -42,7 +40,7 @@ export interface CountRequestBuilderGetQueryParameters {
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/identity/productChanges/$count{?%24filter,%24search}";
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources/$count{?%24filter,%24search}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
Expand Down
154 changes: 154 additions & 0 deletions packages/msgraph-beta-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-beta-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-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-beta|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-beta|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 */
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createProfileSourceFromDiscriminatorValue, serializeProfileSource, type ProfileSource } from '@microsoft/msgraph-beta-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-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 manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
*/
export interface ProfileSourceItemRequestBuilder extends BaseRequestBuilder<ProfileSourceItemRequestBuilder> {
/**
* Delete a profileSource object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/profilesource-delete?view=graph-rest-beta|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* A collection of profile source settings configured by an administrator in an organization.
* @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
*/
get(requestConfiguration?: RequestConfiguration<ProfileSourceItemRequestBuilderGetQueryParameters> | undefined) : Promise<ProfileSource | undefined>;
/**
* Update the properties of a 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/profilesource-update?view=graph-rest-beta|Find more info here}
*/
patch(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileSource | undefined>;
/**
* Delete a profileSource object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* A collection of profile source settings configured by an administrator in an organization.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfileSourceItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update the properties of a profileSource object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* A collection of profile source settings configured by an administrator in an organization.
*/
export interface ProfileSourceItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export const ProfileSourceItemRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources/{profileSource%2Did}{?%24expand,%24select}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const ProfileSourceItemRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"expand": "%24expand",
"select": "%24select",
};
/**
* Metadata for all the requests in the request builder.
*/
export const ProfileSourceItemRequestBuilderRequestsMetadata: RequestsMetadata = {
delete: {
uriTemplate: ProfileSourceItemRequestBuilderUriTemplate,
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendNoResponseContent",
},
get: {
uriTemplate: ProfileSourceItemRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createProfileSourceFromDiscriminatorValue,
queryParametersMapper: ProfileSourceItemRequestBuilderGetQueryParametersMapper,
},
patch: {
uriTemplate: ProfileSourceItemRequestBuilderUriTemplate,
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