Skip to content

Commit a2e67d0

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 188232
1 parent b02a14e commit a2e67d0

166 files changed

Lines changed: 6249 additions & 346 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: 719 additions & 0 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": "6516F0177EBE1D31E055A71F3E57E2619154DA13E476CEAE9328855C01EB1812B43C65D6DEEE30BF0AF0BBA91CAE56910333B15AC9E8224B7A17959DA6569EFA",
2+
"descriptionHash": "0F40AB32284DFBDC12F20879BCAF6E5BAD30CAECFB277F7C18483CEA887D728A856B1B727CE4F67A8F4CBF0955C0E7F998B80F9A8691E015E619EF53C18818C7",
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import { NamePronunciationRequestBuilderRequestsMetadata, type NamePronunciation
1212
// @ts-ignore
1313
import { ProfileCardPropertiesRequestBuilderNavigationMetadata, ProfileCardPropertiesRequestBuilderRequestsMetadata, type ProfileCardPropertiesRequestBuilder } from './profileCardProperties/index.js';
1414
// @ts-ignore
15+
import { ProfilePropertySettingsRequestBuilderNavigationMetadata, ProfilePropertySettingsRequestBuilderRequestsMetadata, type ProfilePropertySettingsRequestBuilder } from './profilePropertySettings/index.js';
16+
// @ts-ignore
1517
import { PronounsRequestBuilderRequestsMetadata, type PronounsRequestBuilder } from './pronouns/index.js';
1618
// @ts-ignore
1719
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
@@ -32,6 +34,10 @@ export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBu
3234
* Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
3335
*/
3436
get profileCardProperties(): ProfileCardPropertiesRequestBuilder;
37+
/**
38+
* Provides operations to manage the profilePropertySettings property of the microsoft.graph.peopleAdminSettings entity.
39+
*/
40+
get profilePropertySettings(): ProfilePropertySettingsRequestBuilder;
3541
/**
3642
* Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
3743
*/
@@ -116,6 +122,10 @@ export const PeopleRequestBuilderNavigationMetadata: Record<Exclude<keyof People
116122
requestsMetadata: ProfileCardPropertiesRequestBuilderRequestsMetadata,
117123
navigationMetadata: ProfileCardPropertiesRequestBuilderNavigationMetadata,
118124
},
125+
profilePropertySettings: {
126+
requestsMetadata: ProfilePropertySettingsRequestBuilderRequestsMetadata,
127+
navigationMetadata: ProfilePropertySettingsRequestBuilderNavigationMetadata,
128+
},
119129
pronouns: {
120130
requestsMetadata: PronounsRequestBuilderRequestsMetadata,
121131
},
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-beta-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/profilePropertySettings/$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 { createProfilePropertySettingCollectionResponseFromDiscriminatorValue, createProfilePropertySettingFromDiscriminatorValue, serializeProfilePropertySetting, type ProfilePropertySetting, type ProfilePropertySettingCollectionResponse } 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 { ProfilePropertySettingItemRequestBuilderRequestsMetadata, type ProfilePropertySettingItemRequestBuilder } 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 profilePropertySettings property of the microsoft.graph.peopleAdminSettings entity.
17+
*/
18+
export interface ProfilePropertySettingsRequestBuilder extends BaseRequestBuilder<ProfilePropertySettingsRequestBuilder> {
19+
/**
20+
* Provides operations to count the resources in the collection.
21+
*/
22+
get count(): CountRequestBuilder;
23+
/**
24+
* Provides operations to manage the profilePropertySettings property of the microsoft.graph.peopleAdminSettings entity.
25+
* @param profilePropertySettingId The unique identifier of profilePropertySetting
26+
* @returns {ProfilePropertySettingItemRequestBuilder}
27+
*/
28+
byProfilePropertySettingId(profilePropertySettingId: string) : ProfilePropertySettingItemRequestBuilder;
29+
/**
30+
* Get a collection of profilePropertySetting objects that define the configuration for user profile properties in an organization. The id property identifies each resource object uniquely.
31+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32+
* @returns {Promise<ProfilePropertySettingCollectionResponse>}
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-profilepropertysettings?view=graph-rest-beta|Find more info here}
35+
*/
36+
get(requestConfiguration?: RequestConfiguration<ProfilePropertySettingsRequestBuilderGetQueryParameters> | undefined) : Promise<ProfilePropertySettingCollectionResponse | undefined>;
37+
/**
38+
* Create a new profilePropertySetting 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<ProfilePropertySetting>}
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-profilepropertysettings?view=graph-rest-beta|Find more info here}
44+
*/
45+
post(body: ProfilePropertySetting, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfilePropertySetting | undefined>;
46+
/**
47+
* Get a collection of profilePropertySetting objects that define the configuration for user profile properties in an organization. The id property identifies each resource object uniquely.
48+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49+
* @returns {RequestInformation}
50+
*/
51+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfilePropertySettingsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
52+
/**
53+
* Create a new profilePropertySetting 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: ProfilePropertySetting, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
59+
}
60+
/**
61+
* Get a collection of profilePropertySetting objects that define the configuration for user profile properties in an organization. The id property identifies each resource object uniquely.
62+
*/
63+
export interface ProfilePropertySettingsRequestBuilderGetQueryParameters {
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 ProfilePropertySettingsRequestBuilderUriTemplate = "{+baseurl}/admin/people/profilePropertySettings{?%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 ProfilePropertySettingsRequestBuilderGetQueryParametersMapper: 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 ProfilePropertySettingsRequestBuilderNavigationMetadata: Record<Exclude<keyof ProfilePropertySettingsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
118+
byProfilePropertySettingId: {
119+
requestsMetadata: ProfilePropertySettingItemRequestBuilderRequestsMetadata,
120+
pathParametersMappings: ["profilePropertySetting%2Did"],
121+
},
122+
count: {
123+
requestsMetadata: CountRequestBuilderRequestsMetadata,
124+
},
125+
};
126+
/**
127+
* Metadata for all the requests in the request builder.
128+
*/
129+
export const ProfilePropertySettingsRequestBuilderRequestsMetadata: RequestsMetadata = {
130+
get: {
131+
uriTemplate: ProfilePropertySettingsRequestBuilderUriTemplate,
132+
responseBodyContentType: "application/json",
133+
errorMappings: {
134+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
135+
},
136+
adapterMethodName: "send",
137+
responseBodyFactory: createProfilePropertySettingCollectionResponseFromDiscriminatorValue,
138+
queryParametersMapper: ProfilePropertySettingsRequestBuilderGetQueryParametersMapper,
139+
},
140+
post: {
141+
uriTemplate: ProfilePropertySettingsRequestBuilderUriTemplate,
142+
responseBodyContentType: "application/json",
143+
errorMappings: {
144+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
145+
},
146+
adapterMethodName: "send",
147+
responseBodyFactory: createProfilePropertySettingFromDiscriminatorValue,
148+
requestBodyContentType: "application/json",
149+
requestBodySerializer: serializeProfilePropertySetting,
150+
requestInformationContentSetMethod: "setContentFromParsable",
151+
},
152+
};
153+
/* tslint:enable */
154+
/* eslint-enable */
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createProfilePropertySettingFromDiscriminatorValue, serializeProfilePropertySetting, type ProfilePropertySetting } 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 profilePropertySettings property of the microsoft.graph.peopleAdminSettings entity.
13+
*/
14+
export interface ProfilePropertySettingItemRequestBuilder extends BaseRequestBuilder<ProfilePropertySettingItemRequestBuilder> {
15+
/**
16+
* Delete a profilePropertySetting 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/profilepropertysetting-delete?view=graph-rest-beta|Find more info here}
20+
*/
21+
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
22+
/**
23+
* Read the properties and relationships of a profilePropertySetting object.
24+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
25+
* @returns {Promise<ProfilePropertySetting>}
26+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
27+
* @see {@link https://learn.microsoft.com/graph/api/profilepropertysetting-get?view=graph-rest-beta|Find more info here}
28+
*/
29+
get(requestConfiguration?: RequestConfiguration<ProfilePropertySettingItemRequestBuilderGetQueryParameters> | undefined) : Promise<ProfilePropertySetting | undefined>;
30+
/**
31+
* Update the properties of a profilePropertySetting object.
32+
* @param body The request body
33+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
34+
* @returns {Promise<ProfilePropertySetting>}
35+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
36+
* @see {@link https://learn.microsoft.com/graph/api/profilepropertysetting-update?view=graph-rest-beta|Find more info here}
37+
*/
38+
patch(body: ProfilePropertySetting, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ProfilePropertySetting | undefined>;
39+
/**
40+
* Delete a profilePropertySetting object.
41+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42+
* @returns {RequestInformation}
43+
*/
44+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
45+
/**
46+
* Read the properties and relationships of a profilePropertySetting object.
47+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
48+
* @returns {RequestInformation}
49+
*/
50+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProfilePropertySettingItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
51+
/**
52+
* Update the properties of a profilePropertySetting object.
53+
* @param body The request body
54+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
55+
* @returns {RequestInformation}
56+
*/
57+
toPatchRequestInformation(body: ProfilePropertySetting, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
58+
}
59+
/**
60+
* Read the properties and relationships of a profilePropertySetting object.
61+
*/
62+
export interface ProfilePropertySettingItemRequestBuilderGetQueryParameters {
63+
/**
64+
* Expand related entities
65+
*/
66+
expand?: string[];
67+
/**
68+
* Select properties to be returned
69+
*/
70+
select?: string[];
71+
}
72+
/**
73+
* Uri template for the request builder.
74+
*/
75+
export const ProfilePropertySettingItemRequestBuilderUriTemplate = "{+baseurl}/admin/people/profilePropertySettings/{profilePropertySetting%2Did}{?%24expand,%24select}";
76+
/**
77+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
78+
*/
79+
const ProfilePropertySettingItemRequestBuilderGetQueryParametersMapper: Record<string, string> = {
80+
"expand": "%24expand",
81+
"select": "%24select",
82+
};
83+
/**
84+
* Metadata for all the requests in the request builder.
85+
*/
86+
export const ProfilePropertySettingItemRequestBuilderRequestsMetadata: RequestsMetadata = {
87+
delete: {
88+
uriTemplate: ProfilePropertySettingItemRequestBuilderUriTemplate,
89+
errorMappings: {
90+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
91+
},
92+
adapterMethodName: "sendNoResponseContent",
93+
},
94+
get: {
95+
uriTemplate: ProfilePropertySettingItemRequestBuilderUriTemplate,
96+
responseBodyContentType: "application/json",
97+
errorMappings: {
98+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
99+
},
100+
adapterMethodName: "send",
101+
responseBodyFactory: createProfilePropertySettingFromDiscriminatorValue,
102+
queryParametersMapper: ProfilePropertySettingItemRequestBuilderGetQueryParametersMapper,
103+
},
104+
patch: {
105+
uriTemplate: ProfilePropertySettingItemRequestBuilderUriTemplate,
106+
responseBodyContentType: "application/json",
107+
errorMappings: {
108+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
109+
},
110+
adapterMethodName: "send",
111+
responseBodyFactory: createProfilePropertySettingFromDiscriminatorValue,
112+
requestBodyContentType: "application/json",
113+
requestBodySerializer: serializeProfilePropertySetting,
114+
requestInformationContentSetMethod: "setContentFromParsable",
115+
},
116+
};
117+
/* tslint:enable */
118+
/* eslint-enable */

0 commit comments

Comments
 (0)