diff --git a/packages/msgraph-sdk-admin/admin/people/index.ts b/packages/msgraph-sdk-admin/admin/people/index.ts index d2fd09cc29e..6ab6fa3dfe7 100644 --- a/packages/msgraph-sdk-admin/admin/people/index.ts +++ b/packages/msgraph-sdk-admin/admin/people/index.ts @@ -6,6 +6,8 @@ import { createPeopleAdminSettingsFromDiscriminatorValue, type PeopleAdminSettin // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ItemInsightsRequestBuilderRequestsMetadata, type ItemInsightsRequestBuilder } from './itemInsights/index.js'; +// @ts-ignore import { ProfileCardPropertiesRequestBuilderNavigationMetadata, ProfileCardPropertiesRequestBuilderRequestsMetadata, type ProfileCardPropertiesRequestBuilder } from './profileCardProperties/index.js'; // @ts-ignore import { PronounsRequestBuilderRequestsMetadata, type PronounsRequestBuilder } from './pronouns/index.js'; @@ -16,6 +18,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type * Provides operations to manage the people property of the microsoft.graph.admin entity. */ export interface PeopleRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. + */ + get itemInsights(): ItemInsightsRequestBuilder; /** * Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. */ @@ -67,6 +73,9 @@ const PeopleRequestBuilderGetQueryParametersMapper: Record = { * Metadata for all the navigation properties in the request builder. */ export const PeopleRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + itemInsights: { + requestsMetadata: ItemInsightsRequestBuilderRequestsMetadata, + }, profileCardProperties: { requestsMetadata: ProfileCardPropertiesRequestBuilderRequestsMetadata, navigationMetadata: ProfileCardPropertiesRequestBuilderNavigationMetadata, diff --git a/packages/msgraph-sdk-admin/admin/people/itemInsights/index.ts b/packages/msgraph-sdk-admin/admin/people/itemInsights/index.ts new file mode 100644 index 00000000000..a7069f6f8f9 --- /dev/null +++ b/packages/msgraph-sdk-admin/admin/people/itemInsights/index.ts @@ -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 { + /** + * 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 | undefined) : Promise; + /** + * 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} + * @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 | undefined) : Promise; + /** + * 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} + * @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 | undefined) : Promise; + /** + * 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 | 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 | 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 | 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 = { + "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, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: ItemInsightsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createInsightsSettingsFromDiscriminatorValue, + queryParametersMapper: ItemInsightsRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: ItemInsightsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createInsightsSettingsFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeInsightsSettings, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-applications/applications/item/getMemberGroups/index.ts b/packages/msgraph-sdk-applications/applications/item/getMemberGroups/index.ts index 0f73fb78054..d151152509b 100644 --- a/packages/msgraph-sdk-applications/applications/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-applications/applications/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-chats/chats/getAllRetainedMessages/index.ts b/packages/msgraph-sdk-chats/chats/getAllRetainedMessages/index.ts new file mode 100644 index 00000000000..0c53b0684ee --- /dev/null +++ b/packages/msgraph-sdk-chats/chats/getAllRetainedMessages/index.ts @@ -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 void>) { + return deserializeIntoGetAllRetainedMessagesGetResponse; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse), + "value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues(createChatMessageFromDiscriminatorValue); }, + } +} +export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ChatMessage[]; +} +/** + * Provides operations to call the getAllRetainedMessages method. + */ +export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | 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 | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse) + writer.writeCollectionOfObjectValues("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 = { + "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, + }, + adapterMethodName: "send", + responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue, + queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-chats/chats/index.ts b/packages/msgraph-sdk-chats/chats/index.ts index f12a0d6f6dc..aa9baee73c2 100644 --- a/packages/msgraph-sdk-chats/chats/index.ts +++ b/packages/msgraph-sdk-chats/chats/index.ts @@ -10,6 +10,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '. // @ts-ignore import { GetAllMessagesRequestBuilderRequestsMetadata, type GetAllMessagesRequestBuilder } from './getAllMessages/index.js'; // @ts-ignore +import { GetAllRetainedMessagesRequestBuilderRequestsMetadata, type GetAllRetainedMessagesRequestBuilder } from './getAllRetainedMessages/index.js'; +// @ts-ignore import { ChatItemRequestBuilderNavigationMetadata, ChatItemRequestBuilderRequestsMetadata, type ChatItemRequestBuilder } 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'; @@ -26,6 +28,10 @@ export interface ChatsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0|Find more info here} */ post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -56,7 +56,7 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-communications/communications/calls/item/participants/invite/index.ts b/packages/msgraph-sdk-communications/communications/calls/item/participants/invite/index.ts index c9e51505f72..1f9d2a4dffa 100644 --- a/packages/msgraph-sdk-communications/communications/calls/item/participants/invite/index.ts +++ b/packages/msgraph-sdk-communications/communications/calls/item/participants/invite/index.ts @@ -50,16 +50,16 @@ export interface InvitePostRequestBody extends AdditionalDataHolder, BackedModel */ export interface InviteRequestBuilder extends BaseRequestBuilder { /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0|Find more info here} */ post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-contacts/contacts/item/getMemberGroups/index.ts b/packages/msgraph-sdk-contacts/contacts/item/getMemberGroups/index.ts index 26b3b74f67c..c550af3ed52 100644 --- a/packages/msgraph-sdk-contacts/contacts/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-contacts/contacts/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-contracts/contracts/item/getMemberGroups/index.ts b/packages/msgraph-sdk-contracts/contracts/item/getMemberGroups/index.ts index 2fea0573428..936852a7cac 100644 --- a/packages/msgraph-sdk-contracts/contracts/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-contracts/contracts/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/index.ts index fe3b5d6b390..a59ecea0b2d 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/index.ts @@ -107,7 +107,7 @@ export interface DeviceAppManagementRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -116,7 +116,7 @@ export interface DeviceAppManagementRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0|Find more info here} */ patch(body: DeviceAppManagement, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/index.ts index 0aa5801a4b7..26dd269defd 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/index.ts @@ -27,11 +27,11 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -43,7 +43,7 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * List properties and relationships of the managedAppPolicy objects. + * List properties and relationships of the managedAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -57,7 +57,7 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * List properties and relationships of the managedAppPolicy objects. + * List properties and relationships of the managedAppConfiguration objects. */ export interface ManagedAppPoliciesRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/item/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/item/index.ts index a6072d8c5a8..a41ead5b1d7 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/item/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/item/index.ts @@ -25,11 +25,11 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Read properties and relationships of the windowsInformationProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -47,7 +47,7 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Read properties and relationships of the windowsInformationProtection object. + * Read properties and relationships of the managedAppConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -61,7 +61,7 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * Read properties and relationships of the windowsInformationProtection object. + * Read properties and relationships of the managedAppConfiguration object. */ export interface ManagedAppPolicyItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/index.ts index 34c4ca114e2..2828a2f6e83 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/index.ts @@ -33,11 +33,11 @@ export interface ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilde */ byManagedAppRegistrationId(managedAppRegistrationId: string) : ManagedAppRegistrationItemRequestBuilder; /** - * List properties and relationships of the iosManagedAppRegistration objects. + * List properties and relationships of the androidManagedAppRegistration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -50,7 +50,7 @@ export interface ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilde */ post(body: ManagedAppRegistration, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * List properties and relationships of the iosManagedAppRegistration objects. + * List properties and relationships of the androidManagedAppRegistration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -64,7 +64,7 @@ export interface ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilde toPostRequestInformation(body: ManagedAppRegistration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * List properties and relationships of the iosManagedAppRegistration objects. + * List properties and relationships of the androidManagedAppRegistration objects. */ export interface ManagedAppRegistrationsRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/item/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/item/index.ts index 72157b5d089..6f2500abd8f 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/item/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppRegistrations/item/index.ts @@ -37,11 +37,11 @@ export interface ManagedAppRegistrationItemRequestBuilder extends BaseRequestBui */ delete(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -59,7 +59,7 @@ export interface ManagedAppRegistrationItemRequestBuilder extends BaseRequestBui */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -73,7 +73,7 @@ export interface ManagedAppRegistrationItemRequestBuilder extends BaseRequestBui toPatchRequestInformation(body: ManagedAppRegistration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. */ export interface ManagedAppRegistrationItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileAppConfigurations/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileAppConfigurations/index.ts index 89d5fc72ef4..93b0144818e 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileAppConfigurations/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileAppConfigurations/index.ts @@ -27,11 +27,11 @@ export interface MobileAppConfigurationsRequestBuilder extends BaseRequestBuilde */ byManagedDeviceMobileAppConfigurationId(managedDeviceMobileAppConfigurationId: string) : ManagedDeviceMobileAppConfigurationItemRequestBuilder; /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -44,7 +44,7 @@ export interface MobileAppConfigurationsRequestBuilder extends BaseRequestBuilde */ post(body: ManagedDeviceMobileAppConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -58,7 +58,7 @@ export interface MobileAppConfigurationsRequestBuilder extends BaseRequestBuilde toPostRequestInformation(body: ManagedDeviceMobileAppConfiguration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. */ export interface MobileAppConfigurationsRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/index.ts index e1d07a84e56..f634b6cadcd 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/index.ts @@ -123,30 +123,30 @@ export interface MobileAppsRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-ioslobapp-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-windowsuniversalappx-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Create a new androidLobApp object. + * Create a new windowsWebApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-androidlobapp-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-windowswebapp-create?view=graph-rest-1.0|Find more info here} */ post(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * List properties and relationships of the iosLobApp objects. + * List properties and relationships of the windowsUniversalAppX objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Create a new androidLobApp object. + * Create a new windowsWebApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -154,7 +154,7 @@ export interface MobileAppsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * List properties and relationships of the iosLobApp objects. + * List properties and relationships of the windowsUniversalAppX objects. */ export interface MobileAppsRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/item/index.ts b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/item/index.ts index dbd593c1981..8d2e48c826a 100644 --- a/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/item/index.ts +++ b/packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/mobileApps/item/index.ts @@ -127,43 +127,43 @@ export interface MobileAppItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Read properties and relationships of the win32LobApp object. + * Read properties and relationships of the windowsWebApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-win32lobapp-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-windowswebapp-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the properties of a webApp object. + * Update the properties of a windowsMicrosoftEdgeApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-webapp-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-update?view=graph-rest-1.0|Find more info here} */ patch(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Deletes a androidLobApp. + * Deletes a managedAndroidStoreApp. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Read properties and relationships of the win32LobApp object. + * Read properties and relationships of the windowsWebApp object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the properties of a webApp object. + * Update the properties of a windowsMicrosoftEdgeApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -171,7 +171,7 @@ export interface MobileAppItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * Read properties and relationships of the win32LobApp object. + * Read properties and relationships of the windowsWebApp object. */ export interface MobileAppItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/index.ts index 3c8d14e4353..dbf0780500f 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/index.ts @@ -27,30 +27,30 @@ export interface DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuild */ byDeviceCompliancePolicyId(deviceCompliancePolicyId: string) : DeviceCompliancePolicyItemRequestBuilder; /** - * List properties and relationships of the windows10CompliancePolicy objects. + * List properties and relationships of the windows10MobileCompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new androidWorkProfileCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-create?view=graph-rest-1.0|Find more info here} */ post(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * List properties and relationships of the windows10CompliancePolicy objects. + * List properties and relationships of the windows10MobileCompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Create a new windows10MobileCompliancePolicy object. + * Create a new androidWorkProfileCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -58,7 +58,7 @@ export interface DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuild toPostRequestInformation(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * List properties and relationships of the windows10CompliancePolicy objects. + * List properties and relationships of the windows10MobileCompliancePolicy objects. */ export interface DeviceCompliancePoliciesRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/item/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/item/index.ts index 4e8910b6878..ea56d02d76a 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/item/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceCompliancePolicies/item/index.ts @@ -67,43 +67,43 @@ export interface DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBui */ get userStatusOverview(): UserStatusOverviewRequestBuilder; /** - * Deletes a androidCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @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/intune-deviceconfig-androidcompliancepolicy-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-delete?view=graph-rest-1.0|Find more info here} */ delete(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Read properties and relationships of the androidCompliancePolicy object. + * Read properties and relationships of the deviceCompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecompliancepolicy-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the properties of a windows10CompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-update?view=graph-rest-1.0|Find more info here} */ patch(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Deletes a androidCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Read properties and relationships of the androidCompliancePolicy object. + * Read properties and relationships of the deviceCompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the properties of a windows10CompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -111,7 +111,7 @@ export interface DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBui toPatchRequestInformation(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Read properties and relationships of the androidCompliancePolicy object. + * Read properties and relationships of the deviceCompliancePolicy object. */ export interface DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/index.ts index 13a1bcb8918..f549182952b 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/index.ts @@ -27,30 +27,30 @@ export interface DeviceConfigurationsRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscustomconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-iosupdateconfiguration-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Create a new windows10TeamGeneralConfiguration object. + * Create a new windows10EnterpriseModernAppManagementConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10teamgeneralconfiguration-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-create?view=graph-rest-1.0|Find more info here} */ post(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * List properties and relationships of the macOSCustomConfiguration objects. + * List properties and relationships of the iosUpdateConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Create a new windows10TeamGeneralConfiguration object. + * Create a new windows10EnterpriseModernAppManagementConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -58,7 +58,7 @@ export interface DeviceConfigurationsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * List properties and relationships of the macOSCustomConfiguration objects. + * List properties and relationships of the iosUpdateConfiguration objects. */ export interface DeviceConfigurationsRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/item/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/item/index.ts index 794e47f6d10..413f0d79144 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/item/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceConfigurations/item/index.ts @@ -57,18 +57,18 @@ export interface DeviceConfigurationItemRequestBuilder extends BaseRequestBuilde */ get userStatusOverview(): UserStatusOverviewRequestBuilder; /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a windows10EndpointProtectionConfiguration. * @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/intune-deviceconfig-windows10teamgeneralconfiguration-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-delete?view=graph-rest-1.0|Find more info here} */ delete(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Read properties and relationships of the sharedPCConfiguration object. + * Read properties and relationships of the macOSGeneralDeviceConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-sharedpcconfiguration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -78,28 +78,28 @@ export interface DeviceConfigurationItemRequestBuilder extends BaseRequestBuilde */ getOmaSettingPlainTextValueWithSecretReferenceValueId(secretReferenceValueId: string | undefined) : GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder; /** - * Update the properties of a iosCustomConfiguration object. + * Update the properties of a editionUpgradeConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscustomconfiguration-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-editionupgradeconfiguration-update?view=graph-rest-1.0|Find more info here} */ patch(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Deletes a windows10TeamGeneralConfiguration. + * Deletes a windows10EndpointProtectionConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Read properties and relationships of the sharedPCConfiguration object. + * Read properties and relationships of the macOSGeneralDeviceConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the properties of a iosCustomConfiguration object. + * Update the properties of a editionUpgradeConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -107,7 +107,7 @@ export interface DeviceConfigurationItemRequestBuilder extends BaseRequestBuilde toPatchRequestInformation(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Read properties and relationships of the sharedPCConfiguration object. + * Read properties and relationships of the macOSGeneralDeviceConfiguration object. */ export interface DeviceConfigurationItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/index.ts index c4b9f6f1b62..b6a884f987a 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/index.ts @@ -27,30 +27,30 @@ export interface DeviceEnrollmentConfigurationsRequestBuilder extends BaseReques */ byDeviceEnrollmentConfigurationId(deviceEnrollmentConfigurationId: string) : DeviceEnrollmentConfigurationItemRequestBuilder; /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0|Find more info here} */ post(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -58,7 +58,7 @@ export interface DeviceEnrollmentConfigurationsRequestBuilder extends BaseReques toPostRequestInformation(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. */ export interface DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/item/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/item/index.ts index 1034203bf6e..950680e58bb 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/item/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/deviceEnrollmentConfigurations/item/index.ts @@ -38,20 +38,20 @@ export interface DeviceEnrollmentConfigurationItemRequestBuilder extends BaseReq */ delete(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Update the properties of a deviceEnrollmentLimitConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-update?view=graph-rest-1.0|Find more info here} */ patch(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -61,13 +61,13 @@ export interface DeviceEnrollmentConfigurationItemRequestBuilder extends BaseReq */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Update the properties of a deviceEnrollmentLimitConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -75,7 +75,7 @@ export interface DeviceEnrollmentConfigurationItemRequestBuilder extends BaseReq toPatchRequestInformation(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. */ export interface DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/index.ts index 11408670a99..6f7e40032b1 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/index.ts @@ -375,7 +375,7 @@ export interface DeviceManagementRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-enrollment-devicemanagement-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-raimportcerts-devicemanagement-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -390,7 +390,7 @@ export interface DeviceManagementRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-reporting-devicemanagement-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-devicemanagement-update?view=graph-rest-1.0|Find more info here} */ patch(body: DeviceManagement, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/index.ts index 51b70643d17..936c2aee5a7 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/index.ts @@ -27,30 +27,30 @@ export interface RoleDefinitionsRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-list?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Create a new roleDefinition object. + * Create a new deviceAndAppManagementRoleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-create?view=graph-rest-1.0|Find more info here} */ post(body: RoleDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Create a new roleDefinition object. + * Create a new deviceAndAppManagementRoleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -58,7 +58,7 @@ export interface RoleDefinitionsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * List properties and relationships of the roleDefinition objects. + * List properties and relationships of the deviceAndAppManagementRoleDefinition objects. */ export interface RoleDefinitionsRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/item/index.ts b/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/item/index.ts index efbd681c391..bea2f88916b 100644 --- a/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/item/index.ts +++ b/packages/msgraph-sdk-deviceManagement/deviceManagement/roleDefinitions/item/index.ts @@ -19,18 +19,18 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Read properties and relationships of the roleDefinition object. + * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -43,13 +43,13 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Deletes a roleDefinition. + * Deletes a deviceAndAppManagementRoleDefinition. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Read properties and relationships of the roleDefinition object. + * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -63,7 +63,7 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * Read properties and relationships of the roleDefinition object. + * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. */ export interface RoleDefinitionItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-devices/devices/item/getMemberGroups/index.ts b/packages/msgraph-sdk-devices/devices/item/getMemberGroups/index.ts index 14ebefb023b..0982c9b54e7 100644 --- a/packages/msgraph-sdk-devices/devices/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-devices/devices/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-directory/directory/deletedItems/item/getMemberGroups/index.ts b/packages/msgraph-sdk-directory/directory/deletedItems/item/getMemberGroups/index.ts index eb17c19df41..3e5796bab3d 100644 --- a/packages/msgraph-sdk-directory/directory/deletedItems/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-directory/directory/deletedItems/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-directoryObjects/directoryObjects/item/getMemberGroups/index.ts b/packages/msgraph-sdk-directoryObjects/directoryObjects/item/getMemberGroups/index.ts index b8286dd7cbd..6789ffbc392 100644 --- a/packages/msgraph-sdk-directoryObjects/directoryObjects/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-directoryObjects/directoryObjects/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-directoryRoleTemplates/directoryRoleTemplates/item/getMemberGroups/index.ts b/packages/msgraph-sdk-directoryRoleTemplates/directoryRoleTemplates/item/getMemberGroups/index.ts index ce35673a88d..3a7b829a19d 100644 --- a/packages/msgraph-sdk-directoryRoleTemplates/directoryRoleTemplates/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-directoryRoleTemplates/directoryRoleTemplates/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-directoryRoles/directoryRoles/item/getMemberGroups/index.ts b/packages/msgraph-sdk-directoryRoles/directoryRoles/item/getMemberGroups/index.ts index 7e91fd727e9..6000632e032 100644 --- a/packages/msgraph-sdk-directoryRoles/directoryRoles/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-directoryRoles/directoryRoles/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-drives/drives/item/items/item/workbook/names/item/range/index.ts b/packages/msgraph-sdk-drives/drives/item/items/item/workbook/names/item/range/index.ts index 20c1511ef6a..769a8e18b1d 100644 --- a/packages/msgraph-sdk-drives/drives/item/items/item/workbook/names/item/range/index.ts +++ b/packages/msgraph-sdk-drives/drives/item/items/item/workbook/names/item/range/index.ts @@ -13,15 +13,15 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface RangeRequestBuilder extends BaseRequestBuilder { /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ diff --git a/packages/msgraph-sdk-drives/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts b/packages/msgraph-sdk-drives/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts index a13d5364100..f2fc28d220b 100644 --- a/packages/msgraph-sdk-drives/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts +++ b/packages/msgraph-sdk-drives/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts @@ -13,15 +13,15 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface RangeRequestBuilder extends BaseRequestBuilder { /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ diff --git a/packages/msgraph-sdk-education/education/me/rubrics/item/index.ts b/packages/msgraph-sdk-education/education/me/rubrics/item/index.ts index b8c70d07650..9598f47f2cb 100644 --- a/packages/msgraph-sdk-education/education/me/rubrics/item/index.ts +++ b/packages/msgraph-sdk-education/education/me/rubrics/item/index.ts @@ -28,7 +28,7 @@ export interface EducationRubricItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -49,7 +49,7 @@ export interface EducationRubricItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-groupSettingTemplates/groupSettingTemplates/item/getMemberGroups/index.ts b/packages/msgraph-sdk-groupSettingTemplates/groupSettingTemplates/item/getMemberGroups/index.ts index 99b9cce16d0..60367b78faa 100644 --- a/packages/msgraph-sdk-groupSettingTemplates/groupSettingTemplates/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-groupSettingTemplates/groupSettingTemplates/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-groups/groups/index.ts b/packages/msgraph-sdk-groups/groups/index.ts index 928367f2bad..56621b4e246 100644 --- a/packages/msgraph-sdk-groups/groups/index.ts +++ b/packages/msgraph-sdk-groups/groups/index.ts @@ -59,12 +59,12 @@ export interface GroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/group-post-groups?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-1.0|Find more info here} */ post(body: Group, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -74,7 +74,7 @@ export interface GroupsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-groups/groups/item/addFavorite/index.ts b/packages/msgraph-sdk-groups/groups/item/addFavorite/index.ts index 8bc0c1e2c8a..cec913d5ce3 100644 --- a/packages/msgraph-sdk-groups/groups/item/addFavorite/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/addFavorite/index.ts @@ -11,14 +11,14 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface AddFavoriteRequestBuilder extends BaseRequestBuilder { /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @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/group-addfavorite?view=graph-rest-1.0|Find more info here} */ post(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ diff --git a/packages/msgraph-sdk-groups/groups/item/conversations/index.ts b/packages/msgraph-sdk-groups/groups/item/conversations/index.ts index 1c3d598de63..feccc6d839f 100644 --- a/packages/msgraph-sdk-groups/groups/item/conversations/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/conversations/index.ts @@ -35,12 +35,12 @@ export interface ConversationsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} */ post(body: Conversation, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -50,7 +50,7 @@ export interface ConversationsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Use reply thread or reply post to further post to that conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-groups/groups/item/conversations/item/index.ts b/packages/msgraph-sdk-groups/groups/item/conversations/item/index.ts index cb32152f04c..783000d33e4 100644 --- a/packages/msgraph-sdk-groups/groups/item/conversations/item/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/conversations/item/index.ts @@ -22,15 +22,15 @@ export interface ConversationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -40,14 +40,14 @@ export interface ConversationItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. */ export interface ConversationItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-groups/groups/item/getMemberGroups/index.ts b/packages/msgraph-sdk-groups/groups/item/getMemberGroups/index.ts index cd37eb49e36..95c170ab792 100644 --- a/packages/msgraph-sdk-groups/groups/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts deleted file mode 100644 index 4674a3e47c8..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, createColumnDefinitionFromDiscriminatorValue, serializeColumnDefinition, type ColumnDefinition, type ColumnDefinitionCollectionResponse } 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 columns property of the microsoft.graph.site entity. - */ -export interface ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to columns for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to columns for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of column definitions reusable across lists under this site. - */ -export interface ColumnsRequestBuilderGetQueryParameters { - /** - * 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 ColumnsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ColumnsRequestBuilderGetQueryParametersMapper: Record = { - "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 ColumnsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ColumnsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createColumnDefinitionCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ColumnsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: ColumnsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createColumnDefinitionFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeColumnDefinition, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts deleted file mode 100644 index 02e1fc938b8..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createContentTypeCollectionResponseFromDiscriminatorValue, createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType, type ContentTypeCollectionResponse } 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 contentTypes property of the microsoft.graph.site entity. - */ -export interface ContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of content types defined for this site. - */ -export interface ContentTypesRequestBuilderGetQueryParameters { - /** - * 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 ContentTypesRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ContentTypesRequestBuilderGetQueryParametersMapper: Record = { - "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 ContentTypesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ContentTypesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createContentTypeCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ContentTypesRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: ContentTypesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createContentTypeFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeContentType, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts deleted file mode 100644 index a95742dc587..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createUserFromDiscriminatorValue, type User } 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 createdByUser property of the microsoft.graph.baseItem entity. - */ -export interface CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Identity of the user who created the item. Read-only. - */ -export interface CreatedByUserRequestBuilderGetQueryParameters { - /** - * Expand related entities - */ - expand?: string[]; - /** - * Select properties to be returned - */ - select?: string[]; -} -/** - * Uri template for the request builder. - */ -export const CreatedByUserRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const CreatedByUserRequestBuilderGetQueryParametersMapper: Record = { - "expand": "%24expand", - "select": "%24select", -}; -/** - * Metadata for all the requests in the request builder. - */ -export const CreatedByUserRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: CreatedByUserRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createUserFromDiscriminatorValue, - queryParametersMapper: CreatedByUserRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts deleted file mode 100644 index 50e683cf17b..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createDriveCollectionResponseFromDiscriminatorValue, type DriveCollectionResponse } 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 drives property of the microsoft.graph.site entity. - */ -export interface DrivesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of drives (document libraries) under this site. - */ -export interface DrivesRequestBuilderGetQueryParameters { - /** - * 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 DrivesRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const DrivesRequestBuilderGetQueryParametersMapper: Record = { - "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 DrivesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: DrivesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createDriveCollectionResponseFromDiscriminatorValue, - queryParametersMapper: DrivesRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts deleted file mode 100644 index 4e4fb1632a3..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, type ColumnDefinitionCollectionResponse } 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 externalColumns property of the microsoft.graph.site entity. - */ -export interface ExternalColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Get externalColumns from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Get externalColumns from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Get externalColumns from groups - */ -export interface ExternalColumnsRequestBuilderGetQueryParameters { - /** - * 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 ExternalColumnsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ExternalColumnsRequestBuilderGetQueryParametersMapper: Record = { - "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 ExternalColumnsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ExternalColumnsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createColumnDefinitionCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ExternalColumnsRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/index.ts deleted file mode 100644 index 5538c6d3fe4..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/index.ts +++ /dev/null @@ -1,206 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createSiteFromDiscriminatorValue, type Site } from '@microsoft/msgraph-sdk/models/index.js'; -// @ts-ignore -import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; -// @ts-ignore -import { AnalyticsRequestBuilderRequestsMetadata, type AnalyticsRequestBuilder } from './analytics/index.js'; -// @ts-ignore -import { ColumnsRequestBuilderRequestsMetadata, type ColumnsRequestBuilder } from './columns/index.js'; -// @ts-ignore -import { ContentTypesRequestBuilderRequestsMetadata, type ContentTypesRequestBuilder } from './contentTypes/index.js'; -// @ts-ignore -import { CreatedByUserRequestBuilderRequestsMetadata, type CreatedByUserRequestBuilder } from './createdByUser/index.js'; -// @ts-ignore -import { DriveRequestBuilderRequestsMetadata, type DriveRequestBuilder } from './drive/index.js'; -// @ts-ignore -import { DrivesRequestBuilderRequestsMetadata, type DrivesRequestBuilder } from './drives/index.js'; -// @ts-ignore -import { ExternalColumnsRequestBuilderRequestsMetadata, type ExternalColumnsRequestBuilder } from './externalColumns/index.js'; -// @ts-ignore -import { ItemsRequestBuilderRequestsMetadata, type ItemsRequestBuilder } from './items/index.js'; -// @ts-ignore -import { LastModifiedByUserRequestBuilderRequestsMetadata, type LastModifiedByUserRequestBuilder } from './lastModifiedByUser/index.js'; -// @ts-ignore -import { ListsRequestBuilderRequestsMetadata, type ListsRequestBuilder } from './lists/index.js'; -// @ts-ignore -import { OnenoteRequestBuilderRequestsMetadata, type OnenoteRequestBuilder } from './onenote/index.js'; -// @ts-ignore -import { OperationsRequestBuilderRequestsMetadata, type OperationsRequestBuilder } from './operations/index.js'; -// @ts-ignore -import { PagesRequestBuilderRequestsMetadata, type PagesRequestBuilder } from './pages/index.js'; -// @ts-ignore -import { PermissionsRequestBuilderRequestsMetadata, type PermissionsRequestBuilder } from './permissions/index.js'; -// @ts-ignore -import { SitesRequestBuilderRequestsMetadata, type SitesRequestBuilder } from './sites/index.js'; -// @ts-ignore -import { TermStoreRequestBuilderRequestsMetadata, type TermStoreRequestBuilder } from './termStore/index.js'; -// @ts-ignore -import { TermStoresRequestBuilderRequestsMetadata, type TermStoresRequestBuilder } from './termStores/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 call the getByPath method. - */ -export interface GetByPathWithPath1RequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the analytics property of the microsoft.graph.site entity. - */ - get analytics(): AnalyticsRequestBuilder; - /** - * Provides operations to manage the columns property of the microsoft.graph.site entity. - */ - get columns(): ColumnsRequestBuilder; - /** - * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - */ - get contentTypes(): ContentTypesRequestBuilder; - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - */ - get createdByUser(): CreatedByUserRequestBuilder; - /** - * Provides operations to manage the drive property of the microsoft.graph.site entity. - */ - get drive(): DriveRequestBuilder; - /** - * Provides operations to manage the drives property of the microsoft.graph.site entity. - */ - get drives(): DrivesRequestBuilder; - /** - * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - */ - get externalColumns(): ExternalColumnsRequestBuilder; - /** - * Provides operations to manage the items property of the microsoft.graph.site entity. - */ - get items(): ItemsRequestBuilder; - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ - get lastModifiedByUser(): LastModifiedByUserRequestBuilder; - /** - * Provides operations to manage the lists property of the microsoft.graph.site entity. - */ - get lists(): ListsRequestBuilder; - /** - * Provides operations to manage the onenote property of the microsoft.graph.site entity. - */ - get onenote(): OnenoteRequestBuilder; - /** - * Provides operations to manage the operations property of the microsoft.graph.site entity. - */ - get operations(): OperationsRequestBuilder; - /** - * Provides operations to manage the pages property of the microsoft.graph.site entity. - */ - get pages(): PagesRequestBuilder; - /** - * Provides operations to manage the permissions property of the microsoft.graph.site entity. - */ - get permissions(): PermissionsRequestBuilder; - /** - * Provides operations to manage the sites property of the microsoft.graph.site entity. - */ - get sites(): SitesRequestBuilder; - /** - * Provides operations to manage the termStore property of the microsoft.graph.site entity. - */ - get termStore(): TermStoreRequestBuilder; - /** - * Provides operations to manage the termStores property of the microsoft.graph.site entity. - */ - get termStores(): TermStoresRequestBuilder; - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Uri template for the request builder. - */ -export const GetByPathWithPath1RequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')"; -/** - * Metadata for all the navigation properties in the request builder. - */ -export const GetByPathWithPath1RequestBuilderNavigationMetadata: Record, NavigationMetadata> = { - analytics: { - requestsMetadata: AnalyticsRequestBuilderRequestsMetadata, - }, - columns: { - requestsMetadata: ColumnsRequestBuilderRequestsMetadata, - }, - contentTypes: { - requestsMetadata: ContentTypesRequestBuilderRequestsMetadata, - }, - createdByUser: { - requestsMetadata: CreatedByUserRequestBuilderRequestsMetadata, - }, - drive: { - requestsMetadata: DriveRequestBuilderRequestsMetadata, - }, - drives: { - requestsMetadata: DrivesRequestBuilderRequestsMetadata, - }, - externalColumns: { - requestsMetadata: ExternalColumnsRequestBuilderRequestsMetadata, - }, - items: { - requestsMetadata: ItemsRequestBuilderRequestsMetadata, - }, - lastModifiedByUser: { - requestsMetadata: LastModifiedByUserRequestBuilderRequestsMetadata, - }, - lists: { - requestsMetadata: ListsRequestBuilderRequestsMetadata, - }, - onenote: { - requestsMetadata: OnenoteRequestBuilderRequestsMetadata, - }, - operations: { - requestsMetadata: OperationsRequestBuilderRequestsMetadata, - }, - pages: { - requestsMetadata: PagesRequestBuilderRequestsMetadata, - }, - permissions: { - requestsMetadata: PermissionsRequestBuilderRequestsMetadata, - }, - sites: { - requestsMetadata: SitesRequestBuilderRequestsMetadata, - }, - termStore: { - requestsMetadata: TermStoreRequestBuilderRequestsMetadata, - }, - termStores: { - requestsMetadata: TermStoresRequestBuilderRequestsMetadata, - }, -}; -/** - * Metadata for all the requests in the request builder. - */ -export const GetByPathWithPath1RequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: GetByPathWithPath1RequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createSiteFromDiscriminatorValue, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts deleted file mode 100644 index fa0dc9adf4b..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createBaseItemCollectionResponseFromDiscriminatorValue, type BaseItemCollectionResponse } 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 items property of the microsoft.graph.site entity. - */ -export interface ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Used to address any item contained in this site. This collection can't be enumerated. - */ -export interface ItemsRequestBuilderGetQueryParameters { - /** - * 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 ItemsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ItemsRequestBuilderGetQueryParametersMapper: Record = { - "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 ItemsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ItemsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createBaseItemCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ItemsRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts deleted file mode 100644 index 6bf86f5d96f..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createUserFromDiscriminatorValue, type User } 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 lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -export interface LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Identity of the user who last modified the item. Read-only. - */ -export interface LastModifiedByUserRequestBuilderGetQueryParameters { - /** - * Expand related entities - */ - expand?: string[]; - /** - * Select properties to be returned - */ - select?: string[]; -} -/** - * Uri template for the request builder. - */ -export const LastModifiedByUserRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const LastModifiedByUserRequestBuilderGetQueryParametersMapper: Record = { - "expand": "%24expand", - "select": "%24select", -}; -/** - * Metadata for all the requests in the request builder. - */ -export const LastModifiedByUserRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: LastModifiedByUserRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createUserFromDiscriminatorValue, - queryParametersMapper: LastModifiedByUserRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts deleted file mode 100644 index 0e991f75189..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createListCollectionResponseFromDiscriminatorValue, createListFromDiscriminatorValue, serializeList, type List, type ListCollectionResponse } 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 lists property of the microsoft.graph.site entity. - */ -export interface ListsRequestBuilder extends BaseRequestBuilder { - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to lists for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: List, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to lists for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: List, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of lists under this site. - */ -export interface ListsRequestBuilderGetQueryParameters { - /** - * 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 ListsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ListsRequestBuilderGetQueryParametersMapper: Record = { - "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 ListsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ListsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createListCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ListsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: ListsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createListFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeList, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts deleted file mode 100644 index e22384f9e1d..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, createRichLongRunningOperationFromDiscriminatorValue, serializeRichLongRunningOperation, type RichLongRunningOperation, type RichLongRunningOperationCollectionResponse } 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 operations property of the microsoft.graph.site entity. - */ -export interface OperationsRequestBuilder extends BaseRequestBuilder { - /** - * The collection of long-running operations on the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to operations for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of long-running operations on the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to operations for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of long-running operations on the site. - */ -export interface OperationsRequestBuilderGetQueryParameters { - /** - * 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 OperationsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const OperationsRequestBuilderGetQueryParametersMapper: Record = { - "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 OperationsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: OperationsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, - queryParametersMapper: OperationsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: OperationsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createRichLongRunningOperationFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeRichLongRunningOperation, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/pages/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/pages/index.ts deleted file mode 100644 index 5bc57740f1f..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/pages/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createBaseSitePageCollectionResponseFromDiscriminatorValue, createBaseSitePageFromDiscriminatorValue, serializeBaseSitePage, type BaseSitePage, type BaseSitePageCollectionResponse } 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 pages property of the microsoft.graph.site entity. - */ -export interface PagesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of pages in the baseSitePages list in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to pages for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: BaseSitePage, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of pages in the baseSitePages list in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to pages for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: BaseSitePage, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of pages in the baseSitePages list in this site. - */ -export interface PagesRequestBuilderGetQueryParameters { - /** - * 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 PagesRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const PagesRequestBuilderGetQueryParametersMapper: Record = { - "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 PagesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: PagesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createBaseSitePageCollectionResponseFromDiscriminatorValue, - queryParametersMapper: PagesRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: PagesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createBaseSitePageFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeBaseSitePage, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts deleted file mode 100644 index d5cdfc45ac3..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createPermissionCollectionResponseFromDiscriminatorValue, createPermissionFromDiscriminatorValue, serializePermission, type Permission, type PermissionCollectionResponse } 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 permissions property of the microsoft.graph.site entity. - */ -export interface PermissionsRequestBuilder extends BaseRequestBuilder { - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The permissions associated with the site. Nullable. - */ -export interface PermissionsRequestBuilderGetQueryParameters { - /** - * 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 PermissionsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const PermissionsRequestBuilderGetQueryParametersMapper: Record = { - "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 PermissionsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: PermissionsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createPermissionCollectionResponseFromDiscriminatorValue, - queryParametersMapper: PermissionsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: PermissionsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createPermissionFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializePermission, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts deleted file mode 100644 index 60a1d356392..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createSiteCollectionResponseFromDiscriminatorValue, type SiteCollectionResponse } 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 sites property of the microsoft.graph.site entity. - */ -export interface SitesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of the sub-sites under this site. - */ -export interface SitesRequestBuilderGetQueryParameters { - /** - * 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 SitesRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const SitesRequestBuilderGetQueryParametersMapper: Record = { - "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 SitesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: SitesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createSiteCollectionResponseFromDiscriminatorValue, - queryParametersMapper: SitesRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts deleted file mode 100644 index 41311e7a6a0..00000000000 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; -// @ts-ignore -import { createStoreCollectionResponseFromDiscriminatorValue, createStoreFromDiscriminatorValue, serializeStore, type Store, type StoreCollectionResponse } from '@microsoft/msgraph-sdk/models/termStore/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 termStores property of the microsoft.graph.site entity. - */ -export interface TermStoresRequestBuilder extends BaseRequestBuilder { - /** - * The collection of termStores under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to termStores for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of termStores under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to termStores for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of termStores under this site. - */ -export interface TermStoresRequestBuilderGetQueryParameters { - /** - * 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 TermStoresRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const TermStoresRequestBuilderGetQueryParametersMapper: Record = { - "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 TermStoresRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: TermStoresRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createStoreCollectionResponseFromDiscriminatorValue, - queryParametersMapper: TermStoresRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: TermStoresRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createStoreFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeStore, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/index.ts b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/index.ts index ddd3c1977c3..563451c8c5f 100644 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/index.ts @@ -26,8 +26,6 @@ import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequ // @ts-ignore import { GetApplicableContentTypesForListWithListIdRequestBuilderRequestsMetadata, type GetApplicableContentTypesForListWithListIdRequestBuilder } from './getApplicableContentTypesForListWithListId/index.js'; // @ts-ignore -import { GetByPathWithPath1RequestBuilderNavigationMetadata, GetByPathWithPath1RequestBuilderRequestsMetadata, type GetByPathWithPath1RequestBuilder } from './getByPathWithPath1/index.js'; -// @ts-ignore import { ItemsRequestBuilderRequestsMetadata, type ItemsRequestBuilder } from './items/index.js'; // @ts-ignore import { LastModifiedByUserRequestBuilderRequestsMetadata, type LastModifiedByUserRequestBuilder } from './lastModifiedByUser/index.js'; @@ -147,12 +145,6 @@ export interface GetByPathWithPathRequestBuilder extends BaseRequestBuilder Record void>) { + return deserializeIntoGetAllRetainedMessagesGetResponse; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse), + "value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues(createChatMessageFromDiscriminatorValue); }, + } +} +export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ChatMessage[]; +} +/** + * Provides operations to call the getAllRetainedMessages method. + */ +export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | 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 | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse) + writer.writeCollectionOfObjectValues("value", getAllRetainedMessagesGetResponse.value, serializeChatMessage); +} +/** + * Uri template for the request builder. + */ +export const GetAllRetainedMessagesRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/channels/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 = { + "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, + }, + adapterMethodName: "send", + responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue, + queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/team/channels/index.ts b/packages/msgraph-sdk-groups/groups/item/team/channels/index.ts index 2300f06d284..b3a897da0ea 100644 --- a/packages/msgraph-sdk-groups/groups/item/team/channels/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/team/channels/index.ts @@ -10,6 +10,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '. // @ts-ignore import { GetAllMessagesRequestBuilderRequestsMetadata, type GetAllMessagesRequestBuilder } from './getAllMessages/index.js'; // @ts-ignore +import { GetAllRetainedMessagesRequestBuilderRequestsMetadata, type GetAllRetainedMessagesRequestBuilder } from './getAllRetainedMessages/index.js'; +// @ts-ignore import { ChannelItemRequestBuilderNavigationMetadata, ChannelItemRequestBuilderRequestsMetadata, type ChannelItemRequestBuilder } 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'; @@ -26,6 +28,10 @@ export interface ChannelsRequestBuilder extends BaseRequestBuilder; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The shouldSetSpoSiteReadOnlyForMembers property + */ + shouldSetSpoSiteReadOnlyForMembers?: boolean; +} +/** + * Provides operations to call the archive method. + */ +export interface ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @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/channel-archive?view=graph-rest-1.0|Find more info here} + */ + post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * 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 {ArchivePostRequestBody} + */ +export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArchivePostRequestBody; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; }, + "shouldSetSpoSiteReadOnlyForMembers": n => { archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers = n.getBooleanValue(); }, + } +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: Partial | undefined = {}) : void { + writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); + writer.writeAdditionalData(archivePostRequestBody.additionalData); +} +/** + * Uri template for the request builder. + */ +export const ArchiveRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive"; +/** + * Metadata for all the requests in the request builder. + */ +export const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ArchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + requestBodyContentType: "application/json", + requestBodySerializer: serializeArchivePostRequestBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/team/channels/item/index.ts b/packages/msgraph-sdk-groups/groups/item/team/channels/item/index.ts index 9a082bb9b84..ade2fba5e0d 100644 --- a/packages/msgraph-sdk-groups/groups/item/team/channels/item/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/team/channels/item/index.ts @@ -6,6 +6,8 @@ import { createChannelFromDiscriminatorValue, serializeChannel, type Channel } f // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ArchiveRequestBuilderRequestsMetadata, type ArchiveRequestBuilder } from './archive/index.js'; +// @ts-ignore import { CompleteMigrationRequestBuilderRequestsMetadata, type CompleteMigrationRequestBuilder } from './completeMigration/index.js'; // @ts-ignore import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderRequestsMetadata, type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.js'; @@ -24,12 +26,18 @@ import { SharedWithTeamsRequestBuilderNavigationMetadata, SharedWithTeamsRequest // @ts-ignore import { TabsRequestBuilderNavigationMetadata, TabsRequestBuilderRequestsMetadata, type TabsRequestBuilder } from './tabs/index.js'; // @ts-ignore +import { type UnarchiveRequestBuilder, UnarchiveRequestBuilderRequestsMetadata } from './unarchive/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 channels property of the microsoft.graph.team entity. */ export interface ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + get archive(): ArchiveRequestBuilder; /** * Provides operations to call the completeMigration method. */ @@ -66,6 +74,10 @@ export interface ChannelItemRequestBuilder extends BaseRequestBuilder * Metadata for all the navigation properties in the request builder. */ export const ChannelItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + archive: { + requestsMetadata: ArchiveRequestBuilderRequestsMetadata, + }, completeMigration: { requestsMetadata: CompleteMigrationRequestBuilderRequestsMetadata, }, @@ -167,6 +182,9 @@ export const ChannelItemRequestBuilderNavigationMetadata: Record { + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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/channel-unarchive?view=graph-rest-1.0|Find more info here} + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive"; +/** + * Metadata for all the requests in the request builder. + */ +export const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: UnarchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/team/primaryChannel/archive/index.ts b/packages/msgraph-sdk-groups/groups/item/team/primaryChannel/archive/index.ts new file mode 100644 index 00000000000..782ebc312a1 --- /dev/null +++ b/packages/msgraph-sdk-groups/groups/item/team/primaryChannel/archive/index.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export interface ArchivePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The shouldSetSpoSiteReadOnlyForMembers property + */ + shouldSetSpoSiteReadOnlyForMembers?: boolean; +} +/** + * Provides operations to call the archive method. + */ +export interface ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @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/channel-archive?view=graph-rest-1.0|Find more info here} + */ + post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * 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 {ArchivePostRequestBody} + */ +export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArchivePostRequestBody; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; }, + "shouldSetSpoSiteReadOnlyForMembers": n => { archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers = n.getBooleanValue(); }, + } +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: Partial | undefined = {}) : void { + writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); + writer.writeAdditionalData(archivePostRequestBody.additionalData); +} +/** + * Uri template for the request builder. + */ +export const ArchiveRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive"; +/** + * Metadata for all the requests in the request builder. + */ +export const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ArchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + requestBodyContentType: "application/json", + requestBodySerializer: serializeArchivePostRequestBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/team/primaryChannel/index.ts b/packages/msgraph-sdk-groups/groups/item/team/primaryChannel/index.ts index ba7175d18df..ac19edf4355 100644 --- a/packages/msgraph-sdk-groups/groups/item/team/primaryChannel/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/team/primaryChannel/index.ts @@ -6,6 +6,8 @@ import { createChannelFromDiscriminatorValue, serializeChannel, type Channel } f // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ArchiveRequestBuilderRequestsMetadata, type ArchiveRequestBuilder } from './archive/index.js'; +// @ts-ignore import { CompleteMigrationRequestBuilderRequestsMetadata, type CompleteMigrationRequestBuilder } from './completeMigration/index.js'; // @ts-ignore import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderRequestsMetadata, type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.js'; @@ -24,12 +26,18 @@ import { SharedWithTeamsRequestBuilderNavigationMetadata, SharedWithTeamsRequest // @ts-ignore import { TabsRequestBuilderNavigationMetadata, TabsRequestBuilderRequestsMetadata, type TabsRequestBuilder } from './tabs/index.js'; // @ts-ignore +import { type UnarchiveRequestBuilder, UnarchiveRequestBuilderRequestsMetadata } from './unarchive/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 primaryChannel property of the microsoft.graph.team entity. */ export interface PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + get archive(): ArchiveRequestBuilder; /** * Provides operations to call the completeMigration method. */ @@ -66,6 +74,10 @@ export interface PrimaryChannelRequestBuilder extends BaseRequestBuilder, NavigationMetadata> = { + archive: { + requestsMetadata: ArchiveRequestBuilderRequestsMetadata, + }, completeMigration: { requestsMetadata: CompleteMigrationRequestBuilderRequestsMetadata, }, @@ -167,6 +182,9 @@ export const PrimaryChannelRequestBuilderNavigationMetadata: Record { + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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/channel-unarchive?view=graph-rest-1.0|Find more info here} + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive"; +/** + * Metadata for all the requests in the request builder. + */ +export const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: UnarchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/threads/item/posts/item/extensions/item/index.ts b/packages/msgraph-sdk-groups/groups/item/threads/item/posts/item/extensions/item/index.ts index 50a24b3504d..616bb33763b 100644 --- a/packages/msgraph-sdk-groups/groups/item/threads/item/posts/item/extensions/item/index.ts +++ b/packages/msgraph-sdk-groups/groups/item/threads/item/posts/item/extensions/item/index.ts @@ -27,7 +27,7 @@ export interface ExtensionItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -48,7 +48,7 @@ export interface ExtensionItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-identity/identity/conditionalAccess/namedLocations/item/index.ts b/packages/msgraph-sdk-identity/identity/conditionalAccess/namedLocations/item/index.ts index 42a2fbe4c74..4e1143b89fa 100644 --- a/packages/msgraph-sdk-identity/identity/conditionalAccess/namedLocations/item/index.ts +++ b/packages/msgraph-sdk-identity/identity/conditionalAccess/namedLocations/item/index.ts @@ -20,20 +20,20 @@ export interface NamedLocationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Retrieve the properties and relationships of a countryNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/countrynamedlocation-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/countrynamedlocation-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/ipnamedlocation-update?view=graph-rest-1.0|Find more info here} */ patch(body: NamedLocation, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -43,13 +43,13 @@ export interface NamedLocationItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Retrieve the properties and relationships of a countryNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} @@ -57,7 +57,7 @@ export interface NamedLocationItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * Retrieve the properties and relationships of a countryNamedLocation object. + * Retrieve the properties and relationships of a namedLocation object. */ export interface NamedLocationItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-organization/organization/item/branding/localizations/item/bannerLogo/index.ts b/packages/msgraph-sdk-organization/organization/item/branding/localizations/item/bannerLogo/index.ts index 96bfcae77f1..48b47a18459 100644 --- a/packages/msgraph-sdk-organization/organization/item/branding/localizations/item/bannerLogo/index.ts +++ b/packages/msgraph-sdk-organization/organization/item/branding/localizations/item/bannerLogo/index.ts @@ -17,11 +17,11 @@ export interface BannerLogoRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. + * Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/organizationalbrandinglocalization-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/organizationalbranding-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -41,7 +41,7 @@ export interface BannerLogoRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. + * Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ diff --git a/packages/msgraph-sdk-organization/organization/item/getMemberGroups/index.ts b/packages/msgraph-sdk-organization/organization/item/getMemberGroups/index.ts index a7f954c2de5..974d759f983 100644 --- a/packages/msgraph-sdk-organization/organization/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-organization/organization/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-organization/organization/item/index.ts b/packages/msgraph-sdk-organization/organization/item/index.ts index bfae529c28f..6918ef49f92 100644 --- a/packages/msgraph-sdk-organization/organization/item/index.ts +++ b/packages/msgraph-sdk-organization/organization/item/index.ts @@ -81,12 +81,12 @@ export interface OrganizationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. + * Update the properties of a organization object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/organization-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-organization-update?view=graph-rest-1.0|Find more info here} */ patch(body: Organization, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -102,7 +102,7 @@ export interface OrganizationItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. + * Update the properties of a organization object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-permissionGrants/permissionGrants/item/getMemberGroups/index.ts b/packages/msgraph-sdk-permissionGrants/permissionGrants/item/getMemberGroups/index.ts index 91388b35bfe..d7d32e7637f 100644 --- a/packages/msgraph-sdk-permissionGrants/permissionGrants/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-permissionGrants/permissionGrants/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/directoryScope/index.ts b/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/directoryScope/index.ts index 23475bc0638..7f370eab49d 100644 --- a/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/directoryScope/index.ts +++ b/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/directoryScope/index.ts @@ -13,21 +13,21 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface DirectoryScopeRequestBuilder extends BaseRequestBuilder { /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ export interface DirectoryScopeRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/principal/index.ts b/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/principal/index.ts index aeaf0ff10c1..491f83e7d68 100644 --- a/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/principal/index.ts +++ b/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/principal/index.ts @@ -13,21 +13,21 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface PrincipalRequestBuilder extends BaseRequestBuilder { /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ export interface PrincipalRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts b/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts index fe217fb6294..542acaa3dd1 100644 --- a/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts +++ b/packages/msgraph-sdk-roleManagement/roleManagement/directory/roleAssignments/item/roleDefinition/index.ts @@ -13,21 +13,21 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface RoleDefinitionRequestBuilder extends BaseRequestBuilder { /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ export interface RoleDefinitionRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts b/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts index c47d2c3785f..1c33a8c8eba 100644 --- a/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts +++ b/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/directoryScope/index.ts @@ -13,21 +13,21 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface DirectoryScopeRequestBuilder extends BaseRequestBuilder { /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ export interface DirectoryScopeRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts b/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts index ae964e138d5..e5eddf055b1 100644 --- a/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts +++ b/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/principal/index.ts @@ -13,21 +13,21 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface PrincipalRequestBuilder extends BaseRequestBuilder { /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ export interface PrincipalRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts b/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts index 6ca93169a83..961fccf3049 100644 --- a/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts +++ b/packages/msgraph-sdk-roleManagement/roleManagement/entitlementManagement/roleAssignments/item/roleDefinition/index.ts @@ -13,21 +13,21 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ */ export interface RoleDefinitionRequestBuilder extends BaseRequestBuilder { /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ export interface RoleDefinitionRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-servicePrincipals/servicePrincipals/item/getMemberGroups/index.ts b/packages/msgraph-sdk-servicePrincipals/servicePrincipals/item/getMemberGroups/index.ts index 5929f291d51..722f0a880f4 100644 --- a/packages/msgraph-sdk-servicePrincipals/servicePrincipals/item/getMemberGroups/index.ts +++ b/packages/msgraph-sdk-servicePrincipals/servicePrincipals/item/getMemberGroups/index.ts @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts deleted file mode 100644 index 8f560995976..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, createColumnDefinitionFromDiscriminatorValue, serializeColumnDefinition, type ColumnDefinition, type ColumnDefinitionCollectionResponse } 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 columns property of the microsoft.graph.site entity. - */ -export interface ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to columns for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to columns for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of column definitions reusable across lists under this site. - */ -export interface ColumnsRequestBuilderGetQueryParameters { - /** - * 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 ColumnsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ColumnsRequestBuilderGetQueryParametersMapper: Record = { - "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 ColumnsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ColumnsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createColumnDefinitionCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ColumnsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: ColumnsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createColumnDefinitionFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeColumnDefinition, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts deleted file mode 100644 index c15c2d51baa..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createContentTypeCollectionResponseFromDiscriminatorValue, createContentTypeFromDiscriminatorValue, serializeContentType, type ContentType, type ContentTypeCollectionResponse } 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 contentTypes property of the microsoft.graph.site entity. - */ -export interface ContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of content types defined for this site. - */ -export interface ContentTypesRequestBuilderGetQueryParameters { - /** - * 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 ContentTypesRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ContentTypesRequestBuilderGetQueryParametersMapper: Record = { - "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 ContentTypesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ContentTypesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createContentTypeCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ContentTypesRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: ContentTypesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createContentTypeFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeContentType, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts deleted file mode 100644 index d42587fd6f8..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createUserFromDiscriminatorValue, type User } 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 createdByUser property of the microsoft.graph.baseItem entity. - */ -export interface CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Identity of the user who created the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Identity of the user who created the item. Read-only. - */ -export interface CreatedByUserRequestBuilderGetQueryParameters { - /** - * Expand related entities - */ - expand?: string[]; - /** - * Select properties to be returned - */ - select?: string[]; -} -/** - * Uri template for the request builder. - */ -export const CreatedByUserRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const CreatedByUserRequestBuilderGetQueryParametersMapper: Record = { - "expand": "%24expand", - "select": "%24select", -}; -/** - * Metadata for all the requests in the request builder. - */ -export const CreatedByUserRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: CreatedByUserRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createUserFromDiscriminatorValue, - queryParametersMapper: CreatedByUserRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts deleted file mode 100644 index 885c7143ea3..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createDriveFromDiscriminatorValue, type Drive } 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 drive property of the microsoft.graph.site entity. - */ -export interface DriveRequestBuilder extends BaseRequestBuilder { - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The default drive (document library) for this site. - */ -export interface DriveRequestBuilderGetQueryParameters { - /** - * Expand related entities - */ - expand?: string[]; - /** - * Select properties to be returned - */ - select?: string[]; -} -/** - * Uri template for the request builder. - */ -export const DriveRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const DriveRequestBuilderGetQueryParametersMapper: Record = { - "expand": "%24expand", - "select": "%24select", -}; -/** - * Metadata for all the requests in the request builder. - */ -export const DriveRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: DriveRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createDriveFromDiscriminatorValue, - queryParametersMapper: DriveRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts deleted file mode 100644 index 89de713fc26..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createDriveCollectionResponseFromDiscriminatorValue, type DriveCollectionResponse } 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 drives property of the microsoft.graph.site entity. - */ -export interface DrivesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of drives (document libraries) under this site. - */ -export interface DrivesRequestBuilderGetQueryParameters { - /** - * 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 DrivesRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const DrivesRequestBuilderGetQueryParametersMapper: Record = { - "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 DrivesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: DrivesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createDriveCollectionResponseFromDiscriminatorValue, - queryParametersMapper: DrivesRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts deleted file mode 100644 index 19bfd3105c5..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, type ColumnDefinitionCollectionResponse } 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 externalColumns property of the microsoft.graph.site entity. - */ -export interface ExternalColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Get externalColumns from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Get externalColumns from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Get externalColumns from sites - */ -export interface ExternalColumnsRequestBuilderGetQueryParameters { - /** - * 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 ExternalColumnsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ExternalColumnsRequestBuilderGetQueryParametersMapper: Record = { - "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 ExternalColumnsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ExternalColumnsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createColumnDefinitionCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ExternalColumnsRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/index.ts deleted file mode 100644 index aadc2cd8589..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/index.ts +++ /dev/null @@ -1,206 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createSiteFromDiscriminatorValue, type Site } from '@microsoft/msgraph-sdk/models/index.js'; -// @ts-ignore -import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; -// @ts-ignore -import { AnalyticsRequestBuilderRequestsMetadata, type AnalyticsRequestBuilder } from './analytics/index.js'; -// @ts-ignore -import { ColumnsRequestBuilderRequestsMetadata, type ColumnsRequestBuilder } from './columns/index.js'; -// @ts-ignore -import { ContentTypesRequestBuilderRequestsMetadata, type ContentTypesRequestBuilder } from './contentTypes/index.js'; -// @ts-ignore -import { CreatedByUserRequestBuilderRequestsMetadata, type CreatedByUserRequestBuilder } from './createdByUser/index.js'; -// @ts-ignore -import { DriveRequestBuilderRequestsMetadata, type DriveRequestBuilder } from './drive/index.js'; -// @ts-ignore -import { DrivesRequestBuilderRequestsMetadata, type DrivesRequestBuilder } from './drives/index.js'; -// @ts-ignore -import { ExternalColumnsRequestBuilderRequestsMetadata, type ExternalColumnsRequestBuilder } from './externalColumns/index.js'; -// @ts-ignore -import { ItemsRequestBuilderRequestsMetadata, type ItemsRequestBuilder } from './items/index.js'; -// @ts-ignore -import { LastModifiedByUserRequestBuilderRequestsMetadata, type LastModifiedByUserRequestBuilder } from './lastModifiedByUser/index.js'; -// @ts-ignore -import { ListsRequestBuilderRequestsMetadata, type ListsRequestBuilder } from './lists/index.js'; -// @ts-ignore -import { OnenoteRequestBuilderRequestsMetadata, type OnenoteRequestBuilder } from './onenote/index.js'; -// @ts-ignore -import { OperationsRequestBuilderRequestsMetadata, type OperationsRequestBuilder } from './operations/index.js'; -// @ts-ignore -import { PagesRequestBuilderRequestsMetadata, type PagesRequestBuilder } from './pages/index.js'; -// @ts-ignore -import { PermissionsRequestBuilderRequestsMetadata, type PermissionsRequestBuilder } from './permissions/index.js'; -// @ts-ignore -import { SitesRequestBuilderRequestsMetadata, type SitesRequestBuilder } from './sites/index.js'; -// @ts-ignore -import { TermStoreRequestBuilderRequestsMetadata, type TermStoreRequestBuilder } from './termStore/index.js'; -// @ts-ignore -import { TermStoresRequestBuilderRequestsMetadata, type TermStoresRequestBuilder } from './termStores/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 call the getByPath method. - */ -export interface GetByPathWithPath1RequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the analytics property of the microsoft.graph.site entity. - */ - get analytics(): AnalyticsRequestBuilder; - /** - * Provides operations to manage the columns property of the microsoft.graph.site entity. - */ - get columns(): ColumnsRequestBuilder; - /** - * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - */ - get contentTypes(): ContentTypesRequestBuilder; - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - */ - get createdByUser(): CreatedByUserRequestBuilder; - /** - * Provides operations to manage the drive property of the microsoft.graph.site entity. - */ - get drive(): DriveRequestBuilder; - /** - * Provides operations to manage the drives property of the microsoft.graph.site entity. - */ - get drives(): DrivesRequestBuilder; - /** - * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - */ - get externalColumns(): ExternalColumnsRequestBuilder; - /** - * Provides operations to manage the items property of the microsoft.graph.site entity. - */ - get items(): ItemsRequestBuilder; - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ - get lastModifiedByUser(): LastModifiedByUserRequestBuilder; - /** - * Provides operations to manage the lists property of the microsoft.graph.site entity. - */ - get lists(): ListsRequestBuilder; - /** - * Provides operations to manage the onenote property of the microsoft.graph.site entity. - */ - get onenote(): OnenoteRequestBuilder; - /** - * Provides operations to manage the operations property of the microsoft.graph.site entity. - */ - get operations(): OperationsRequestBuilder; - /** - * Provides operations to manage the pages property of the microsoft.graph.site entity. - */ - get pages(): PagesRequestBuilder; - /** - * Provides operations to manage the permissions property of the microsoft.graph.site entity. - */ - get permissions(): PermissionsRequestBuilder; - /** - * Provides operations to manage the sites property of the microsoft.graph.site entity. - */ - get sites(): SitesRequestBuilder; - /** - * Provides operations to manage the termStore property of the microsoft.graph.site entity. - */ - get termStore(): TermStoreRequestBuilder; - /** - * Provides operations to manage the termStores property of the microsoft.graph.site entity. - */ - get termStores(): TermStoresRequestBuilder; - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Uri template for the request builder. - */ -export const GetByPathWithPath1RequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')"; -/** - * Metadata for all the navigation properties in the request builder. - */ -export const GetByPathWithPath1RequestBuilderNavigationMetadata: Record, NavigationMetadata> = { - analytics: { - requestsMetadata: AnalyticsRequestBuilderRequestsMetadata, - }, - columns: { - requestsMetadata: ColumnsRequestBuilderRequestsMetadata, - }, - contentTypes: { - requestsMetadata: ContentTypesRequestBuilderRequestsMetadata, - }, - createdByUser: { - requestsMetadata: CreatedByUserRequestBuilderRequestsMetadata, - }, - drive: { - requestsMetadata: DriveRequestBuilderRequestsMetadata, - }, - drives: { - requestsMetadata: DrivesRequestBuilderRequestsMetadata, - }, - externalColumns: { - requestsMetadata: ExternalColumnsRequestBuilderRequestsMetadata, - }, - items: { - requestsMetadata: ItemsRequestBuilderRequestsMetadata, - }, - lastModifiedByUser: { - requestsMetadata: LastModifiedByUserRequestBuilderRequestsMetadata, - }, - lists: { - requestsMetadata: ListsRequestBuilderRequestsMetadata, - }, - onenote: { - requestsMetadata: OnenoteRequestBuilderRequestsMetadata, - }, - operations: { - requestsMetadata: OperationsRequestBuilderRequestsMetadata, - }, - pages: { - requestsMetadata: PagesRequestBuilderRequestsMetadata, - }, - permissions: { - requestsMetadata: PermissionsRequestBuilderRequestsMetadata, - }, - sites: { - requestsMetadata: SitesRequestBuilderRequestsMetadata, - }, - termStore: { - requestsMetadata: TermStoreRequestBuilderRequestsMetadata, - }, - termStores: { - requestsMetadata: TermStoresRequestBuilderRequestsMetadata, - }, -}; -/** - * Metadata for all the requests in the request builder. - */ -export const GetByPathWithPath1RequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: GetByPathWithPath1RequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createSiteFromDiscriminatorValue, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts deleted file mode 100644 index 3eec3da0615..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createBaseItemCollectionResponseFromDiscriminatorValue, type BaseItemCollectionResponse } 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 items property of the microsoft.graph.site entity. - */ -export interface ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Used to address any item contained in this site. This collection can't be enumerated. - */ -export interface ItemsRequestBuilderGetQueryParameters { - /** - * 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 ItemsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ItemsRequestBuilderGetQueryParametersMapper: Record = { - "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 ItemsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ItemsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createBaseItemCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ItemsRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts deleted file mode 100644 index 6a4dbd07b23..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createUserFromDiscriminatorValue, type User } 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 lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -export interface LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Identity of the user who last modified the item. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * Identity of the user who last modified the item. Read-only. - */ -export interface LastModifiedByUserRequestBuilderGetQueryParameters { - /** - * Expand related entities - */ - expand?: string[]; - /** - * Select properties to be returned - */ - select?: string[]; -} -/** - * Uri template for the request builder. - */ -export const LastModifiedByUserRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const LastModifiedByUserRequestBuilderGetQueryParametersMapper: Record = { - "expand": "%24expand", - "select": "%24select", -}; -/** - * Metadata for all the requests in the request builder. - */ -export const LastModifiedByUserRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: LastModifiedByUserRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createUserFromDiscriminatorValue, - queryParametersMapper: LastModifiedByUserRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts deleted file mode 100644 index 91a81b79ef6..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createListCollectionResponseFromDiscriminatorValue, createListFromDiscriminatorValue, serializeList, type List, type ListCollectionResponse } 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 lists property of the microsoft.graph.site entity. - */ -export interface ListsRequestBuilder extends BaseRequestBuilder { - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to lists for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: List, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to lists for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: List, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of lists under this site. - */ -export interface ListsRequestBuilderGetQueryParameters { - /** - * 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 ListsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const ListsRequestBuilderGetQueryParametersMapper: Record = { - "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 ListsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: ListsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createListCollectionResponseFromDiscriminatorValue, - queryParametersMapper: ListsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: ListsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createListFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeList, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts deleted file mode 100644 index f4575806513..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, createRichLongRunningOperationFromDiscriminatorValue, serializeRichLongRunningOperation, type RichLongRunningOperation, type RichLongRunningOperationCollectionResponse } 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 operations property of the microsoft.graph.site entity. - */ -export interface OperationsRequestBuilder extends BaseRequestBuilder { - /** - * The collection of long-running operations on the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to operations for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of long-running operations on the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to operations for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of long-running operations on the site. - */ -export interface OperationsRequestBuilderGetQueryParameters { - /** - * 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 OperationsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const OperationsRequestBuilderGetQueryParametersMapper: Record = { - "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 OperationsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: OperationsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, - queryParametersMapper: OperationsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: OperationsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createRichLongRunningOperationFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeRichLongRunningOperation, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/pages/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/pages/index.ts deleted file mode 100644 index ce14930b5c2..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/pages/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createBaseSitePageCollectionResponseFromDiscriminatorValue, createBaseSitePageFromDiscriminatorValue, serializeBaseSitePage, type BaseSitePage, type BaseSitePageCollectionResponse } 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 pages property of the microsoft.graph.site entity. - */ -export interface PagesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of pages in the baseSitePages list in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to pages for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: BaseSitePage, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of pages in the baseSitePages list in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to pages for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: BaseSitePage, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of pages in the baseSitePages list in this site. - */ -export interface PagesRequestBuilderGetQueryParameters { - /** - * 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 PagesRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const PagesRequestBuilderGetQueryParametersMapper: Record = { - "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 PagesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: PagesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createBaseSitePageCollectionResponseFromDiscriminatorValue, - queryParametersMapper: PagesRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: PagesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createBaseSitePageFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeBaseSitePage, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts deleted file mode 100644 index 3f4cdaa7f4f..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createPermissionCollectionResponseFromDiscriminatorValue, createPermissionFromDiscriminatorValue, serializePermission, type Permission, type PermissionCollectionResponse } 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 permissions property of the microsoft.graph.site entity. - */ -export interface PermissionsRequestBuilder extends BaseRequestBuilder { - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The permissions associated with the site. Nullable. - */ -export interface PermissionsRequestBuilderGetQueryParameters { - /** - * 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 PermissionsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const PermissionsRequestBuilderGetQueryParametersMapper: Record = { - "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 PermissionsRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: PermissionsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createPermissionCollectionResponseFromDiscriminatorValue, - queryParametersMapper: PermissionsRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: PermissionsRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createPermissionFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializePermission, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts deleted file mode 100644 index 1101c46f0b7..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createSiteCollectionResponseFromDiscriminatorValue, type SiteCollectionResponse } 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 sites property of the microsoft.graph.site entity. - */ -export interface SitesRequestBuilder extends BaseRequestBuilder { - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of the sub-sites under this site. - */ -export interface SitesRequestBuilderGetQueryParameters { - /** - * 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 SitesRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const SitesRequestBuilderGetQueryParametersMapper: Record = { - "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 SitesRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: SitesRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createSiteCollectionResponseFromDiscriminatorValue, - queryParametersMapper: SitesRequestBuilderGetQueryParametersMapper, - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts deleted file mode 100644 index e5e4e45d75f..00000000000 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated by Microsoft Kiota -// @ts-ignore -import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; -// @ts-ignore -import { createStoreCollectionResponseFromDiscriminatorValue, createStoreFromDiscriminatorValue, serializeStore, type Store, type StoreCollectionResponse } from '@microsoft/msgraph-sdk/models/termStore/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 termStores property of the microsoft.graph.site entity. - */ -export interface TermStoresRequestBuilder extends BaseRequestBuilder { - /** - * The collection of termStores under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * Create new navigation property to termStores for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} - * @throws {ODataError} error when the service returns a 4XX or 5XX status code - */ - post(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise; - /** - * The collection of termStores under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; - /** - * Create new navigation property to termStores for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {RequestInformation} - */ - toPostRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; -} -/** - * The collection of termStores under this site. - */ -export interface TermStoresRequestBuilderGetQueryParameters { - /** - * 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 TermStoresRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; -/** - * Mapper for query parameters from symbol name to serialization name represented as a constant. - */ -const TermStoresRequestBuilderGetQueryParametersMapper: Record = { - "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 TermStoresRequestBuilderRequestsMetadata: RequestsMetadata = { - get: { - uriTemplate: TermStoresRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createStoreCollectionResponseFromDiscriminatorValue, - queryParametersMapper: TermStoresRequestBuilderGetQueryParametersMapper, - }, - post: { - uriTemplate: TermStoresRequestBuilderUriTemplate, - responseBodyContentType: "application/json", - errorMappings: { - XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, - }, - adapterMethodName: "send", - responseBodyFactory: createStoreFromDiscriminatorValue, - requestBodyContentType: "application/json", - requestBodySerializer: serializeStore, - requestInformationContentSetMethod: "setContentFromParsable", - }, -}; -/* tslint:enable */ -/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/index.ts b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/index.ts index d31d67b8857..5e681403f0e 100644 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/index.ts +++ b/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/index.ts @@ -26,8 +26,6 @@ import { GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequ // @ts-ignore import { GetApplicableContentTypesForListWithListIdRequestBuilderRequestsMetadata, type GetApplicableContentTypesForListWithListIdRequestBuilder } from './getApplicableContentTypesForListWithListId/index.js'; // @ts-ignore -import { GetByPathWithPath1RequestBuilderNavigationMetadata, GetByPathWithPath1RequestBuilderRequestsMetadata, type GetByPathWithPath1RequestBuilder } from './getByPathWithPath1/index.js'; -// @ts-ignore import { ItemsRequestBuilderRequestsMetadata, type ItemsRequestBuilder } from './items/index.js'; // @ts-ignore import { LastModifiedByUserRequestBuilderRequestsMetadata, type LastModifiedByUserRequestBuilder } from './lastModifiedByUser/index.js'; @@ -147,12 +145,6 @@ export interface GetByPathWithPathRequestBuilder extends BaseRequestBuilder { + /** + * Invoke action cancel + * @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 + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke action cancel + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const CancelRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/cancel"; +/** + * Metadata for all the requests in the request builder. + */ +export const CancelRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: CancelRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/index.ts index 074e97dd02a..3b022a95a25 100644 --- a/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/index.ts @@ -6,6 +6,12 @@ import { createVirtualEventFromDiscriminatorValue, serializeVirtualEvent, type V // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { CancelRequestBuilderRequestsMetadata, type CancelRequestBuilder } from './cancel/index.js'; +// @ts-ignore +import { PresentersRequestBuilderNavigationMetadata, PresentersRequestBuilderRequestsMetadata, type PresentersRequestBuilder } from './presenters/index.js'; +// @ts-ignore +import { PublishRequestBuilderRequestsMetadata, type PublishRequestBuilder } from './publish/index.js'; +// @ts-ignore import { SessionsRequestBuilderNavigationMetadata, SessionsRequestBuilderRequestsMetadata, type SessionsRequestBuilder } from './sessions/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'; @@ -14,6 +20,18 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type * Provides operations to manage the events property of the microsoft.graph.virtualEventsRoot entity. */ export interface VirtualEventItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + */ + get cancel(): CancelRequestBuilder; + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + */ + get presenters(): PresentersRequestBuilder; + /** + * Provides operations to call the publish method. + */ + get publish(): PublishRequestBuilder; /** * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. */ @@ -87,6 +105,16 @@ const VirtualEventItemRequestBuilderGetQueryParametersMapper: Record, NavigationMetadata> = { + cancel: { + requestsMetadata: CancelRequestBuilderRequestsMetadata, + }, + presenters: { + requestsMetadata: PresentersRequestBuilderRequestsMetadata, + navigationMetadata: PresentersRequestBuilderNavigationMetadata, + }, + publish: { + requestsMetadata: PublishRequestBuilderRequestsMetadata, + }, sessions: { requestsMetadata: SessionsRequestBuilderRequestsMetadata, navigationMetadata: SessionsRequestBuilderNavigationMetadata, diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/count/index.ts new file mode 100644 index 00000000000..fd754385727 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/index.ts new file mode 100644 index 00000000000..80f6cd7aca7 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/index.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventPresenterCollectionResponseFromDiscriminatorValue, createVirtualEventPresenterFromDiscriminatorValue, serializeVirtualEventPresenter, type VirtualEventPresenter, type VirtualEventPresenterCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { type VirtualEventPresenterItemRequestBuilder, VirtualEventPresenterItemRequestBuilderRequestsMetadata } 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 presenters property of the microsoft.graph.virtualEvent entity. + */ +export interface PresentersRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param virtualEventPresenterId The unique identifier of virtualEventPresenter + * @returns {VirtualEventPresenterItemRequestBuilder} + */ + byVirtualEventPresenterId(virtualEventPresenterId: string) : VirtualEventPresenterItemRequestBuilder; + /** + * Get presenters from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get presenters from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get presenters from solutions + */ +export interface PresentersRequestBuilderGetQueryParameters { + /** + * 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 PresentersRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const PresentersRequestBuilderGetQueryParametersMapper: Record = { + "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 PresentersRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byVirtualEventPresenterId: { + requestsMetadata: VirtualEventPresenterItemRequestBuilderRequestsMetadata, + pathParametersMappings: ["virtualEventPresenter%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const PresentersRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: PresentersRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventPresenterCollectionResponseFromDiscriminatorValue, + queryParametersMapper: PresentersRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: PresentersRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventPresenter, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/item/index.ts similarity index 57% rename from packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts rename to packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/item/index.ts index 948807e2930..1c85ae0b13b 100644 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/presenters/item/index.ts @@ -2,61 +2,61 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +import { createVirtualEventPresenterFromDiscriminatorValue, serializeVirtualEventPresenter, type VirtualEventPresenter } from '@microsoft/msgraph-sdk/models/index.js'; // @ts-ignore -import { createStoreFromDiscriminatorValue, serializeStore, type Store } from '@microsoft/msgraph-sdk/models/termStore/index.js'; +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 termStore property of the microsoft.graph.site entity. + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. */ -export interface TermStoreRequestBuilder extends BaseRequestBuilder { +export interface VirtualEventPresenterItemRequestBuilder extends BaseRequestBuilder { /** - * Delete navigation property termStore for groups + * Delete navigation property presenters for solutions * @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 | undefined) : Promise; /** - * The default termStore under this site. + * Get presenters from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the navigation property termStore in groups + * Update the navigation property presenters in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - patch(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise; + patch(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Delete navigation property termStore for groups + * Delete navigation property presenters for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * The default termStore under this site. + * Get presenters from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the navigation property termStore in groups + * Update the navigation property presenters in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toPatchRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toPatchRequestInformation(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * The default termStore under this site. + * Get presenters from solutions */ -export interface TermStoreRequestBuilderGetQueryParameters { +export interface VirtualEventPresenterItemRequestBuilderGetQueryParameters { /** * Expand related entities */ @@ -69,20 +69,20 @@ export interface TermStoreRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const TermStoreRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}"; +export const VirtualEventPresenterItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ -const TermStoreRequestBuilderGetQueryParametersMapper: Record = { +const VirtualEventPresenterItemRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", "select": "%24select", }; /** * Metadata for all the requests in the request builder. */ -export const TermStoreRequestBuilderRequestsMetadata: RequestsMetadata = { +export const VirtualEventPresenterItemRequestBuilderRequestsMetadata: RequestsMetadata = { delete: { - uriTemplate: TermStoreRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, @@ -90,25 +90,25 @@ export const TermStoreRequestBuilderRequestsMetadata: RequestsMetadata = { adapterMethodName: "sendNoResponseContent", }, get: { - uriTemplate: TermStoreRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createStoreFromDiscriminatorValue, - queryParametersMapper: TermStoreRequestBuilderGetQueryParametersMapper, + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, + queryParametersMapper: VirtualEventPresenterItemRequestBuilderGetQueryParametersMapper, }, patch: { - uriTemplate: TermStoreRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createStoreFromDiscriminatorValue, + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, requestBodyContentType: "application/json", - requestBodySerializer: serializeStore, + requestBodySerializer: serializeVirtualEventPresenter, requestInformationContentSetMethod: "setContentFromParsable", }, }; diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/publish/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/publish/index.ts new file mode 100644 index 00000000000..56757e2c39d --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/events/item/publish/index.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 call the publish method. + */ +export interface PublishRequestBuilder extends BaseRequestBuilder { + /** + * Invoke action publish + * @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 + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke action publish + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const PublishRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/publish"; +/** + * Metadata for all the requests in the request builder. + */ +export const PublishRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: PublishRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/index.ts index 0914adc1c98..e0e617d7f7c 100644 --- a/packages/msgraph-sdk-solutions/solutions/virtualEvents/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/index.ts @@ -8,6 +8,8 @@ import { createODataErrorFromDiscriminatorValue, type ODataError } from '@micros // @ts-ignore import { EventsRequestBuilderNavigationMetadata, EventsRequestBuilderRequestsMetadata, type EventsRequestBuilder } from './events/index.js'; // @ts-ignore +import { TownhallsRequestBuilderNavigationMetadata, TownhallsRequestBuilderRequestsMetadata, type TownhallsRequestBuilder } from './townhalls/index.js'; +// @ts-ignore import { type WebinarsRequestBuilder, WebinarsRequestBuilderNavigationMetadata, WebinarsRequestBuilderRequestsMetadata } from './webinars/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'; @@ -20,6 +22,10 @@ export interface VirtualEventsRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/index.ts new file mode 100644 index 00000000000..4ce362956e9 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/index.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventTownhallCollectionResponseFromDiscriminatorValue, createVirtualEventTownhallFromDiscriminatorValue, serializeVirtualEventTownhall, type VirtualEventTownhall, type VirtualEventTownhallCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { type VirtualEventTownhallItemRequestBuilder, VirtualEventTownhallItemRequestBuilderNavigationMetadata, VirtualEventTownhallItemRequestBuilderRequestsMetadata } 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 townhalls property of the microsoft.graph.virtualEventsRoot entity. + */ +export interface TownhallsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. + * @param virtualEventTownhallId The unique identifier of virtualEventTownhall + * @returns {VirtualEventTownhallItemRequestBuilder} + */ + byVirtualEventTownhallId(virtualEventTownhallId: string) : VirtualEventTownhallItemRequestBuilder; + /** + * Get townhalls from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to townhalls for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: VirtualEventTownhall, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get townhalls from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to townhalls for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: VirtualEventTownhall, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get townhalls from solutions + */ +export interface TownhallsRequestBuilderGetQueryParameters { + /** + * 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 TownhallsRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const TownhallsRequestBuilderGetQueryParametersMapper: Record = { + "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 TownhallsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byVirtualEventTownhallId: { + requestsMetadata: VirtualEventTownhallItemRequestBuilderRequestsMetadata, + navigationMetadata: VirtualEventTownhallItemRequestBuilderNavigationMetadata, + pathParametersMappings: ["virtualEventTownhall%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const TownhallsRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: TownhallsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventTownhallCollectionResponseFromDiscriminatorValue, + queryParametersMapper: TownhallsRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: TownhallsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventTownhallFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventTownhall, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/index.ts new file mode 100644 index 00000000000..06fc3742912 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/index.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventTownhallFromDiscriminatorValue, serializeVirtualEventTownhall, type VirtualEventTownhall } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { PresentersRequestBuilderNavigationMetadata, PresentersRequestBuilderRequestsMetadata, type PresentersRequestBuilder } from './presenters/index.js'; +// @ts-ignore +import { SessionsRequestBuilderNavigationMetadata, SessionsRequestBuilderRequestsMetadata, type SessionsRequestBuilder } from './sessions/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 townhalls property of the microsoft.graph.virtualEventsRoot entity. + */ +export interface VirtualEventTownhallItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + */ + get presenters(): PresentersRequestBuilder; + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. + */ + get sessions(): SessionsRequestBuilder; + /** + * Delete navigation property townhalls for solutions + * @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 | undefined) : Promise; + /** + * Get townhalls from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property townhalls in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: VirtualEventTownhall, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property townhalls for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Get townhalls from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property townhalls in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: VirtualEventTownhall, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get townhalls from solutions + */ +export interface VirtualEventTownhallItemRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const VirtualEventTownhallItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}{?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const VirtualEventTownhallItemRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const VirtualEventTownhallItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + presenters: { + requestsMetadata: PresentersRequestBuilderRequestsMetadata, + navigationMetadata: PresentersRequestBuilderNavigationMetadata, + }, + sessions: { + requestsMetadata: SessionsRequestBuilderRequestsMetadata, + navigationMetadata: SessionsRequestBuilderNavigationMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const VirtualEventTownhallItemRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: VirtualEventTownhallItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: VirtualEventTownhallItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventTownhallFromDiscriminatorValue, + queryParametersMapper: VirtualEventTownhallItemRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: VirtualEventTownhallItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventTownhallFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventTownhall, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/count/index.ts new file mode 100644 index 00000000000..b85d0f3ba12 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/index.ts new file mode 100644 index 00000000000..20615f56aea --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/index.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventPresenterCollectionResponseFromDiscriminatorValue, createVirtualEventPresenterFromDiscriminatorValue, serializeVirtualEventPresenter, type VirtualEventPresenter, type VirtualEventPresenterCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { type VirtualEventPresenterItemRequestBuilder, VirtualEventPresenterItemRequestBuilderRequestsMetadata } 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 presenters property of the microsoft.graph.virtualEvent entity. + */ +export interface PresentersRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param virtualEventPresenterId The unique identifier of virtualEventPresenter + * @returns {VirtualEventPresenterItemRequestBuilder} + */ + byVirtualEventPresenterId(virtualEventPresenterId: string) : VirtualEventPresenterItemRequestBuilder; + /** + * Get presenters from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get presenters from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get presenters from solutions + */ +export interface PresentersRequestBuilderGetQueryParameters { + /** + * 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 PresentersRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const PresentersRequestBuilderGetQueryParametersMapper: Record = { + "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 PresentersRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byVirtualEventPresenterId: { + requestsMetadata: VirtualEventPresenterItemRequestBuilderRequestsMetadata, + pathParametersMappings: ["virtualEventPresenter%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const PresentersRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: PresentersRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventPresenterCollectionResponseFromDiscriminatorValue, + queryParametersMapper: PresentersRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: PresentersRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventPresenter, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/item/index.ts similarity index 57% rename from packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts rename to packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/item/index.ts index 60a6b37be80..394b49d2e5f 100644 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/presenters/item/index.ts @@ -2,61 +2,61 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createOnenoteFromDiscriminatorValue, serializeOnenote, type Onenote } from '@microsoft/msgraph-sdk/models/index.js'; +import { createVirtualEventPresenterFromDiscriminatorValue, serializeVirtualEventPresenter, type VirtualEventPresenter } 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 onenote property of the microsoft.graph.site entity. + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. */ -export interface OnenoteRequestBuilder extends BaseRequestBuilder { +export interface VirtualEventPresenterItemRequestBuilder extends BaseRequestBuilder { /** - * Delete navigation property onenote for groups + * Delete navigation property presenters for solutions * @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 | undefined) : Promise; /** - * Calls the OneNote service for notebook related operations. + * Get presenters from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the navigation property onenote in groups + * Update the navigation property presenters in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - patch(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : Promise; + patch(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Delete navigation property onenote for groups + * Delete navigation property presenters for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Calls the OneNote service for notebook related operations. + * Get presenters from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the navigation property onenote in groups + * Update the navigation property presenters in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toPatchRequestInformation(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toPatchRequestInformation(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Calls the OneNote service for notebook related operations. + * Get presenters from solutions */ -export interface OnenoteRequestBuilderGetQueryParameters { +export interface VirtualEventPresenterItemRequestBuilderGetQueryParameters { /** * Expand related entities */ @@ -69,20 +69,20 @@ export interface OnenoteRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const OnenoteRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}"; +export const VirtualEventPresenterItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ -const OnenoteRequestBuilderGetQueryParametersMapper: Record = { +const VirtualEventPresenterItemRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", "select": "%24select", }; /** * Metadata for all the requests in the request builder. */ -export const OnenoteRequestBuilderRequestsMetadata: RequestsMetadata = { +export const VirtualEventPresenterItemRequestBuilderRequestsMetadata: RequestsMetadata = { delete: { - uriTemplate: OnenoteRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, @@ -90,25 +90,25 @@ export const OnenoteRequestBuilderRequestsMetadata: RequestsMetadata = { adapterMethodName: "sendNoResponseContent", }, get: { - uriTemplate: OnenoteRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createOnenoteFromDiscriminatorValue, - queryParametersMapper: OnenoteRequestBuilderGetQueryParametersMapper, + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, + queryParametersMapper: VirtualEventPresenterItemRequestBuilderGetQueryParametersMapper, }, patch: { - uriTemplate: OnenoteRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createOnenoteFromDiscriminatorValue, + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, requestBodyContentType: "application/json", - requestBodySerializer: serializeOnenote, + requestBodySerializer: serializeVirtualEventPresenter, requestInformationContentSetMethod: "setContentFromParsable", }, }; diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/count/index.ts new file mode 100644 index 00000000000..77713496928 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/index.ts new file mode 100644 index 00000000000..3e27433c0af --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/index.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventSessionCollectionResponseFromDiscriminatorValue, createVirtualEventSessionFromDiscriminatorValue, serializeVirtualEventSession, type VirtualEventSession, type VirtualEventSessionCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { type VirtualEventSessionItemRequestBuilder, VirtualEventSessionItemRequestBuilderNavigationMetadata, VirtualEventSessionItemRequestBuilderRequestsMetadata } 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 sessions property of the microsoft.graph.virtualEvent entity. + */ +export interface SessionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. + * @param virtualEventSessionId The unique identifier of virtualEventSession + * @returns {VirtualEventSessionItemRequestBuilder} + */ + byVirtualEventSessionId(virtualEventSessionId: string) : VirtualEventSessionItemRequestBuilder; + /** + * Sessions for the virtual event. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to sessions for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: VirtualEventSession, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Sessions for the virtual event. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to sessions for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: VirtualEventSession, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Sessions for the virtual event. + */ +export interface SessionsRequestBuilderGetQueryParameters { + /** + * 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 SessionsRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const SessionsRequestBuilderGetQueryParametersMapper: Record = { + "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 SessionsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byVirtualEventSessionId: { + requestsMetadata: VirtualEventSessionItemRequestBuilderRequestsMetadata, + navigationMetadata: VirtualEventSessionItemRequestBuilderNavigationMetadata, + pathParametersMappings: ["virtualEventSession%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const SessionsRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: SessionsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventSessionCollectionResponseFromDiscriminatorValue, + queryParametersMapper: SessionsRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: SessionsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventSessionFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventSession, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/count/index.ts new file mode 100644 index 00000000000..6d47210c11a --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/index.ts new file mode 100644 index 00000000000..69bb893a2d2 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/index.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createMeetingAttendanceReportCollectionResponseFromDiscriminatorValue, createMeetingAttendanceReportFromDiscriminatorValue, serializeMeetingAttendanceReport, type MeetingAttendanceReport, type MeetingAttendanceReportCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { MeetingAttendanceReportItemRequestBuilderNavigationMetadata, MeetingAttendanceReportItemRequestBuilderRequestsMetadata, type MeetingAttendanceReportItemRequestBuilder } 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 attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + */ +export interface AttendanceReportsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + * @param meetingAttendanceReportId The unique identifier of meetingAttendanceReport + * @returns {MeetingAttendanceReportItemRequestBuilder} + */ + byMeetingAttendanceReportId(meetingAttendanceReportId: string) : MeetingAttendanceReportItemRequestBuilder; + /** + * The attendance reports of an online meeting. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to attendanceReports for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: MeetingAttendanceReport, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * The attendance reports of an online meeting. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to attendanceReports for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: MeetingAttendanceReport, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * The attendance reports of an online meeting. Read-only. + */ +export interface AttendanceReportsRequestBuilderGetQueryParameters { + /** + * 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 AttendanceReportsRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const AttendanceReportsRequestBuilderGetQueryParametersMapper: Record = { + "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 AttendanceReportsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byMeetingAttendanceReportId: { + requestsMetadata: MeetingAttendanceReportItemRequestBuilderRequestsMetadata, + navigationMetadata: MeetingAttendanceReportItemRequestBuilderNavigationMetadata, + pathParametersMappings: ["meetingAttendanceReport%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const AttendanceReportsRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: AttendanceReportsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createMeetingAttendanceReportCollectionResponseFromDiscriminatorValue, + queryParametersMapper: AttendanceReportsRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: AttendanceReportsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createMeetingAttendanceReportFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeMeetingAttendanceReport, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts new file mode 100644 index 00000000000..14932763e77 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts new file mode 100644 index 00000000000..5fa75bb708f --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/index.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createAttendanceRecordCollectionResponseFromDiscriminatorValue, createAttendanceRecordFromDiscriminatorValue, serializeAttendanceRecord, type AttendanceRecord, type AttendanceRecordCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { AttendanceRecordItemRequestBuilderRequestsMetadata, type AttendanceRecordItemRequestBuilder } 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 attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + */ +export interface AttendanceRecordsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + * @param attendanceRecordId The unique identifier of attendanceRecord + * @returns {AttendanceRecordItemRequestBuilder} + */ + byAttendanceRecordId(attendanceRecordId: string) : AttendanceRecordItemRequestBuilder; + /** + * List of attendance records of an attendance report. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to attendanceRecords for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: AttendanceRecord, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * List of attendance records of an attendance report. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to attendanceRecords for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: AttendanceRecord, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * List of attendance records of an attendance report. Read-only. + */ +export interface AttendanceRecordsRequestBuilderGetQueryParameters { + /** + * 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 AttendanceRecordsRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const AttendanceRecordsRequestBuilderGetQueryParametersMapper: Record = { + "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 AttendanceRecordsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byAttendanceRecordId: { + requestsMetadata: AttendanceRecordItemRequestBuilderRequestsMetadata, + pathParametersMappings: ["attendanceRecord%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const AttendanceRecordsRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: AttendanceRecordsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createAttendanceRecordCollectionResponseFromDiscriminatorValue, + queryParametersMapper: AttendanceRecordsRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: AttendanceRecordsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createAttendanceRecordFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeAttendanceRecord, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts similarity index 56% rename from packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts rename to packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts index 17e044cda1d..96576c33556 100644 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/attendanceRecords/item/index.ts @@ -2,61 +2,61 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createOnenoteFromDiscriminatorValue, serializeOnenote, type Onenote } from '@microsoft/msgraph-sdk/models/index.js'; +import { createAttendanceRecordFromDiscriminatorValue, serializeAttendanceRecord, type AttendanceRecord } 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 onenote property of the microsoft.graph.site entity. + * Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. */ -export interface OnenoteRequestBuilder extends BaseRequestBuilder { +export interface AttendanceRecordItemRequestBuilder extends BaseRequestBuilder { /** - * Delete navigation property onenote for sites + * Delete navigation property attendanceRecords for solutions * @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 | undefined) : Promise; /** - * Calls the OneNote service for notebook related operations. + * List of attendance records of an attendance report. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the navigation property onenote in sites + * Update the navigation property attendanceRecords in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - patch(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : Promise; + patch(body: AttendanceRecord, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Delete navigation property onenote for sites + * Delete navigation property attendanceRecords for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Calls the OneNote service for notebook related operations. + * List of attendance records of an attendance report. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the navigation property onenote in sites + * Update the navigation property attendanceRecords in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toPatchRequestInformation(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toPatchRequestInformation(body: AttendanceRecord, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Calls the OneNote service for notebook related operations. + * List of attendance records of an attendance report. Read-only. */ -export interface OnenoteRequestBuilderGetQueryParameters { +export interface AttendanceRecordItemRequestBuilderGetQueryParameters { /** * Expand related entities */ @@ -69,20 +69,20 @@ export interface OnenoteRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const OnenoteRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}"; +export const AttendanceRecordItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24expand,%24select}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ -const OnenoteRequestBuilderGetQueryParametersMapper: Record = { +const AttendanceRecordItemRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", "select": "%24select", }; /** * Metadata for all the requests in the request builder. */ -export const OnenoteRequestBuilderRequestsMetadata: RequestsMetadata = { +export const AttendanceRecordItemRequestBuilderRequestsMetadata: RequestsMetadata = { delete: { - uriTemplate: OnenoteRequestBuilderUriTemplate, + uriTemplate: AttendanceRecordItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, @@ -90,25 +90,25 @@ export const OnenoteRequestBuilderRequestsMetadata: RequestsMetadata = { adapterMethodName: "sendNoResponseContent", }, get: { - uriTemplate: OnenoteRequestBuilderUriTemplate, + uriTemplate: AttendanceRecordItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createOnenoteFromDiscriminatorValue, - queryParametersMapper: OnenoteRequestBuilderGetQueryParametersMapper, + responseBodyFactory: createAttendanceRecordFromDiscriminatorValue, + queryParametersMapper: AttendanceRecordItemRequestBuilderGetQueryParametersMapper, }, patch: { - uriTemplate: OnenoteRequestBuilderUriTemplate, + uriTemplate: AttendanceRecordItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createOnenoteFromDiscriminatorValue, + responseBodyFactory: createAttendanceRecordFromDiscriminatorValue, requestBodyContentType: "application/json", - requestBodySerializer: serializeOnenote, + requestBodySerializer: serializeAttendanceRecord, requestInformationContentSetMethod: "setContentFromParsable", }, }; diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/index.ts new file mode 100644 index 00000000000..dc7c39c07d1 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/attendanceReports/item/index.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createMeetingAttendanceReportFromDiscriminatorValue, serializeMeetingAttendanceReport, type MeetingAttendanceReport } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { AttendanceRecordsRequestBuilderNavigationMetadata, AttendanceRecordsRequestBuilderRequestsMetadata, type AttendanceRecordsRequestBuilder } from './attendanceRecords/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 attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + */ +export interface MeetingAttendanceReportItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. + */ + get attendanceRecords(): AttendanceRecordsRequestBuilder; + /** + * Delete navigation property attendanceReports for solutions + * @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 | undefined) : Promise; + /** + * The attendance reports of an online meeting. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property attendanceReports in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: MeetingAttendanceReport, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property attendanceReports for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * The attendance reports of an online meeting. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property attendanceReports in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: MeetingAttendanceReport, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * The attendance reports of an online meeting. Read-only. + */ +export interface MeetingAttendanceReportItemRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const MeetingAttendanceReportItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const MeetingAttendanceReportItemRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const MeetingAttendanceReportItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + attendanceRecords: { + requestsMetadata: AttendanceRecordsRequestBuilderRequestsMetadata, + navigationMetadata: AttendanceRecordsRequestBuilderNavigationMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const MeetingAttendanceReportItemRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: MeetingAttendanceReportItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: MeetingAttendanceReportItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createMeetingAttendanceReportFromDiscriminatorValue, + queryParametersMapper: MeetingAttendanceReportItemRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: MeetingAttendanceReportItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createMeetingAttendanceReportFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeMeetingAttendanceReport, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/index.ts new file mode 100644 index 00000000000..1a478851971 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/townhalls/item/sessions/item/index.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventSessionFromDiscriminatorValue, serializeVirtualEventSession, type VirtualEventSession } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { AttendanceReportsRequestBuilderNavigationMetadata, AttendanceReportsRequestBuilderRequestsMetadata, type AttendanceReportsRequestBuilder } from './attendanceReports/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 sessions property of the microsoft.graph.virtualEvent entity. + */ +export interface VirtualEventSessionItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. + */ + get attendanceReports(): AttendanceReportsRequestBuilder; + /** + * Delete navigation property sessions for solutions + * @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 | undefined) : Promise; + /** + * Sessions for the virtual event. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property sessions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: VirtualEventSession, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property sessions for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Sessions for the virtual event. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property sessions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: VirtualEventSession, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Sessions for the virtual event. + */ +export interface VirtualEventSessionItemRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const VirtualEventSessionItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const VirtualEventSessionItemRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const VirtualEventSessionItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + attendanceReports: { + requestsMetadata: AttendanceReportsRequestBuilderRequestsMetadata, + navigationMetadata: AttendanceReportsRequestBuilderNavigationMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const VirtualEventSessionItemRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: VirtualEventSessionItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: VirtualEventSessionItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventSessionFromDiscriminatorValue, + queryParametersMapper: VirtualEventSessionItemRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: VirtualEventSessionItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventSessionFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventSession, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/index.ts index 14cccfefcb6..3eafbf0beb5 100644 --- a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/index.ts @@ -6,8 +6,16 @@ import { createVirtualEventWebinarFromDiscriminatorValue, serializeVirtualEventW // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { PresentersRequestBuilderNavigationMetadata, PresentersRequestBuilderRequestsMetadata, type PresentersRequestBuilder } from './presenters/index.js'; +// @ts-ignore +import { RegistrationConfigurationRequestBuilderNavigationMetadata, RegistrationConfigurationRequestBuilderRequestsMetadata, type RegistrationConfigurationRequestBuilder } from './registrationConfiguration/index.js'; +// @ts-ignore import { RegistrationsRequestBuilderNavigationMetadata, RegistrationsRequestBuilderRequestsMetadata, type RegistrationsRequestBuilder } from './registrations/index.js'; // @ts-ignore +import { RegistrationsWithEmailRequestBuilderNavigationMetadata, RegistrationsWithEmailRequestBuilderRequestsMetadata, type RegistrationsWithEmailRequestBuilder } from './registrationsWithEmail/index.js'; +// @ts-ignore +import { RegistrationsWithUserIdRequestBuilderNavigationMetadata, RegistrationsWithUserIdRequestBuilderRequestsMetadata, type RegistrationsWithUserIdRequestBuilder } from './registrationsWithUserId/index.js'; +// @ts-ignore import { SessionsRequestBuilderNavigationMetadata, SessionsRequestBuilderRequestsMetadata, type SessionsRequestBuilder } from './sessions/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'; @@ -16,6 +24,14 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type * Provides operations to manage the webinars property of the microsoft.graph.virtualEventsRoot entity. */ export interface VirtualEventWebinarItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + */ + get presenters(): PresentersRequestBuilder; + /** + * Provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. + */ + get registrationConfiguration(): RegistrationConfigurationRequestBuilder; /** * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. */ @@ -46,6 +62,18 @@ export interface VirtualEventWebinarItemRequestBuilder extends BaseRequestBuilde * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: VirtualEventWebinar, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + * @param email Alternate key of virtualEventRegistration + * @returns {RegistrationsWithEmailRequestBuilder} + */ + registrationsWithEmail(email: string | undefined) : RegistrationsWithEmailRequestBuilder; + /** + * Provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. + * @param userId Alternate key of virtualEventRegistration + * @returns {RegistrationsWithUserIdRequestBuilder} + */ + registrationsWithUserId(userId: string | undefined) : RegistrationsWithUserIdRequestBuilder; /** * Delete navigation property webinars for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. @@ -94,6 +122,22 @@ const VirtualEventWebinarItemRequestBuilderGetQueryParametersMapper: Record, NavigationMetadata> = { + registrationsWithEmail: { + requestsMetadata: RegistrationsWithEmailRequestBuilderRequestsMetadata, + navigationMetadata: RegistrationsWithEmailRequestBuilderNavigationMetadata, + }, + registrationsWithUserId: { + requestsMetadata: RegistrationsWithUserIdRequestBuilderRequestsMetadata, + navigationMetadata: RegistrationsWithUserIdRequestBuilderNavigationMetadata, + }, + presenters: { + requestsMetadata: PresentersRequestBuilderRequestsMetadata, + navigationMetadata: PresentersRequestBuilderNavigationMetadata, + }, + registrationConfiguration: { + requestsMetadata: RegistrationConfigurationRequestBuilderRequestsMetadata, + navigationMetadata: RegistrationConfigurationRequestBuilderNavigationMetadata, + }, registrations: { requestsMetadata: RegistrationsRequestBuilderRequestsMetadata, navigationMetadata: RegistrationsRequestBuilderNavigationMetadata, diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/count/index.ts new file mode 100644 index 00000000000..c05490db05c --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/index.ts new file mode 100644 index 00000000000..3b612e59118 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/index.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventPresenterCollectionResponseFromDiscriminatorValue, createVirtualEventPresenterFromDiscriminatorValue, serializeVirtualEventPresenter, type VirtualEventPresenter, type VirtualEventPresenterCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { type VirtualEventPresenterItemRequestBuilder, VirtualEventPresenterItemRequestBuilderRequestsMetadata } 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 presenters property of the microsoft.graph.virtualEvent entity. + */ +export interface PresentersRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. + * @param virtualEventPresenterId The unique identifier of virtualEventPresenter + * @returns {VirtualEventPresenterItemRequestBuilder} + */ + byVirtualEventPresenterId(virtualEventPresenterId: string) : VirtualEventPresenterItemRequestBuilder; + /** + * Get presenters from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get presenters from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to presenters for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get presenters from solutions + */ +export interface PresentersRequestBuilderGetQueryParameters { + /** + * 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 PresentersRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const PresentersRequestBuilderGetQueryParametersMapper: Record = { + "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 PresentersRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byVirtualEventPresenterId: { + requestsMetadata: VirtualEventPresenterItemRequestBuilderRequestsMetadata, + pathParametersMappings: ["virtualEventPresenter%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const PresentersRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: PresentersRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventPresenterCollectionResponseFromDiscriminatorValue, + queryParametersMapper: PresentersRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: PresentersRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventPresenter, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/item/index.ts similarity index 57% rename from packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts rename to packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/item/index.ts index 3d18f9aab47..4944ebd5aaf 100644 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/presenters/item/index.ts @@ -2,61 +2,61 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createItemAnalyticsFromDiscriminatorValue, serializeItemAnalytics, type ItemAnalytics } from '@microsoft/msgraph-sdk/models/index.js'; +import { createVirtualEventPresenterFromDiscriminatorValue, serializeVirtualEventPresenter, type VirtualEventPresenter } 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 analytics property of the microsoft.graph.site entity. + * Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. */ -export interface AnalyticsRequestBuilder extends BaseRequestBuilder { +export interface VirtualEventPresenterItemRequestBuilder extends BaseRequestBuilder { /** - * Delete navigation property analytics for groups + * Delete navigation property presenters for solutions * @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 | undefined) : Promise; /** - * Analytics about the view activities that took place on this site. + * Get presenters from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the navigation property analytics in groups + * Update the navigation property presenters in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - patch(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : Promise; + patch(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Delete navigation property analytics for groups + * Delete navigation property presenters for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Analytics about the view activities that took place on this site. + * Get presenters from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the navigation property analytics in groups + * Update the navigation property presenters in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toPatchRequestInformation(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toPatchRequestInformation(body: VirtualEventPresenter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Analytics about the view activities that took place on this site. + * Get presenters from solutions */ -export interface AnalyticsRequestBuilderGetQueryParameters { +export interface VirtualEventPresenterItemRequestBuilderGetQueryParameters { /** * Expand related entities */ @@ -69,20 +69,20 @@ export interface AnalyticsRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const AnalyticsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}"; +export const VirtualEventPresenterItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ -const AnalyticsRequestBuilderGetQueryParametersMapper: Record = { +const VirtualEventPresenterItemRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", "select": "%24select", }; /** * Metadata for all the requests in the request builder. */ -export const AnalyticsRequestBuilderRequestsMetadata: RequestsMetadata = { +export const VirtualEventPresenterItemRequestBuilderRequestsMetadata: RequestsMetadata = { delete: { - uriTemplate: AnalyticsRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, @@ -90,25 +90,25 @@ export const AnalyticsRequestBuilderRequestsMetadata: RequestsMetadata = { adapterMethodName: "sendNoResponseContent", }, get: { - uriTemplate: AnalyticsRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createItemAnalyticsFromDiscriminatorValue, - queryParametersMapper: AnalyticsRequestBuilderGetQueryParametersMapper, + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, + queryParametersMapper: VirtualEventPresenterItemRequestBuilderGetQueryParametersMapper, }, patch: { - uriTemplate: AnalyticsRequestBuilderUriTemplate, + uriTemplate: VirtualEventPresenterItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createItemAnalyticsFromDiscriminatorValue, + responseBodyFactory: createVirtualEventPresenterFromDiscriminatorValue, requestBodyContentType: "application/json", - requestBodySerializer: serializeItemAnalytics, + requestBodySerializer: serializeVirtualEventPresenter, requestInformationContentSetMethod: "setContentFromParsable", }, }; diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/index.ts new file mode 100644 index 00000000000..a82a6d71f41 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/index.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue, serializeVirtualEventWebinarRegistrationConfiguration, type VirtualEventWebinarRegistrationConfiguration } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { QuestionsRequestBuilderNavigationMetadata, QuestionsRequestBuilderRequestsMetadata, type QuestionsRequestBuilder } from './questions/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 registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. + */ +export interface RegistrationConfigurationRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + */ + get questions(): QuestionsRequestBuilder; + /** + * Delete navigation property registrationConfiguration for solutions + * @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 | undefined) : Promise; + /** + * Get registrationConfiguration from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: VirtualEventWebinarRegistrationConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property registrationConfiguration for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Get registrationConfiguration from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: VirtualEventWebinarRegistrationConfiguration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get registrationConfiguration from solutions + */ +export interface RegistrationConfigurationRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const RegistrationConfigurationRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration{?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const RegistrationConfigurationRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const RegistrationConfigurationRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + questions: { + requestsMetadata: QuestionsRequestBuilderRequestsMetadata, + navigationMetadata: QuestionsRequestBuilderNavigationMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const RegistrationConfigurationRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: RegistrationConfigurationRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: RegistrationConfigurationRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue, + queryParametersMapper: RegistrationConfigurationRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: RegistrationConfigurationRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventWebinarRegistrationConfiguration, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/count/index.ts new file mode 100644 index 00000000000..4551d8bf93b --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/index.ts new file mode 100644 index 00000000000..9b17819fe31 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/index.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventRegistrationQuestionBaseCollectionResponseFromDiscriminatorValue, createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, serializeVirtualEventRegistrationQuestionBase, type VirtualEventRegistrationQuestionBase, type VirtualEventRegistrationQuestionBaseCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { type VirtualEventRegistrationQuestionBaseItemRequestBuilder, VirtualEventRegistrationQuestionBaseItemRequestBuilderRequestsMetadata } 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 questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + */ +export interface QuestionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + * @param virtualEventRegistrationQuestionBaseId The unique identifier of virtualEventRegistrationQuestionBase + * @returns {VirtualEventRegistrationQuestionBaseItemRequestBuilder} + */ + byVirtualEventRegistrationQuestionBaseId(virtualEventRegistrationQuestionBaseId: string) : VirtualEventRegistrationQuestionBaseItemRequestBuilder; + /** + * Get questions from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to questions for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: VirtualEventRegistrationQuestionBase, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get questions from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to questions for solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: VirtualEventRegistrationQuestionBase, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get questions from solutions + */ +export interface QuestionsRequestBuilderGetQueryParameters { + /** + * 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 QuestionsRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const QuestionsRequestBuilderGetQueryParametersMapper: Record = { + "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 QuestionsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byVirtualEventRegistrationQuestionBaseId: { + requestsMetadata: VirtualEventRegistrationQuestionBaseItemRequestBuilderRequestsMetadata, + pathParametersMappings: ["virtualEventRegistrationQuestionBase%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const QuestionsRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: QuestionsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationQuestionBaseCollectionResponseFromDiscriminatorValue, + queryParametersMapper: QuestionsRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: QuestionsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventRegistrationQuestionBase, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/item/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/item/index.ts new file mode 100644 index 00000000000..db5d2115ed4 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationConfiguration/questions/item/index.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, serializeVirtualEventRegistrationQuestionBase, type VirtualEventRegistrationQuestionBase } 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 questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + */ +export interface VirtualEventRegistrationQuestionBaseItemRequestBuilder extends BaseRequestBuilder { + /** + * Delete navigation property questions for solutions + * @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 | undefined) : Promise; + /** + * Get questions from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property questions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: VirtualEventRegistrationQuestionBase, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property questions for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Get questions from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property questions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: VirtualEventRegistrationQuestionBase, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get questions from solutions + */ +export interface VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const VirtualEventRegistrationQuestionBaseItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const VirtualEventRegistrationQuestionBaseItemRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: VirtualEventRegistrationQuestionBaseItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: VirtualEventRegistrationQuestionBaseItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, + queryParametersMapper: VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: VirtualEventRegistrationQuestionBaseItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventRegistrationQuestionBase, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/index.ts index 8b3c7558fbe..435eb0a7d97 100644 --- a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/index.ts @@ -8,7 +8,7 @@ import { createODataErrorFromDiscriminatorValue, type ODataError } from '@micros // @ts-ignore import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; // @ts-ignore -import { type VirtualEventRegistrationItemRequestBuilder, VirtualEventRegistrationItemRequestBuilderRequestsMetadata } from './item/index.js'; +import { type VirtualEventRegistrationItemRequestBuilder, VirtualEventRegistrationItemRequestBuilderNavigationMetadata, VirtualEventRegistrationItemRequestBuilderRequestsMetadata } 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'; @@ -116,6 +116,7 @@ const RegistrationsRequestBuilderGetQueryParametersMapper: Record, NavigationMetadata> = { byVirtualEventRegistrationId: { requestsMetadata: VirtualEventRegistrationItemRequestBuilderRequestsMetadata, + navigationMetadata: VirtualEventRegistrationItemRequestBuilderNavigationMetadata, pathParametersMappings: ["virtualEventRegistration%2Did"], }, count: { diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/cancel/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/cancel/index.ts new file mode 100644 index 00000000000..93a1453688f --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/cancel/index.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 call the cancel method. + */ +export interface CancelRequestBuilder extends BaseRequestBuilder { + /** + * Invoke action cancel + * @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 + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke action cancel + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const CancelRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/cancel"; +/** + * Metadata for all the requests in the request builder. + */ +export const CancelRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: CancelRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/index.ts index 64cc0b0def5..94ab6bdc95c 100644 --- a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/index.ts @@ -6,12 +6,24 @@ import { createVirtualEventRegistrationFromDiscriminatorValue, serializeVirtualE // @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'; +import { CancelRequestBuilderRequestsMetadata, type CancelRequestBuilder } from './cancel/index.js'; +// @ts-ignore +import { SessionsRequestBuilderNavigationMetadata, SessionsRequestBuilderRequestsMetadata, type SessionsRequestBuilder } from './sessions/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 registrations property of the microsoft.graph.virtualEventWebinar entity. */ export interface VirtualEventRegistrationItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + */ + get cancel(): CancelRequestBuilder; + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + */ + get sessions(): SessionsRequestBuilder; /** * Delete navigation property registrations for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. @@ -78,6 +90,18 @@ const VirtualEventRegistrationItemRequestBuilderGetQueryParametersMapper: Record "expand": "%24expand", "select": "%24select", }; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const VirtualEventRegistrationItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + cancel: { + requestsMetadata: CancelRequestBuilderRequestsMetadata, + }, + sessions: { + requestsMetadata: SessionsRequestBuilderRequestsMetadata, + navigationMetadata: SessionsRequestBuilderNavigationMetadata, + }, +}; /** * Metadata for all the requests in the request builder. */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/count/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/count/index.ts new file mode 100644 index 00000000000..e8e9ff574c8 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/index.ts new file mode 100644 index 00000000000..a8efcef7600 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/index.ts @@ -0,0 +1,125 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventSessionCollectionResponseFromDiscriminatorValue, type VirtualEventSessionCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { type VirtualEventSessionItemRequestBuilder, VirtualEventSessionItemRequestBuilderRequestsMetadata } 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 sessions property of the microsoft.graph.virtualEventRegistration entity. + */ +export interface SessionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. + * @param virtualEventSessionId The unique identifier of virtualEventSession + * @returns {VirtualEventSessionItemRequestBuilder} + */ + byVirtualEventSessionId(virtualEventSessionId: string) : VirtualEventSessionItemRequestBuilder; + /** + * Get sessions from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get sessions from solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get sessions from solutions + */ +export interface SessionsRequestBuilderGetQueryParameters { + /** + * 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 SessionsRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const SessionsRequestBuilderGetQueryParametersMapper: Record = { + "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 SessionsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byVirtualEventSessionId: { + requestsMetadata: VirtualEventSessionItemRequestBuilderRequestsMetadata, + pathParametersMappings: ["virtualEventSession%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const SessionsRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: SessionsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventSessionCollectionResponseFromDiscriminatorValue, + queryParametersMapper: SessionsRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/item/index.ts similarity index 51% rename from packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts rename to packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/item/index.ts index 814a5f8e26a..53912d4b543 100644 --- a/packages/msgraph-sdk-groups/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrations/item/sessions/item/index.ts @@ -2,34 +2,34 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createDriveFromDiscriminatorValue, type Drive } from '@microsoft/msgraph-sdk/models/index.js'; +import { createVirtualEventSessionFromDiscriminatorValue, type VirtualEventSession } 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 drive property of the microsoft.graph.site entity. + * Provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. */ -export interface DriveRequestBuilder extends BaseRequestBuilder { +export interface VirtualEventSessionItemRequestBuilder extends BaseRequestBuilder { /** - * The default drive (document library) for this site. + * Get sessions from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * The default drive (document library) for this site. + * Get sessions from solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * The default drive (document library) for this site. + * Get sessions from solutions */ -export interface DriveRequestBuilderGetQueryParameters { +export interface VirtualEventSessionItemRequestBuilderGetQueryParameters { /** * Expand related entities */ @@ -42,27 +42,27 @@ export interface DriveRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const DriveRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}"; +export const VirtualEventSessionItemRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ -const DriveRequestBuilderGetQueryParametersMapper: Record = { +const VirtualEventSessionItemRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", "select": "%24select", }; /** * Metadata for all the requests in the request builder. */ -export const DriveRequestBuilderRequestsMetadata: RequestsMetadata = { +export const VirtualEventSessionItemRequestBuilderRequestsMetadata: RequestsMetadata = { get: { - uriTemplate: DriveRequestBuilderUriTemplate, + uriTemplate: VirtualEventSessionItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createDriveFromDiscriminatorValue, - queryParametersMapper: DriveRequestBuilderGetQueryParametersMapper, + responseBodyFactory: createVirtualEventSessionFromDiscriminatorValue, + queryParametersMapper: VirtualEventSessionItemRequestBuilderGetQueryParametersMapper, }, }; /* tslint:enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithEmail/cancel/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithEmail/cancel/index.ts new file mode 100644 index 00000000000..ca99534df6d --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithEmail/cancel/index.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 call the cancel method. + */ +export interface CancelRequestBuilder extends BaseRequestBuilder { + /** + * Invoke action cancel + * @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 + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke action cancel + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const CancelRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}')/cancel"; +/** + * Metadata for all the requests in the request builder. + */ +export const CancelRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: CancelRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithEmail/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithEmail/index.ts new file mode 100644 index 00000000000..4bad588cfc5 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithEmail/index.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventRegistrationFromDiscriminatorValue, serializeVirtualEventRegistration, type VirtualEventRegistration } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CancelRequestBuilderRequestsMetadata, type CancelRequestBuilder } from './cancel/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 registrations property of the microsoft.graph.virtualEventWebinar entity. + */ +export interface RegistrationsWithEmailRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + */ + get cancel(): CancelRequestBuilder; + /** + * Delete navigation property registrations for solutions + * @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 | undefined) : Promise; + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + * @see {@link https://learn.microsoft.com/graph/api/virtualeventregistration-get?view=graph-rest-1.0|Find more info here} + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: VirtualEventRegistration, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property registrations for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: VirtualEventRegistration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the properties and relationships of a virtualEventRegistration object. + */ +export interface RegistrationsWithEmailRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const RegistrationsWithEmailRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}'){?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const RegistrationsWithEmailRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const RegistrationsWithEmailRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + cancel: { + requestsMetadata: CancelRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const RegistrationsWithEmailRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: RegistrationsWithEmailRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: RegistrationsWithEmailRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationFromDiscriminatorValue, + queryParametersMapper: RegistrationsWithEmailRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: RegistrationsWithEmailRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventRegistration, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithUserId/cancel/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithUserId/cancel/index.ts new file mode 100644 index 00000000000..8ccf162a7f2 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithUserId/cancel/index.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 call the cancel method. + */ +export interface CancelRequestBuilder extends BaseRequestBuilder { + /** + * Invoke action cancel + * @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 + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke action cancel + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const CancelRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}')/cancel"; +/** + * Metadata for all the requests in the request builder. + */ +export const CancelRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: CancelRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithUserId/index.ts b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithUserId/index.ts new file mode 100644 index 00000000000..2661afcd498 --- /dev/null +++ b/packages/msgraph-sdk-solutions/solutions/virtualEvents/webinars/item/registrationsWithUserId/index.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createVirtualEventRegistrationFromDiscriminatorValue, serializeVirtualEventRegistration, type VirtualEventRegistration } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CancelRequestBuilderRequestsMetadata, type CancelRequestBuilder } from './cancel/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 registrations property of the microsoft.graph.virtualEventWebinar entity. + */ +export interface RegistrationsWithUserIdRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the cancel method. + */ + get cancel(): CancelRequestBuilder; + /** + * Delete navigation property registrations for solutions + * @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 | undefined) : Promise; + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + * @see {@link https://learn.microsoft.com/graph/api/virtualeventregistration-get?view=graph-rest-1.0|Find more info here} + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: VirtualEventRegistration, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property registrations for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Get the properties and relationships of a virtualEventRegistration object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property registrations in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: VirtualEventRegistration, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the properties and relationships of a virtualEventRegistration object. + */ +export interface RegistrationsWithUserIdRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const RegistrationsWithUserIdRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}'){?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const RegistrationsWithUserIdRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const RegistrationsWithUserIdRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + cancel: { + requestsMetadata: CancelRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const RegistrationsWithUserIdRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: RegistrationsWithUserIdRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: RegistrationsWithUserIdRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationFromDiscriminatorValue, + queryParametersMapper: RegistrationsWithUserIdRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: RegistrationsWithUserIdRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createVirtualEventRegistrationFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeVirtualEventRegistration, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teams/teams/item/channels/getAllRetainedMessages/index.ts b/packages/msgraph-sdk-teams/teams/item/channels/getAllRetainedMessages/index.ts new file mode 100644 index 00000000000..e11ac0c5491 --- /dev/null +++ b/packages/msgraph-sdk-teams/teams/item/channels/getAllRetainedMessages/index.ts @@ -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 void>) { + return deserializeIntoGetAllRetainedMessagesGetResponse; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse), + "value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues(createChatMessageFromDiscriminatorValue); }, + } +} +export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ChatMessage[]; +} +/** + * Provides operations to call the getAllRetainedMessages method. + */ +export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | 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 | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse) + writer.writeCollectionOfObjectValues("value", getAllRetainedMessagesGetResponse.value, serializeChatMessage); +} +/** + * Uri template for the request builder. + */ +export const GetAllRetainedMessagesRequestBuilderUriTemplate = "{+baseurl}/teams/{team%2Did}/channels/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 = { + "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, + }, + adapterMethodName: "send", + responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue, + queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teams/teams/item/channels/index.ts b/packages/msgraph-sdk-teams/teams/item/channels/index.ts index 0f0bc3e18ca..247d99c6616 100644 --- a/packages/msgraph-sdk-teams/teams/item/channels/index.ts +++ b/packages/msgraph-sdk-teams/teams/item/channels/index.ts @@ -10,6 +10,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '. // @ts-ignore import { GetAllMessagesRequestBuilderRequestsMetadata, type GetAllMessagesRequestBuilder } from './getAllMessages/index.js'; // @ts-ignore +import { GetAllRetainedMessagesRequestBuilderRequestsMetadata, type GetAllRetainedMessagesRequestBuilder } from './getAllRetainedMessages/index.js'; +// @ts-ignore import { ChannelItemRequestBuilderNavigationMetadata, ChannelItemRequestBuilderRequestsMetadata, type ChannelItemRequestBuilder } 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'; @@ -26,6 +28,10 @@ export interface ChannelsRequestBuilder extends BaseRequestBuilder; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The shouldSetSpoSiteReadOnlyForMembers property + */ + shouldSetSpoSiteReadOnlyForMembers?: boolean; +} +/** + * Provides operations to call the archive method. + */ +export interface ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @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/channel-archive?view=graph-rest-1.0|Find more info here} + */ + post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * 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 {ArchivePostRequestBody} + */ +export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArchivePostRequestBody; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; }, + "shouldSetSpoSiteReadOnlyForMembers": n => { archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers = n.getBooleanValue(); }, + } +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: Partial | undefined = {}) : void { + writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); + writer.writeAdditionalData(archivePostRequestBody.additionalData); +} +/** + * Uri template for the request builder. + */ +export const ArchiveRequestBuilderUriTemplate = "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/archive"; +/** + * Metadata for all the requests in the request builder. + */ +export const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ArchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + requestBodyContentType: "application/json", + requestBodySerializer: serializeArchivePostRequestBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teams/teams/item/channels/item/index.ts b/packages/msgraph-sdk-teams/teams/item/channels/item/index.ts index 85f83b88da8..3dd0a1b71aa 100644 --- a/packages/msgraph-sdk-teams/teams/item/channels/item/index.ts +++ b/packages/msgraph-sdk-teams/teams/item/channels/item/index.ts @@ -6,6 +6,8 @@ import { createChannelFromDiscriminatorValue, serializeChannel, type Channel } f // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ArchiveRequestBuilderRequestsMetadata, type ArchiveRequestBuilder } from './archive/index.js'; +// @ts-ignore import { CompleteMigrationRequestBuilderRequestsMetadata, type CompleteMigrationRequestBuilder } from './completeMigration/index.js'; // @ts-ignore import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderRequestsMetadata, type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.js'; @@ -24,12 +26,18 @@ import { SharedWithTeamsRequestBuilderNavigationMetadata, SharedWithTeamsRequest // @ts-ignore import { TabsRequestBuilderNavigationMetadata, TabsRequestBuilderRequestsMetadata, type TabsRequestBuilder } from './tabs/index.js'; // @ts-ignore +import { type UnarchiveRequestBuilder, UnarchiveRequestBuilderRequestsMetadata } from './unarchive/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 channels property of the microsoft.graph.team entity. */ export interface ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + get archive(): ArchiveRequestBuilder; /** * Provides operations to call the completeMigration method. */ @@ -66,6 +74,10 @@ export interface ChannelItemRequestBuilder extends BaseRequestBuilder * Metadata for all the navigation properties in the request builder. */ export const ChannelItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + archive: { + requestsMetadata: ArchiveRequestBuilderRequestsMetadata, + }, completeMigration: { requestsMetadata: CompleteMigrationRequestBuilderRequestsMetadata, }, @@ -170,6 +185,9 @@ export const ChannelItemRequestBuilderNavigationMetadata: Record { /** - * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Delete a conversationMember from a channel. * @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/channel-delete-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} */ delete(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -37,7 +37,7 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder */ patch(body: ConversationMember, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Delete a conversationMember from a channel. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ diff --git a/packages/msgraph-sdk-teams/teams/item/channels/item/messages/index.ts b/packages/msgraph-sdk-teams/teams/item/channels/item/messages/index.ts index 2b43194a497..d9e4673ce0e 100644 --- a/packages/msgraph-sdk-teams/teams/item/channels/item/messages/index.ts +++ b/packages/msgraph-sdk-teams/teams/item/channels/item/messages/index.ts @@ -41,12 +41,12 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -56,7 +56,7 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-teams/teams/item/channels/item/unarchive/index.ts b/packages/msgraph-sdk-teams/teams/item/channels/item/unarchive/index.ts new file mode 100644 index 00000000000..a1079d3bc15 --- /dev/null +++ b/packages/msgraph-sdk-teams/teams/item/channels/item/unarchive/index.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 call the unarchive method. + */ +export interface UnarchiveRequestBuilder extends BaseRequestBuilder { + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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/channel-unarchive?view=graph-rest-1.0|Find more info here} + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/unarchive"; +/** + * Metadata for all the requests in the request builder. + */ +export const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: UnarchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teams/teams/item/primaryChannel/archive/index.ts b/packages/msgraph-sdk-teams/teams/item/primaryChannel/archive/index.ts new file mode 100644 index 00000000000..3b70082c46c --- /dev/null +++ b/packages/msgraph-sdk-teams/teams/item/primaryChannel/archive/index.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export interface ArchivePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The shouldSetSpoSiteReadOnlyForMembers property + */ + shouldSetSpoSiteReadOnlyForMembers?: boolean; +} +/** + * Provides operations to call the archive method. + */ +export interface ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @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/channel-archive?view=graph-rest-1.0|Find more info here} + */ + post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * 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 {ArchivePostRequestBody} + */ +export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArchivePostRequestBody; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; }, + "shouldSetSpoSiteReadOnlyForMembers": n => { archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers = n.getBooleanValue(); }, + } +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: Partial | undefined = {}) : void { + writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); + writer.writeAdditionalData(archivePostRequestBody.additionalData); +} +/** + * Uri template for the request builder. + */ +export const ArchiveRequestBuilderUriTemplate = "{+baseurl}/teams/{team%2Did}/primaryChannel/archive"; +/** + * Metadata for all the requests in the request builder. + */ +export const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ArchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + requestBodyContentType: "application/json", + requestBodySerializer: serializeArchivePostRequestBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teams/teams/item/primaryChannel/index.ts b/packages/msgraph-sdk-teams/teams/item/primaryChannel/index.ts index 1eab660e5b8..b4a06b025fa 100644 --- a/packages/msgraph-sdk-teams/teams/item/primaryChannel/index.ts +++ b/packages/msgraph-sdk-teams/teams/item/primaryChannel/index.ts @@ -6,6 +6,8 @@ import { createChannelFromDiscriminatorValue, serializeChannel, type Channel } f // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ArchiveRequestBuilderRequestsMetadata, type ArchiveRequestBuilder } from './archive/index.js'; +// @ts-ignore import { CompleteMigrationRequestBuilderRequestsMetadata, type CompleteMigrationRequestBuilder } from './completeMigration/index.js'; // @ts-ignore import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderRequestsMetadata, type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.js'; @@ -24,12 +26,18 @@ import { SharedWithTeamsRequestBuilderNavigationMetadata, SharedWithTeamsRequest // @ts-ignore import { TabsRequestBuilderNavigationMetadata, TabsRequestBuilderRequestsMetadata, type TabsRequestBuilder } from './tabs/index.js'; // @ts-ignore +import { type UnarchiveRequestBuilder, UnarchiveRequestBuilderRequestsMetadata } from './unarchive/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 primaryChannel property of the microsoft.graph.team entity. */ export interface PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + get archive(): ArchiveRequestBuilder; /** * Provides operations to call the completeMigration method. */ @@ -66,6 +74,10 @@ export interface PrimaryChannelRequestBuilder extends BaseRequestBuilder, NavigationMetadata> = { + archive: { + requestsMetadata: ArchiveRequestBuilderRequestsMetadata, + }, completeMigration: { requestsMetadata: CompleteMigrationRequestBuilderRequestsMetadata, }, @@ -168,6 +183,9 @@ export const PrimaryChannelRequestBuilderNavigationMetadata: Record { + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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/channel-unarchive?view=graph-rest-1.0|Find more info here} + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/teams/{team%2Did}/primaryChannel/unarchive"; +/** + * Metadata for all the requests in the request builder. + */ +export const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: UnarchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/getAllRetainedMessages/index.ts b/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/getAllRetainedMessages/index.ts new file mode 100644 index 00000000000..9d079dec1c1 --- /dev/null +++ b/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/getAllRetainedMessages/index.ts @@ -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 void>) { + return deserializeIntoGetAllRetainedMessagesGetResponse; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse), + "value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues(createChatMessageFromDiscriminatorValue); }, + } +} +export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ChatMessage[]; +} +/** + * Provides operations to call the getAllRetainedMessages method. + */ +export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | 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 | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse) + writer.writeCollectionOfObjectValues("value", getAllRetainedMessagesGetResponse.value, serializeChatMessage); +} +/** + * Uri template for the request builder. + */ +export const GetAllRetainedMessagesRequestBuilderUriTemplate = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/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 = { + "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, + }, + adapterMethodName: "send", + responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue, + queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/index.ts b/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/index.ts index eb06d90a52c..2594e5b1aff 100644 --- a/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/index.ts +++ b/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/index.ts @@ -10,6 +10,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '. // @ts-ignore import { GetAllMessagesRequestBuilderRequestsMetadata, type GetAllMessagesRequestBuilder } from './getAllMessages/index.js'; // @ts-ignore +import { GetAllRetainedMessagesRequestBuilderRequestsMetadata, type GetAllRetainedMessagesRequestBuilder } from './getAllRetainedMessages/index.js'; +// @ts-ignore import { ChannelItemRequestBuilderNavigationMetadata, ChannelItemRequestBuilderRequestsMetadata, type ChannelItemRequestBuilder } 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'; @@ -26,6 +28,10 @@ export interface ChannelsRequestBuilder extends BaseRequestBuilder; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The shouldSetSpoSiteReadOnlyForMembers property + */ + shouldSetSpoSiteReadOnlyForMembers?: boolean; +} +/** + * Provides operations to call the archive method. + */ +export interface ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @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/channel-archive?view=graph-rest-1.0|Find more info here} + */ + post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * 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 {ArchivePostRequestBody} + */ +export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArchivePostRequestBody; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; }, + "shouldSetSpoSiteReadOnlyForMembers": n => { archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers = n.getBooleanValue(); }, + } +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: Partial | undefined = {}) : void { + writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); + writer.writeAdditionalData(archivePostRequestBody.additionalData); +} +/** + * Uri template for the request builder. + */ +export const ArchiveRequestBuilderUriTemplate = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/archive"; +/** + * Metadata for all the requests in the request builder. + */ +export const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ArchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + requestBodyContentType: "application/json", + requestBodySerializer: serializeArchivePostRequestBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/item/index.ts b/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/item/index.ts index 9e8969166c9..3e31684a0c1 100644 --- a/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/item/index.ts +++ b/packages/msgraph-sdk-teamwork/teamwork/deletedTeams/item/channels/item/index.ts @@ -6,6 +6,8 @@ import { createChannelFromDiscriminatorValue, serializeChannel, type Channel } f // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ArchiveRequestBuilderRequestsMetadata, type ArchiveRequestBuilder } from './archive/index.js'; +// @ts-ignore import { CompleteMigrationRequestBuilderRequestsMetadata, type CompleteMigrationRequestBuilder } from './completeMigration/index.js'; // @ts-ignore import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderRequestsMetadata, type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.js'; @@ -24,12 +26,18 @@ import { SharedWithTeamsRequestBuilderNavigationMetadata, SharedWithTeamsRequest // @ts-ignore import { TabsRequestBuilderNavigationMetadata, TabsRequestBuilderRequestsMetadata, type TabsRequestBuilder } from './tabs/index.js'; // @ts-ignore +import { type UnarchiveRequestBuilder, UnarchiveRequestBuilderRequestsMetadata } from './unarchive/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 channels property of the microsoft.graph.deletedTeam entity. */ export interface ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + get archive(): ArchiveRequestBuilder; /** * Provides operations to call the completeMigration method. */ @@ -66,6 +74,10 @@ export interface ChannelItemRequestBuilder extends BaseRequestBuilder * Metadata for all the navigation properties in the request builder. */ export const ChannelItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + archive: { + requestsMetadata: ArchiveRequestBuilderRequestsMetadata, + }, completeMigration: { requestsMetadata: CompleteMigrationRequestBuilderRequestsMetadata, }, @@ -167,6 +182,9 @@ export const ChannelItemRequestBuilderNavigationMetadata: Record { + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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/channel-unarchive?view=graph-rest-1.0|Find more info here} + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/unarchive"; +/** + * Metadata for all the requests in the request builder. + */ +export const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: UnarchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/index.ts b/packages/msgraph-sdk-users/users/index.ts index e3c812bee8b..99c14857103 100644 --- a/packages/msgraph-sdk-users/users/index.ts +++ b/packages/msgraph-sdk-users/users/index.ts @@ -64,7 +64,7 @@ export interface UsersRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-user-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-user-create?view=graph-rest-1.0|Find more info here} */ post(body: User, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** diff --git a/packages/msgraph-sdk-users/users/item/assignLicense/index.ts b/packages/msgraph-sdk-users/users/item/assignLicense/index.ts index 1d2bfff60b7..0eaf0dd330f 100644 --- a/packages/msgraph-sdk-users/users/item/assignLicense/index.ts +++ b/packages/msgraph-sdk-users/users/item/assignLicense/index.ts @@ -33,7 +33,7 @@ export interface AssignLicensePostRequestBody extends AdditionalDataHolder, Back */ export interface AssignLicenseRequestBuilder extends BaseRequestBuilder { /** - * Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -42,7 +42,7 @@ export interface AssignLicenseRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-users/users/item/authentication/methods/item/resetPassword/index.ts b/packages/msgraph-sdk-users/users/item/authentication/methods/item/resetPassword/index.ts index d0a064de61e..2dffbb81db8 100644 --- a/packages/msgraph-sdk-users/users/item/authentication/methods/item/resetPassword/index.ts +++ b/packages/msgraph-sdk-users/users/item/authentication/methods/item/resetPassword/index.ts @@ -45,7 +45,7 @@ export interface ResetPasswordPostRequestBody extends AdditionalDataHolder, Back */ export interface ResetPasswordRequestBuilder extends BaseRequestBuilder { /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -54,7 +54,7 @@ export interface ResetPasswordRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-users/users/item/authentication/operations/index.ts b/packages/msgraph-sdk-users/users/item/authentication/operations/index.ts index 6657c5cf72b..facc8a623ef 100644 --- a/packages/msgraph-sdk-users/users/item/authentication/operations/index.ts +++ b/packages/msgraph-sdk-users/users/item/authentication/operations/index.ts @@ -27,7 +27,7 @@ export interface OperationsRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code @@ -42,7 +42,7 @@ export interface OperationsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -56,7 +56,7 @@ export interface OperationsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ export interface OperationsRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-users/users/item/authentication/operations/item/index.ts b/packages/msgraph-sdk-users/users/item/authentication/operations/item/index.ts index b95b67f5661..57ecc617775 100644 --- a/packages/msgraph-sdk-users/users/item/authentication/operations/item/index.ts +++ b/packages/msgraph-sdk-users/users/item/authentication/operations/item/index.ts @@ -19,7 +19,7 @@ export interface LongRunningOperationItemRequestBuilder extends BaseRequestBuild */ delete(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code @@ -41,7 +41,7 @@ export interface LongRunningOperationItemRequestBuilder extends BaseRequestBuild */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ @@ -55,7 +55,7 @@ export interface LongRunningOperationItemRequestBuilder extends BaseRequestBuild toPatchRequestInformation(body: LongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ export interface LongRunningOperationItemRequestBuilderGetQueryParameters { /** diff --git a/packages/msgraph-sdk-users/users/item/chats/getAllRetainedMessages/index.ts b/packages/msgraph-sdk-users/users/item/chats/getAllRetainedMessages/index.ts new file mode 100644 index 00000000000..caf654a4a7b --- /dev/null +++ b/packages/msgraph-sdk-users/users/item/chats/getAllRetainedMessages/index.ts @@ -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 void>) { + return deserializeIntoGetAllRetainedMessagesGetResponse; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse), + "value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues(createChatMessageFromDiscriminatorValue); }, + } +} +export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ChatMessage[]; +} +/** + * Provides operations to call the getAllRetainedMessages method. + */ +export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | 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 | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse) + writer.writeCollectionOfObjectValues("value", getAllRetainedMessagesGetResponse.value, serializeChatMessage); +} +/** + * Uri template for the request builder. + */ +export const GetAllRetainedMessagesRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/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 = { + "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, + }, + adapterMethodName: "send", + responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue, + queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/chats/index.ts b/packages/msgraph-sdk-users/users/item/chats/index.ts index 490b11a3d28..626433763b5 100644 --- a/packages/msgraph-sdk-users/users/item/chats/index.ts +++ b/packages/msgraph-sdk-users/users/item/chats/index.ts @@ -10,6 +10,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '. // @ts-ignore import { GetAllMessagesRequestBuilderRequestsMetadata, type GetAllMessagesRequestBuilder } from './getAllMessages/index.js'; // @ts-ignore +import { GetAllRetainedMessagesRequestBuilderRequestsMetadata, type GetAllRetainedMessagesRequestBuilder } from './getAllRetainedMessages/index.js'; +// @ts-ignore import { ChatItemRequestBuilderNavigationMetadata, ChatItemRequestBuilderRequestsMetadata, type ChatItemRequestBuilder } 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'; @@ -26,6 +28,10 @@ export interface ChatsRequestBuilder extends BaseRequestBuilder { /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} diff --git a/packages/msgraph-sdk-users/users/item/index.ts b/packages/msgraph-sdk-users/users/item/index.ts index 7c7de065418..1a3af387bac 100644 --- a/packages/msgraph-sdk-users/users/item/index.ts +++ b/packages/msgraph-sdk-users/users/item/index.ts @@ -455,10 +455,10 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise; /** @@ -473,7 +473,7 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-user-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -482,7 +482,7 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder} * @throws {ODataError} error when the service returns a 4XX or 5XX status code - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0|Find more info here} */ patch(body: User, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** @@ -493,7 +493,7 @@ export interface UserItemRequestBuilder extends BaseRequestBuilder} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** * Update the navigation property insights in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - patch(body: OfficeGraphInsights, requestConfiguration?: RequestConfiguration | undefined) : Promise; + patch(body: ItemInsights, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** * Delete navigation property insights for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. @@ -69,7 +69,7 @@ export interface InsightsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation; + toPatchRequestInformation(body: ItemInsights, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** * Get insights from users @@ -131,7 +131,7 @@ export const InsightsRequestBuilderRequestsMetadata: RequestsMetadata = { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createOfficeGraphInsightsFromDiscriminatorValue, + responseBodyFactory: createItemInsightsFromDiscriminatorValue, queryParametersMapper: InsightsRequestBuilderGetQueryParametersMapper, }, patch: { @@ -141,9 +141,9 @@ export const InsightsRequestBuilderRequestsMetadata: RequestsMetadata = { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createOfficeGraphInsightsFromDiscriminatorValue, + responseBodyFactory: createItemInsightsFromDiscriminatorValue, requestBodyContentType: "application/json", - requestBodySerializer: serializeOfficeGraphInsights, + requestBodySerializer: serializeItemInsights, requestInformationContentSetMethod: "setContentFromParsable", }, }; diff --git a/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/getAllRetainedMessages/index.ts b/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/getAllRetainedMessages/index.ts new file mode 100644 index 00000000000..5793d6f4ec4 --- /dev/null +++ b/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/getAllRetainedMessages/index.ts @@ -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 void>) { + return deserializeIntoGetAllRetainedMessagesGetResponse; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse), + "value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues(createChatMessageFromDiscriminatorValue); }, + } +} +export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ChatMessage[]; +} +/** + * Provides operations to call the getAllRetainedMessages method. + */ +export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder { + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Invoke function getAllRetainedMessages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | 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 | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse) + writer.writeCollectionOfObjectValues("value", getAllRetainedMessagesGetResponse.value, serializeChatMessage); +} +/** + * Uri template for the request builder. + */ +export const GetAllRetainedMessagesRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/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 = { + "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, + }, + adapterMethodName: "send", + responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue, + queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/index.ts b/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/index.ts index 7a62537f05e..be2bdc16703 100644 --- a/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/index.ts +++ b/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/index.ts @@ -10,6 +10,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '. // @ts-ignore import { GetAllMessagesRequestBuilderRequestsMetadata, type GetAllMessagesRequestBuilder } from './getAllMessages/index.js'; // @ts-ignore +import { GetAllRetainedMessagesRequestBuilderRequestsMetadata, type GetAllRetainedMessagesRequestBuilder } from './getAllRetainedMessages/index.js'; +// @ts-ignore import { ChannelItemRequestBuilderNavigationMetadata, ChannelItemRequestBuilderRequestsMetadata, type ChannelItemRequestBuilder } 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'; @@ -26,6 +28,10 @@ export interface ChannelsRequestBuilder extends BaseRequestBuilder; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The shouldSetSpoSiteReadOnlyForMembers property + */ + shouldSetSpoSiteReadOnlyForMembers?: boolean; +} +/** + * Provides operations to call the archive method. + */ +export interface ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @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/channel-archive?view=graph-rest-1.0|Find more info here} + */ + post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * 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 {ArchivePostRequestBody} + */ +export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArchivePostRequestBody; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; }, + "shouldSetSpoSiteReadOnlyForMembers": n => { archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers = n.getBooleanValue(); }, + } +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: Partial | undefined = {}) : void { + writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); + writer.writeAdditionalData(archivePostRequestBody.additionalData); +} +/** + * Uri template for the request builder. + */ +export const ArchiveRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/archive"; +/** + * Metadata for all the requests in the request builder. + */ +export const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ArchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + requestBodyContentType: "application/json", + requestBodySerializer: serializeArchivePostRequestBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/item/index.ts b/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/item/index.ts index 0df3b093f22..713fe699974 100644 --- a/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/item/index.ts +++ b/packages/msgraph-sdk-users/users/item/joinedTeams/item/channels/item/index.ts @@ -6,6 +6,8 @@ import { createChannelFromDiscriminatorValue, serializeChannel, type Channel } f // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ArchiveRequestBuilderRequestsMetadata, type ArchiveRequestBuilder } from './archive/index.js'; +// @ts-ignore import { CompleteMigrationRequestBuilderRequestsMetadata, type CompleteMigrationRequestBuilder } from './completeMigration/index.js'; // @ts-ignore import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderRequestsMetadata, type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.js'; @@ -24,12 +26,18 @@ import { SharedWithTeamsRequestBuilderNavigationMetadata, SharedWithTeamsRequest // @ts-ignore import { TabsRequestBuilderNavigationMetadata, TabsRequestBuilderRequestsMetadata, type TabsRequestBuilder } from './tabs/index.js'; // @ts-ignore +import { type UnarchiveRequestBuilder, UnarchiveRequestBuilderRequestsMetadata } from './unarchive/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 channels property of the microsoft.graph.team entity. */ export interface ChannelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + get archive(): ArchiveRequestBuilder; /** * Provides operations to call the completeMigration method. */ @@ -66,6 +74,10 @@ export interface ChannelItemRequestBuilder extends BaseRequestBuilder * Metadata for all the navigation properties in the request builder. */ export const ChannelItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + archive: { + requestsMetadata: ArchiveRequestBuilderRequestsMetadata, + }, completeMigration: { requestsMetadata: CompleteMigrationRequestBuilderRequestsMetadata, }, @@ -167,6 +182,9 @@ export const ChannelItemRequestBuilderNavigationMetadata: Record { + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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/channel-unarchive?view=graph-rest-1.0|Find more info here} + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/unarchive"; +/** + * Metadata for all the requests in the request builder. + */ +export const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: UnarchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/joinedTeams/item/primaryChannel/archive/index.ts b/packages/msgraph-sdk-users/users/item/joinedTeams/item/primaryChannel/archive/index.ts new file mode 100644 index 00000000000..ecfb2c2b4de --- /dev/null +++ b/packages/msgraph-sdk-users/users/item/joinedTeams/item/primaryChannel/archive/index.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export interface ArchivePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The shouldSetSpoSiteReadOnlyForMembers property + */ + shouldSetSpoSiteReadOnlyForMembers?: boolean; +} +/** + * Provides operations to call the archive method. + */ +export interface ArchiveRequestBuilder extends BaseRequestBuilder { + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @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/channel-archive?view=graph-rest-1.0|Find more info here} + */ + post(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ArchivePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * 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 {ArchivePostRequestBody} + */ +export function createArchivePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArchivePostRequestBody; +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoArchivePostRequestBody(archivePostRequestBody: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { archivePostRequestBody.backingStoreEnabled = true; }, + "shouldSetSpoSiteReadOnlyForMembers": n => { archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers = n.getBooleanValue(); }, + } +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeArchivePostRequestBody(writer: SerializationWriter, archivePostRequestBody: Partial | undefined = {}) : void { + writer.writeBooleanValue("shouldSetSpoSiteReadOnlyForMembers", archivePostRequestBody.shouldSetSpoSiteReadOnlyForMembers); + writer.writeAdditionalData(archivePostRequestBody.additionalData); +} +/** + * Uri template for the request builder. + */ +export const ArchiveRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/archive"; +/** + * Metadata for all the requests in the request builder. + */ +export const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ArchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + requestBodyContentType: "application/json", + requestBodySerializer: serializeArchivePostRequestBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/joinedTeams/item/primaryChannel/index.ts b/packages/msgraph-sdk-users/users/item/joinedTeams/item/primaryChannel/index.ts index e259fcd1b63..a00047734d5 100644 --- a/packages/msgraph-sdk-users/users/item/joinedTeams/item/primaryChannel/index.ts +++ b/packages/msgraph-sdk-users/users/item/joinedTeams/item/primaryChannel/index.ts @@ -6,6 +6,8 @@ import { createChannelFromDiscriminatorValue, serializeChannel, type Channel } f // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ArchiveRequestBuilderRequestsMetadata, type ArchiveRequestBuilder } from './archive/index.js'; +// @ts-ignore import { CompleteMigrationRequestBuilderRequestsMetadata, type CompleteMigrationRequestBuilder } from './completeMigration/index.js'; // @ts-ignore import { DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderRequestsMetadata, type DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder } from './doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/index.js'; @@ -24,12 +26,18 @@ import { SharedWithTeamsRequestBuilderNavigationMetadata, SharedWithTeamsRequest // @ts-ignore import { TabsRequestBuilderNavigationMetadata, TabsRequestBuilderRequestsMetadata, type TabsRequestBuilder } from './tabs/index.js'; // @ts-ignore +import { type UnarchiveRequestBuilder, UnarchiveRequestBuilderRequestsMetadata } from './unarchive/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 primaryChannel property of the microsoft.graph.team entity. */ export interface PrimaryChannelRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the archive method. + */ + get archive(): ArchiveRequestBuilder; /** * Provides operations to call the completeMigration method. */ @@ -66,6 +74,10 @@ export interface PrimaryChannelRequestBuilder extends BaseRequestBuilder, NavigationMetadata> = { + archive: { + requestsMetadata: ArchiveRequestBuilderRequestsMetadata, + }, completeMigration: { requestsMetadata: CompleteMigrationRequestBuilderRequestsMetadata, }, @@ -167,6 +182,9 @@ export const PrimaryChannelRequestBuilderNavigationMetadata: Record { + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @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/channel-unarchive?view=graph-rest-1.0|Find more info here} + */ + post(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const UnarchiveRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/unarchive"; +/** + * Metadata for all the requests in the request builder. + */ +export const UnarchiveRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: UnarchiveRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/settings/index.ts b/packages/msgraph-sdk-users/users/item/settings/index.ts index 638c26c4d90..c8f4a05a624 100644 --- a/packages/msgraph-sdk-users/users/item/settings/index.ts +++ b/packages/msgraph-sdk-users/users/item/settings/index.ts @@ -6,8 +6,12 @@ import { createUserSettingsFromDiscriminatorValue, serializeUserSettings, type U // @ts-ignore import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; // @ts-ignore +import { ItemInsightsRequestBuilderRequestsMetadata, type ItemInsightsRequestBuilder } from './itemInsights/index.js'; +// @ts-ignore import { ShiftPreferencesRequestBuilderRequestsMetadata, type ShiftPreferencesRequestBuilder } from './shiftPreferences/index.js'; // @ts-ignore +import { StorageRequestBuilderNavigationMetadata, StorageRequestBuilderRequestsMetadata, type StorageRequestBuilder } from './storage/index.js'; +// @ts-ignore import { type WindowsRequestBuilder, WindowsRequestBuilderNavigationMetadata, WindowsRequestBuilderRequestsMetadata } from './windows/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'; @@ -16,10 +20,18 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type * Provides operations to manage the settings property of the microsoft.graph.user entity. */ export interface SettingsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the itemInsights property of the microsoft.graph.userSettings entity. + */ + get itemInsights(): ItemInsightsRequestBuilder; /** * Provides operations to manage the shiftPreferences property of the microsoft.graph.userSettings entity. */ get shiftPreferences(): ShiftPreferencesRequestBuilder; + /** + * Provides operations to manage the storage property of the microsoft.graph.userSettings entity. + */ + get storage(): StorageRequestBuilder; /** * Provides operations to manage the windows property of the microsoft.graph.userSettings entity. */ @@ -93,9 +105,16 @@ const SettingsRequestBuilderGetQueryParametersMapper: Record = { * Metadata for all the navigation properties in the request builder. */ export const SettingsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + itemInsights: { + requestsMetadata: ItemInsightsRequestBuilderRequestsMetadata, + }, shiftPreferences: { requestsMetadata: ShiftPreferencesRequestBuilderRequestsMetadata, }, + storage: { + requestsMetadata: StorageRequestBuilderRequestsMetadata, + navigationMetadata: StorageRequestBuilderNavigationMetadata, + }, windows: { requestsMetadata: WindowsRequestBuilderRequestsMetadata, navigationMetadata: WindowsRequestBuilderNavigationMetadata, diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts b/packages/msgraph-sdk-users/users/item/settings/itemInsights/index.ts similarity index 60% rename from packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts rename to packages/msgraph-sdk-users/users/item/settings/itemInsights/index.ts index e4efc8a64c0..1d097ae7288 100644 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts +++ b/packages/msgraph-sdk-users/users/item/settings/itemInsights/index.ts @@ -2,61 +2,61 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +import { createUserInsightsSettingsFromDiscriminatorValue, serializeUserInsightsSettings, type UserInsightsSettings } from '@microsoft/msgraph-sdk/models/index.js'; // @ts-ignore -import { createStoreFromDiscriminatorValue, serializeStore, type Store } from '@microsoft/msgraph-sdk/models/termStore/index.js'; +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 termStore property of the microsoft.graph.site entity. + * Provides operations to manage the itemInsights property of the microsoft.graph.userSettings entity. */ -export interface TermStoreRequestBuilder extends BaseRequestBuilder { +export interface ItemInsightsRequestBuilder extends BaseRequestBuilder { /** - * Delete navigation property termStore for sites + * Delete navigation property itemInsights for users * @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 | undefined) : Promise; /** - * The default termStore under this site. + * Get itemInsights from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the navigation property termStore in sites + * Update the navigation property itemInsights in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - patch(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise; + patch(body: UserInsightsSettings, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Delete navigation property termStore for sites + * Delete navigation property itemInsights for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * The default termStore under this site. + * Get itemInsights from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the navigation property termStore in sites + * Update the navigation property itemInsights in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toPatchRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toPatchRequestInformation(body: UserInsightsSettings, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * The default termStore under this site. + * Get itemInsights from users */ -export interface TermStoreRequestBuilderGetQueryParameters { +export interface ItemInsightsRequestBuilderGetQueryParameters { /** * Expand related entities */ @@ -69,20 +69,20 @@ export interface TermStoreRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const TermStoreRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}"; +export const ItemInsightsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/itemInsights{?%24expand,%24select}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ -const TermStoreRequestBuilderGetQueryParametersMapper: Record = { +const ItemInsightsRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", "select": "%24select", }; /** * Metadata for all the requests in the request builder. */ -export const TermStoreRequestBuilderRequestsMetadata: RequestsMetadata = { +export const ItemInsightsRequestBuilderRequestsMetadata: RequestsMetadata = { delete: { - uriTemplate: TermStoreRequestBuilderUriTemplate, + uriTemplate: ItemInsightsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, @@ -90,25 +90,25 @@ export const TermStoreRequestBuilderRequestsMetadata: RequestsMetadata = { adapterMethodName: "sendNoResponseContent", }, get: { - uriTemplate: TermStoreRequestBuilderUriTemplate, + uriTemplate: ItemInsightsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createStoreFromDiscriminatorValue, - queryParametersMapper: TermStoreRequestBuilderGetQueryParametersMapper, + responseBodyFactory: createUserInsightsSettingsFromDiscriminatorValue, + queryParametersMapper: ItemInsightsRequestBuilderGetQueryParametersMapper, }, patch: { - uriTemplate: TermStoreRequestBuilderUriTemplate, + uriTemplate: ItemInsightsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createStoreFromDiscriminatorValue, + responseBodyFactory: createUserInsightsSettingsFromDiscriminatorValue, requestBodyContentType: "application/json", - requestBodySerializer: serializeStore, + requestBodySerializer: serializeUserInsightsSettings, requestInformationContentSetMethod: "setContentFromParsable", }, }; diff --git a/packages/msgraph-sdk-users/users/item/settings/storage/index.ts b/packages/msgraph-sdk-users/users/item/settings/storage/index.ts new file mode 100644 index 00000000000..d06158515a8 --- /dev/null +++ b/packages/msgraph-sdk-users/users/item/settings/storage/index.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createUserStorageFromDiscriminatorValue, serializeUserStorage, type UserStorage } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { QuotaRequestBuilderNavigationMetadata, QuotaRequestBuilderRequestsMetadata, type QuotaRequestBuilder } from './quota/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 storage property of the microsoft.graph.userSettings entity. + */ +export interface StorageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the quota property of the microsoft.graph.userStorage entity. + */ + get quota(): QuotaRequestBuilder; + /** + * Delete navigation property storage for users + * @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 | undefined) : Promise; + /** + * Get storage from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property storage in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: UserStorage, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property storage for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Get storage from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property storage in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: UserStorage, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get storage from users + */ +export interface StorageRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const StorageRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/storage{?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const StorageRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const StorageRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + quota: { + requestsMetadata: QuotaRequestBuilderRequestsMetadata, + navigationMetadata: QuotaRequestBuilderNavigationMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const StorageRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: StorageRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: StorageRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createUserStorageFromDiscriminatorValue, + queryParametersMapper: StorageRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: StorageRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createUserStorageFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeUserStorage, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/settings/storage/quota/index.ts b/packages/msgraph-sdk-users/users/item/settings/storage/quota/index.ts new file mode 100644 index 00000000000..b3055af8bc4 --- /dev/null +++ b/packages/msgraph-sdk-users/users/item/settings/storage/quota/index.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createUnifiedStorageQuotaFromDiscriminatorValue, serializeUnifiedStorageQuota, type UnifiedStorageQuota } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { ServicesRequestBuilderNavigationMetadata, ServicesRequestBuilderRequestsMetadata, type ServicesRequestBuilder } from './services/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 quota property of the microsoft.graph.userStorage entity. + */ +export interface QuotaRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + */ + get services(): ServicesRequestBuilder; + /** + * Delete navigation property quota for users + * @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 | undefined) : Promise; + /** + * Get quota from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Update the navigation property quota in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + patch(body: UnifiedStorageQuota, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Delete navigation property quota for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Get quota from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Update the navigation property quota in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPatchRequestInformation(body: UnifiedStorageQuota, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get quota from users + */ +export interface QuotaRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Uri template for the request builder. + */ +export const QuotaRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/storage/quota{?%24expand,%24select}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const QuotaRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const QuotaRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + services: { + requestsMetadata: ServicesRequestBuilderRequestsMetadata, + navigationMetadata: ServicesRequestBuilderNavigationMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const QuotaRequestBuilderRequestsMetadata: RequestsMetadata = { + delete: { + uriTemplate: QuotaRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendNoResponseContent", + }, + get: { + uriTemplate: QuotaRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createUnifiedStorageQuotaFromDiscriminatorValue, + queryParametersMapper: QuotaRequestBuilderGetQueryParametersMapper, + }, + patch: { + uriTemplate: QuotaRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createUnifiedStorageQuotaFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeUnifiedStorageQuota, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/count/index.ts b/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/count/index.ts new file mode 100644 index 00000000000..c29111ebb08 --- /dev/null +++ b/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/count/index.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @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 count the resources in the collection. + */ +export interface CountRequestBuilder extends BaseRequestBuilder { + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get the number of the resource + */ +export interface CountRequestBuilderGetQueryParameters { + /** + * Filter items by property values + */ + filter?: string; + /** + * Search items by search phrases + */ + search?: string; +} +/** + * Uri template for the request builder. + */ +export const CountRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/$count{?%24filter,%24search}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const CountRequestBuilderGetQueryParametersMapper: Record = { + "filter": "%24filter", + "search": "%24search", +}; +/** + * Metadata for all the requests in the request builder. + */ +export const CountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: CountRequestBuilderUriTemplate, + responseBodyContentType: "text/plain;q=0.9", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "sendPrimitive", + responseBodyFactory: "number", + queryParametersMapper: CountRequestBuilderGetQueryParametersMapper, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/index.ts b/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/index.ts new file mode 100644 index 00000000000..37767f8160c --- /dev/null +++ b/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/index.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createServiceStorageQuotaBreakdownCollectionResponseFromDiscriminatorValue, createServiceStorageQuotaBreakdownFromDiscriminatorValue, serializeServiceStorageQuotaBreakdown, type ServiceStorageQuotaBreakdown, type ServiceStorageQuotaBreakdownCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js'; +// @ts-ignore +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; +// @ts-ignore +import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js'; +// @ts-ignore +import { ServiceStorageQuotaBreakdownItemRequestBuilderRequestsMetadata, type ServiceStorageQuotaBreakdownItemRequestBuilder } 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 services property of the microsoft.graph.unifiedStorageQuota entity. + */ +export interface ServicesRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + */ + get count(): CountRequestBuilder; + /** + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. + * @param serviceStorageQuotaBreakdownId The unique identifier of serviceStorageQuotaBreakdown + * @returns {ServiceStorageQuotaBreakdownItemRequestBuilder} + */ + byServiceStorageQuotaBreakdownId(serviceStorageQuotaBreakdownId: string) : ServiceStorageQuotaBreakdownItemRequestBuilder; + /** + * Get services from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Create new navigation property to services for users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {ODataError} error when the service returns a 4XX or 5XX status code + */ + post(body: ServiceStorageQuotaBreakdown, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * Get services from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + /** + * Create new navigation property to services for users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: ServiceStorageQuotaBreakdown, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Get services from users + */ +export interface ServicesRequestBuilderGetQueryParameters { + /** + * 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 ServicesRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/storage/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; +/** + * Mapper for query parameters from symbol name to serialization name represented as a constant. + */ +const ServicesRequestBuilderGetQueryParametersMapper: Record = { + "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 ServicesRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byServiceStorageQuotaBreakdownId: { + requestsMetadata: ServiceStorageQuotaBreakdownItemRequestBuilderRequestsMetadata, + pathParametersMappings: ["serviceStorageQuotaBreakdown%2Did"], + }, + count: { + requestsMetadata: CountRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const ServicesRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: ServicesRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createServiceStorageQuotaBreakdownCollectionResponseFromDiscriminatorValue, + queryParametersMapper: ServicesRequestBuilderGetQueryParametersMapper, + }, + post: { + uriTemplate: ServicesRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createServiceStorageQuotaBreakdownFromDiscriminatorValue, + requestBodyContentType: "application/json", + requestBodySerializer: serializeServiceStorageQuotaBreakdown, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts b/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/item/index.ts similarity index 56% rename from packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts rename to packages/msgraph-sdk-users/users/item/settings/storage/quota/services/item/index.ts index f4f4742b84c..4b952012041 100644 --- a/packages/msgraph-sdk-sites/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts +++ b/packages/msgraph-sdk-users/users/item/settings/storage/quota/services/item/index.ts @@ -2,61 +2,61 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createItemAnalyticsFromDiscriminatorValue, serializeItemAnalytics, type ItemAnalytics } from '@microsoft/msgraph-sdk/models/index.js'; +import { createServiceStorageQuotaBreakdownFromDiscriminatorValue, serializeServiceStorageQuotaBreakdown, type ServiceStorageQuotaBreakdown } 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 analytics property of the microsoft.graph.site entity. + * Provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. */ -export interface AnalyticsRequestBuilder extends BaseRequestBuilder { +export interface ServiceStorageQuotaBreakdownItemRequestBuilder extends BaseRequestBuilder { /** - * Delete navigation property analytics for sites + * Delete navigation property services for users * @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 | undefined) : Promise; /** - * Analytics about the view activities that took place on this site. + * Get services from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Update the navigation property analytics in sites + * Update the navigation property services in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns {Promise} + * @returns {Promise} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ - patch(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : Promise; + patch(body: ServiceStorageQuotaBreakdown, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * Delete navigation property analytics for sites + * Delete navigation property services for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Analytics about the view activities that took place on this site. + * Get services from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; /** - * Update the navigation property analytics in sites + * Update the navigation property services in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toPatchRequestInformation(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toPatchRequestInformation(body: ServiceStorageQuotaBreakdown, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** - * Analytics about the view activities that took place on this site. + * Get services from users */ -export interface AnalyticsRequestBuilderGetQueryParameters { +export interface ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters { /** * Expand related entities */ @@ -69,20 +69,20 @@ export interface AnalyticsRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const AnalyticsRequestBuilderUriTemplate = "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}"; +export const ServiceStorageQuotaBreakdownItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ -const AnalyticsRequestBuilderGetQueryParametersMapper: Record = { +const ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", "select": "%24select", }; /** * Metadata for all the requests in the request builder. */ -export const AnalyticsRequestBuilderRequestsMetadata: RequestsMetadata = { +export const ServiceStorageQuotaBreakdownItemRequestBuilderRequestsMetadata: RequestsMetadata = { delete: { - uriTemplate: AnalyticsRequestBuilderUriTemplate, + uriTemplate: ServiceStorageQuotaBreakdownItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, @@ -90,25 +90,25 @@ export const AnalyticsRequestBuilderRequestsMetadata: RequestsMetadata = { adapterMethodName: "sendNoResponseContent", }, get: { - uriTemplate: AnalyticsRequestBuilderUriTemplate, + uriTemplate: ServiceStorageQuotaBreakdownItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createItemAnalyticsFromDiscriminatorValue, - queryParametersMapper: AnalyticsRequestBuilderGetQueryParametersMapper, + responseBodyFactory: createServiceStorageQuotaBreakdownFromDiscriminatorValue, + queryParametersMapper: ServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParametersMapper, }, patch: { - uriTemplate: AnalyticsRequestBuilderUriTemplate, + uriTemplate: ServiceStorageQuotaBreakdownItemRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue as ParsableFactory, }, adapterMethodName: "send", - responseBodyFactory: createItemAnalyticsFromDiscriminatorValue, + responseBodyFactory: createServiceStorageQuotaBreakdownFromDiscriminatorValue, requestBodyContentType: "application/json", - requestBodySerializer: serializeItemAnalytics, + requestBodySerializer: serializeServiceStorageQuotaBreakdown, requestInformationContentSetMethod: "setContentFromParsable", }, }; diff --git a/packages/msgraph-sdk/models/index.ts b/packages/msgraph-sdk/models/index.ts index 9dc2e026c43..10568034327 100644 --- a/packages/msgraph-sdk/models/index.ts +++ b/packages/msgraph-sdk/models/index.ts @@ -3579,6 +3579,10 @@ export interface Application extends DirectoryObject, Parsable { * The main logo for the application. Not nullable. */ logo?: string; + /** + * Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. + */ + nativeAuthenticationApisEnabled?: NativeAuthenticationApisEnabled[]; /** * Notes relevant for the management of the application. */ @@ -3870,6 +3874,8 @@ export interface AppLogCollectionRequestCollectionResponse extends BaseCollectio } export type AppLogDecryptionAlgorithm = (typeof AppLogDecryptionAlgorithmObject)[keyof typeof AppLogDecryptionAlgorithmObject]; export type AppLogUploadState = (typeof AppLogUploadStateObject)[keyof typeof AppLogUploadStateObject]; +export interface AppManagementApplicationConfiguration extends AppManagementConfiguration, Parsable { +} export interface AppManagementConfiguration extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -3904,7 +3910,7 @@ export interface AppManagementPolicy extends Parsable, PolicyBase { /** * Restrictions that apply to an application or service principal object. */ - restrictions?: AppManagementConfiguration; + restrictions?: CustomAppManagementConfiguration; } export interface AppManagementPolicyCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -3912,6 +3918,8 @@ export interface AppManagementPolicyCollectionResponse extends BaseCollectionPag */ value?: AppManagementPolicy[]; } +export interface AppManagementServicePrincipalConfiguration extends AppManagementConfiguration, Parsable { +} export interface AppRole extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -4221,7 +4229,7 @@ export interface AssignedLicense extends AdditionalDataHolder, BackedModel, Pars */ backingStoreEnabled?: boolean; /** - * A collection of the unique identifiers for plans that have been disabled. + * A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription. */ disabledPlans?: Guid[]; /** @@ -4229,7 +4237,7 @@ export interface AssignedLicense extends AdditionalDataHolder, BackedModel, Pars */ odataType?: string; /** - * The unique identifier for the SKU. + * The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription. */ skuId?: Guid; } @@ -5317,7 +5325,7 @@ export interface Authentication extends Entity, Parsable { */ microsoftAuthenticatorMethods?: MicrosoftAuthenticatorAuthenticationMethod[]; /** - * Represents the status of a long-running operation. + * Represents the status of a long-running operation, such as a password reset operation. */ operations?: LongRunningOperation[]; /** @@ -6412,6 +6420,14 @@ export interface BookingAppointment extends Entity, Parsable { * The URL of the meeting to join anonymously. */ anonymousJoinWebUrl?: string; + /** + * Custom label that can be stamped on this appointment by users. + */ + appointmentLabel?: string; + /** + * The createdDateTime property + */ + createdDateTime?: Date; /** * The customerEmailAddress property */ @@ -6448,6 +6464,10 @@ export interface BookingAppointment extends Entity, Parsable { * The current number of customers in the appointment */ filledAttendeesCount?: number; + /** + * The isCustomerAllowedToManageBooking property + */ + isCustomerAllowedToManageBooking?: boolean; /** * If true, indicates that the appointment will be held online. Default value is false. */ @@ -6456,6 +6476,10 @@ export interface BookingAppointment extends Entity, Parsable { * The URL of the online meeting for the appointment. */ joinWebUrl?: string; + /** + * The lastUpdatedDateTime property + */ + lastUpdatedDateTime?: Date; /** * The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. */ @@ -6535,6 +6559,10 @@ export interface BookingBusiness extends Entity, Parsable { * All the appointments of this business. Read-only. Nullable. */ appointments?: BookingAppointment[]; + /** + * The bookingPageSettings property + */ + bookingPageSettings?: BookingPageSettings; /** * The hours of operation for the business. */ @@ -6547,6 +6575,10 @@ export interface BookingBusiness extends Entity, Parsable { * The set of appointments of this business in a specified date range. Read-only. Nullable. */ calendarView?: BookingAppointment[]; + /** + * The createdDateTime property + */ + createdDateTime?: Date; /** * All the customers of this business. Read-only. Nullable. */ @@ -6575,6 +6607,10 @@ export interface BookingBusiness extends Entity, Parsable { * The language of the self-service booking page. */ languageTag?: string; + /** + * The lastUpdatedDateTime property + */ + lastUpdatedDateTime?: Date; /** * The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. */ @@ -6626,6 +6662,10 @@ export interface BookingCustomer extends BookingCustomerBase, Parsable { * Addresses associated with the customer. The attribute type of physicalAddress is not supported in v1.0. Internally we map the addresses to the type others. */ addresses?: PhysicalAddress[]; + /** + * The createdDateTime property + */ + createdDateTime?: Date; /** * The name of the customer. */ @@ -6634,6 +6674,10 @@ export interface BookingCustomer extends BookingCustomerBase, Parsable { * The SMTP address of the customer. */ emailAddress?: string; + /** + * The lastUpdatedDateTime property + */ + lastUpdatedDateTime?: Date; /** * Phone numbers associated with the customer, including home, business and mobile numbers. */ @@ -6710,10 +6754,18 @@ export interface BookingCustomQuestion extends Entity, Parsable { * List of possible answer values. */ answerOptions?: string[]; + /** + * The createdDateTime property + */ + createdDateTime?: Date; /** * The question. */ displayName?: string; + /** + * The lastUpdatedDateTime property + */ + lastUpdatedDateTime?: Date; } export interface BookingCustomQuestionCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -6721,6 +6773,65 @@ export interface BookingCustomQuestionCollectionResponse extends BaseCollectionP */ value?: BookingCustomQuestion[]; } +export type BookingPageAccessControl = (typeof BookingPageAccessControlObject)[keyof typeof BookingPageAccessControlObject]; +export interface BookingPageSettings extends AdditionalDataHolder, BackedModel, Parsable { + /** + * The accessControl property + */ + accessControl?: BookingPageAccessControl; + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * Custom color for bookings page. Value should be in Hex format. Example: `#123456`. + */ + bookingPageColorCode?: string; + /** + * The time zone of the customer. For a list of possible values, see [dateTimeTimeZone](https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-beta). + */ + businessTimeZone?: string; + /** + * Customer consent message that is displayed in the Booking page. + */ + customerConsentMessage?: string; + /** + * Enforcing One Time Password (OTP) during appointment creation. + */ + enforceOneTimePassword?: boolean; + /** + * Enable display of business logo display on the Bookings page. + */ + isBusinessLogoDisplayEnabled?: boolean; + /** + * Enforces customer consent on the customer consent message before appointment is booked. + */ + isCustomerConsentEnabled?: boolean; + /** + * Disable booking page to be indexed by search engines. False by default. + */ + isSearchEngineIndexabilityDisabled?: boolean; + /** + * If business time zone the default value for the time slots that we show in the bookings page. False by default. + */ + isTimeSlotTimeZoneSetToBusinessTimeZone?: boolean; + /** + * The OdataType property + */ + odataType?: string; + /** + * The URL of the business' Privacy Policy. + */ + privacyPolicyWebUrl?: string; + /** + * The URL of the business' Terms and Conditions. + */ + termsAndConditionsWebUrl?: string; +} export type BookingPriceType = (typeof BookingPriceTypeObject)[keyof typeof BookingPriceTypeObject]; export interface BookingQuestionAnswer extends AdditionalDataHolder, BackedModel, Parsable { /** @@ -6816,7 +6927,39 @@ export interface BookingReminder extends AdditionalDataHolder, BackedModel, Pars recipients?: BookingReminderRecipients; } export type BookingReminderRecipients = (typeof BookingReminderRecipientsObject)[keyof typeof BookingReminderRecipientsObject]; +export interface BookingsAvailability extends AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The availabilityType property + */ + availabilityType?: BookingsServiceAvailabilityType; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours + */ + businessHours?: BookingWorkHours[]; + /** + * The OdataType property + */ + odataType?: string; +} export type BookingsAvailabilityStatus = (typeof BookingsAvailabilityStatusObject)[keyof typeof BookingsAvailabilityStatusObject]; +export interface BookingsAvailabilityWindow extends BookingsAvailability, Parsable { + /** + * Allow customers to end date of availability window. + */ + endDate?: DateOnly; + /** + * Allow customers to start date of availability window. + */ + startDate?: DateOnly; +} /** * This type represents the set of policies that dictate how bookings can be created in a Booking Calendar. */ @@ -6833,6 +6976,18 @@ export interface BookingSchedulingPolicy extends AdditionalDataHolder, BackedMod * Stores model information. */ backingStoreEnabled?: boolean; + /** + * collection of custom availabilities for a given time range. + */ + customAvailabilities?: BookingsAvailabilityWindow[]; + /** + * General availability + */ + generalAvailability?: BookingsAvailability; + /** + * Enable sending meeting invite to customers. False by default. + */ + isMeetingInviteToCustomersEnabled?: boolean; /** * Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. */ @@ -6862,6 +7017,10 @@ export interface BookingService extends Entity, Parsable { * Additional information that is sent to the customer when an appointment is confirmed. */ additionalInformation?: string; + /** + * The createdDateTime property + */ + createdDateTime?: Date; /** * Contains the set of custom questions associated with a particular service. */ @@ -6898,6 +7057,10 @@ export interface BookingService extends Entity, Parsable { * True if the URL to join the appointment anonymously (anonymousJoinWebUrl) will be generated for the appointment booked for this service. */ isAnonymousJoinEnabled?: boolean; + /** + * The isCustomerAllowedToManageBooking property + */ + isCustomerAllowedToManageBooking?: boolean; /** * True means this service is not available to customers for booking. */ @@ -6910,6 +7073,10 @@ export interface BookingService extends Entity, Parsable { * The language of the self-service booking page. */ languageTag?: string; + /** + * The lastUpdatedDateTime property + */ + lastUpdatedDateTime?: Date; /** * The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. */ @@ -6949,6 +7116,7 @@ export interface BookingServiceCollectionResponse extends BaseCollectionPaginati */ value?: BookingService[]; } +export type BookingsServiceAvailabilityType = (typeof BookingsServiceAvailabilityTypeObject)[keyof typeof BookingsServiceAvailabilityTypeObject]; /** * Represents a staff member who provides services in a business. */ @@ -6957,6 +7125,10 @@ export interface BookingStaffMember extends BookingStaffMemberBase, Parsable { * True means that if the staff member is a Microsoft 365 user, the Bookings API would verify the staff member's availability in their personal calendar in Microsoft 365, before making a booking. */ availabilityIsAffectedByPersonalCalendar?: boolean; + /** + * The createdDateTime property + */ + createdDateTime?: Date; /** * The name of the staff member, as displayed to customers. Required. */ @@ -6969,6 +7141,10 @@ export interface BookingStaffMember extends BookingStaffMemberBase, Parsable { * True indicates that a staff member will be notified via email when a booking assigned to them is created or changed. */ isEmailNotificationEnabled?: boolean; + /** + * The lastUpdatedDateTime property + */ + lastUpdatedDateTime?: Date; /** * The membershipStatus property */ @@ -7979,7 +8155,7 @@ export interface CallTranscript extends Entity, Parsable { */ content?: string; /** - * Date and time at which the transcript was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + * Date and time at which the transcript was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. */ createdDateTime?: Date; /** @@ -8197,6 +8373,10 @@ export interface Channel extends Entity, Parsable { * Metadata for the location where the channel's files are stored. */ filesFolder?: DriveItem; + /** + * Indicates whether the channel is archived. Read-only. + */ + isArchived?: boolean; /** * Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. */ @@ -13026,12 +13206,35 @@ export function createAppLogCollectionRequestCollectionResponseFromDiscriminator export function createAppLogCollectionRequestFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoAppLogCollectionRequest; } +/** + * 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 {AppManagementApplicationConfiguration} + */ +export function createAppManagementApplicationConfigurationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoAppManagementApplicationConfiguration; +} /** * 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 {AppManagementConfiguration} */ export function createAppManagementConfigurationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.appManagementApplicationConfiguration": + return deserializeIntoAppManagementApplicationConfiguration; + case "#microsoft.graph.appManagementServicePrincipalConfiguration": + return deserializeIntoAppManagementServicePrincipalConfiguration; + case "#microsoft.graph.customAppManagementConfiguration": + return deserializeIntoCustomAppManagementConfiguration; + } + } + } return deserializeIntoAppManagementConfiguration; } /** @@ -13050,6 +13253,14 @@ export function createAppManagementPolicyCollectionResponseFromDiscriminatorValu export function createAppManagementPolicyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoAppManagementPolicy; } +/** + * 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 {AppManagementServicePrincipalConfiguration} + */ +export function createAppManagementServicePrincipalConfigurationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoAppManagementServicePrincipalConfiguration; +} /** * 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 @@ -14401,6 +14612,14 @@ export function createBookingCustomQuestionCollectionResponseFromDiscriminatorVa export function createBookingCustomQuestionFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoBookingCustomQuestion; } +/** + * 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 {BookingPageSettings} + */ +export function createBookingPageSettingsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoBookingPageSettings; +} /** * 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 @@ -14425,6 +14644,33 @@ export function createBookingQuestionAssignmentFromDiscriminatorValue(parseNode: export function createBookingReminderFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoBookingReminder; } +/** + * 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 {BookingsAvailability} + */ +export function createBookingsAvailabilityFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.bookingsAvailabilityWindow": + return deserializeIntoBookingsAvailabilityWindow; + } + } + } + return deserializeIntoBookingsAvailability; +} +/** + * 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 {BookingsAvailabilityWindow} + */ +export function createBookingsAvailabilityWindowFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoBookingsAvailabilityWindow; +} /** * 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 @@ -16239,6 +16485,17 @@ export function createCrossCloudAzureActiveDirectoryTenantFromDiscriminatorValue * @returns {CrossTenantAccessPolicyB2BSetting} */ export function createCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.crossTenantAccessPolicyTenantRestrictions": + return deserializeIntoCrossTenantAccessPolicyTenantRestrictions; + } + } + } return deserializeIntoCrossTenantAccessPolicyB2BSetting; } /** @@ -16297,6 +16554,14 @@ export function createCrossTenantAccessPolicyTargetConfigurationFromDiscriminato export function createCrossTenantAccessPolicyTargetFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoCrossTenantAccessPolicyTarget; } +/** + * 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 {CrossTenantAccessPolicyTenantRestrictions} + */ +export function createCrossTenantAccessPolicyTenantRestrictionsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoCrossTenantAccessPolicyTenantRestrictions; +} /** * 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 @@ -16321,6 +16586,14 @@ export function createCrossTenantUserSyncInboundFromDiscriminatorValue(parseNode export function createCurrencyColumnFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoCurrencyColumn; } +/** + * 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 {CustomAppManagementConfiguration} + */ +export function createCustomAppManagementConfigurationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoCustomAppManagementConfiguration; +} /** * 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 @@ -17695,6 +17968,14 @@ export function createDeviceRegistrationMembershipFromDiscriminatorValue(parseNo export function createDeviceRegistrationPolicyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoDeviceRegistrationPolicy; } +/** + * 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 {DevicesFilter} + */ +export function createDevicesFilterFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoDevicesFilter; +} /** * 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 @@ -19683,6 +19964,8 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoInferenceClassification; case "#microsoft.graph.inferenceClassificationOverride": return deserializeIntoInferenceClassificationOverride; + case "#microsoft.graph.insightsSettings": + return deserializeIntoInsightsSettings; case "#microsoft.graph.internalDomainFederation": return deserializeIntoInternalDomainFederation; case "#microsoft.graph.internetExplorerMode": @@ -19735,6 +20018,8 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoItemAnalytics; case "#microsoft.graph.itemAttachment": return deserializeIntoItemAttachment; + case "#microsoft.graph.itemInsights": + return deserializeIntoItemInsights; case "#microsoft.graph.itemRetentionLabel": return deserializeIntoItemRetentionLabel; case "#microsoft.graph.landingPage": @@ -20347,6 +20632,8 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoServicePrincipal; case "#microsoft.graph.servicePrincipalRiskDetection": return deserializeIntoServicePrincipalRiskDetection; + case "#microsoft.graph.serviceStorageQuotaBreakdown": + return deserializeIntoServiceStorageQuotaBreakdown; case "#microsoft.graph.serviceUpdateMessage": return deserializeIntoServiceUpdateMessage; case "#microsoft.graph.settingStateDeviceSummary": @@ -20403,6 +20690,10 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoStartHoldMusicOperation; case "#microsoft.graph.stopHoldMusicOperation": return deserializeIntoStopHoldMusicOperation; + case "#microsoft.graph.storageQuotaBreakdown": + return deserializeIntoStorageQuotaBreakdown; + case "#microsoft.graph.storageSettings": + return deserializeIntoStorageSettings; case "#microsoft.graph.stsPolicy": return deserializeIntoStsPolicy; case "#microsoft.graph.subjectRightsRequest": @@ -20557,6 +20848,8 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoUnifiedRoleScheduleBase; case "#microsoft.graph.unifiedRoleScheduleInstanceBase": return deserializeIntoUnifiedRoleScheduleInstanceBase; + case "#microsoft.graph.unifiedStorageQuota": + return deserializeIntoUnifiedStorageQuota; case "#microsoft.graph.unmuteParticipantOperation": return deserializeIntoUnmuteParticipantOperation; case "#microsoft.graph.updateRecordingStatusOperation": @@ -20623,6 +20916,8 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoUserFlowLanguageConfiguration; case "#microsoft.graph.userFlowLanguagePage": return deserializeIntoUserFlowLanguagePage; + case "#microsoft.graph.userInsightsSettings": + return deserializeIntoUserInsightsSettings; case "#microsoft.graph.userInstallStateSummary": return deserializeIntoUserInstallStateSummary; case "#microsoft.graph.userRegistrationDetails": @@ -20633,6 +20928,8 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoUserSettings; case "#microsoft.graph.userSignInInsight": return deserializeIntoUserSignInInsight; + case "#microsoft.graph.userStorage": + return deserializeIntoUserStorage; case "#microsoft.graph.userTeamwork": return deserializeIntoUserTeamwork; case "#microsoft.graph.verticalSection": @@ -20641,14 +20938,28 @@ export function createEntityFromDiscriminatorValue(parseNode: ParseNode | undefi return deserializeIntoVirtualEndpoint; case "#microsoft.graph.virtualEvent": return deserializeIntoVirtualEvent; + case "#microsoft.graph.virtualEventPresenter": + return deserializeIntoVirtualEventPresenter; case "#microsoft.graph.virtualEventRegistration": return deserializeIntoVirtualEventRegistration; + case "#microsoft.graph.virtualEventRegistrationConfiguration": + return deserializeIntoVirtualEventRegistrationConfiguration; + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return deserializeIntoVirtualEventRegistrationCustomQuestion; + case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": + return deserializeIntoVirtualEventRegistrationPredefinedQuestion; + case "#microsoft.graph.virtualEventRegistrationQuestionBase": + return deserializeIntoVirtualEventRegistrationQuestionBase; case "#microsoft.graph.virtualEventSession": return deserializeIntoVirtualEventSession; case "#microsoft.graph.virtualEventsRoot": return deserializeIntoVirtualEventsRoot; + case "#microsoft.graph.virtualEventTownhall": + return deserializeIntoVirtualEventTownhall; case "#microsoft.graph.virtualEventWebinar": return deserializeIntoVirtualEventWebinar; + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": + return deserializeIntoVirtualEventWebinarRegistrationConfiguration; case "#microsoft.graph.voiceAuthenticationMethodConfiguration": return deserializeIntoVoiceAuthenticationMethodConfiguration; case "#microsoft.graph.vppToken": @@ -22067,6 +22378,14 @@ export function createInitiatorFromDiscriminatorValue(parseNode: ParseNode | und export function createInsightIdentityFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoInsightIdentity; } +/** + * 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 {InsightsSettings} + */ +export function createInsightsSettingsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoInsightsSettings; +} /** * 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 @@ -22628,6 +22947,14 @@ export function createItemAttachmentFromDiscriminatorValue(parseNode: ParseNode export function createItemBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoItemBody; } +/** + * 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 {ItemInsights} + */ +export function createItemInsightsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoItemInsights; +} /** * 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 @@ -23987,6 +24314,17 @@ export function createMeetingInfoFromDiscriminatorValue(parseNode: ParseNode | u * @returns {MeetingParticipantInfo} */ export function createMeetingParticipantInfoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.virtualEventPresenterInfo": + return deserializeIntoVirtualEventPresenterInfo; + } + } + } return deserializeIntoMeetingParticipantInfo; } /** @@ -24859,6 +25197,17 @@ export function createOfferShiftRequestFromDiscriminatorValue(parseNode: ParseNo * @returns {OfficeGraphInsights} */ export function createOfficeGraphInsightsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.itemInsights": + return deserializeIntoItemInsights; + } + } + } return deserializeIntoOfficeGraphInsights; } /** @@ -28501,6 +28850,22 @@ export function createServiceProvisioningErrorFromDiscriminatorValue(parseNode: export function createServiceProvisioningXmlErrorFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoServiceProvisioningXmlError; } +/** + * 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 {ServiceStorageQuotaBreakdownCollectionResponse} + */ +export function createServiceStorageQuotaBreakdownCollectionResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoServiceStorageQuotaBreakdownCollectionResponse; +} +/** + * 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 {ServiceStorageQuotaBreakdown} + */ +export function createServiceStorageQuotaBreakdownFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoServiceStorageQuotaBreakdown; +} /** * 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 @@ -29171,6 +29536,33 @@ export function createStorageFromDiscriminatorValue(parseNode: ParseNode | undef export function createStoragePlanInformationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoStoragePlanInformation; } +/** + * 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 {StorageQuotaBreakdown} + */ +export function createStorageQuotaBreakdownFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.serviceStorageQuotaBreakdown": + return deserializeIntoServiceStorageQuotaBreakdown; + } + } + } + return deserializeIntoStorageQuotaBreakdown; +} +/** + * 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 {StorageSettings} + */ +export function createStorageSettingsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoStorageSettings; +} /** * 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 @@ -31136,6 +31528,14 @@ export function createUnifiedRoleScheduleInstanceBaseFromDiscriminatorValue(pars } return deserializeIntoUnifiedRoleScheduleInstanceBase; } +/** + * 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 {UnifiedStorageQuota} + */ +export function createUnifiedStorageQuotaFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoUnifiedStorageQuota; +} /** * 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 @@ -31765,6 +32165,14 @@ export function createUserFromDiscriminatorValue(parseNode: ParseNode | undefine export function createUserIdentityFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoUserIdentity; } +/** + * 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 {UserInsightsSettings} + */ +export function createUserInsightsSettingsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoUserInsightsSettings; +} /** * 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 @@ -31901,6 +32309,14 @@ export function createUserSimulationDetailsFromDiscriminatorValue(parseNode: Par export function createUserSimulationEventInfoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoUserSimulationEventInfo; } +/** + * 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 {UserStorage} + */ +export function createUserStorageFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoUserStorage; +} /** * 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 @@ -31993,6 +32409,8 @@ export function createVirtualEventFromDiscriminatorValue(parseNode: ParseNode | const mappingValue = mappingValueNode.getStringValue(); if (mappingValue) { switch (mappingValue) { + case "#microsoft.graph.virtualEventTownhall": + return deserializeIntoVirtualEventTownhall; case "#microsoft.graph.virtualEventWebinar": return deserializeIntoVirtualEventWebinar; } @@ -32000,6 +32418,38 @@ export function createVirtualEventFromDiscriminatorValue(parseNode: ParseNode | } return deserializeIntoVirtualEvent; } +/** + * 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 {VirtualEventPresenterCollectionResponse} + */ +export function createVirtualEventPresenterCollectionResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventPresenterCollectionResponse; +} +/** + * 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 {VirtualEventPresenterDetails} + */ +export function createVirtualEventPresenterDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventPresenterDetails; +} +/** + * 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 {VirtualEventPresenter} + */ +export function createVirtualEventPresenterFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventPresenter; +} +/** + * 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 {VirtualEventPresenterInfo} + */ +export function createVirtualEventPresenterInfoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventPresenterInfo; +} /** * 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 @@ -32008,6 +32458,33 @@ export function createVirtualEventFromDiscriminatorValue(parseNode: ParseNode | export function createVirtualEventRegistrationCollectionResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoVirtualEventRegistrationCollectionResponse; } +/** + * 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 {VirtualEventRegistrationConfiguration} + */ +export function createVirtualEventRegistrationConfigurationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": + return deserializeIntoVirtualEventWebinarRegistrationConfiguration; + } + } + } + return deserializeIntoVirtualEventRegistrationConfiguration; +} +/** + * 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 {VirtualEventRegistrationCustomQuestion} + */ +export function createVirtualEventRegistrationCustomQuestionFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventRegistrationCustomQuestion; +} /** * 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 @@ -32016,6 +32493,14 @@ export function createVirtualEventRegistrationCollectionResponseFromDiscriminato export function createVirtualEventRegistrationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoVirtualEventRegistration; } +/** + * 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 {VirtualEventRegistrationPredefinedQuestion} + */ +export function createVirtualEventRegistrationPredefinedQuestionFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventRegistrationPredefinedQuestion; +} /** * 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 @@ -32024,6 +32509,35 @@ export function createVirtualEventRegistrationFromDiscriminatorValue(parseNode: export function createVirtualEventRegistrationQuestionAnswerFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoVirtualEventRegistrationQuestionAnswer; } +/** + * 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 {VirtualEventRegistrationQuestionBaseCollectionResponse} + */ +export function createVirtualEventRegistrationQuestionBaseCollectionResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventRegistrationQuestionBaseCollectionResponse; +} +/** + * 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 {VirtualEventRegistrationQuestionBase} + */ +export function createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + if(!parseNode) throw new Error("parseNode cannot be undefined"); + const mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode) { + const mappingValue = mappingValueNode.getStringValue(); + if (mappingValue) { + switch (mappingValue) { + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return deserializeIntoVirtualEventRegistrationCustomQuestion; + case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": + return deserializeIntoVirtualEventRegistrationPredefinedQuestion; + } + } + } + return deserializeIntoVirtualEventRegistrationQuestionBase; +} /** * 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 @@ -32048,6 +32562,22 @@ export function createVirtualEventSessionFromDiscriminatorValue(parseNode: Parse export function createVirtualEventsRootFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoVirtualEventsRoot; } +/** + * 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 {VirtualEventTownhallCollectionResponse} + */ +export function createVirtualEventTownhallCollectionResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventTownhallCollectionResponse; +} +/** + * 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 {VirtualEventTownhall} + */ +export function createVirtualEventTownhallFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventTownhall; +} /** * 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 @@ -32064,6 +32594,14 @@ export function createVirtualEventWebinarCollectionResponseFromDiscriminatorValu export function createVirtualEventWebinarFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoVirtualEventWebinar; } +/** + * 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 {VirtualEventWebinarRegistrationConfiguration} + */ +export function createVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoVirtualEventWebinarRegistrationConfiguration; +} /** * 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 @@ -33625,6 +34163,10 @@ export interface CrossTenantAccessPolicyConfigurationDefault extends Entity, Par * If true, the default configuration is set to the system default configuration. If false, the default settings are customized. */ isServiceDefault?: boolean; + /** + * Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. + */ + tenantRestrictions?: CrossTenantAccessPolicyTenantRestrictions; } export interface CrossTenantAccessPolicyConfigurationPartner extends AdditionalDataHolder, BackedModel, Parsable { /** @@ -33679,6 +34221,10 @@ export interface CrossTenantAccessPolicyConfigurationPartner extends AdditionalD * The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. */ tenantId?: string; + /** + * Defines the partner-specific tenant restrictions configuration for users in your organization who access a partner organization using partner supplied identities on your network or devices. + */ + tenantRestrictions?: CrossTenantAccessPolicyTenantRestrictions; } export interface CrossTenantAccessPolicyConfigurationPartnerCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -33758,6 +34304,12 @@ export interface CrossTenantAccessPolicyTargetConfiguration extends AdditionalDa } export type CrossTenantAccessPolicyTargetConfigurationAccessType = (typeof CrossTenantAccessPolicyTargetConfigurationAccessTypeObject)[keyof typeof CrossTenantAccessPolicyTargetConfigurationAccessTypeObject]; export type CrossTenantAccessPolicyTargetType = (typeof CrossTenantAccessPolicyTargetTypeObject)[keyof typeof CrossTenantAccessPolicyTargetTypeObject]; +export interface CrossTenantAccessPolicyTenantRestrictions extends CrossTenantAccessPolicyB2BSetting, Parsable { + /** + * Defines the rule for filtering devices and whether devices that satisfy the rule should be allowed or blocked. This property isn't supported on the server side yet. + */ + devices?: DevicesFilter; +} export interface CrossTenantIdentitySyncPolicyPartner extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -33820,6 +34372,8 @@ export interface CurrencyColumn extends AdditionalDataHolder, BackedModel, Parsa */ odataType?: string; } +export interface CustomAppManagementConfiguration extends AppManagementConfiguration, Parsable { +} export interface CustomAuthenticationExtension extends CustomCalloutExtension, Parsable { } export interface CustomAuthenticationExtensionCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { @@ -36762,6 +37316,7 @@ export function deserializeIntoApplication(application: Partial | u "isFallbackPublicClient": n => { application.isFallbackPublicClient = n.getBooleanValue(); }, "keyCredentials": n => { application.keyCredentials = n.getCollectionOfObjectValues(createKeyCredentialFromDiscriminatorValue); }, "logo": n => { application.logo = n.getStringValue(); }, + "nativeAuthenticationApisEnabled": n => { application.nativeAuthenticationApisEnabled = n.getCollectionOfEnumValues(NativeAuthenticationApisEnabledObject); }, "notes": n => { application.notes = n.getStringValue(); }, "oauth2RequirePostResponse": n => { application.oauth2RequirePostResponse = n.getBooleanValue(); }, "optionalClaims": n => { application.optionalClaims = n.getObjectValue(createOptionalClaimsFromDiscriminatorValue); }, @@ -36910,6 +37465,15 @@ export function deserializeIntoAppLogCollectionRequestCollectionResponse(appLogC "value": n => { appLogCollectionRequestCollectionResponse.value = n.getCollectionOfObjectValues(createAppLogCollectionRequestFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoAppManagementApplicationConfiguration(appManagementApplicationConfiguration: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoAppManagementConfiguration(appManagementApplicationConfiguration), + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -36931,7 +37495,7 @@ export function deserializeIntoAppManagementPolicy(appManagementPolicy: Partial< ...deserializeIntoPolicyBase(appManagementPolicy), "appliesTo": n => { appManagementPolicy.appliesTo = n.getCollectionOfObjectValues(createDirectoryObjectFromDiscriminatorValue); }, "isEnabled": n => { appManagementPolicy.isEnabled = n.getBooleanValue(); }, - "restrictions": n => { appManagementPolicy.restrictions = n.getObjectValue(createAppManagementConfigurationFromDiscriminatorValue); }, + "restrictions": n => { appManagementPolicy.restrictions = n.getObjectValue(createCustomAppManagementConfigurationFromDiscriminatorValue); }, } } /** @@ -36944,6 +37508,15 @@ export function deserializeIntoAppManagementPolicyCollectionResponse(appManageme "value": n => { appManagementPolicyCollectionResponse.value = n.getCollectionOfObjectValues(createAppManagementPolicyFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoAppManagementServicePrincipalConfiguration(appManagementServicePrincipalConfiguration: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoAppManagementConfiguration(appManagementServicePrincipalConfiguration), + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -38537,6 +39110,8 @@ export function deserializeIntoBookingAppointment(bookingAppointment: Partial { bookingAppointment.additionalInformation = n.getStringValue(); }, "anonymousJoinWebUrl": n => { bookingAppointment.anonymousJoinWebUrl = n.getStringValue(); }, + "appointmentLabel": n => { bookingAppointment.appointmentLabel = n.getStringValue(); }, + "createdDateTime": n => { bookingAppointment.createdDateTime = n.getDateValue(); }, "customerEmailAddress": n => { bookingAppointment.customerEmailAddress = n.getStringValue(); }, "customerName": n => { bookingAppointment.customerName = n.getStringValue(); }, "customerNotes": n => { bookingAppointment.customerNotes = n.getStringValue(); }, @@ -38546,8 +39121,10 @@ export function deserializeIntoBookingAppointment(bookingAppointment: Partial { bookingAppointment.duration = n.getDurationValue(); }, "endDateTime": n => { bookingAppointment.endDateTime = n.getObjectValue(createDateTimeTimeZoneFromDiscriminatorValue); }, "filledAttendeesCount": n => { bookingAppointment.filledAttendeesCount = n.getNumberValue(); }, + "isCustomerAllowedToManageBooking": n => { bookingAppointment.isCustomerAllowedToManageBooking = n.getBooleanValue(); }, "isLocationOnline": n => { bookingAppointment.isLocationOnline = n.getBooleanValue(); }, "joinWebUrl": n => { bookingAppointment.joinWebUrl = n.getStringValue(); }, + "lastUpdatedDateTime": n => { bookingAppointment.lastUpdatedDateTime = n.getDateValue(); }, "maximumAttendeesCount": n => { bookingAppointment.maximumAttendeesCount = n.getNumberValue(); }, "optOutOfCustomerEmail": n => { bookingAppointment.optOutOfCustomerEmail = n.getBooleanValue(); }, "postBuffer": n => { bookingAppointment.postBuffer = n.getDurationValue(); }, @@ -38584,9 +39161,11 @@ export function deserializeIntoBookingBusiness(bookingBusiness: Partial { bookingBusiness.address = n.getObjectValue(createPhysicalAddressFromDiscriminatorValue); }, "appointments": n => { bookingBusiness.appointments = n.getCollectionOfObjectValues(createBookingAppointmentFromDiscriminatorValue); }, + "bookingPageSettings": n => { bookingBusiness.bookingPageSettings = n.getObjectValue(createBookingPageSettingsFromDiscriminatorValue); }, "businessHours": n => { bookingBusiness.businessHours = n.getCollectionOfObjectValues(createBookingWorkHoursFromDiscriminatorValue); }, "businessType": n => { bookingBusiness.businessType = n.getStringValue(); }, "calendarView": n => { bookingBusiness.calendarView = n.getCollectionOfObjectValues(createBookingAppointmentFromDiscriminatorValue); }, + "createdDateTime": n => { bookingBusiness.createdDateTime = n.getDateValue(); }, "customers": n => { bookingBusiness.customers = n.getCollectionOfObjectValues(createBookingCustomerBaseFromDiscriminatorValue); }, "customQuestions": n => { bookingBusiness.customQuestions = n.getCollectionOfObjectValues(createBookingCustomQuestionFromDiscriminatorValue); }, "defaultCurrencyIso": n => { bookingBusiness.defaultCurrencyIso = n.getStringValue(); }, @@ -38594,6 +39173,7 @@ export function deserializeIntoBookingBusiness(bookingBusiness: Partial { bookingBusiness.email = n.getStringValue(); }, "isPublished": n => { bookingBusiness.isPublished = n.getBooleanValue(); }, "languageTag": n => { bookingBusiness.languageTag = n.getStringValue(); }, + "lastUpdatedDateTime": n => { bookingBusiness.lastUpdatedDateTime = n.getDateValue(); }, "phone": n => { bookingBusiness.phone = n.getStringValue(); }, "publicUrl": n => { bookingBusiness.publicUrl = n.getStringValue(); }, "schedulingPolicy": n => { bookingBusiness.schedulingPolicy = n.getObjectValue(createBookingSchedulingPolicyFromDiscriminatorValue); }, @@ -38640,8 +39220,10 @@ export function deserializeIntoBookingCustomer(bookingCustomer: Partial { bookingCustomer.addresses = n.getCollectionOfObjectValues(createPhysicalAddressFromDiscriminatorValue); }, + "createdDateTime": n => { bookingCustomer.createdDateTime = n.getDateValue(); }, "displayName": n => { bookingCustomer.displayName = n.getStringValue(); }, "emailAddress": n => { bookingCustomer.emailAddress = n.getStringValue(); }, + "lastUpdatedDateTime": n => { bookingCustomer.lastUpdatedDateTime = n.getDateValue(); }, "phones": n => { bookingCustomer.phones = n.getCollectionOfObjectValues(createPhoneFromDiscriminatorValue); }, } } @@ -38700,7 +39282,9 @@ export function deserializeIntoBookingCustomQuestion(bookingCustomQuestion: Part ...deserializeIntoEntity(bookingCustomQuestion), "answerInputType": n => { bookingCustomQuestion.answerInputType = n.getEnumValue(AnswerInputTypeObject); }, "answerOptions": n => { bookingCustomQuestion.answerOptions = n.getCollectionOfPrimitiveValues(); }, + "createdDateTime": n => { bookingCustomQuestion.createdDateTime = n.getDateValue(); }, "displayName": n => { bookingCustomQuestion.displayName = n.getStringValue(); }, + "lastUpdatedDateTime": n => { bookingCustomQuestion.lastUpdatedDateTime = n.getDateValue(); }, } } /** @@ -38713,6 +39297,27 @@ export function deserializeIntoBookingCustomQuestionCollectionResponse(bookingCu "value": n => { bookingCustomQuestionCollectionResponse.value = n.getCollectionOfObjectValues(createBookingCustomQuestionFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoBookingPageSettings(bookingPageSettings: Partial | undefined = {}) : Record void> { + return { + "accessControl": n => { bookingPageSettings.accessControl = n.getEnumValue(BookingPageAccessControlObject); }, + "backingStoreEnabled": n => { bookingPageSettings.backingStoreEnabled = true; }, + "bookingPageColorCode": n => { bookingPageSettings.bookingPageColorCode = n.getStringValue(); }, + "businessTimeZone": n => { bookingPageSettings.businessTimeZone = n.getStringValue(); }, + "customerConsentMessage": n => { bookingPageSettings.customerConsentMessage = n.getStringValue(); }, + "enforceOneTimePassword": n => { bookingPageSettings.enforceOneTimePassword = n.getBooleanValue(); }, + "isBusinessLogoDisplayEnabled": n => { bookingPageSettings.isBusinessLogoDisplayEnabled = n.getBooleanValue(); }, + "isCustomerConsentEnabled": n => { bookingPageSettings.isCustomerConsentEnabled = n.getBooleanValue(); }, + "isSearchEngineIndexabilityDisabled": n => { bookingPageSettings.isSearchEngineIndexabilityDisabled = n.getBooleanValue(); }, + "isTimeSlotTimeZoneSetToBusinessTimeZone": n => { bookingPageSettings.isTimeSlotTimeZoneSetToBusinessTimeZone = n.getBooleanValue(); }, + "@odata.type": n => { bookingPageSettings.odataType = n.getStringValue(); }, + "privacyPolicyWebUrl": n => { bookingPageSettings.privacyPolicyWebUrl = n.getStringValue(); }, + "termsAndConditionsWebUrl": n => { bookingPageSettings.termsAndConditionsWebUrl = n.getStringValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -38755,6 +39360,29 @@ export function deserializeIntoBookingReminder(bookingReminder: Partial { bookingReminder.recipients = n.getEnumValue(BookingReminderRecipientsObject); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoBookingsAvailability(bookingsAvailability: Partial | undefined = {}) : Record void> { + return { + "availabilityType": n => { bookingsAvailability.availabilityType = n.getEnumValue(BookingsServiceAvailabilityTypeObject); }, + "backingStoreEnabled": n => { bookingsAvailability.backingStoreEnabled = true; }, + "businessHours": n => { bookingsAvailability.businessHours = n.getCollectionOfObjectValues(createBookingWorkHoursFromDiscriminatorValue); }, + "@odata.type": n => { bookingsAvailability.odataType = n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoBookingsAvailabilityWindow(bookingsAvailabilityWindow: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBookingsAvailability(bookingsAvailabilityWindow), + "endDate": n => { bookingsAvailabilityWindow.endDate = n.getDateOnlyValue(); }, + "startDate": n => { bookingsAvailabilityWindow.startDate = n.getDateOnlyValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -38763,6 +39391,9 @@ export function deserializeIntoBookingSchedulingPolicy(bookingSchedulingPolicy: return { "allowStaffSelection": n => { bookingSchedulingPolicy.allowStaffSelection = n.getBooleanValue(); }, "backingStoreEnabled": n => { bookingSchedulingPolicy.backingStoreEnabled = true; }, + "customAvailabilities": n => { bookingSchedulingPolicy.customAvailabilities = n.getCollectionOfObjectValues(createBookingsAvailabilityWindowFromDiscriminatorValue); }, + "generalAvailability": n => { bookingSchedulingPolicy.generalAvailability = n.getObjectValue(createBookingsAvailabilityFromDiscriminatorValue); }, + "isMeetingInviteToCustomersEnabled": n => { bookingSchedulingPolicy.isMeetingInviteToCustomersEnabled = n.getBooleanValue(); }, "maximumAdvance": n => { bookingSchedulingPolicy.maximumAdvance = n.getDurationValue(); }, "minimumLeadTime": n => { bookingSchedulingPolicy.minimumLeadTime = n.getDurationValue(); }, "@odata.type": n => { bookingSchedulingPolicy.odataType = n.getStringValue(); }, @@ -38778,6 +39409,7 @@ export function deserializeIntoBookingService(bookingService: Partial { bookingService.additionalInformation = n.getStringValue(); }, + "createdDateTime": n => { bookingService.createdDateTime = n.getDateValue(); }, "customQuestions": n => { bookingService.customQuestions = n.getCollectionOfObjectValues(createBookingQuestionAssignmentFromDiscriminatorValue); }, "defaultDuration": n => { bookingService.defaultDuration = n.getDurationValue(); }, "defaultLocation": n => { bookingService.defaultLocation = n.getObjectValue(createLocationFromDiscriminatorValue); }, @@ -38787,9 +39419,11 @@ export function deserializeIntoBookingService(bookingService: Partial { bookingService.description = n.getStringValue(); }, "displayName": n => { bookingService.displayName = n.getStringValue(); }, "isAnonymousJoinEnabled": n => { bookingService.isAnonymousJoinEnabled = n.getBooleanValue(); }, + "isCustomerAllowedToManageBooking": n => { bookingService.isCustomerAllowedToManageBooking = n.getBooleanValue(); }, "isHiddenFromCustomers": n => { bookingService.isHiddenFromCustomers = n.getBooleanValue(); }, "isLocationOnline": n => { bookingService.isLocationOnline = n.getBooleanValue(); }, "languageTag": n => { bookingService.languageTag = n.getStringValue(); }, + "lastUpdatedDateTime": n => { bookingService.lastUpdatedDateTime = n.getDateValue(); }, "maximumAttendeesCount": n => { bookingService.maximumAttendeesCount = n.getNumberValue(); }, "notes": n => { bookingService.notes = n.getStringValue(); }, "postBuffer": n => { bookingService.postBuffer = n.getDurationValue(); }, @@ -38818,9 +39452,11 @@ export function deserializeIntoBookingStaffMember(bookingStaffMember: Partial { bookingStaffMember.availabilityIsAffectedByPersonalCalendar = n.getBooleanValue(); }, + "createdDateTime": n => { bookingStaffMember.createdDateTime = n.getDateValue(); }, "displayName": n => { bookingStaffMember.displayName = n.getStringValue(); }, "emailAddress": n => { bookingStaffMember.emailAddress = n.getStringValue(); }, "isEmailNotificationEnabled": n => { bookingStaffMember.isEmailNotificationEnabled = n.getBooleanValue(); }, + "lastUpdatedDateTime": n => { bookingStaffMember.lastUpdatedDateTime = n.getDateValue(); }, "membershipStatus": n => { bookingStaffMember.membershipStatus = n.getEnumValue(BookingStaffMembershipStatusObject); }, "role": n => { bookingStaffMember.role = n.getEnumValue(BookingStaffRoleObject); }, "timeZone": n => { bookingStaffMember.timeZone = n.getStringValue(); }, @@ -39529,6 +40165,7 @@ export function deserializeIntoChannel(channel: Partial | undefined = { "displayName": n => { channel.displayName = n.getStringValue(); }, "email": n => { channel.email = n.getStringValue(); }, "filesFolder": n => { channel.filesFolder = n.getObjectValue(createDriveItemFromDiscriminatorValue); }, + "isArchived": n => { channel.isArchived = n.getBooleanValue(); }, "isFavoriteByDefault": n => { channel.isFavoriteByDefault = n.getBooleanValue(); }, "members": n => { channel.members = n.getCollectionOfObjectValues(createConversationMemberFromDiscriminatorValue); }, "membershipType": n => { channel.membershipType = n.getEnumValue(ChannelMembershipTypeObject); }, @@ -41565,6 +42202,7 @@ export function deserializeIntoCrossTenantAccessPolicyConfigurationDefault(cross "inboundTrust": n => { crossTenantAccessPolicyConfigurationDefault.inboundTrust = n.getObjectValue(createCrossTenantAccessPolicyInboundTrustFromDiscriminatorValue); }, "invitationRedemptionIdentityProviderConfiguration": n => { crossTenantAccessPolicyConfigurationDefault.invitationRedemptionIdentityProviderConfiguration = n.getObjectValue(createDefaultInvitationRedemptionIdentityProviderConfigurationFromDiscriminatorValue); }, "isServiceDefault": n => { crossTenantAccessPolicyConfigurationDefault.isServiceDefault = n.getBooleanValue(); }, + "tenantRestrictions": n => { crossTenantAccessPolicyConfigurationDefault.tenantRestrictions = n.getObjectValue(createCrossTenantAccessPolicyTenantRestrictionsFromDiscriminatorValue); }, } } /** @@ -41585,6 +42223,7 @@ export function deserializeIntoCrossTenantAccessPolicyConfigurationPartner(cross "isServiceProvider": n => { crossTenantAccessPolicyConfigurationPartner.isServiceProvider = n.getBooleanValue(); }, "@odata.type": n => { crossTenantAccessPolicyConfigurationPartner.odataType = n.getStringValue(); }, "tenantId": n => { crossTenantAccessPolicyConfigurationPartner.tenantId = n.getStringValue(); }, + "tenantRestrictions": n => { crossTenantAccessPolicyConfigurationPartner.tenantRestrictions = n.getObjectValue(createCrossTenantAccessPolicyTenantRestrictionsFromDiscriminatorValue); }, } } /** @@ -41634,6 +42273,16 @@ export function deserializeIntoCrossTenantAccessPolicyTargetConfiguration(crossT "targets": n => { crossTenantAccessPolicyTargetConfiguration.targets = n.getCollectionOfObjectValues(createCrossTenantAccessPolicyTargetFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoCrossTenantAccessPolicyTenantRestrictions(crossTenantAccessPolicyTenantRestrictions: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoCrossTenantAccessPolicyB2BSetting(crossTenantAccessPolicyTenantRestrictions), + "devices": n => { crossTenantAccessPolicyTenantRestrictions.devices = n.getObjectValue(createDevicesFilterFromDiscriminatorValue); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -41669,6 +42318,15 @@ export function deserializeIntoCurrencyColumn(currencyColumn: Partial { currencyColumn.odataType = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoCustomAppManagementConfiguration(customAppManagementConfiguration: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoAppManagementConfiguration(customAppManagementConfiguration), + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -43572,6 +44230,18 @@ export function deserializeIntoDeviceRegistrationPolicy(deviceRegistrationPolicy "userDeviceQuota": n => { deviceRegistrationPolicy.userDeviceQuota = n.getNumberValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoDevicesFilter(devicesFilter: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { devicesFilter.backingStoreEnabled = true; }, + "mode": n => { devicesFilter.mode = n.getEnumValue(CrossTenantAccessPolicyTargetConfigurationAccessTypeObject); }, + "@odata.type": n => { devicesFilter.odataType = n.getStringValue(); }, + "rule": n => { devicesFilter.rule = n.getStringValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -46845,6 +47515,17 @@ export function deserializeIntoInsightIdentity(insightIdentity: Partial { insightIdentity.odataType = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoInsightsSettings(insightsSettings: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(insightsSettings), + "disabledForGroup": n => { insightsSettings.disabledForGroup = n.getStringValue(); }, + "isEnabledInOrganization": n => { insightsSettings.isEnabledInOrganization = n.getBooleanValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -47784,6 +48465,15 @@ export function deserializeIntoItemBody(itemBody: Partial | undefined "@odata.type": n => { itemBody.odataType = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoItemInsights(itemInsights: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoOfficeGraphInsights(itemInsights), + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -52178,6 +52868,7 @@ export function deserializeIntoPendingOperations(pendingOperations: Partial | undefined = {}) : Record void> { return { ...deserializeIntoEntity(peopleAdminSettings), + "itemInsights": n => { peopleAdminSettings.itemInsights = n.getObjectValue(createInsightsSettingsFromDiscriminatorValue); }, "profileCardProperties": n => { peopleAdminSettings.profileCardProperties = n.getCollectionOfObjectValues(createProfileCardPropertyFromDiscriminatorValue); }, "pronouns": n => { peopleAdminSettings.pronouns = n.getObjectValue(createPronounsSettingsFromDiscriminatorValue); }, } @@ -56075,6 +56766,25 @@ export function deserializeIntoServiceProvisioningXmlError(serviceProvisioningXm "errorDetail": n => { serviceProvisioningXmlError.errorDetail = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoServiceStorageQuotaBreakdown(serviceStorageQuotaBreakdown: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoStorageQuotaBreakdown(serviceStorageQuotaBreakdown), + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoServiceStorageQuotaBreakdownCollectionResponse(serviceStorageQuotaBreakdownCollectionResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(serviceStorageQuotaBreakdownCollectionResponse), + "value": n => { serviceStorageQuotaBreakdownCollectionResponse.value = n.getCollectionOfObjectValues(createServiceStorageQuotaBreakdownFromDiscriminatorValue); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -57156,6 +57866,7 @@ export function deserializeIntoStorage(storage: Partial | undefined = { "backingStoreEnabled": n => { storage.backingStoreEnabled = true; }, "fileStorage": n => { storage.fileStorage = n.getObjectValue(createFileStorageFromDiscriminatorValue); }, "@odata.type": n => { storage.odataType = n.getStringValue(); }, + "settings": n => { storage.settings = n.getObjectValue(createStorageSettingsFromDiscriminatorValue); }, } } /** @@ -57169,6 +57880,28 @@ export function deserializeIntoStoragePlanInformation(storagePlanInformation: Pa "upgradeAvailable": n => { storagePlanInformation.upgradeAvailable = n.getBooleanValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoStorageQuotaBreakdown(storageQuotaBreakdown: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(storageQuotaBreakdown), + "displayName": n => { storageQuotaBreakdown.displayName = n.getStringValue(); }, + "manageWebUrl": n => { storageQuotaBreakdown.manageWebUrl = n.getStringValue(); }, + "used": n => { storageQuotaBreakdown.used = n.getNumberValue(); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoStorageSettings(storageSettings: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(storageSettings), + "quota": n => { storageSettings.quota = n.getObjectValue(createUnifiedStorageQuotaFromDiscriminatorValue); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -58688,9 +59421,9 @@ export function deserializeIntoTemporaryAccessPassAuthenticationMethodConfigurat export function deserializeIntoTenantAppManagementPolicy(tenantAppManagementPolicy: Partial | undefined = {}) : Record void> { return { ...deserializeIntoPolicyBase(tenantAppManagementPolicy), - "applicationRestrictions": n => { tenantAppManagementPolicy.applicationRestrictions = n.getObjectValue(createAppManagementConfigurationFromDiscriminatorValue); }, + "applicationRestrictions": n => { tenantAppManagementPolicy.applicationRestrictions = n.getObjectValue(createAppManagementApplicationConfigurationFromDiscriminatorValue); }, "isEnabled": n => { tenantAppManagementPolicy.isEnabled = n.getBooleanValue(); }, - "servicePrincipalRestrictions": n => { tenantAppManagementPolicy.servicePrincipalRestrictions = n.getObjectValue(createAppManagementConfigurationFromDiscriminatorValue); }, + "servicePrincipalRestrictions": n => { tenantAppManagementPolicy.servicePrincipalRestrictions = n.getObjectValue(createAppManagementServicePrincipalConfigurationFromDiscriminatorValue); }, } } /** @@ -59868,6 +60601,22 @@ export function deserializeIntoUnifiedRoleScheduleInstanceBase(unifiedRoleSchedu "roleDefinitionId": n => { unifiedRoleScheduleInstanceBase.roleDefinitionId = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoUnifiedStorageQuota(unifiedStorageQuota: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(unifiedStorageQuota), + "deleted": n => { unifiedStorageQuota.deleted = n.getNumberValue(); }, + "manageWebUrl": n => { unifiedStorageQuota.manageWebUrl = n.getStringValue(); }, + "remaining": n => { unifiedStorageQuota.remaining = n.getNumberValue(); }, + "services": n => { unifiedStorageQuota.services = n.getCollectionOfObjectValues(createServiceStorageQuotaBreakdownFromDiscriminatorValue); }, + "state": n => { unifiedStorageQuota.state = n.getStringValue(); }, + "total": n => { unifiedStorageQuota.total = n.getNumberValue(); }, + "used": n => { unifiedStorageQuota.used = n.getNumberValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -60049,7 +60798,7 @@ export function deserializeIntoUser(user: Partial | undefined = {}) : Reco "identities": n => { user.identities = n.getCollectionOfObjectValues(createObjectIdentityFromDiscriminatorValue); }, "imAddresses": n => { user.imAddresses = n.getCollectionOfPrimitiveValues(); }, "inferenceClassification": n => { user.inferenceClassification = n.getObjectValue(createInferenceClassificationFromDiscriminatorValue); }, - "insights": n => { user.insights = n.getObjectValue(createOfficeGraphInsightsFromDiscriminatorValue); }, + "insights": n => { user.insights = n.getObjectValue(createItemInsightsFromDiscriminatorValue); }, "interests": n => { user.interests = n.getCollectionOfPrimitiveValues(); }, "isResourceAccount": n => { user.isResourceAccount = n.getBooleanValue(); }, "jobTitle": n => { user.jobTitle = n.getStringValue(); }, @@ -61013,6 +61762,16 @@ export function deserializeIntoUserIdentity(userIdentity: Partial "userPrincipalName": n => { userIdentity.userPrincipalName = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoUserInsightsSettings(userInsightsSettings: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(userInsightsSettings), + "isEnabled": n => { userInsightsSettings.isEnabled = n.getBooleanValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -61198,7 +61957,9 @@ export function deserializeIntoUserSettings(userSettings: Partial ...deserializeIntoEntity(userSettings), "contributionToContentDiscoveryAsOrganizationDisabled": n => { userSettings.contributionToContentDiscoveryAsOrganizationDisabled = n.getBooleanValue(); }, "contributionToContentDiscoveryDisabled": n => { userSettings.contributionToContentDiscoveryDisabled = n.getBooleanValue(); }, + "itemInsights": n => { userSettings.itemInsights = n.getObjectValue(createUserInsightsSettingsFromDiscriminatorValue); }, "shiftPreferences": n => { userSettings.shiftPreferences = n.getObjectValue(createShiftPreferencesFromDiscriminatorValue); }, + "storage": n => { userSettings.storage = n.getObjectValue(createUserStorageFromDiscriminatorValue); }, "windows": n => { userSettings.windows = n.getCollectionOfObjectValues(createWindowsSettingFromDiscriminatorValue); }, } } @@ -61246,6 +62007,16 @@ export function deserializeIntoUserSimulationEventInfo(userSimulationEventInfo: "osPlatformDeviceDetails": n => { userSimulationEventInfo.osPlatformDeviceDetails = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoUserStorage(userStorage: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(userStorage), + "quota": n => { userStorage.quota = n.getObjectValue(createUnifiedStorageQuotaFromDiscriminatorValue); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -61389,6 +62160,7 @@ export function deserializeIntoVirtualEvent(virtualEvent: Partial "description": n => { virtualEvent.description = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, "displayName": n => { virtualEvent.displayName = n.getStringValue(); }, "endDateTime": n => { virtualEvent.endDateTime = n.getObjectValue(createDateTimeTimeZoneFromDiscriminatorValue); }, + "presenters": n => { virtualEvent.presenters = n.getCollectionOfObjectValues(createVirtualEventPresenterFromDiscriminatorValue); }, "sessions": n => { virtualEvent.sessions = n.getCollectionOfObjectValues(createVirtualEventSessionFromDiscriminatorValue); }, "startDateTime": n => { virtualEvent.startDateTime = n.getObjectValue(createDateTimeTimeZoneFromDiscriminatorValue); }, "status": n => { virtualEvent.status = n.getEnumValue(VirtualEventStatusObject); }, @@ -61404,6 +62176,55 @@ export function deserializeIntoVirtualEventCollectionResponse(virtualEventCollec "value": n => { virtualEventCollectionResponse.value = n.getCollectionOfObjectValues(createVirtualEventFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventPresenter(virtualEventPresenter: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(virtualEventPresenter), + "email": n => { virtualEventPresenter.email = n.getStringValue(); }, + "identity": n => { virtualEventPresenter.identity = n.getObjectValue(createIdentityFromDiscriminatorValue); }, + "presenterDetails": n => { virtualEventPresenter.presenterDetails = n.getObjectValue(createVirtualEventPresenterDetailsFromDiscriminatorValue); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventPresenterCollectionResponse(virtualEventPresenterCollectionResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(virtualEventPresenterCollectionResponse), + "value": n => { virtualEventPresenterCollectionResponse.value = n.getCollectionOfObjectValues(createVirtualEventPresenterFromDiscriminatorValue); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventPresenterDetails(virtualEventPresenterDetails: Partial | undefined = {}) : Record void> { + return { + "backingStoreEnabled": n => { virtualEventPresenterDetails.backingStoreEnabled = true; }, + "bio": n => { virtualEventPresenterDetails.bio = n.getObjectValue(createItemBodyFromDiscriminatorValue); }, + "company": n => { virtualEventPresenterDetails.company = n.getStringValue(); }, + "jobTitle": n => { virtualEventPresenterDetails.jobTitle = n.getStringValue(); }, + "linkedInProfileWebUrl": n => { virtualEventPresenterDetails.linkedInProfileWebUrl = n.getStringValue(); }, + "@odata.type": n => { virtualEventPresenterDetails.odataType = n.getStringValue(); }, + "personalSiteWebUrl": n => { virtualEventPresenterDetails.personalSiteWebUrl = n.getStringValue(); }, + "photo": n => { virtualEventPresenterDetails.photo = n.getStringValue(); }, + "twitterProfileWebUrl": n => { virtualEventPresenterDetails.twitterProfileWebUrl = n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventPresenterInfo(virtualEventPresenterInfo: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoMeetingParticipantInfo(virtualEventPresenterInfo), + "presenterDetails": n => { virtualEventPresenterInfo.presenterDetails = n.getObjectValue(createVirtualEventPresenterDetailsFromDiscriminatorValue); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -61415,8 +62236,11 @@ export function deserializeIntoVirtualEventRegistration(virtualEventRegistration "email": n => { virtualEventRegistration.email = n.getStringValue(); }, "firstName": n => { virtualEventRegistration.firstName = n.getStringValue(); }, "lastName": n => { virtualEventRegistration.lastName = n.getStringValue(); }, + "preferredLanguage": n => { virtualEventRegistration.preferredLanguage = n.getStringValue(); }, + "preferredTimezone": n => { virtualEventRegistration.preferredTimezone = n.getStringValue(); }, "registrationDateTime": n => { virtualEventRegistration.registrationDateTime = n.getDateValue(); }, "registrationQuestionAnswers": n => { virtualEventRegistration.registrationQuestionAnswers = n.getCollectionOfObjectValues(createVirtualEventRegistrationQuestionAnswerFromDiscriminatorValue); }, + "sessions": n => { virtualEventRegistration.sessions = n.getCollectionOfObjectValues(createVirtualEventSessionFromDiscriminatorValue); }, "status": n => { virtualEventRegistration.status = n.getEnumValue(VirtualEventAttendeeRegistrationStatusObject); }, "userId": n => { virtualEventRegistration.userId = n.getStringValue(); }, } @@ -61431,6 +62255,39 @@ export function deserializeIntoVirtualEventRegistrationCollectionResponse(virtua "value": n => { virtualEventRegistrationCollectionResponse.value = n.getCollectionOfObjectValues(createVirtualEventRegistrationFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventRegistrationConfiguration(virtualEventRegistrationConfiguration: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(virtualEventRegistrationConfiguration), + "capacity": n => { virtualEventRegistrationConfiguration.capacity = n.getNumberValue(); }, + "questions": n => { virtualEventRegistrationConfiguration.questions = n.getCollectionOfObjectValues(createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue); }, + "registrationWebUrl": n => { virtualEventRegistrationConfiguration.registrationWebUrl = n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventRegistrationCustomQuestion(virtualEventRegistrationCustomQuestion: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoVirtualEventRegistrationQuestionBase(virtualEventRegistrationCustomQuestion), + "answerChoices": n => { virtualEventRegistrationCustomQuestion.answerChoices = n.getCollectionOfPrimitiveValues(); }, + "answerInputType": n => { virtualEventRegistrationCustomQuestion.answerInputType = n.getEnumValue(VirtualEventRegistrationQuestionAnswerInputTypeObject); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventRegistrationPredefinedQuestion(virtualEventRegistrationPredefinedQuestion: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoVirtualEventRegistrationQuestionBase(virtualEventRegistrationPredefinedQuestion), + "label": n => { virtualEventRegistrationPredefinedQuestion.label = n.getEnumValue(VirtualEventRegistrationPredefinedQuestionLabelObject); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -61446,6 +62303,27 @@ export function deserializeIntoVirtualEventRegistrationQuestionAnswer(virtualEve "value": n => { virtualEventRegistrationQuestionAnswer.value = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventRegistrationQuestionBase(virtualEventRegistrationQuestionBase: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoEntity(virtualEventRegistrationQuestionBase), + "displayName": n => { virtualEventRegistrationQuestionBase.displayName = n.getStringValue(); }, + "isRequired": n => { virtualEventRegistrationQuestionBase.isRequired = n.getBooleanValue(); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventRegistrationQuestionBaseCollectionResponse(virtualEventRegistrationQuestionBaseCollectionResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(virtualEventRegistrationQuestionBaseCollectionResponse), + "value": n => { virtualEventRegistrationQuestionBaseCollectionResponse.value = n.getCollectionOfObjectValues(createVirtualEventRegistrationQuestionBaseFromDiscriminatorValue); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -61475,9 +62353,33 @@ export function deserializeIntoVirtualEventsRoot(virtualEventsRoot: Partial { virtualEventsRoot.events = n.getCollectionOfObjectValues(createVirtualEventFromDiscriminatorValue); }, + "townhalls": n => { virtualEventsRoot.townhalls = n.getCollectionOfObjectValues(createVirtualEventTownhallFromDiscriminatorValue); }, "webinars": n => { virtualEventsRoot.webinars = n.getCollectionOfObjectValues(createVirtualEventWebinarFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventTownhall(virtualEventTownhall: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoVirtualEvent(virtualEventTownhall), + "audience": n => { virtualEventTownhall.audience = n.getEnumValue(MeetingAudienceObject); }, + "coOrganizers": n => { virtualEventTownhall.coOrganizers = n.getCollectionOfObjectValues(createCommunicationsUserIdentityFromDiscriminatorValue); }, + "invitedAttendees": n => { virtualEventTownhall.invitedAttendees = n.getCollectionOfObjectValues(createIdentityFromDiscriminatorValue); }, + "isInviteOnly": n => { virtualEventTownhall.isInviteOnly = n.getBooleanValue(); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventTownhallCollectionResponse(virtualEventTownhallCollectionResponse: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(virtualEventTownhallCollectionResponse), + "value": n => { virtualEventTownhallCollectionResponse.value = n.getCollectionOfObjectValues(createVirtualEventTownhallFromDiscriminatorValue); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -61487,6 +62389,7 @@ export function deserializeIntoVirtualEventWebinar(virtualEventWebinar: Partial< ...deserializeIntoVirtualEvent(virtualEventWebinar), "audience": n => { virtualEventWebinar.audience = n.getEnumValue(MeetingAudienceObject); }, "coOrganizers": n => { virtualEventWebinar.coOrganizers = n.getCollectionOfObjectValues(createCommunicationsUserIdentityFromDiscriminatorValue); }, + "registrationConfiguration": n => { virtualEventWebinar.registrationConfiguration = n.getObjectValue(createVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue); }, "registrations": n => { virtualEventWebinar.registrations = n.getCollectionOfObjectValues(createVirtualEventRegistrationFromDiscriminatorValue); }, } } @@ -61500,6 +62403,17 @@ export function deserializeIntoVirtualEventWebinarCollectionResponse(virtualEven "value": n => { virtualEventWebinarCollectionResponse.value = n.getCollectionOfObjectValues(createVirtualEventWebinarFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoVirtualEventWebinarRegistrationConfiguration(virtualEventWebinarRegistrationConfiguration: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoVirtualEventRegistrationConfiguration(virtualEventWebinarRegistrationConfiguration), + "isManualApprovalEnabled": n => { virtualEventWebinarRegistrationConfiguration.isManualApprovalEnabled = n.getBooleanValue(); }, + "isWaitlistEnabled": n => { virtualEventWebinarRegistrationConfiguration.isWaitlistEnabled = n.getBooleanValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -66566,6 +67480,28 @@ export interface DeviceRegistrationPolicy extends Entity, Parsable { userDeviceQuota?: number; } export type DeviceRegistrationState = (typeof DeviceRegistrationStateObject)[keyof typeof DeviceRegistrationStateObject]; +export interface DevicesFilter extends AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * Determines whether devices that satisfy the rule should be allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. + */ + mode?: CrossTenantAccessPolicyTargetConfigurationAccessType; + /** + * The OdataType property + */ + odataType?: string; + /** + * Defines the rule to filter the devices. For example, device.deviceAttribute2 -eq 'PrivilegedAccessWorkstation'. + */ + rule?: string; +} export type DeviceThreatProtectionLevel = (typeof DeviceThreatProtectionLevelObject)[keyof typeof DeviceThreatProtectionLevelObject]; export type DiagnosticDataSubmissionMode = (typeof DiagnosticDataSubmissionModeObject)[keyof typeof DiagnosticDataSubmissionModeObject]; export interface Dictionary extends AdditionalDataHolder, BackedModel, Parsable { @@ -71619,6 +72555,16 @@ export interface InsightIdentity extends AdditionalDataHolder, BackedModel, Pars */ odataType?: string; } +export interface InsightsSettings extends Entity, Parsable { + /** + * The ID of a Microsoft Entra group, of which the specified type of insights are disabled for its members. The default value is null. Optional. + */ + disabledForGroup?: string; + /** + * true if insights of the specified type are enabled for the organization; false if insights of the specified type are disabled for all users without exceptions. The default value is true. Optional. + */ + isEnabledInOrganization?: boolean; +} /** * The value in an user experience analytics insight. */ @@ -73408,6 +74354,8 @@ export interface ItemBody extends AdditionalDataHolder, BackedModel, Parsable { */ odataType?: string; } +export interface ItemInsights extends OfficeGraphInsights, Parsable { +} export interface ItemPreviewInfo extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -78147,6 +79095,7 @@ export interface NamedLocationCollectionResponse extends BaseCollectionPaginatio */ value?: NamedLocation[]; } +export type NativeAuthenticationApisEnabled = (typeof NativeAuthenticationApisEnabledObject)[keyof typeof NativeAuthenticationApisEnabledObject]; export interface NetworkConnection extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -80812,6 +81761,10 @@ export interface PendingOperations extends AdditionalDataHolder, BackedModel, Pa pendingContentUpdate?: PendingContentUpdate; } export interface PeopleAdminSettings extends Entity, Parsable { + /** + * Represents administrator settings that manage the support for item insights in an organization. + */ + itemInsights?: InsightsSettings; /** * Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. */ @@ -88802,6 +89755,7 @@ export function serializeApplication(writer: SerializationWriter, application: P writer.writeBooleanValue("isFallbackPublicClient", application.isFallbackPublicClient); writer.writeCollectionOfObjectValues("keyCredentials", application.keyCredentials, serializeKeyCredential); writer.writeStringValue("logo", application.logo); + writer.writeEnumValue("nativeAuthenticationApisEnabled", application.nativeAuthenticationApisEnabled); writer.writeStringValue("notes", application.notes); writer.writeBooleanValue("oauth2RequirePostResponse", application.oauth2RequirePostResponse); writer.writeObjectValue("optionalClaims", application.optionalClaims, serializeOptionalClaims); @@ -88929,6 +89883,13 @@ export function serializeAppLogCollectionRequestCollectionResponse(writer: Seria serializeBaseCollectionPaginationCountResponse(writer, appLogCollectionRequestCollectionResponse) writer.writeCollectionOfObjectValues("value", appLogCollectionRequestCollectionResponse.value, serializeAppLogCollectionRequest); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeAppManagementApplicationConfiguration(writer: SerializationWriter, appManagementApplicationConfiguration: Partial | undefined = {}) : void { + serializeAppManagementConfiguration(writer, appManagementApplicationConfiguration) +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -88947,7 +89908,7 @@ export function serializeAppManagementPolicy(writer: SerializationWriter, appMan serializePolicyBase(writer, appManagementPolicy) writer.writeCollectionOfObjectValues("appliesTo", appManagementPolicy.appliesTo, serializeDirectoryObject); writer.writeBooleanValue("isEnabled", appManagementPolicy.isEnabled); - writer.writeObjectValue("restrictions", appManagementPolicy.restrictions, serializeAppManagementConfiguration); + writer.writeObjectValue("restrictions", appManagementPolicy.restrictions, serializeCustomAppManagementConfiguration); } /** * Serializes information the current object @@ -88957,6 +89918,13 @@ export function serializeAppManagementPolicyCollectionResponse(writer: Serializa serializeBaseCollectionPaginationCountResponse(writer, appManagementPolicyCollectionResponse) writer.writeCollectionOfObjectValues("value", appManagementPolicyCollectionResponse.value, serializeAppManagementPolicy); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeAppManagementServicePrincipalConfiguration(writer: SerializationWriter, appManagementServicePrincipalConfiguration: Partial | undefined = {}) : void { + serializeAppManagementConfiguration(writer, appManagementServicePrincipalConfiguration) +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -90298,6 +91266,8 @@ export function serializeBookingAppointment(writer: SerializationWriter, booking serializeEntity(writer, bookingAppointment) writer.writeStringValue("additionalInformation", bookingAppointment.additionalInformation); writer.writeStringValue("anonymousJoinWebUrl", bookingAppointment.anonymousJoinWebUrl); + writer.writeStringValue("appointmentLabel", bookingAppointment.appointmentLabel); + writer.writeDateValue("createdDateTime", bookingAppointment.createdDateTime); writer.writeStringValue("customerEmailAddress", bookingAppointment.customerEmailAddress); writer.writeStringValue("customerName", bookingAppointment.customerName); writer.writeStringValue("customerNotes", bookingAppointment.customerNotes); @@ -90305,8 +91275,10 @@ export function serializeBookingAppointment(writer: SerializationWriter, booking writer.writeCollectionOfObjectValues("customers", bookingAppointment.customers, serializeBookingCustomerInformationBase); writer.writeStringValue("customerTimeZone", bookingAppointment.customerTimeZone); writer.writeObjectValue("endDateTime", bookingAppointment.endDateTime, serializeDateTimeTimeZone); + writer.writeBooleanValue("isCustomerAllowedToManageBooking", bookingAppointment.isCustomerAllowedToManageBooking); writer.writeBooleanValue("isLocationOnline", bookingAppointment.isLocationOnline); writer.writeStringValue("joinWebUrl", bookingAppointment.joinWebUrl); + writer.writeDateValue("lastUpdatedDateTime", bookingAppointment.lastUpdatedDateTime); writer.writeNumberValue("maximumAttendeesCount", bookingAppointment.maximumAttendeesCount); writer.writeBooleanValue("optOutOfCustomerEmail", bookingAppointment.optOutOfCustomerEmail); writer.writeDurationValue("postBuffer", bookingAppointment.postBuffer); @@ -90339,15 +91311,18 @@ export function serializeBookingBusiness(writer: SerializationWriter, bookingBus serializeEntity(writer, bookingBusiness) writer.writeObjectValue("address", bookingBusiness.address, serializePhysicalAddress); writer.writeCollectionOfObjectValues("appointments", bookingBusiness.appointments, serializeBookingAppointment); + writer.writeObjectValue("bookingPageSettings", bookingBusiness.bookingPageSettings, serializeBookingPageSettings); writer.writeCollectionOfObjectValues("businessHours", bookingBusiness.businessHours, serializeBookingWorkHours); writer.writeStringValue("businessType", bookingBusiness.businessType); writer.writeCollectionOfObjectValues("calendarView", bookingBusiness.calendarView, serializeBookingAppointment); + writer.writeDateValue("createdDateTime", bookingBusiness.createdDateTime); writer.writeCollectionOfObjectValues("customers", bookingBusiness.customers, serializeBookingCustomerBase); writer.writeCollectionOfObjectValues("customQuestions", bookingBusiness.customQuestions, serializeBookingCustomQuestion); writer.writeStringValue("defaultCurrencyIso", bookingBusiness.defaultCurrencyIso); writer.writeStringValue("displayName", bookingBusiness.displayName); writer.writeStringValue("email", bookingBusiness.email); writer.writeStringValue("languageTag", bookingBusiness.languageTag); + writer.writeDateValue("lastUpdatedDateTime", bookingBusiness.lastUpdatedDateTime); writer.writeStringValue("phone", bookingBusiness.phone); writer.writeObjectValue("schedulingPolicy", bookingBusiness.schedulingPolicy, serializeBookingSchedulingPolicy); writer.writeCollectionOfObjectValues("services", bookingBusiness.services, serializeBookingService); @@ -90385,8 +91360,10 @@ export function serializeBookingCurrencyCollectionResponse(writer: Serialization export function serializeBookingCustomer(writer: SerializationWriter, bookingCustomer: Partial | undefined = {}) : void { serializeBookingCustomerBase(writer, bookingCustomer) writer.writeCollectionOfObjectValues("addresses", bookingCustomer.addresses, serializePhysicalAddress); + writer.writeDateValue("createdDateTime", bookingCustomer.createdDateTime); writer.writeStringValue("displayName", bookingCustomer.displayName); writer.writeStringValue("emailAddress", bookingCustomer.emailAddress); + writer.writeDateValue("lastUpdatedDateTime", bookingCustomer.lastUpdatedDateTime); writer.writeCollectionOfObjectValues("phones", bookingCustomer.phones, serializePhone); } /** @@ -90435,7 +91412,9 @@ export function serializeBookingCustomQuestion(writer: SerializationWriter, book serializeEntity(writer, bookingCustomQuestion) writer.writeEnumValue("answerInputType", bookingCustomQuestion.answerInputType); writer.writeCollectionOfPrimitiveValues("answerOptions", bookingCustomQuestion.answerOptions); + writer.writeDateValue("createdDateTime", bookingCustomQuestion.createdDateTime); writer.writeStringValue("displayName", bookingCustomQuestion.displayName); + writer.writeDateValue("lastUpdatedDateTime", bookingCustomQuestion.lastUpdatedDateTime); } /** * Serializes information the current object @@ -90445,6 +91424,25 @@ export function serializeBookingCustomQuestionCollectionResponse(writer: Seriali serializeBaseCollectionPaginationCountResponse(writer, bookingCustomQuestionCollectionResponse) writer.writeCollectionOfObjectValues("value", bookingCustomQuestionCollectionResponse.value, serializeBookingCustomQuestion); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeBookingPageSettings(writer: SerializationWriter, bookingPageSettings: Partial | undefined = {}) : void { + writer.writeEnumValue("accessControl", bookingPageSettings.accessControl); + writer.writeStringValue("bookingPageColorCode", bookingPageSettings.bookingPageColorCode); + writer.writeStringValue("businessTimeZone", bookingPageSettings.businessTimeZone); + writer.writeStringValue("customerConsentMessage", bookingPageSettings.customerConsentMessage); + writer.writeBooleanValue("enforceOneTimePassword", bookingPageSettings.enforceOneTimePassword); + writer.writeBooleanValue("isBusinessLogoDisplayEnabled", bookingPageSettings.isBusinessLogoDisplayEnabled); + writer.writeBooleanValue("isCustomerConsentEnabled", bookingPageSettings.isCustomerConsentEnabled); + writer.writeBooleanValue("isSearchEngineIndexabilityDisabled", bookingPageSettings.isSearchEngineIndexabilityDisabled); + writer.writeBooleanValue("isTimeSlotTimeZoneSetToBusinessTimeZone", bookingPageSettings.isTimeSlotTimeZoneSetToBusinessTimeZone); + writer.writeStringValue("@odata.type", bookingPageSettings.odataType); + writer.writeStringValue("privacyPolicyWebUrl", bookingPageSettings.privacyPolicyWebUrl); + writer.writeStringValue("termsAndConditionsWebUrl", bookingPageSettings.termsAndConditionsWebUrl); + writer.writeAdditionalData(bookingPageSettings.additionalData); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -90481,12 +91479,34 @@ export function serializeBookingReminder(writer: SerializationWriter, bookingRem writer.writeEnumValue("recipients", bookingReminder.recipients); writer.writeAdditionalData(bookingReminder.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeBookingsAvailability(writer: SerializationWriter, bookingsAvailability: Partial | undefined = {}) : void { + writer.writeEnumValue("availabilityType", bookingsAvailability.availabilityType); + writer.writeCollectionOfObjectValues("businessHours", bookingsAvailability.businessHours, serializeBookingWorkHours); + writer.writeStringValue("@odata.type", bookingsAvailability.odataType); + writer.writeAdditionalData(bookingsAvailability.additionalData); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeBookingsAvailabilityWindow(writer: SerializationWriter, bookingsAvailabilityWindow: Partial | undefined = {}) : void { + serializeBookingsAvailability(writer, bookingsAvailabilityWindow) + writer.writeDateOnlyValue("endDate", bookingsAvailabilityWindow.endDate); + writer.writeDateOnlyValue("startDate", bookingsAvailabilityWindow.startDate); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export function serializeBookingSchedulingPolicy(writer: SerializationWriter, bookingSchedulingPolicy: Partial | undefined = {}) : void { writer.writeBooleanValue("allowStaffSelection", bookingSchedulingPolicy.allowStaffSelection); + writer.writeCollectionOfObjectValues("customAvailabilities", bookingSchedulingPolicy.customAvailabilities, serializeBookingsAvailabilityWindow); + writer.writeObjectValue("generalAvailability", bookingSchedulingPolicy.generalAvailability, serializeBookingsAvailability); + writer.writeBooleanValue("isMeetingInviteToCustomersEnabled", bookingSchedulingPolicy.isMeetingInviteToCustomersEnabled); writer.writeDurationValue("maximumAdvance", bookingSchedulingPolicy.maximumAdvance); writer.writeDurationValue("minimumLeadTime", bookingSchedulingPolicy.minimumLeadTime); writer.writeStringValue("@odata.type", bookingSchedulingPolicy.odataType); @@ -90501,6 +91521,7 @@ export function serializeBookingSchedulingPolicy(writer: SerializationWriter, bo export function serializeBookingService(writer: SerializationWriter, bookingService: Partial | undefined = {}) : void { serializeEntity(writer, bookingService) writer.writeStringValue("additionalInformation", bookingService.additionalInformation); + writer.writeDateValue("createdDateTime", bookingService.createdDateTime); writer.writeCollectionOfObjectValues("customQuestions", bookingService.customQuestions, serializeBookingQuestionAssignment); writer.writeDurationValue("defaultDuration", bookingService.defaultDuration); writer.writeObjectValue("defaultLocation", bookingService.defaultLocation, serializeLocation); @@ -90510,9 +91531,11 @@ export function serializeBookingService(writer: SerializationWriter, bookingServ writer.writeStringValue("description", bookingService.description); writer.writeStringValue("displayName", bookingService.displayName); writer.writeBooleanValue("isAnonymousJoinEnabled", bookingService.isAnonymousJoinEnabled); + writer.writeBooleanValue("isCustomerAllowedToManageBooking", bookingService.isCustomerAllowedToManageBooking); writer.writeBooleanValue("isHiddenFromCustomers", bookingService.isHiddenFromCustomers); writer.writeBooleanValue("isLocationOnline", bookingService.isLocationOnline); writer.writeStringValue("languageTag", bookingService.languageTag); + writer.writeDateValue("lastUpdatedDateTime", bookingService.lastUpdatedDateTime); writer.writeNumberValue("maximumAttendeesCount", bookingService.maximumAttendeesCount); writer.writeStringValue("notes", bookingService.notes); writer.writeDurationValue("postBuffer", bookingService.postBuffer); @@ -90536,9 +91559,11 @@ export function serializeBookingServiceCollectionResponse(writer: SerializationW export function serializeBookingStaffMember(writer: SerializationWriter, bookingStaffMember: Partial | undefined = {}) : void { serializeBookingStaffMemberBase(writer, bookingStaffMember) writer.writeBooleanValue("availabilityIsAffectedByPersonalCalendar", bookingStaffMember.availabilityIsAffectedByPersonalCalendar); + writer.writeDateValue("createdDateTime", bookingStaffMember.createdDateTime); writer.writeStringValue("displayName", bookingStaffMember.displayName); writer.writeStringValue("emailAddress", bookingStaffMember.emailAddress); writer.writeBooleanValue("isEmailNotificationEnabled", bookingStaffMember.isEmailNotificationEnabled); + writer.writeDateValue("lastUpdatedDateTime", bookingStaffMember.lastUpdatedDateTime); writer.writeEnumValue("membershipStatus", bookingStaffMember.membershipStatus); writer.writeEnumValue("role", bookingStaffMember.role); writer.writeStringValue("timeZone", bookingStaffMember.timeZone); @@ -91139,6 +92164,7 @@ export function serializeChannel(writer: SerializationWriter, channel: Partial("filesFolder", channel.filesFolder, serializeDriveItem); + writer.writeBooleanValue("isArchived", channel.isArchived); writer.writeBooleanValue("isFavoriteByDefault", channel.isFavoriteByDefault); writer.writeCollectionOfObjectValues("members", channel.members, serializeConversationMember); writer.writeEnumValue("membershipType", channel.membershipType); @@ -92876,6 +93902,7 @@ export function serializeCrossTenantAccessPolicyConfigurationDefault(writer: Ser writer.writeObjectValue("inboundTrust", crossTenantAccessPolicyConfigurationDefault.inboundTrust, serializeCrossTenantAccessPolicyInboundTrust); writer.writeObjectValue("invitationRedemptionIdentityProviderConfiguration", crossTenantAccessPolicyConfigurationDefault.invitationRedemptionIdentityProviderConfiguration, serializeDefaultInvitationRedemptionIdentityProviderConfiguration); writer.writeBooleanValue("isServiceDefault", crossTenantAccessPolicyConfigurationDefault.isServiceDefault); + writer.writeObjectValue("tenantRestrictions", crossTenantAccessPolicyConfigurationDefault.tenantRestrictions, serializeCrossTenantAccessPolicyTenantRestrictions); } /** * Serializes information the current object @@ -92893,6 +93920,7 @@ export function serializeCrossTenantAccessPolicyConfigurationPartner(writer: Ser writer.writeBooleanValue("isServiceProvider", crossTenantAccessPolicyConfigurationPartner.isServiceProvider); writer.writeStringValue("@odata.type", crossTenantAccessPolicyConfigurationPartner.odataType); writer.writeStringValue("tenantId", crossTenantAccessPolicyConfigurationPartner.tenantId); + writer.writeObjectValue("tenantRestrictions", crossTenantAccessPolicyConfigurationPartner.tenantRestrictions, serializeCrossTenantAccessPolicyTenantRestrictions); writer.writeAdditionalData(crossTenantAccessPolicyConfigurationPartner.additionalData); } /** @@ -92934,6 +93962,14 @@ export function serializeCrossTenantAccessPolicyTargetConfiguration(writer: Seri writer.writeCollectionOfObjectValues("targets", crossTenantAccessPolicyTargetConfiguration.targets, serializeCrossTenantAccessPolicyTarget); writer.writeAdditionalData(crossTenantAccessPolicyTargetConfiguration.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeCrossTenantAccessPolicyTenantRestrictions(writer: SerializationWriter, crossTenantAccessPolicyTenantRestrictions: Partial | undefined = {}) : void { + serializeCrossTenantAccessPolicyB2BSetting(writer, crossTenantAccessPolicyTenantRestrictions) + writer.writeObjectValue("devices", crossTenantAccessPolicyTenantRestrictions.devices, serializeDevicesFilter); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -92963,6 +93999,13 @@ export function serializeCurrencyColumn(writer: SerializationWriter, currencyCol writer.writeStringValue("@odata.type", currencyColumn.odataType); writer.writeAdditionalData(currencyColumn.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeCustomAppManagementConfiguration(writer: SerializationWriter, customAppManagementConfiguration: Partial | undefined = {}) : void { + serializeAppManagementConfiguration(writer, customAppManagementConfiguration) +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -94589,6 +95632,16 @@ export function serializeDeviceRegistrationPolicy(writer: SerializationWriter, d writer.writeEnumValue("multiFactorAuthConfiguration", deviceRegistrationPolicy.multiFactorAuthConfiguration); writer.writeNumberValue("userDeviceQuota", deviceRegistrationPolicy.userDeviceQuota); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeDevicesFilter(writer: SerializationWriter, devicesFilter: Partial | undefined = {}) : void { + writer.writeEnumValue("mode", devicesFilter.mode); + writer.writeStringValue("@odata.type", devicesFilter.odataType); + writer.writeStringValue("rule", devicesFilter.rule); + writer.writeAdditionalData(devicesFilter.additionalData); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -97312,6 +98365,15 @@ export function serializeInsightIdentity(writer: SerializationWriter, insightIde writer.writeStringValue("@odata.type", insightIdentity.odataType); writer.writeAdditionalData(insightIdentity.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeInsightsSettings(writer: SerializationWriter, insightsSettings: Partial | undefined = {}) : void { + serializeEntity(writer, insightsSettings) + writer.writeStringValue("disabledForGroup", insightsSettings.disabledForGroup); + writer.writeBooleanValue("isEnabledInOrganization", insightsSettings.isEnabledInOrganization); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -98123,6 +99185,13 @@ export function serializeItemBody(writer: SerializationWriter, itemBody: Partial writer.writeStringValue("@odata.type", itemBody.odataType); writer.writeAdditionalData(itemBody.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeItemInsights(writer: SerializationWriter, itemInsights: Partial | undefined = {}) : void { + serializeOfficeGraphInsights(writer, itemInsights) +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -101801,6 +102870,7 @@ export function serializePendingOperations(writer: SerializationWriter, pendingO */ export function serializePeopleAdminSettings(writer: SerializationWriter, peopleAdminSettings: Partial | undefined = {}) : void { serializeEntity(writer, peopleAdminSettings) + writer.writeObjectValue("itemInsights", peopleAdminSettings.itemInsights, serializeInsightsSettings); writer.writeCollectionOfObjectValues("profileCardProperties", peopleAdminSettings.profileCardProperties, serializeProfileCardProperty); writer.writeObjectValue("pronouns", peopleAdminSettings.pronouns, serializePronounsSettings); } @@ -105126,6 +106196,21 @@ export function serializeServiceProvisioningXmlError(writer: SerializationWriter serializeServiceProvisioningError(writer, serviceProvisioningXmlError) writer.writeStringValue("errorDetail", serviceProvisioningXmlError.errorDetail); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeServiceStorageQuotaBreakdown(writer: SerializationWriter, serviceStorageQuotaBreakdown: Partial | undefined = {}) : void { + serializeStorageQuotaBreakdown(writer, serviceStorageQuotaBreakdown) +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeServiceStorageQuotaBreakdownCollectionResponse(writer: SerializationWriter, serviceStorageQuotaBreakdownCollectionResponse: Partial | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, serviceStorageQuotaBreakdownCollectionResponse) + writer.writeCollectionOfObjectValues("value", serviceStorageQuotaBreakdownCollectionResponse.value, serializeServiceStorageQuotaBreakdown); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -106045,6 +107130,7 @@ export function serializeStopHoldMusicOperation(writer: SerializationWriter, sto export function serializeStorage(writer: SerializationWriter, storage: Partial | undefined = {}) : void { writer.writeObjectValue("fileStorage", storage.fileStorage, serializeFileStorage); writer.writeStringValue("@odata.type", storage.odataType); + writer.writeObjectValue("settings", storage.settings, serializeStorageSettings); writer.writeAdditionalData(storage.additionalData); } /** @@ -106056,6 +107142,24 @@ export function serializeStoragePlanInformation(writer: SerializationWriter, sto writer.writeBooleanValue("upgradeAvailable", storagePlanInformation.upgradeAvailable); writer.writeAdditionalData(storagePlanInformation.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeStorageQuotaBreakdown(writer: SerializationWriter, storageQuotaBreakdown: Partial | undefined = {}) : void { + serializeEntity(writer, storageQuotaBreakdown) + writer.writeStringValue("displayName", storageQuotaBreakdown.displayName); + writer.writeStringValue("manageWebUrl", storageQuotaBreakdown.manageWebUrl); + writer.writeNumberValue("used", storageQuotaBreakdown.used); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeStorageSettings(writer: SerializationWriter, storageSettings: Partial | undefined = {}) : void { + serializeEntity(writer, storageSettings) + writer.writeObjectValue("quota", storageSettings.quota, serializeUnifiedStorageQuota); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -107336,9 +108440,9 @@ export function serializeTemporaryAccessPassAuthenticationMethodConfiguration(wr */ export function serializeTenantAppManagementPolicy(writer: SerializationWriter, tenantAppManagementPolicy: Partial | undefined = {}) : void { serializePolicyBase(writer, tenantAppManagementPolicy) - writer.writeObjectValue("applicationRestrictions", tenantAppManagementPolicy.applicationRestrictions, serializeAppManagementConfiguration); + writer.writeObjectValue("applicationRestrictions", tenantAppManagementPolicy.applicationRestrictions, serializeAppManagementApplicationConfiguration); writer.writeBooleanValue("isEnabled", tenantAppManagementPolicy.isEnabled); - writer.writeObjectValue("servicePrincipalRestrictions", tenantAppManagementPolicy.servicePrincipalRestrictions, serializeAppManagementConfiguration); + writer.writeObjectValue("servicePrincipalRestrictions", tenantAppManagementPolicy.servicePrincipalRestrictions, serializeAppManagementServicePrincipalConfiguration); } /** * Serializes information the current object @@ -108328,6 +109432,20 @@ export function serializeUnifiedRoleScheduleInstanceBase(writer: SerializationWr writer.writeObjectValue("roleDefinition", unifiedRoleScheduleInstanceBase.roleDefinition, serializeUnifiedRoleDefinition); writer.writeStringValue("roleDefinitionId", unifiedRoleScheduleInstanceBase.roleDefinitionId); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeUnifiedStorageQuota(writer: SerializationWriter, unifiedStorageQuota: Partial | undefined = {}) : void { + serializeEntity(writer, unifiedStorageQuota) + writer.writeNumberValue("deleted", unifiedStorageQuota.deleted); + writer.writeStringValue("manageWebUrl", unifiedStorageQuota.manageWebUrl); + writer.writeNumberValue("remaining", unifiedStorageQuota.remaining); + writer.writeCollectionOfObjectValues("services", unifiedStorageQuota.services, serializeServiceStorageQuotaBreakdown); + writer.writeStringValue("state", unifiedStorageQuota.state); + writer.writeNumberValue("total", unifiedStorageQuota.total); + writer.writeNumberValue("used", unifiedStorageQuota.used); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -108488,7 +109606,7 @@ export function serializeUser(writer: SerializationWriter, user: Partial | writer.writeCollectionOfObjectValues("identities", user.identities, serializeObjectIdentity); writer.writeCollectionOfPrimitiveValues("imAddresses", user.imAddresses); writer.writeObjectValue("inferenceClassification", user.inferenceClassification, serializeInferenceClassification); - writer.writeObjectValue("insights", user.insights, serializeOfficeGraphInsights); + writer.writeObjectValue("insights", user.insights, serializeItemInsights); writer.writeCollectionOfPrimitiveValues("interests", user.interests); writer.writeBooleanValue("isResourceAccount", user.isResourceAccount); writer.writeStringValue("jobTitle", user.jobTitle); @@ -109319,6 +110437,14 @@ export function serializeUserIdentity(writer: SerializationWriter, userIdentity: writer.writeStringValue("ipAddress", userIdentity.ipAddress); writer.writeStringValue("userPrincipalName", userIdentity.userPrincipalName); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeUserInsightsSettings(writer: SerializationWriter, userInsightsSettings: Partial | undefined = {}) : void { + serializeEntity(writer, userInsightsSettings) + writer.writeBooleanValue("isEnabled", userInsightsSettings.isEnabled); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -109477,7 +110603,9 @@ export function serializeUserSettings(writer: SerializationWriter, userSettings: serializeEntity(writer, userSettings) writer.writeBooleanValue("contributionToContentDiscoveryAsOrganizationDisabled", userSettings.contributionToContentDiscoveryAsOrganizationDisabled); writer.writeBooleanValue("contributionToContentDiscoveryDisabled", userSettings.contributionToContentDiscoveryDisabled); + writer.writeObjectValue("itemInsights", userSettings.itemInsights, serializeUserInsightsSettings); writer.writeObjectValue("shiftPreferences", userSettings.shiftPreferences, serializeShiftPreferences); + writer.writeObjectValue("storage", userSettings.storage, serializeUserStorage); writer.writeCollectionOfObjectValues("windows", userSettings.windows, serializeWindowsSetting); } /** @@ -109518,6 +110646,14 @@ export function serializeUserSimulationEventInfo(writer: SerializationWriter, us writer.writeStringValue("osPlatformDeviceDetails", userSimulationEventInfo.osPlatformDeviceDetails); writer.writeAdditionalData(userSimulationEventInfo.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeUserStorage(writer: SerializationWriter, userStorage: Partial | undefined = {}) : void { + serializeEntity(writer, userStorage) + writer.writeObjectValue("quota", userStorage.quota, serializeUnifiedStorageQuota); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -109642,6 +110778,7 @@ export function serializeVirtualEvent(writer: SerializationWriter, virtualEvent: writer.writeObjectValue("description", virtualEvent.description, serializeItemBody); writer.writeStringValue("displayName", virtualEvent.displayName); writer.writeObjectValue("endDateTime", virtualEvent.endDateTime, serializeDateTimeTimeZone); + writer.writeCollectionOfObjectValues("presenters", virtualEvent.presenters, serializeVirtualEventPresenter); writer.writeCollectionOfObjectValues("sessions", virtualEvent.sessions, serializeVirtualEventSession); writer.writeObjectValue("startDateTime", virtualEvent.startDateTime, serializeDateTimeTimeZone); writer.writeEnumValue("status", virtualEvent.status); @@ -109654,6 +110791,47 @@ export function serializeVirtualEventCollectionResponse(writer: SerializationWri serializeBaseCollectionPaginationCountResponse(writer, virtualEventCollectionResponse) writer.writeCollectionOfObjectValues("value", virtualEventCollectionResponse.value, serializeVirtualEvent); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventPresenter(writer: SerializationWriter, virtualEventPresenter: Partial | undefined = {}) : void { + serializeEntity(writer, virtualEventPresenter) + writer.writeStringValue("email", virtualEventPresenter.email); + writer.writeObjectValue("identity", virtualEventPresenter.identity, serializeIdentity); + writer.writeObjectValue("presenterDetails", virtualEventPresenter.presenterDetails, serializeVirtualEventPresenterDetails); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventPresenterCollectionResponse(writer: SerializationWriter, virtualEventPresenterCollectionResponse: Partial | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, virtualEventPresenterCollectionResponse) + writer.writeCollectionOfObjectValues("value", virtualEventPresenterCollectionResponse.value, serializeVirtualEventPresenter); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventPresenterDetails(writer: SerializationWriter, virtualEventPresenterDetails: Partial | undefined = {}) : void { + writer.writeObjectValue("bio", virtualEventPresenterDetails.bio, serializeItemBody); + writer.writeStringValue("company", virtualEventPresenterDetails.company); + writer.writeStringValue("jobTitle", virtualEventPresenterDetails.jobTitle); + writer.writeStringValue("linkedInProfileWebUrl", virtualEventPresenterDetails.linkedInProfileWebUrl); + writer.writeStringValue("@odata.type", virtualEventPresenterDetails.odataType); + writer.writeStringValue("personalSiteWebUrl", virtualEventPresenterDetails.personalSiteWebUrl); + writer.writeStringValue("photo", virtualEventPresenterDetails.photo); + writer.writeStringValue("twitterProfileWebUrl", virtualEventPresenterDetails.twitterProfileWebUrl); + writer.writeAdditionalData(virtualEventPresenterDetails.additionalData); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventPresenterInfo(writer: SerializationWriter, virtualEventPresenterInfo: Partial | undefined = {}) : void { + serializeMeetingParticipantInfo(writer, virtualEventPresenterInfo) + writer.writeObjectValue("presenterDetails", virtualEventPresenterInfo.presenterDetails, serializeVirtualEventPresenterDetails); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -109664,8 +110842,11 @@ export function serializeVirtualEventRegistration(writer: SerializationWriter, v writer.writeStringValue("email", virtualEventRegistration.email); writer.writeStringValue("firstName", virtualEventRegistration.firstName); writer.writeStringValue("lastName", virtualEventRegistration.lastName); + writer.writeStringValue("preferredLanguage", virtualEventRegistration.preferredLanguage); + writer.writeStringValue("preferredTimezone", virtualEventRegistration.preferredTimezone); writer.writeDateValue("registrationDateTime", virtualEventRegistration.registrationDateTime); writer.writeCollectionOfObjectValues("registrationQuestionAnswers", virtualEventRegistration.registrationQuestionAnswers, serializeVirtualEventRegistrationQuestionAnswer); + writer.writeCollectionOfObjectValues("sessions", virtualEventRegistration.sessions, serializeVirtualEventSession); writer.writeEnumValue("status", virtualEventRegistration.status); writer.writeStringValue("userId", virtualEventRegistration.userId); } @@ -109677,6 +110858,33 @@ export function serializeVirtualEventRegistrationCollectionResponse(writer: Seri serializeBaseCollectionPaginationCountResponse(writer, virtualEventRegistrationCollectionResponse) writer.writeCollectionOfObjectValues("value", virtualEventRegistrationCollectionResponse.value, serializeVirtualEventRegistration); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventRegistrationConfiguration(writer: SerializationWriter, virtualEventRegistrationConfiguration: Partial | undefined = {}) : void { + serializeEntity(writer, virtualEventRegistrationConfiguration) + writer.writeNumberValue("capacity", virtualEventRegistrationConfiguration.capacity); + writer.writeCollectionOfObjectValues("questions", virtualEventRegistrationConfiguration.questions, serializeVirtualEventRegistrationQuestionBase); + writer.writeStringValue("registrationWebUrl", virtualEventRegistrationConfiguration.registrationWebUrl); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventRegistrationCustomQuestion(writer: SerializationWriter, virtualEventRegistrationCustomQuestion: Partial | undefined = {}) : void { + serializeVirtualEventRegistrationQuestionBase(writer, virtualEventRegistrationCustomQuestion) + writer.writeCollectionOfPrimitiveValues("answerChoices", virtualEventRegistrationCustomQuestion.answerChoices); + writer.writeEnumValue("answerInputType", virtualEventRegistrationCustomQuestion.answerInputType); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventRegistrationPredefinedQuestion(writer: SerializationWriter, virtualEventRegistrationPredefinedQuestion: Partial | undefined = {}) : void { + serializeVirtualEventRegistrationQuestionBase(writer, virtualEventRegistrationPredefinedQuestion) + writer.writeEnumValue("label", virtualEventRegistrationPredefinedQuestion.label); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -109690,6 +110898,23 @@ export function serializeVirtualEventRegistrationQuestionAnswer(writer: Serializ writer.writeStringValue("value", virtualEventRegistrationQuestionAnswer.value); writer.writeAdditionalData(virtualEventRegistrationQuestionAnswer.additionalData); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventRegistrationQuestionBase(writer: SerializationWriter, virtualEventRegistrationQuestionBase: Partial | undefined = {}) : void { + serializeEntity(writer, virtualEventRegistrationQuestionBase) + writer.writeStringValue("displayName", virtualEventRegistrationQuestionBase.displayName); + writer.writeBooleanValue("isRequired", virtualEventRegistrationQuestionBase.isRequired); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventRegistrationQuestionBaseCollectionResponse(writer: SerializationWriter, virtualEventRegistrationQuestionBaseCollectionResponse: Partial | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, virtualEventRegistrationQuestionBaseCollectionResponse) + writer.writeCollectionOfObjectValues("value", virtualEventRegistrationQuestionBaseCollectionResponse.value, serializeVirtualEventRegistrationQuestionBase); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -109714,8 +110939,28 @@ export function serializeVirtualEventSessionCollectionResponse(writer: Serializa export function serializeVirtualEventsRoot(writer: SerializationWriter, virtualEventsRoot: Partial | undefined = {}) : void { serializeEntity(writer, virtualEventsRoot) writer.writeCollectionOfObjectValues("events", virtualEventsRoot.events, serializeVirtualEvent); + writer.writeCollectionOfObjectValues("townhalls", virtualEventsRoot.townhalls, serializeVirtualEventTownhall); writer.writeCollectionOfObjectValues("webinars", virtualEventsRoot.webinars, serializeVirtualEventWebinar); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventTownhall(writer: SerializationWriter, virtualEventTownhall: Partial | undefined = {}) : void { + serializeVirtualEvent(writer, virtualEventTownhall) + writer.writeEnumValue("audience", virtualEventTownhall.audience); + writer.writeCollectionOfObjectValues("coOrganizers", virtualEventTownhall.coOrganizers, serializeCommunicationsUserIdentity); + writer.writeCollectionOfObjectValues("invitedAttendees", virtualEventTownhall.invitedAttendees, serializeIdentity); + writer.writeBooleanValue("isInviteOnly", virtualEventTownhall.isInviteOnly); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventTownhallCollectionResponse(writer: SerializationWriter, virtualEventTownhallCollectionResponse: Partial | undefined = {}) : void { + serializeBaseCollectionPaginationCountResponse(writer, virtualEventTownhallCollectionResponse) + writer.writeCollectionOfObjectValues("value", virtualEventTownhallCollectionResponse.value, serializeVirtualEventTownhall); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -109724,6 +110969,7 @@ export function serializeVirtualEventWebinar(writer: SerializationWriter, virtua serializeVirtualEvent(writer, virtualEventWebinar) writer.writeEnumValue("audience", virtualEventWebinar.audience); writer.writeCollectionOfObjectValues("coOrganizers", virtualEventWebinar.coOrganizers, serializeCommunicationsUserIdentity); + writer.writeObjectValue("registrationConfiguration", virtualEventWebinar.registrationConfiguration, serializeVirtualEventWebinarRegistrationConfiguration); writer.writeCollectionOfObjectValues("registrations", virtualEventWebinar.registrations, serializeVirtualEventRegistration); } /** @@ -109734,6 +110980,15 @@ export function serializeVirtualEventWebinarCollectionResponse(writer: Serializa serializeBaseCollectionPaginationCountResponse(writer, virtualEventWebinarCollectionResponse) writer.writeCollectionOfObjectValues("value", virtualEventWebinarCollectionResponse.value, serializeVirtualEventWebinar); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeVirtualEventWebinarRegistrationConfiguration(writer: SerializationWriter, virtualEventWebinarRegistrationConfiguration: Partial | undefined = {}) : void { + serializeVirtualEventRegistrationConfiguration(writer, virtualEventWebinarRegistrationConfiguration) + writer.writeBooleanValue("isManualApprovalEnabled", virtualEventWebinarRegistrationConfiguration.isManualApprovalEnabled); + writer.writeBooleanValue("isWaitlistEnabled", virtualEventWebinarRegistrationConfiguration.isWaitlistEnabled); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -112620,6 +113875,14 @@ export interface ServiceProvisioningXmlError extends Parsable, ServiceProvisioni */ errorDetail?: string; } +export interface ServiceStorageQuotaBreakdown extends Parsable, StorageQuotaBreakdown { +} +export interface ServiceStorageQuotaBreakdownCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: ServiceStorageQuotaBreakdown[]; +} export type ServiceUpdateCategory = (typeof ServiceUpdateCategoryObject)[keyof typeof ServiceUpdateCategoryObject]; export interface ServiceUpdateMessage extends Parsable, ServiceAnnouncementBase { /** @@ -113538,7 +114801,7 @@ export interface SignIn extends Entity, Parsable { */ userId?: string; /** - * User principal name of the user that initiated the sign-in. Supports $filter (eq, startsWith). + * User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). */ userPrincipalName?: string; } @@ -114512,6 +115775,10 @@ export interface Storage extends AdditionalDataHolder, BackedModel, Parsable { * The OdataType property */ odataType?: string; + /** + * The settings property + */ + settings?: StorageSettings; } export interface StoragePlanInformation extends AdditionalDataHolder, BackedModel, Parsable { /** @@ -114531,6 +115798,26 @@ export interface StoragePlanInformation extends AdditionalDataHolder, BackedMode */ upgradeAvailable?: boolean; } +export interface StorageQuotaBreakdown extends Entity, Parsable { + /** + * The displayName property + */ + displayName?: string; + /** + * The manageWebUrl property + */ + manageWebUrl?: string; + /** + * The used property + */ + used?: number; +} +export interface StorageSettings extends Entity, Parsable { + /** + * The quota property + */ + quota?: UnifiedStorageQuota; +} export interface StringCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property @@ -115369,7 +116656,7 @@ export interface SynchronizationSchedule extends AdditionalDataHolder, BackedMod */ expiration?: Date; /** - * The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. + * The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. */ interval?: Duration; /** @@ -116889,7 +118176,7 @@ export interface TenantAppManagementPolicy extends Parsable, PolicyBase { /** * Restrictions that apply as default to all application objects in the tenant. */ - applicationRestrictions?: AppManagementConfiguration; + applicationRestrictions?: AppManagementApplicationConfiguration; /** * Denotes whether the policy is enabled. Default value is false. */ @@ -116897,7 +118184,7 @@ export interface TenantAppManagementPolicy extends Parsable, PolicyBase { /** * Restrictions that apply as default to all service principal objects in the tenant. */ - servicePrincipalRestrictions?: AppManagementConfiguration; + servicePrincipalRestrictions?: AppManagementServicePrincipalConfiguration; } export interface TenantInformation extends AdditionalDataHolder, BackedModel, Parsable { /** @@ -118031,7 +119318,7 @@ export interface UnifiedRoleAssignment extends Entity, Parsable { */ condition?: string; /** - * The directory object that is the scope of the assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ directoryScope?: DirectoryObject; /** @@ -118039,7 +119326,7 @@ export interface UnifiedRoleAssignment extends Entity, Parsable { */ directoryScopeId?: string; /** - * Referencing the assigned principal. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ principal?: DirectoryObject; /** @@ -118047,7 +119334,7 @@ export interface UnifiedRoleAssignment extends Entity, Parsable { */ principalId?: string; /** - * The roleDefinition the assignment is for. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ roleDefinition?: UnifiedRoleDefinition; /** @@ -118633,6 +119920,36 @@ export interface UnifiedRoleScheduleInstanceBase extends Entity, Parsable { roleDefinitionId?: string; } export type UnifiedRoleScheduleRequestActions = (typeof UnifiedRoleScheduleRequestActionsObject)[keyof typeof UnifiedRoleScheduleRequestActionsObject]; +export interface UnifiedStorageQuota extends Entity, Parsable { + /** + * The deleted property + */ + deleted?: number; + /** + * The manageWebUrl property + */ + manageWebUrl?: string; + /** + * The remaining property + */ + remaining?: number; + /** + * The services property + */ + services?: ServiceStorageQuotaBreakdown[]; + /** + * The state property + */ + state?: string; + /** + * The total property + */ + total?: number; + /** + * The used property + */ + used?: number; +} export interface UnmuteParticipantOperation extends CommsOperation, Parsable { } export interface UpdateAllowedCombinationsResult extends AdditionalDataHolder, BackedModel, Parsable { @@ -119033,7 +120350,7 @@ export interface User extends DirectoryObject, Parsable { /** * The insights property */ - insights?: OfficeGraphInsights; + insights?: ItemInsights; /** * A list for the user to describe their interests. Returned only on $select. */ @@ -120817,6 +122134,12 @@ export interface UserIdentity extends Identity, Parsable { */ userPrincipalName?: string; } +export interface UserInsightsSettings extends Entity, Parsable { + /** + * The isEnabled property + */ + isEnabled?: boolean; +} /** * Contains properties for the installation state summary for a user. */ @@ -121140,10 +122463,18 @@ export interface UserSettings extends Entity, Parsable { * When set to true, the delegate access to the user's trending API is disabled. When set to true, documents in the user's Office Delve are disabled. When set to true, the relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected. Users can control this setting in Office Delve. */ contributionToContentDiscoveryDisabled?: boolean; + /** + * The itemInsights property + */ + itemInsights?: UserInsightsSettings; /** * The shiftPreferences property */ shiftPreferences?: ShiftPreferences; + /** + * The storage property + */ + storage?: UserStorage; /** * The windows property */ @@ -121240,6 +122571,12 @@ export interface UserSimulationEventInfo extends AdditionalDataHolder, BackedMod */ osPlatformDeviceDetails?: string; } +export interface UserStorage extends Entity, Parsable { + /** + * The quota property + */ + quota?: UnifiedStorageQuota; +} export interface UserTeamwork extends Entity, Parsable { /** * The list of associatedTeamInfo objects that a user is associated with. @@ -121529,6 +122866,10 @@ export interface VirtualEvent extends Entity, Parsable { * End time of the virtual event. The timeZone property can be set to any of the time zones currently supported by Windows. For details on how to get all available time zones using PowerShell, see Get-TimeZone. */ endDateTime?: DateTimeTimeZone; + /** + * The presenters property + */ + presenters?: VirtualEventPresenter[]; /** * Sessions for the virtual event. */ @@ -121549,6 +122890,74 @@ export interface VirtualEventCollectionResponse extends BaseCollectionPagination */ value?: VirtualEvent[]; } +export interface VirtualEventPresenter extends Entity, Parsable { + /** + * The email property + */ + email?: string; + /** + * The identity property + */ + identity?: Identity; + /** + * The presenterDetails property + */ + presenterDetails?: VirtualEventPresenterDetails; +} +export interface VirtualEventPresenterCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: VirtualEventPresenter[]; +} +export interface VirtualEventPresenterDetails extends AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * Stores model information. + */ + backingStoreEnabled?: boolean; + /** + * The bio property + */ + bio?: ItemBody; + /** + * The company property + */ + company?: string; + /** + * The jobTitle property + */ + jobTitle?: string; + /** + * The linkedInProfileWebUrl property + */ + linkedInProfileWebUrl?: string; + /** + * The OdataType property + */ + odataType?: string; + /** + * The personalSiteWebUrl property + */ + personalSiteWebUrl?: string; + /** + * The photo property + */ + photo?: string; + /** + * The twitterProfileWebUrl property + */ + twitterProfileWebUrl?: string; +} +export interface VirtualEventPresenterInfo extends MeetingParticipantInfo, Parsable { + /** + * The presenterDetails property + */ + presenterDetails?: VirtualEventPresenterDetails; +} export interface VirtualEventRegistration extends Entity, Parsable { /** * Date and time when the registrant cancels their registration for the virtual event. Only appears when applicable. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. @@ -121566,6 +122975,14 @@ export interface VirtualEventRegistration extends Entity, Parsable { * Last name of the registrant. */ lastName?: string; + /** + * The preferredLanguage property + */ + preferredLanguage?: string; + /** + * The preferredTimezone property + */ + preferredTimezone?: string; /** * Date and time when the registrant registers for the virtual event. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @@ -121574,6 +122991,10 @@ export interface VirtualEventRegistration extends Entity, Parsable { * The registrant's answer to the registration questions. */ registrationQuestionAnswers?: VirtualEventRegistrationQuestionAnswer[]; + /** + * The sessions property + */ + sessions?: VirtualEventSession[]; /** * Registration status of the registrant. Read-only. */ @@ -121589,6 +123010,37 @@ export interface VirtualEventRegistrationCollectionResponse extends BaseCollecti */ value?: VirtualEventRegistration[]; } +export interface VirtualEventRegistrationConfiguration extends Entity, Parsable { + /** + * The capacity property + */ + capacity?: number; + /** + * The questions property + */ + questions?: VirtualEventRegistrationQuestionBase[]; + /** + * The registrationWebUrl property + */ + registrationWebUrl?: string; +} +export interface VirtualEventRegistrationCustomQuestion extends Parsable, VirtualEventRegistrationQuestionBase { + /** + * The answerChoices property + */ + answerChoices?: string[]; + /** + * The answerInputType property + */ + answerInputType?: VirtualEventRegistrationQuestionAnswerInputType; +} +export interface VirtualEventRegistrationPredefinedQuestion extends Parsable, VirtualEventRegistrationQuestionBase { + /** + * The label property + */ + label?: VirtualEventRegistrationPredefinedQuestionLabel; +} +export type VirtualEventRegistrationPredefinedQuestionLabel = (typeof VirtualEventRegistrationPredefinedQuestionLabelObject)[keyof typeof VirtualEventRegistrationPredefinedQuestionLabelObject]; export interface VirtualEventRegistrationQuestionAnswer extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -121623,6 +123075,23 @@ export interface VirtualEventRegistrationQuestionAnswer extends AdditionalDataHo */ value?: string; } +export type VirtualEventRegistrationQuestionAnswerInputType = (typeof VirtualEventRegistrationQuestionAnswerInputTypeObject)[keyof typeof VirtualEventRegistrationQuestionAnswerInputTypeObject]; +export interface VirtualEventRegistrationQuestionBase extends Entity, Parsable { + /** + * The displayName property + */ + displayName?: string; + /** + * The isRequired property + */ + isRequired?: boolean; +} +export interface VirtualEventRegistrationQuestionBaseCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: VirtualEventRegistrationQuestionBase[]; +} export interface VirtualEventSession extends OnlineMeetingBase, Parsable { /** * The virtual event session end time. @@ -121644,12 +123113,40 @@ export interface VirtualEventsRoot extends Entity, Parsable { * The events property */ events?: VirtualEvent[]; + /** + * The townhalls property + */ + townhalls?: VirtualEventTownhall[]; /** * The webinars property */ webinars?: VirtualEventWebinar[]; } export type VirtualEventStatus = (typeof VirtualEventStatusObject)[keyof typeof VirtualEventStatusObject]; +export interface VirtualEventTownhall extends Parsable, VirtualEvent { + /** + * The audience property + */ + audience?: MeetingAudience; + /** + * The coOrganizers property + */ + coOrganizers?: CommunicationsUserIdentity[]; + /** + * The invitedAttendees property + */ + invitedAttendees?: Identity[]; + /** + * The isInviteOnly property + */ + isInviteOnly?: boolean; +} +export interface VirtualEventTownhallCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + value?: VirtualEventTownhall[]; +} export interface VirtualEventWebinar extends Parsable, VirtualEvent { /** * To whom the webinar is visible. @@ -121659,6 +123156,10 @@ export interface VirtualEventWebinar extends Parsable, VirtualEvent { * Identity information of coorganizers of the webinar. */ coOrganizers?: CommunicationsUserIdentity[]; + /** + * The registrationConfiguration property + */ + registrationConfiguration?: VirtualEventWebinarRegistrationConfiguration; /** * Registration records of the webinar. */ @@ -121670,6 +123171,16 @@ export interface VirtualEventWebinarCollectionResponse extends BaseCollectionPag */ value?: VirtualEventWebinar[]; } +export interface VirtualEventWebinarRegistrationConfiguration extends Parsable, VirtualEventRegistrationConfiguration { + /** + * The isManualApprovalEnabled property + */ + isManualApprovalEnabled?: boolean; + /** + * The isWaitlistEnabled property + */ + isWaitlistEnabled?: boolean; +} export type VisibilitySetting = (typeof VisibilitySettingObject)[keyof typeof VisibilitySettingObject]; export interface VisualInfo extends AdditionalDataHolder, BackedModel, Parsable { /** @@ -127221,6 +128732,7 @@ export const AssignmentTypeObject = { Required: "required", Recommended: "recommended", UnknownFutureValue: "unknownFutureValue", + PeerRecommended: "peerRecommended", } as const; export const AttachmentTypeObject = { File: "file", @@ -127441,6 +128953,11 @@ export const BodyTypeObject = { Text: "text", Html: "html", } as const; +export const BookingPageAccessControlObject = { + Unrestricted: "unrestricted", + RestrictedToOrganization: "restrictedToOrganization", + UnknownFutureValue: "unknownFutureValue", +} as const; /** * Represents the type of pricing of a booking service. */ @@ -127476,6 +128993,12 @@ export const BookingsAvailabilityStatusObject = { OutOfOffice: "outOfOffice", UnknownFutureValue: "unknownFutureValue", } as const; +export const BookingsServiceAvailabilityTypeObject = { + BookWhenStaffAreFree: "bookWhenStaffAreFree", + NotBookable: "notBookable", + CustomWeeklyHours: "customWeeklyHours", + UnknownFutureValue: "unknownFutureValue", +} as const; export const BookingStaffMembershipStatusObject = { Active: "active", PendingAcceptance: "pendingAcceptance", @@ -129608,6 +131131,11 @@ export const MutabilityObject = { Immutable: "Immutable", WriteOnly: "WriteOnly", } as const; +export const NativeAuthenticationApisEnabledObject = { + None: "none", + All: "all", + UnknownFutureValue: "unknownFutureValue", +} as const; export const NotificationDeliveryFrequencyObject = { Unknown: "unknown", Weekly: "weekly", @@ -132078,6 +133606,8 @@ export const TeamsAsyncOperationTypeObject = { UnknownFutureValue: "unknownFutureValue", TeamifyGroup: "teamifyGroup", CreateChannel: "createChannel", + ArchiveChannel: "archiveChannel", + UnarchiveChannel: "unarchiveChannel", } as const; export const TeamSpecializationObject = { None: "none", @@ -132420,6 +133950,25 @@ export const VirtualEventAttendeeRegistrationStatusObject = { RejectedByOrganizer: "rejectedByOrganizer", UnknownFutureValue: "unknownFutureValue", } as const; +export const VirtualEventRegistrationPredefinedQuestionLabelObject = { + Street: "street", + City: "city", + State: "state", + PostalCode: "postalCode", + CountryOrRegion: "countryOrRegion", + Industry: "industry", + JobTitle: "jobTitle", + Organization: "organization", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const VirtualEventRegistrationQuestionAnswerInputTypeObject = { + Text: "text", + MultilineText: "multilineText", + SingleChoice: "singleChoice", + MultiChoice: "multiChoice", + Boolean: "boolean", + UnknownFutureValue: "unknownFutureValue", +} as const; export const VirtualEventStatusObject = { Draft: "draft", Published: "published", diff --git a/packages/msgraph-sdk/models/security/index.ts b/packages/msgraph-sdk/models/security/index.ts index ff176d9a491..3a1a227865a 100644 --- a/packages/msgraph-sdk/models/security/index.ts +++ b/packages/msgraph-sdk/models/security/index.ts @@ -579,6 +579,50 @@ export interface CloudApplicationEvidence extends AlertEvidence, Parsable { */ stream?: Stream; } +export interface CloudLogonRequestEvidence extends AlertEvidence, Parsable { + /** + * The unique identifier for the sign-in request. + */ + requestId?: string; +} +export interface CloudLogonSessionEvidence extends AlertEvidence, Parsable { + /** + * The account associated with the sign-in session. + */ + account?: UserEvidence; + /** + * The browser that is used for the sign-in, if known. + */ + browser?: string; + /** + * The friendly name of the device, if known. + */ + deviceName?: string; + /** + * The operating system that the device is running, if known. + */ + operatingSystem?: string; + /** + * The previous sign-in time for this account, if known. + */ + previousLogonDateTime?: Date; + /** + * The authentication protocol that is used in this session, if known. + */ + protocol?: string; + /** + * The session ID for the account reported in the alert. + */ + sessionId?: string; + /** + * The session start time, if known. + */ + startUtcDateTime?: Date; + /** + * The user agent that is used for the sign-in, if known. + */ + userAgent?: string; +} export interface ContainerEvidence extends AlertEvidence, Parsable { /** * The list of arguments. @@ -671,6 +715,10 @@ export function createAlertEvidenceFromDiscriminatorValue(parseNode: ParseNode | return deserializeIntoBlobEvidence; case "#microsoft.graph.security.cloudApplicationEvidence": return deserializeIntoCloudApplicationEvidence; + case "#microsoft.graph.security.cloudLogonRequestEvidence": + return deserializeIntoCloudLogonRequestEvidence; + case "#microsoft.graph.security.cloudLogonSessionEvidence": + return deserializeIntoCloudLogonSessionEvidence; case "#microsoft.graph.security.containerEvidence": return deserializeIntoContainerEvidence; case "#microsoft.graph.security.containerImageEvidence": @@ -997,6 +1045,22 @@ export function createCitationTemplateFromDiscriminatorValue(parseNode: ParseNod export function createCloudApplicationEvidenceFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoCloudApplicationEvidence; } +/** + * 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 {CloudLogonRequestEvidence} + */ +export function createCloudLogonRequestEvidenceFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoCloudLogonRequestEvidence; +} +/** + * 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 {CloudLogonSessionEvidence} + */ +export function createCloudLogonSessionEvidenceFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoCloudLogonSessionEvidence; +} /** * 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 @@ -3012,6 +3076,34 @@ export function deserializeIntoCloudApplicationEvidence(cloudApplicationEvidence "stream": n => { cloudApplicationEvidence.stream = n.getObjectValue(createStreamFromDiscriminatorValue); }, } } +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoCloudLogonRequestEvidence(cloudLogonRequestEvidence: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoAlertEvidence(cloudLogonRequestEvidence), + "requestId": n => { cloudLogonRequestEvidence.requestId = n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @returns {Record void>} + */ +export function deserializeIntoCloudLogonSessionEvidence(cloudLogonSessionEvidence: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoAlertEvidence(cloudLogonSessionEvidence), + "account": n => { cloudLogonSessionEvidence.account = n.getObjectValue(createUserEvidenceFromDiscriminatorValue); }, + "browser": n => { cloudLogonSessionEvidence.browser = n.getStringValue(); }, + "deviceName": n => { cloudLogonSessionEvidence.deviceName = n.getStringValue(); }, + "operatingSystem": n => { cloudLogonSessionEvidence.operatingSystem = n.getStringValue(); }, + "previousLogonDateTime": n => { cloudLogonSessionEvidence.previousLogonDateTime = n.getDateValue(); }, + "protocol": n => { cloudLogonSessionEvidence.protocol = n.getStringValue(); }, + "sessionId": n => { cloudLogonSessionEvidence.sessionId = n.getStringValue(); }, + "startUtcDateTime": n => { cloudLogonSessionEvidence.startUtcDateTime = n.getDateValue(); }, + "userAgent": n => { cloudLogonSessionEvidence.userAgent = n.getStringValue(); }, + } +} /** * The deserialization information for the current model * @returns {Record void>} @@ -4142,6 +4234,7 @@ export function deserializeIntoIncident(incident: Partial | undefined "resolvingComment": n => { incident.resolvingComment = n.getStringValue(); }, "severity": n => { incident.severity = n.getEnumValue(AlertSeverityObject); }, "status": n => { incident.status = n.getEnumValue(IncidentStatusObject); }, + "summary": n => { incident.summary = n.getStringValue(); }, "systemTags": n => { incident.systemTags = n.getCollectionOfPrimitiveValues(); }, "tenantId": n => { incident.tenantId = n.getStringValue(); }, } @@ -6776,6 +6869,10 @@ export interface Incident extends Entity, Parsable { * The status property */ status?: IncidentStatus; + /** + * The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. + */ + summary?: string; /** * The system tags associated with the incident. */ @@ -8176,6 +8273,30 @@ export function serializeCloudApplicationEvidence(writer: SerializationWriter, c writer.writeNumberValue("saasAppId", cloudApplicationEvidence.saasAppId); writer.writeObjectValue("stream", cloudApplicationEvidence.stream, serializeStream); } +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeCloudLogonRequestEvidence(writer: SerializationWriter, cloudLogonRequestEvidence: Partial | undefined = {}) : void { + serializeAlertEvidence(writer, cloudLogonRequestEvidence) + writer.writeStringValue("requestId", cloudLogonRequestEvidence.requestId); +} +/** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ +export function serializeCloudLogonSessionEvidence(writer: SerializationWriter, cloudLogonSessionEvidence: Partial | undefined = {}) : void { + serializeAlertEvidence(writer, cloudLogonSessionEvidence) + writer.writeObjectValue("account", cloudLogonSessionEvidence.account, serializeUserEvidence); + writer.writeStringValue("browser", cloudLogonSessionEvidence.browser); + writer.writeStringValue("deviceName", cloudLogonSessionEvidence.deviceName); + writer.writeStringValue("operatingSystem", cloudLogonSessionEvidence.operatingSystem); + writer.writeDateValue("previousLogonDateTime", cloudLogonSessionEvidence.previousLogonDateTime); + writer.writeStringValue("protocol", cloudLogonSessionEvidence.protocol); + writer.writeStringValue("sessionId", cloudLogonSessionEvidence.sessionId); + writer.writeDateValue("startUtcDateTime", cloudLogonSessionEvidence.startUtcDateTime); + writer.writeStringValue("userAgent", cloudLogonSessionEvidence.userAgent); +} /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -9127,6 +9248,7 @@ export function serializeIncident(writer: SerializationWriter, incident: Partial writer.writeStringValue("resolvingComment", incident.resolvingComment); writer.writeEnumValue("severity", incident.severity); writer.writeEnumValue("status", incident.status); + writer.writeStringValue("summary", incident.summary); writer.writeCollectionOfPrimitiveValues("systemTags", incident.systemTags); writer.writeStringValue("tenantId", incident.tenantId); }