Skip to content

Commit 9576c0a

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 189193
1 parent 7027cf9 commit 9576c0a

File tree

90 files changed

+4961
-869
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4961
-869
lines changed

packages/kiota-dom-export.txt

Lines changed: 582 additions & 123 deletions
Large diffs are not rendered by default.

packages/kiota-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "0F40AB32284DFBDC12F20879BCAF6E5BAD30CAECFB277F7C18483CEA887D728A856B1B727CE4F67A8F4CBF0955C0E7F998B80F9A8691E015E619EF53C18818C7",
2+
"descriptionHash": "73ADF297240E71DD9888A3D3F2953DDB3283BC8402049E68906573D617732614224984D7552452D05C66F7EA4C6BFA9A191B714D91F8F18606642172DD1DC2E0",
33
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.27.0",

packages/msgraph-beta-sdk-admin/admin/people/index.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { ProfileCardPropertiesRequestBuilderNavigationMetadata, ProfileCardPrope
1414
// @ts-ignore
1515
import { ProfilePropertySettingsRequestBuilderNavigationMetadata, ProfilePropertySettingsRequestBuilderRequestsMetadata, type ProfilePropertySettingsRequestBuilder } from './profilePropertySettings/index.js';
1616
// @ts-ignore
17+
import { ProfileSourcesRequestBuilderNavigationMetadata, ProfileSourcesRequestBuilderRequestsMetadata, type ProfileSourcesRequestBuilder } from './profileSources/index.js';
18+
// @ts-ignore
19+
import { ProfileSourcesWithSourceIdRequestBuilderRequestsMetadata, type ProfileSourcesWithSourceIdRequestBuilder } from './profileSourcesWithSourceId/index.js';
20+
// @ts-ignore
1721
import { PronounsRequestBuilderRequestsMetadata, type PronounsRequestBuilder } from './pronouns/index.js';
1822
// @ts-ignore
1923
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
@@ -38,6 +42,10 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
3842
* Provides operations to manage the profilePropertySettings property of the microsoft.graph.peopleAdminSettings entity.
3943
*/
4044
get profilePropertySettings(): ProfilePropertySettingsRequestBuilder;
45+
/**
46+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
47+
*/
48+
get profileSources(): ProfileSourcesRequestBuilder;
4149
/**
4250
* Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
4351
*/
@@ -64,6 +72,12 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
6472
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
6573
*/
6674
patch(body: PeopleAdminSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<PeopleAdminSettings | undefined>;
75+
/**
76+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
77+
* @param sourceId Alternate key of profileSource
78+
* @returns {ProfileSourcesWithSourceIdRequestBuilder}
79+
*/
80+
profileSourcesWithSourceId(sourceId: string | undefined) : ProfileSourcesWithSourceIdRequestBuilder;
6781
/**
6882
* Delete navigation property people for admin
6983
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -112,6 +126,10 @@ const PeopleRequestBuilderGetQueryParametersMapper: Record<string, string> = {
112126
* Metadata for all the navigation properties in the request builder.
113127
*/
114128
export const PeopleRequestBuilderNavigationMetadata: Record<Exclude<keyof PeopleRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
129+
profileSourcesWithSourceId: {
130+
requestsMetadata: ProfileSourcesWithSourceIdRequestBuilderRequestsMetadata,
131+
pathParametersMappings: ["sourceId"],
132+
},
115133
itemInsights: {
116134
requestsMetadata: ItemInsightsRequestBuilderRequestsMetadata,
117135
},
@@ -126,6 +144,10 @@ export const PeopleRequestBuilderNavigationMetadata: Record<Exclude<keyof People
126144
requestsMetadata: ProfilePropertySettingsRequestBuilderRequestsMetadata,
127145
navigationMetadata: ProfilePropertySettingsRequestBuilderNavigationMetadata,
128146
},
147+
profileSources: {
148+
requestsMetadata: ProfileSourcesRequestBuilderRequestsMetadata,
149+
navigationMetadata: ProfileSourcesRequestBuilderNavigationMetadata,
150+
},
129151
pronouns: {
130152
requestsMetadata: PronounsRequestBuilderRequestsMetadata,
131153
},

packages/msgraph-beta-sdk-identity/identity/productChanges/count/index.ts renamed to packages/msgraph-beta-sdk-admin/admin/people/profileSources/count/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuil
1515
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
1616
* @returns {Promise<number>}
1717
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
18-
* @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
1918
*/
2019
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
2120
/**
2221
* Get the number of the resource
2322
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
2423
* @returns {RequestInformation}
25-
* @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
2624
*/
2725
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
2826
}
@@ -42,7 +40,7 @@ export interface CountRequestBuilderGetQueryParameters {
4240
/**
4341
* Uri template for the request builder.
4442
*/
45-
export const CountRequestBuilderUriTemplate = "{+baseurl}/identity/productChanges/$count{?%24filter,%24search}";
43+
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources/$count{?%24filter,%24search}";
4644
/**
4745
* Mapper for query parameters from symbol name to serialization name represented as a constant.
4846
*/
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createProfileSourceCollectionResponseFromDiscriminatorValue, createProfileSourceFromDiscriminatorValue, serializeProfileSource, type ProfileSource, type ProfileSourceCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
8+
// @ts-ignore
9+
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
10+
// @ts-ignore
11+
import { ProfileSourceItemRequestBuilderRequestsMetadata, type ProfileSourceItemRequestBuilder } from './item/index.js';
12+
// @ts-ignore
13+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
14+
15+
/**
16+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
17+
*/
18+
export interface ProfileSourcesRequestBuilder extends BaseRequestBuilder<ProfileSourcesRequestBuilder> {
19+
/**
20+
* Provides operations to count the resources in the collection.
21+
*/
22+
get count(): CountRequestBuilder;
23+
/**
24+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
25+
* @param profileSourceId The unique identifier of profileSource
26+
* @returns {ProfileSourceItemRequestBuilder}
27+
*/
28+
byProfileSourceId(profileSourceId: string) : ProfileSourceItemRequestBuilder;
29+
/**
30+
* 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.
31+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32+
* @returns {Promise<ProfileSourceCollectionResponse>}
33+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
34+
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-list-profilesources?view=graph-rest-beta|Find more info here}
35+
*/
36+
get(requestConfiguration?: RequestConfiguration<ProfileSourcesRequestBuilderGetQueryParameters> | undefined) : Promise<ProfileSourceCollectionResponse | undefined>;
37+
/**
38+
* Create a new profileSource object.
39+
* @param body The request body
40+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
41+
* @returns {Promise<ProfileSource>}
42+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
43+
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-post-profilesources?view=graph-rest-beta|Find more info here}
44+
*/
45+
post(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileSource | undefined>;
46+
/**
47+
* 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.
48+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49+
* @returns {RequestInformation}
50+
*/
51+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfileSourcesRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
52+
/**
53+
* Create a new profileSource object.
54+
* @param body The request body
55+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
56+
* @returns {RequestInformation}
57+
*/
58+
toPostRequestInformation(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
59+
}
60+
/**
61+
* 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.
62+
*/
63+
export interface ProfileSourcesRequestBuilderGetQueryParameters {
64+
/**
65+
* Include count of items
66+
*/
67+
count?: boolean;
68+
/**
69+
* Expand related entities
70+
*/
71+
expand?: string[];
72+
/**
73+
* Filter items by property values
74+
*/
75+
filter?: string;
76+
/**
77+
* Order items by property values
78+
*/
79+
orderby?: string[];
80+
/**
81+
* Search items by search phrases
82+
*/
83+
search?: string;
84+
/**
85+
* Select properties to be returned
86+
*/
87+
select?: string[];
88+
/**
89+
* Skip the first n items
90+
*/
91+
skip?: number;
92+
/**
93+
* Show only the first n items
94+
*/
95+
top?: number;
96+
}
97+
/**
98+
* Uri template for the request builder.
99+
*/
100+
export const ProfileSourcesRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
101+
/**
102+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
103+
*/
104+
const ProfileSourcesRequestBuilderGetQueryParametersMapper: Record<string, string> = {
105+
"count": "%24count",
106+
"expand": "%24expand",
107+
"filter": "%24filter",
108+
"orderby": "%24orderby",
109+
"search": "%24search",
110+
"select": "%24select",
111+
"skip": "%24skip",
112+
"top": "%24top",
113+
};
114+
/**
115+
* Metadata for all the navigation properties in the request builder.
116+
*/
117+
export const ProfileSourcesRequestBuilderNavigationMetadata: Record<Exclude<keyof ProfileSourcesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
118+
byProfileSourceId: {
119+
requestsMetadata: ProfileSourceItemRequestBuilderRequestsMetadata,
120+
pathParametersMappings: ["profileSource%2Did"],
121+
},
122+
count: {
123+
requestsMetadata: CountRequestBuilderRequestsMetadata,
124+
},
125+
};
126+
/**
127+
* Metadata for all the requests in the request builder.
128+
*/
129+
export const ProfileSourcesRequestBuilderRequestsMetadata: RequestsMetadata = {
130+
get: {
131+
uriTemplate: ProfileSourcesRequestBuilderUriTemplate,
132+
responseBodyContentType: "application/json",
133+
errorMappings: {
134+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
135+
},
136+
adapterMethodName: "send",
137+
responseBodyFactory: createProfileSourceCollectionResponseFromDiscriminatorValue,
138+
queryParametersMapper: ProfileSourcesRequestBuilderGetQueryParametersMapper,
139+
},
140+
post: {
141+
uriTemplate: ProfileSourcesRequestBuilderUriTemplate,
142+
responseBodyContentType: "application/json",
143+
errorMappings: {
144+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
145+
},
146+
adapterMethodName: "send",
147+
responseBodyFactory: createProfileSourceFromDiscriminatorValue,
148+
requestBodyContentType: "application/json",
149+
requestBodySerializer: serializeProfileSource,
150+
requestInformationContentSetMethod: "setContentFromParsable",
151+
},
152+
};
153+
/* tslint:enable */
154+
/* eslint-enable */
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createProfileSourceFromDiscriminatorValue, serializeProfileSource, type ProfileSource } from '@microsoft/msgraph-beta-sdk/models/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
8+
// @ts-ignore
9+
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
10+
11+
/**
12+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
13+
*/
14+
export interface ProfileSourceItemRequestBuilder extends BaseRequestBuilder<ProfileSourceItemRequestBuilder> {
15+
/**
16+
* Delete a profileSource object.
17+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
18+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
19+
* @see {@link https://learn.microsoft.com/graph/api/profilesource-delete?view=graph-rest-beta|Find more info here}
20+
*/
21+
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
22+
/**
23+
* A collection of profile source settings configured by an administrator in an organization.
24+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
25+
* @returns {Promise<ProfileSource>}
26+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
27+
*/
28+
get(requestConfiguration?: RequestConfiguration<ProfileSourceItemRequestBuilderGetQueryParameters> | undefined) : Promise<ProfileSource | undefined>;
29+
/**
30+
* Update the properties of a profileSource object.
31+
* @param body The request body
32+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
33+
* @returns {Promise<ProfileSource>}
34+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
35+
* @see {@link https://learn.microsoft.com/graph/api/profilesource-update?view=graph-rest-beta|Find more info here}
36+
*/
37+
patch(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfileSource | undefined>;
38+
/**
39+
* Delete a profileSource object.
40+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
41+
* @returns {RequestInformation}
42+
*/
43+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
44+
/**
45+
* A collection of profile source settings configured by an administrator in an organization.
46+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
47+
* @returns {RequestInformation}
48+
*/
49+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfileSourceItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
50+
/**
51+
* Update the properties of a profileSource object.
52+
* @param body The request body
53+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
54+
* @returns {RequestInformation}
55+
*/
56+
toPatchRequestInformation(body: ProfileSource, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
57+
}
58+
/**
59+
* A collection of profile source settings configured by an administrator in an organization.
60+
*/
61+
export interface ProfileSourceItemRequestBuilderGetQueryParameters {
62+
/**
63+
* Expand related entities
64+
*/
65+
expand?: string[];
66+
/**
67+
* Select properties to be returned
68+
*/
69+
select?: string[];
70+
}
71+
/**
72+
* Uri template for the request builder.
73+
*/
74+
export const ProfileSourceItemRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources/{profileSource%2Did}{?%24expand,%24select}";
75+
/**
76+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
77+
*/
78+
const ProfileSourceItemRequestBuilderGetQueryParametersMapper: Record<string, string> = {
79+
"expand": "%24expand",
80+
"select": "%24select",
81+
};
82+
/**
83+
* Metadata for all the requests in the request builder.
84+
*/
85+
export const ProfileSourceItemRequestBuilderRequestsMetadata: RequestsMetadata = {
86+
delete: {
87+
uriTemplate: ProfileSourceItemRequestBuilderUriTemplate,
88+
errorMappings: {
89+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
90+
},
91+
adapterMethodName: "sendNoResponseContent",
92+
},
93+
get: {
94+
uriTemplate: ProfileSourceItemRequestBuilderUriTemplate,
95+
responseBodyContentType: "application/json",
96+
errorMappings: {
97+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
98+
},
99+
adapterMethodName: "send",
100+
responseBodyFactory: createProfileSourceFromDiscriminatorValue,
101+
queryParametersMapper: ProfileSourceItemRequestBuilderGetQueryParametersMapper,
102+
},
103+
patch: {
104+
uriTemplate: ProfileSourceItemRequestBuilderUriTemplate,
105+
responseBodyContentType: "application/json",
106+
errorMappings: {
107+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
108+
},
109+
adapterMethodName: "send",
110+
responseBodyFactory: createProfileSourceFromDiscriminatorValue,
111+
requestBodyContentType: "application/json",
112+
requestBodySerializer: serializeProfileSource,
113+
requestInformationContentSetMethod: "setContentFromParsable",
114+
},
115+
};
116+
/* tslint:enable */
117+
/* eslint-enable */

0 commit comments

Comments
 (0)