Skip to content

Commit c421a55

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 213120
1 parent 52dd632 commit c421a55

114 files changed

Lines changed: 7111 additions & 211 deletions

File tree

Some content is hidden

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

packages/kiota-dom-export.txt

Lines changed: 1016 additions & 8 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": "4F06022D5B45031BAB5C100A8706A34FA46122344724E8FCA8C63860D90BF29AC24BE841A1ED2D972C817F599F3CB3D773FDC21B97C78F4BD30527C351DF0259",
2+
"descriptionHash": "89E8F6D74A32BB61DE8F4EB953F340F058C3B87D73273DC2DF16A3356AB383E85983A902A22001D6AB119C3FB39EB5DF2C76C3D82A5FA86344385E3A8DDCD30D",
33
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.30.0",

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import { ItemInsightsRequestBuilderRequestsMetadata, type ItemInsightsRequestBui
1010
// @ts-ignore
1111
import { ProfileCardPropertiesRequestBuilderNavigationMetadata, ProfileCardPropertiesRequestBuilderRequestsMetadata, type ProfileCardPropertiesRequestBuilder } from './profileCardProperties/index.js';
1212
// @ts-ignore
13+
import { ProfileSourcesRequestBuilderNavigationMetadata, ProfileSourcesRequestBuilderRequestsMetadata, type ProfileSourcesRequestBuilder } from './profileSources/index.js';
14+
// @ts-ignore
15+
import { ProfileSourcesWithSourceIdRequestBuilderRequestsMetadata, type ProfileSourcesWithSourceIdRequestBuilder } from './profileSourcesWithSourceId/index.js';
16+
// @ts-ignore
1317
import { PronounsRequestBuilderRequestsMetadata, type PronounsRequestBuilder } from './pronouns/index.js';
1418
// @ts-ignore
1519
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
@@ -26,6 +30,10 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
2630
* Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
2731
*/
2832
get profileCardProperties(): ProfileCardPropertiesRequestBuilder;
33+
/**
34+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
35+
*/
36+
get profileSources(): ProfileSourcesRequestBuilder;
2937
/**
3038
* Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
3139
*/
@@ -38,6 +46,12 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
3846
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-get?view=graph-rest-1.0|Find more info here}
3947
*/
4048
get(requestConfiguration?: RequestConfiguration<PeopleRequestBuilderGetQueryParameters> | undefined) : Promise<PeopleAdminSettings | undefined>;
49+
/**
50+
* Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity.
51+
* @param sourceId Alternate key of profileSource
52+
* @returns {ProfileSourcesWithSourceIdRequestBuilder}
53+
*/
54+
profileSourcesWithSourceId(sourceId: string | undefined) : ProfileSourcesWithSourceIdRequestBuilder;
4155
/**
4256
* Retrieve the properties and relationships of a peopleAdminSettings object.
4357
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -73,13 +87,21 @@ const PeopleRequestBuilderGetQueryParametersMapper: Record<string, string> = {
7387
* Metadata for all the navigation properties in the request builder.
7488
*/
7589
export const PeopleRequestBuilderNavigationMetadata: Record<Exclude<keyof PeopleRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
90+
profileSourcesWithSourceId: {
91+
requestsMetadata: ProfileSourcesWithSourceIdRequestBuilderRequestsMetadata,
92+
pathParametersMappings: ["sourceId"],
93+
},
7694
itemInsights: {
7795
requestsMetadata: ItemInsightsRequestBuilderRequestsMetadata,
7896
},
7997
profileCardProperties: {
8098
requestsMetadata: ProfileCardPropertiesRequestBuilderRequestsMetadata,
8199
navigationMetadata: ProfileCardPropertiesRequestBuilderNavigationMetadata,
82100
},
101+
profileSources: {
102+
requestsMetadata: ProfileSourcesRequestBuilderRequestsMetadata,
103+
navigationMetadata: ProfileSourcesRequestBuilderNavigationMetadata,
104+
},
83105
pronouns: {
84106
requestsMetadata: PronounsRequestBuilderRequestsMetadata,
85107
},
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
6+
// @ts-ignore
7+
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8+
9+
/**
10+
* Provides operations to count the resources in the collection.
11+
*/
12+
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
13+
/**
14+
* Get the number of the resource
15+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16+
* @returns {Promise<number>}
17+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
18+
*/
19+
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
20+
/**
21+
* Get the number of the resource
22+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23+
* @returns {RequestInformation}
24+
*/
25+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
26+
}
27+
/**
28+
* Get the number of the resource
29+
*/
30+
export interface CountRequestBuilderGetQueryParameters {
31+
/**
32+
* Filter items by property values
33+
*/
34+
filter?: string;
35+
/**
36+
* Search items by search phrases
37+
*/
38+
search?: string;
39+
}
40+
/**
41+
* Uri template for the request builder.
42+
*/
43+
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/people/profileSources/$count{?%24filter,%24search}";
44+
/**
45+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
46+
*/
47+
const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
48+
"filter": "%24filter",
49+
"search": "%24search",
50+
};
51+
/**
52+
* Metadata for all the requests in the request builder.
53+
*/
54+
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
55+
get: {
56+
uriTemplate: CountRequestBuilderUriTemplate,
57+
responseBodyContentType: "text/plain;q=0.9",
58+
errorMappings: {
59+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
60+
},
61+
adapterMethodName: "sendPrimitive",
62+
responseBodyFactory: "number",
63+
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
64+
},
65+
};
66+
/* tslint:enable */
67+
/* eslint-enable */
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-sdk/models/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-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-1.0|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-1.0|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 */

0 commit comments

Comments
 (0)