-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generated files with build 158125
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Jul 30, 2024
1 parent
2c6c78a
commit ceb2874
Showing
174 changed files
with
7,820 additions
and
3,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
packages/msgraph-sdk-admin/admin/people/itemInsights/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// Generated by Microsoft Kiota | ||
// @ts-ignore | ||
import { createInsightsSettingsFromDiscriminatorValue, serializeInsightsSettings, type InsightsSettings } from '@microsoft/msgraph-sdk/models/index.js'; | ||
// @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 manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. | ||
*/ | ||
export interface ItemInsightsRequestBuilder extends BaseRequestBuilder<ItemInsightsRequestBuilder> { | ||
/** | ||
* Delete navigation property itemInsights for admin | ||
* @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 | ||
*/ | ||
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>; | ||
/** | ||
* Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {Promise<InsightsSettings>} | ||
* @throws {ODataError} error when the service returns a 4XX or 5XX status code | ||
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-list-iteminsights?view=graph-rest-1.0|Find more info here} | ||
*/ | ||
get(requestConfiguration?: RequestConfiguration<ItemInsightsRequestBuilderGetQueryParameters> | undefined) : Promise<InsightsSettings | undefined>; | ||
/** | ||
* Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. | ||
* @param body The request body | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {Promise<InsightsSettings>} | ||
* @throws {ODataError} error when the service returns a 4XX or 5XX status code | ||
* @see {@link https://learn.microsoft.com/graph/api/insightssettings-update?view=graph-rest-1.0|Find more info here} | ||
*/ | ||
patch(body: InsightsSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<InsightsSettings | undefined>; | ||
/** | ||
* Delete navigation property itemInsights for admin | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {RequestInformation} | ||
*/ | ||
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation; | ||
/** | ||
* Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {RequestInformation} | ||
*/ | ||
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ItemInsightsRequestBuilderGetQueryParameters> | undefined) : RequestInformation; | ||
/** | ||
* Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. | ||
* @param body The request body | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {RequestInformation} | ||
*/ | ||
toPatchRequestInformation(body: InsightsSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation; | ||
} | ||
/** | ||
* Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. | ||
*/ | ||
export interface ItemInsightsRequestBuilderGetQueryParameters { | ||
/** | ||
* Expand related entities | ||
*/ | ||
expand?: string[]; | ||
/** | ||
* Select properties to be returned | ||
*/ | ||
select?: string[]; | ||
} | ||
/** | ||
* Uri template for the request builder. | ||
*/ | ||
export const ItemInsightsRequestBuilderUriTemplate = "{+baseurl}/admin/people/itemInsights{?%24expand,%24select}"; | ||
/** | ||
* Mapper for query parameters from symbol name to serialization name represented as a constant. | ||
*/ | ||
const ItemInsightsRequestBuilderGetQueryParametersMapper: Record<string, string> = { | ||
"expand": "%24expand", | ||
"select": "%24select", | ||
}; | ||
/** | ||
* Metadata for all the requests in the request builder. | ||
*/ | ||
export const ItemInsightsRequestBuilderRequestsMetadata: RequestsMetadata = { | ||
delete: { | ||
uriTemplate: ItemInsightsRequestBuilderUriTemplate, | ||
responseBodyContentType: "application/json", | ||
errorMappings: { | ||
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, | ||
}, | ||
adapterMethodName: "sendNoResponseContent", | ||
}, | ||
get: { | ||
uriTemplate: ItemInsightsRequestBuilderUriTemplate, | ||
responseBodyContentType: "application/json", | ||
errorMappings: { | ||
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, | ||
}, | ||
adapterMethodName: "send", | ||
responseBodyFactory: createInsightsSettingsFromDiscriminatorValue, | ||
queryParametersMapper: ItemInsightsRequestBuilderGetQueryParametersMapper, | ||
}, | ||
patch: { | ||
uriTemplate: ItemInsightsRequestBuilderUriTemplate, | ||
responseBodyContentType: "application/json", | ||
errorMappings: { | ||
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, | ||
}, | ||
adapterMethodName: "send", | ||
responseBodyFactory: createInsightsSettingsFromDiscriminatorValue, | ||
requestBodyContentType: "application/json", | ||
requestBodySerializer: serializeInsightsSettings, | ||
requestInformationContentSetMethod: "setContentFromParsable", | ||
}, | ||
}; | ||
/* tslint:enable */ | ||
/* eslint-enable */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 131 additions & 0 deletions
131
packages/msgraph-sdk-chats/chats/getAllRetainedMessages/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// Generated by Microsoft Kiota | ||
// @ts-ignore | ||
import { createChatMessageFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeChatMessage, type BaseCollectionPaginationCountResponse, type ChatMessage } from '@microsoft/msgraph-sdk/models/index.js'; | ||
// @ts-ignore | ||
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; | ||
// @ts-ignore | ||
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; | ||
|
||
/** | ||
* Creates a new instance of the appropriate class based on discriminator value | ||
* @param parseNode The parse node to use to read the discriminator value and create the object | ||
* @returns {GetAllRetainedMessagesGetResponse} | ||
*/ | ||
export function createGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) { | ||
return deserializeIntoGetAllRetainedMessagesGetResponse; | ||
} | ||
/** | ||
* The deserialization information for the current model | ||
* @returns {Record<string, (node: ParseNode) => void>} | ||
*/ | ||
export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial<GetAllRetainedMessagesGetResponse> | undefined = {}) : Record<string, (node: ParseNode) => void> { | ||
return { | ||
...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse), | ||
"value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues<ChatMessage>(createChatMessageFromDiscriminatorValue); }, | ||
} | ||
} | ||
export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { | ||
/** | ||
* The value property | ||
*/ | ||
value?: ChatMessage[]; | ||
} | ||
/** | ||
* Provides operations to call the getAllRetainedMessages method. | ||
*/ | ||
export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder<GetAllRetainedMessagesRequestBuilder> { | ||
/** | ||
* Invoke function getAllRetainedMessages | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {Promise<GetAllRetainedMessagesGetResponse>} | ||
* @throws {ODataError} error when the service returns a 4XX or 5XX status code | ||
*/ | ||
get(requestConfiguration?: RequestConfiguration<GetAllRetainedMessagesRequestBuilderGetQueryParameters> | undefined) : Promise<GetAllRetainedMessagesGetResponse | undefined>; | ||
/** | ||
* Invoke function getAllRetainedMessages | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {RequestInformation} | ||
*/ | ||
toGetRequestInformation(requestConfiguration?: RequestConfiguration<GetAllRetainedMessagesRequestBuilderGetQueryParameters> | undefined) : RequestInformation; | ||
} | ||
/** | ||
* Invoke function getAllRetainedMessages | ||
*/ | ||
export interface GetAllRetainedMessagesRequestBuilderGetQueryParameters { | ||
/** | ||
* 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; | ||
} | ||
/** | ||
* Serializes information the current object | ||
* @param writer Serialization writer to use to serialize this model | ||
*/ | ||
export function serializeGetAllRetainedMessagesGetResponse(writer: SerializationWriter, getAllRetainedMessagesGetResponse: Partial<GetAllRetainedMessagesGetResponse> | undefined = {}) : void { | ||
serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse) | ||
writer.writeCollectionOfObjectValues<ChatMessage>("value", getAllRetainedMessagesGetResponse.value, serializeChatMessage); | ||
} | ||
/** | ||
* Uri template for the request builder. | ||
*/ | ||
export const GetAllRetainedMessagesRequestBuilderUriTemplate = "{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; | ||
/** | ||
* Mapper for query parameters from symbol name to serialization name represented as a constant. | ||
*/ | ||
const GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper: Record<string, string> = { | ||
"count": "%24count", | ||
"expand": "%24expand", | ||
"filter": "%24filter", | ||
"orderby": "%24orderby", | ||
"search": "%24search", | ||
"select": "%24select", | ||
"skip": "%24skip", | ||
"top": "%24top", | ||
}; | ||
/** | ||
* Metadata for all the requests in the request builder. | ||
*/ | ||
export const GetAllRetainedMessagesRequestBuilderRequestsMetadata: RequestsMetadata = { | ||
get: { | ||
uriTemplate: GetAllRetainedMessagesRequestBuilderUriTemplate, | ||
responseBodyContentType: "application/json", | ||
errorMappings: { | ||
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, | ||
}, | ||
adapterMethodName: "send", | ||
responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue, | ||
queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper, | ||
}, | ||
}; | ||
/* tslint:enable */ | ||
/* eslint-enable */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.